没法查看索引下的日志问题解决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