Hi,
i'm following Parsing Logs with Logstash | Logstash Reference [8.11] | Elastic. When i try, as mentioned in the text
curl -k -u elastic:xxxxxxxxxxxxxxxxxxxxx -XGET 'https://localhost:9200/2024.01.10/_search?pretty&q=response=200'
i get:
"error" : {
"root_cause" : [
{
"type" : "index_not_found_exception",
"reason" : "no such index [2024.01.10]",
"resource.type" : "index_or_alias",
"resource.id" : "2024.01.10",
"index_uuid" : "_na_",
"index" : "2024.01.10"
}
],
"type" : "index_not_found_exception",
"reason" : "no such index [2024.01.10]",
"resource.type" : "index_or_alias",
"resource.id" : "2024.01.10",
"index_uuid" : "_na_",
"index" : "2024.01.10"
},
"status" : 404
}
The text proposes to do:
curl -k -u elastic:xxxxxxxxxxx -XGET 'https://localhost:9200/_cat/indices?v'
i get:
health status index uuid pri rep docs.count docs.deleted store.size pri.store.size dataset.size
The text says to exchange the date with an index:
curl -k -u elastic:1Q2aBUJBCH3x55M4qFOv -XGET 'https://localhost:9200/rep/_search?pretty&q=response=200'
I get again
"index_not_found_exception''
I tried several indexes, all the same error.
Elasticsearch seems to run:
curl -k -u elastic:xxxxxxxxx https://localhost:9200
{
"name" : "vm53200-8.scidom.de",
"cluster_name" : "mcd-elk",
"cluster_uuid" : "tpOenRA_Qjm035-P-5fuAQ",
"version" : {
"number" : "8.11.3",
"build_flavor" : "default",
"build_type" : "deb",
"build_hash" : "64cf052f3b56b1fd4449f5454cb88aca7e739d9a",
"build_date" : "2023-12-08T11:33:53.634979452Z",
"build_snapshot" : false,
"lucene_version" : "9.8.0",
"minimum_wire_compatibility_version" : "7.17.0",
"minimum_index_compatibility_version" : "7.0.0"
},
"tagline" : "You Know, for Search"
}
Thanks.
Bernd