6503644140
In fluentd v1.0, "format" became a deprecated parameter, replaced by "<parse>" Change-Id: I0825e81fcd90fbc7f64c8df3ea9ae199ad79294a
30 lines
939 B
Django/Jinja
30 lines
939 B
Django/Jinja
<source>
|
|
@type tail
|
|
path /var/log/kolla/openvswitch/ovs-vswitchd.log
|
|
pos_file /var/run/td-agent/openvswitch.pos
|
|
tag infra.openvswitch
|
|
enable_watch_timer false
|
|
<parse>
|
|
@type multiline
|
|
format_firstline /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}/
|
|
format1 /^(?<Timestamp>\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3})Z\|\d{5,}\|(?<module>\S+)\|(?<log_level>\S+)\|(?<Payload>.*)/
|
|
time_key Timestamp
|
|
time_format %FT%T.%L
|
|
</parse>
|
|
</source>
|
|
|
|
<source>
|
|
@type tail
|
|
path /var/log/kolla/openvswitch/ovsdb-server.log
|
|
pos_file /var/run/td-agent/openvswitchdb.pos
|
|
tag infra.openvswitchdb
|
|
enable_watch_timer false
|
|
<parse>
|
|
@type multiline
|
|
format_firstline /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}/
|
|
format1 /^(?<Timestamp>\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3})Z\|\d{5,}\|(?<module>\S+)\|(?<log_level>\S+)\|(?<Payload>.*)/
|
|
time_key Timestamp
|
|
time_format %FT%T.%L
|
|
</parse>
|
|
</source>
|