Add the local time zoneedit

The add_locale processor enriches each event with either the machine’s time zone offset from UTC or the name of the time zone. The processor adds the a event.timezone value to each event.

Examplesedit

The configuration adds the processor with the default settings:

  - add_locale: ~

This configuration adds the processor and configures it to add the time zone abbreviation to events:

  - add_locale:
      format: abbreviation

The add_locale processor differentiates between daylight savings time (DST) and regular time. For example CEST indicates DST and and CET is regular time.

Configuration settingsedit

Elastic Agent processors execute before ingest pipelines, which means that they process the raw event data rather than the final event sent to Elasticsearch. For related limitations, refer to What are some limitations of using processors?

Name Required Default Description

format

No

offset

Whether an offset or time zone abbreviation is added to the event.