logstash-plugins / logstash-filter-date

Apache License 2.0
7 stars 43 forks source link

Dynamic string for timeformat in 'match' #127

Closed ghost closed 5 years ago

ghost commented 6 years ago

Hi. This is somewhat related to Match parameter field name of date filter doesn't support variable interpolation #91. My issue however, is that I'm trying to run a generalized pipeline for multiple types of logs. Each log may have different timeformat (and the variations are many). Ideally, i'd like to do the following:

 date {
        match => ["timestamp",  "%{[@metadata][timeFormat]}"]
        timezone => "%{[@metadata][timeZone]}"
      }

Could this please be implemented? :+1:

ghost commented 6 years ago

In my particular scenario, the timeFormat does not need to be an array (but rather a specific string specified earlier, in the pipeline)

ghost commented 5 years ago

Closing this, as i was made aware that forums are more appropriate for such feature requests.