Merge "Collect rabbitmq logs by fluentd"

This commit is contained in:
Zuul 2019-11-11 16:36:33 +00:00 committed by Gerrit Code Review
commit a9f7ab1f56
1 changed files with 3 additions and 4 deletions

View File

@ -1,11 +1,10 @@
<source>
@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
tag infra.rabbit
format multiline
format_firstline /^\s*$/
format1 /^=(?<log_level>\w+) REPORT==== (?<Times>[^ ]+) ===\n/
format2 /^(?<Payload>.*)/
format_firstline /^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\.\d{3}/
format1 /^(?<Timestamp>\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\.\d{3}) \[(?<log_level>\w+)\] (?<Payload>.*)/
enable_watch_timer false
</source>