Skip to content
Snippets Groups Projects
Commit bf979282 authored by lklimin's avatar lklimin
Browse files

Collect rabbitmq logs by fluentd

Change-Id: I49b24545501085d5a44f4de73f0c6dd21e06e2a0
Closes-Bug: #1835501
parent adb2bdec
No related branches found
No related tags found
No related merge requests found
<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>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment