X-Pack权限控制之给Kibana加上登录控制以及index_not_found_exception问题解决

时间:2021-09-26 20:09:33

无法查看索引下的日志问题解决

好事多磨,我们还是无法在Kibana下看到数据,究竟是怎么一回事呢?

笔者再次查看了logstash的控制台,又发现了如下错误:

logstash outputs elasticsearch error 404 >>index_not_found_exception

上网查了下资料,原来需要在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

其中红色字体部分为笔者测试程序所用的索引

再次重新启动elasticsearch

原文地址:http://www.cnblogs.com/davidgu/p/6785039.html