即時通訊嘗試讀取碼頭日誌的多行,對於一個來源現在做任何人如何做到這一點?Fluentd閱讀碼頭日誌與多行
<source>
type tail
format multiline
format_firstline /^\[/
format1 /^\[[^ ]* (?<time>[^\]]*)\] *(?<level>[^ ]*) $/
path /mnt/current/log/jettylog4j.log
pos_file /mnt/current/log/fluentd.jettylog4j.pos
read_from_head true
tag jettylog
refresh_interval 30
</source>
有了這個,我沒有設法讓所有的線路消息。