Why is a new index created with 0001 if you restart logstash? And does not continue to write to the main one, without numbers. But if you restart it again, it keeps writing to 0001 without creating 0002?
the rollover operation (which would increment the sequence number and create actions-logs-{now/d}-00002 ) is not handled by Logstash, but by Elasticsearch's ILM. The rollover happens based on the conditions defined in your ILM policy (like max size, max age, or max documents)
i delete the index and it created without any date only name i mean "actions-logs" instead of "actions-logs-2024.01.16"
i stop logstash, delete this log and start logstash. new index is "actions-logs-2024.01.16-00001" instead of "actions-logs-2024.01.16"
This new index has two aliases instead of one
"actions-logs, actions-logs-alias"
And the error "illegal_argument_exception: rollover target [actions-logs-alias] does not point to a write index"
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.