Collect rabbitmq logs by fluentd
Change-Id: I49b24545501085d5a44f4de73f0c6dd21e06e2a0 Closes-Bug: #1835501
This commit is contained in:
parent
adb2bdec56
commit
bf979282a1
|
@ -1,11 +1,10 @@
|
||||||
<source>
|
<source>
|
||||||
@type tail
|
@type tail
|
||||||
path /var/log/kolla/rabbitmq/rabbit.log
|
path /var/log/kolla/rabbitmq/rabbit@{{ ansible_hostname }}.log
|
||||||
pos_file /var/run/{{ fluentd_binary }}/rabbit.pos
|
pos_file /var/run/{{ fluentd_binary }}/rabbit.pos
|
||||||
tag infra.rabbit
|
tag infra.rabbit
|
||||||
format multiline
|
format multiline
|
||||||
format_firstline /^\s*$/
|
format_firstline /^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\.\d{3}/
|
||||||
format1 /^=(?<log_level>\w+) REPORT==== (?<Times>[^ ]+) ===\n/
|
format1 /^(?<Timestamp>\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\.\d{3}) \[(?<log_level>\w+)\] (?<Payload>.*)/
|
||||||
format2 /^(?<Payload>.*)/
|
|
||||||
enable_watch_timer false
|
enable_watch_timer false
|
||||||
</source>
|
</source>
|
||||||
|
|
Loading…
Reference in New Issue