Timezone setter for Fluentd
Shift the timezone of an event using the value of a field on that event.
gem install fluent-plugin-set-timezone
There is only one option:
<filter pattern> @type set_timezone timezone_key timezone </filter>
It supports the record accessor syntax
A record like this:
will be transformed to:
It is highly recommended to use timezone names rather than offsets, because the actual offset is calculated using the offset of the zone at the given event time. This way daylight savings time (and the removal of it in e.g. the EU) is taken into account even in the hours around the change.
An invalid timezone raises an error. No timezone (
'') simply returns the existing time.