问题描述
我使用ELK堆栈分析我的日志文件.我上周进行了测试,一切正常.
I use ELK stack to analyze my log file. I have tested last week and everything works well.
今天,我进行了测试,但键入" http://localhost:9200/iot_log/_count时遇到此错误"(iot_log是我的索引模式):
Today, I tested but I get this error when I typed "http://localhost:9200/iot_log/_count" (iot_log is my index pattern):
我确实在论坛上进行了搜索,但没有找到解决方案,我想知道导致此问题的原因是什么,我该如何解决?
I really searched the forums but I have not found a solution, I want to know what is the cause of this problem please and how can I correct it?
推荐答案
确保索引iot_log存在并且创建它,如果没有:
Make sure index iot_log exist and create it if not:
curl -X PUT "localhost:9200/iot_log" -H 'Content-Type: application/json' -d'{ "settings" : { "index" : { } }}'
这篇关于错误:index_not_found_exception的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!