Loading records with date_range field from Logstash

(Chris Beck) #1

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?


(Magnus B├Ąck) #2

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.

(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.