I have a set of data with a start date/time and an end date/time. I would like to create a date_range field via a filter clause in logstash as part of inserting the data.
has anyone been able to do this?
Thanks,
Chris
I have a set of data with a start date/time and an end date/time. I would like to create a date_range field via a filter clause in logstash as part of inserting the data.
has anyone been able to do this?
Thanks,
Chris
According to the docs, a date_range field named X
should have the following form:
"X" : {
"gte" : "2015-10-31 12:00:00",
"lte" : "2015-11-01"
}
You can e.g. use a date filter to populate the gte
and lte
subfields.
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
© 2020. All Rights Reserved - Elasticsearch
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.