我使用 ELK 堆栈来分析我的日志文件。我上周测试过,一切正常。
今天,我进行了测试,但当我输入“http://localhost:9200/iot_log/_count http://localhost:9200/iot_log/_count“(iot_log 是我的索引模式):
{“错误”:{“root_cause”:[{“类型”:“index_not_found_Exception”,“原因”:“否
这样的
索引","resource.type":"index_or_alias","resource.id":"iot_log","index_uuid":"na","index":"iot_log"}],"type":"index_not_found_exception","reason":"没有这样的
索引","resource.type":"index_or_alias","resource.id":"iot_log","index_uuid":"na","index":"iot_log"},"status":404}
我确实搜索了论坛,但没有找到解决方案,我想知道这个问题的原因是什么,我该如何解决?
确保索引 iot_log 存在并且创造它 https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-create-index.html if not:
curl -X PUT "localhost:9200/iot_log" -H 'Content-Type: application/json' -d'{ "settings" : { "index" : { } }}'
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)