We are running ELK 7.6.2 stack.
It seems that indices are getting deleted / cleaned automatically by ES.
We have ILM policy of 2 days retention for the index, but somehow it deletes the current one too.
After enabling debug in both Logstash and ES, the following was seen:
[2022-04-28T16:39:22,027][DEBUG][o.e.i.c.IndicesClusterStateService] [xx-xxx-xxx] [[prd_tv_global_2022.04.22/wewfo9p-TV6wK9fuLZf7ig]] cleaning index, no longer part of the metadata
[2022-04-28T16:39:22,355][DEBUG][o.e.i.c.IndicesClusterStateService] [xx-xxx-xxx] [[prd_tv_global_2022.04.25/Hp-K_6r6SSqPMayCGWsi1w]] cleaning index, no longer part of the metadata
Note todays' timestamp of April 28:
[2022-04-28T16:39:22,425][DEBUG][o.e.i.c.IndicesClusterStateService] [xx-xxx-xxx] [[prd_tv_global_2022.04.28/uYbaWQDgTwiDgrGOgIvcJA]] cleaning index, no longer part of the metadata
stdout was enabled in the Logstash config and messages could be seen coming into Logstash but index is not getting created.
output {
file {
path => "/opt/gtal/ptal/elasticsearch/logs/Logstash/global_rubydebug.txt"
codec => rubydebug
}
Please guide. Please note that I took out the index (in question) from index template too.