Problem with : curl -XGET ‘localhost:9200/logstash-2018.05.03/_search?pretty&q=response=200’

I had this error when i try with other logs ( the test was successfull with logtash-totu ) :

{
"error" : {
"root_cause" : [
{
"type" : "index_not_found_exception",
"reason" : "no such index",
"resource.type" : "index_or_alias",
"resource.id" : "logstash-2018.05.03",
"index_uuid" : "na",
"index" : "logstash-2018.05.03"
}
],
"type" : "index_not_found_exception",
"reason" : "no such index",
"resource.type" : "index_or_alias",
"resource.id" : "logstash-2018.05.03",
"index_uuid" : "na",
"index" : "logstash-2018.05.03"
},
"status" : 404

What gives

GET _cat/indices?v

health status index uuid pri rep docs.count docs.deleted store.size pri.store.size
green open .kibana VVs4bcERSKeSgufbSY1bwA 1 0 2 1 34.4kb 34.4kb
yellow open filebeat-6.2.4-2018.05.04 TsDofsuNQ0ePT3BeFu5FmQ 3 1 131672 0 33.2mb 33.2mb

You don't have any index named logstash-2018.05.03 that's why your query is failing.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.