Beware that in your #1 case you are using the @timestamp field when doing event.sprintf('%{+YYYY-MM-dd}') and not your log_timestamp.
That explains the odd behaviour I was seeing sometimes, thanks.
I am actually using the date filter to "reset" the @timestamp for the event to the datetime in the event's log_timestamp field. I just omitted that code.
But I want only the day portion in the index name. Not sure how I would use the date filter to do that.
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.