无法恢复连接[Kibana]

时间:2019-10-10 19:36:28

标签: elasticsearch elastic-stack kibana-7

我在开发人员模式下有一个Elasticsearch实例。我的Elasticsearch配置如下,

cluster.name: "logparser"
node.master: true
node.data: true
node.ingest: true
node.ml: false
path.data: /storage/elasticsearch
path.logs: /var/log/elasticsearch
network.host: _local_
xpack.security.enabled: true
xpack.security.http.ssl.enabled: true
xpack.security.http.ssl.keystore.path: certs/elasticsearch.p12
xpack.security.http.ssl.truststore.path: certs/elasticsearch.p12

以下是我的Kibana配置,

server.port: 5601
server.host: 172.16.10.10
server.name: "logparser.akash.pub"
elasticsearch.hosts: ["https://127.0.0.1:9200"]
elasticsearch.username: "kibana"
elasticsearch.password: "blabla"
elasticsearch.ssl.certificateAuthorities: [ "/etc/kibana/certs/elastic-ca.pem" ]
xpack.security.enabled: true

为供您参考,我已经从.pem创建的kibana.p12文件创建了elastic-stack-ca.p12文件

我的问题是,

Oct 11 01:24:19 logparser kibana: {"type":"log","@timestamp":"2019-10-10T19:24:19Z","tags":["warning","elasticsearch","admin"],"pid":3862,"message":"Unable to revive connection: https://127.0.0.1:9200/"}
Oct 11 01:28:18 logparser kibana: {"type":"log","@timestamp":"2019-10-10T19:28:18Z","tags":["warning","elasticsearch","admin"],"pid":3862,"message":"No living connections"}

我可以使用Kibana的凭证来访问Elasticsearch,

curl -kA "Mozilla" -L "https://kibana:blabla@localhost:9200"                                                                                                                                
{
"name" : "logparser.akash.pub",
"cluster_name" : "logparser",
"cluster_uuid" : "eR48rtysQHWTa89ZxXBrNQ",
"version" : {
"number" : "7.4.0",
"build_flavor" : "default",
"build_type" : "rpm",
"build_hash" : "22e1767283e61a198cb4db791ea66e3f11ab9910",
"build_date" : "2019-09-27T08:36:48.569419Z",
"build_snapshot" : false,
"lucene_version" : "8.2.0",
"minimum_wire_compatibility_version" : "6.8.0",
"minimum_index_compatibility_version" : "6.0.0-beta1"
},
"tagline" : "You Know, for Search"
}

当前网络状态,

[root@logparser]# netstat -tulpn 
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name    
tcp        0      0 172.16.10.10:5601       0.0.0.0:*               LISTEN      3862/node           
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      1135/sshd           
tcp6       0      0 127.0.0.1:9200          :::*                    LISTEN      3370/java           
tcp6       0      0 ::1:9200                :::*                    LISTEN      3370/java           
tcp6       0      0 127.0.0.1:9300          :::*                    LISTEN      3370/java           
tcp6       0      0 ::1:9300                :::*                    LISTEN      3370/java           
tcp6       0      0 :::22                   :::*                    LISTEN      1135/sshd    

如何解决问题?

0 个答案:

没有答案