kibana對logstash監控獲取不到數據


需求:

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

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

簡單的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展示圖

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM