Hi, i'm currently trying to add an additional date field for when the log was created called log_timestamp. But the Date filter does not seem to convert log_timestamp into a date type.
My config is below.
That should be fine. So is the date filter failing (resulting in a _dateparsefailure tag in your events) or is the problem that the resulting field in ES isn't a date field? In the latter case the problem is probably that the field at some point was mapped as a string and that won't change just because what you're currently sending in that field looks like a timestamp. One of way fixing the problem is deleting the index and starting over (since you might not have useful data there anyway), optionally with an index template that explicitly maps the log_timestamp field as a date field.
Any particular reason you want to call the timestamp field log_timestamp field instead of the default @timestamp? The latter will already have the correct mapping if you use Logstash's default index template.
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.