kibana對logstash監控獲取不到數據

需求:node

  kibana監控elasticsearch+kibana+logstash的性能尋找,性能瓶頸!架構

發現啓動logstash加載logstash.yml,不讀取配置好的xpack.monitoring.elasticsearch.url: "xxx"的值,而讀取的系統默認的"http://localhost:9200"實例進行健康監測!,搞得懵逼了!,搞了好幾天最後發現問題了,yaml語言的語法,開啓的選項必須對齊。elasticsearch

簡單的elk架構

 

  

錯誤日誌:

[ERROR][logstash.licensechecker.licensemanager] Unable to retrieve license information from license server {:message=>"Elasticsearch Unreachable: [http://localhost:9200/][Manticore::SocketException] Connection refused",

解決方案:

  查看logstash.yml,對開啓的參數須要對齊,方纔讀取參數的值!性能

[root@DZSWJ_NRGL config]# egrep -v "^#|^$" logstash.yml node.name: node-lg-xxx.xxx
pipeline.workers: 3 pipeline.batch.size: 256 pipeline.batch.delay: 3000 http.host: "xxx.xxx.xxxx.xxx" http.port: "9600" log.level: warn xpack.monitoring.elasticsearch.url: "http://xxx.xxx.xxx.xxx:9200" xpack.monitoring.elasticsearch.username: "logstash_system" xpack.monitoring.elasticsearch.password: "123123"

 kibana展現圖

相關文章
相關標籤/搜索