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


(Salma Ait Lhaj) #1

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


(David Pilato) #2

What gives

GET _cat/indices?v

(Salma Ait Lhaj) #3

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


(David Pilato) #4

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


(system) #5

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