after trying to figure out some stuff about ILM i need some help now.
I have about 400 Cisco-Devices sending their logs to a syslog-ng server from where they are send to Elasticsearch via Filebeat / Logstash.
The logs on the syslogserver are rotated every day at 0:00 UTC and elasticsearch indexing the logs as
cisco-switch-2022-07.26
cisco-switch-2022.07.27
and so on.
You should check your aliases with _cat/aliases.. There I noticed that my first index didn't have the alias (despite the fact I use the "is_write_index": true too).
One solution was to run:
template (as you did)
create the index (as you did)
run PUTcisco-switch-000001/_alias/cisco-switch to link the alias to the index
It's just for the first index, then it's automatic.
I hope it will works for you too!
If you are sending data to time-based indices with date in the name you can not use rollover as part of ILM. The whole point of rollover is to have a single alias that you write to and let Elasticsearch roll over backing indices automatically based on size and age. This relies on you giving up control of exactly which data that go into which backing index.
You therefore have 2 options. The first is to use rollover and require you to write to the cisco-switch alias instead of index names with date in the names.
If you instead prefer to write to indices in the form cisco-switch-2022-07.26 you should remove rollover from the ILM policy.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.