4180bee020
In order to orchestrate smooth transition to fluentd 0.14.x aka 1.0 stable branch aka td-agent 3 from td-agent repository - use image labels (fluentd_version and fluentd_binary). Depends-On: https://review.opendev.org/676411 Change-Id: Iab8518c34ef876056c6abcdb5f2e9fc9f1f7dbdd
22 lines
786 B
Django/Jinja
22 lines
786 B
Django/Jinja
<source>
|
|
@type tail
|
|
path /var/log/kolla/monasca/agent*.log
|
|
pos_file /var/run/{{ fluentd_binary }}/monasca-agent.pos
|
|
tag kolla.*
|
|
format multiline
|
|
format_firstline /^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2} \S+ \| \S+ \| \S+ \| .*$/
|
|
format1 /^(?<Timestamp>\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2} \S+) \| (?<log_level>\S+) \| (?<programname>\S+) \| (?<Payload>.*)$/
|
|
time_key Timestamp
|
|
</source>
|
|
|
|
<source>
|
|
@type tail
|
|
path /var/log/kolla/monasca/grafana.log
|
|
pos_file /var/run/{{ fluentd_binary }}/monasca-grafana.pos
|
|
tag infra.*
|
|
format multiline
|
|
format_firstline /^t=\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\+\d{4} lvl=\S+ msg=.*$/
|
|
format1 /^t=(?<Timestamp>\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\+\d{4}) lvl=(?<log_level>\S+) msg=(?<Payload>.*)$/
|
|
time_key Timestamp
|
|
</source>
|