I am trying to apply the date filter against data that has been created by the json filter, the relevant field gets placed into [data][timestamp] in text format, when the following filter is applied, logstash keeps creating empty documents. No errors appear in the log. What could be causing this?
Thank you all in advance,
Below are examples and screenshots.
data by json filter:
"data"."timestamp": "1716886015302"
filter snippet:
date {
match => ["[data][timestamp]", "UNIX_MS"]
}
Here is a screenshot of the resulting empty document:
Here is the whole config, once the date filter is added the the behaviour can be observed, which is empty documents instead of the expected content with the date matched. There are no errors in the log at all.
OK, as it turns out, it does work, the empty documents that show up are because of invalid json coming from the source. I did not realise it was processing older data and did not look far enough into the past to see the index being populated with data going back days.
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.