kibana连接ES集群

# Kibana is served by a back end server. This setting specifies the port to use.
server.port: 5601

# Specifies the address to which the Kibana server will bind. IP addresses and host names are both valid values.
# The default is 'localhost', which usually means remote machines will not be able to connect.
# To allow connections from remote users, set this parameter to a non-loopback address.
server.host: "192.168.31.201"

# Enables you to specify a path to mount Kibana at if you are running behind a proxy.
# Use the `server.rewriteBasePath` setting to tell Kibana if it should remove the basePath
# from requests it receives, and to prevent a deprecation warning at startup.
# This setting cannot end in a slash.
#server.basePath: ""

# Specifies whether Kibana should rewrite requests that are prefixed with
# `server.basePath` or require that they are rewritten by your reverse proxy.
# This setting was effectively always `false` before Kibana 6.3 and will
# default to `true` starting in Kibana 7.0.
#server.rewriteBasePath: false

# The maximum payload size in bytes for incoming server requests.
#server.maxPayloadBytes: 1048576

# The Kibana server's name.  This is used for display purposes.
#server.name: "your-hostname"

# The URLs of the Elasticsearch instances to use for all your queries.
#elasticsearch.hosts: ["http://localhost:9200"]
elasticsearch.hosts: ["http://192.168.31.201:9200","http://192.168.31.202:9200","http://192.168.31.203:9200","http://192.168.31.204:9200","http://192.168.31.205:9200"]
 

要查看Kibana与Elasticsearch集群的状态,可以按照以下步骤进行操作: 1. 首先,确保你已经安装了Kibana和Elasticsearch,并且它们已经成功启动。 2. 打开浏览器,输入Kibana的地址和端口号,例如:http://localhost:5601。 3. 在Kibana的界面上,点击左侧导航栏中的"Dev Tools"。 4. 在"Dev Tools"页面中,你可以使用Elasticsearch的REST API来查看集群状态。例如,你可以使用以下命令来查看集群的健康状态: ``` GET /_cluster/health ``` 这个命令将返回一个JSON格式的响应,其中包含了集群的健康状态信息,如集群名称、状态、节点数量、分片数量等。\[3\] 5. 另外,你还可以使用以下命令来查看集群中的节点信息: ``` GET /_cat/nodes ``` 这个命令将返回一个包含节点信息的表格,包括节点的ID、IP地址、角色等。\[3\] 6. 如果你想查看集群中的分片信息,可以使用以下命令: ``` GET /_cat/shards ``` 这个命令将返回一个包含分片信息的表格,包括索引名称、分片ID、状态等。\[3\] 通过以上步骤,你可以使用Kibana的"Dev Tools"页面来查看Elasticsearch集群的状态信息。请注意,只有具有Master节点权限的用户才能修改集群的状态信息。\[2\] #### 引用[.reference_title] - *1* *2* *3* [SpringBoot --- 整合Elasticsearch](https://blog.csdn.net/weixin_43916074/article/details/123895892)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^insertT0,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]
评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值