Fix rabbitmq log ulti-line cutting problem

Change-Id: Id7be86955b357199fde2ab57a9b24e1f49ecebcd
Closes-Bug: #1667671
This commit is contained in:
zhubingbing 2017-02-24 12:09:43 +00:00
parent d79c97eb26
commit f2cc931fa6

View File

@ -4,7 +4,7 @@
pos_file /var/run/td-agent/rabbit.pos pos_file /var/run/td-agent/rabbit.pos
tag rabbit.* tag rabbit.*
format multiline format multiline
format_firstline /^=/ format_firstline /^\s*$/
format1 /^.*\n/ format1 /^=(?<log_level>\w+) REPORT==== (?<Times>[^ ]+) ===\n/
format2 /^(?<Payload>.*)\n/ format2 /^(?<Payload>.*)/
</source> </source>