Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 717 Bytes

compute_date_field.md

File metadata and controls

25 lines (18 loc) · 717 Bytes

Compute date field filter

Status : core plugin, unit tested and maintained.

The compute date field filter is used to compute a date field from timestampfield, using using moment date format.

Example 1: add a field named toto, containing timestamp formated with DD/MMMM/YYYY Config using url: filter://compute_date_field://toto?date_format=DD/MMMM/YYYY

Config using logstash format:

filter {
  compute_date_field {
    field => toto
    date_format => 'DD/MMMM/YYYY'
  }
}

Parameters:

  • field: which field to work on.
  • date_format: date format string, using moment.