Fluentd Concat not working on multilines properly, Missing few lines. Kindly help #3848
Unanswered
bhanupraveeng
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
Below is my filter where I am trying to contact all lines into a single message between "<exclusive-start"
<filter gclog.**> @type concat key message multiline_start_regexp /^\<exclusive-start.*/ </filter>
Source Config
`
`@type tail
path /opt/tcapp/fluentd/data/NIKE_PROD_singleton_GC_Log.log
pos_file /opt/tcapp/fluentd/fluentd-buffer/sample.log.pos
tag gclog.*
read_from_head true
follow_inodes true
@type none
Log file Content:
I need to get 8 separate messages. but it is getting only 3. The problem is sometimes it captures all lines between 2 " <exclusive-start" works and sometimes it's not able to log those lines only. So not able to find the reg exp and omitting all those lines.
Below is the output messages. As per below, Message 1 and Message 3 are correct. Message 2 is wrong as its omitting many lines in the logs and so not able to identify regular expression pattern. Pls let me know the resolution
MESSAGE1:
MESSAGE2:
MESSAGE3:
Beta Was this translation helpful? Give feedback.
All reactions