沒法查看索引下的日誌問題解決html
好事多磨,咱們仍是沒法在Kibana下看到數據,到底是怎麼一回事呢?bootstrap
筆者再次查看了logstash的控制檯,又發現了以下錯誤:app
logstash outputs elasticsearch error 404 >>index_not_found_exceptioncors
上網查了下資料,原來須要在elasticsearch中建立自動索引elasticsearch
還記得剛纔咱們在elasticsearch.yml配置文件最後一行加的那句代碼嗎,看一下:測試
筆者修改以下:字體
#自定義追加
http.cors.enabled: true
http.cors.allow-origin: "*"
bootstrap.system_call_filter: false
#自定義x-pack配置
action.auto_create_index: .security,.monitoring*,.watches,.triggered_watches,.watcher-history*,app-a-*,app-b-*
xpack.security.audit.enabled: true日誌
其中紅色字體部分爲筆者測試程序所用的索引code
再次從新啓動elasticsearchhtm
原文地址:http://www.cnblogs.com/davidgu/p/6785039.html