Skip to content

Latest commit

 

History

History
48 lines (36 loc) · 1.3 KB

processor-add_locale.asciidoc

File metadata and controls

48 lines (36 loc) · 1.3 KB

Add the local time zone

add_locale

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.

Examples

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
Note
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 settings

Name Required Default Description

format

No

offset

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