Config: Extract Section
Extract Section Overview
The extract section can be under <match>, <source>, or <filter> sections. It is enabled for the plugins that support extracting values from the event record e.g. exec.
<source>
@type exec
# ...
<extract>
# ...
</extract>
</source>
Extract Section Parameter
Extract Parameters
tag_key(string) (optional): the field name to extracttag- Default:
nil
- Default:
keep_tag_key(bool) (optional): iftrue, keeps the field in therecord after extracting its value
- Default:
false
- Default:
time_key(string) (optional): the field name to extract the time- Default:
nil
- Default:
keep_time_key(bool) (optional): iftrue, keeps the field in therecord after extracting its value
- Default:
false
- Default:
Time Parameters
time_type(enum) (optional): parses/formats value according to thistype
- Default:
float Available values:
float,unixtime,stringfloat: seconds from Epoch + nano seconds (e.g.1510544836.154709804)
unixtime: seconds from Epoch (e.g. 1510544815)string: use format specified bytime_format, local time or timezone
- Default:
time_format(string) (optional): processes value according to thespecified format. This is available only when
time_typeisstring.- Default:
nil Available time format:
For more details about formatting, see
For more details about parsing, see
%iso8601(only for parsing)Use
%Nto parse/format with sub-second precision, becausestrptimedoes not support%3N,%6N,%9N, and%L.
- Default:
localtime(bool) (optional): iftrue, uses local time. Otherwise,UTC is used. This is exclusive with
utc.- Default:
true
- Default:
utc(bool) (optional): iftrue, uses UTC. Otherwise, local time isused. This is exclusive with
localtime.- Default:
false
- Default:
timezone(string) (optional): uses the specified timezone. One canparse/format the time value in the specified timezone format.
- Default:
nil - Available time zone format:
[+-]HH:MM(e.g. "+09:00") (recommended)[+-]HHMM(e.g. "+0900")[+-]HH(e.g. "+09")- Region/Zone (e.g.
Asia/Tokyo) - Region/Zone/Zone (e.g.
America/Argentina/Buenos_Aires)
- Default: