Hi,
I have log lines like below;
[2020-11-11T11:19:00+05:30] [INFO] [msg1] [msg2] [msg3] [msg4] [msg5] [msg6] [msg7] [msg8] [msg9]
The msg9
attribute may contain multi-line message, so I have decided to configure multi-line pattern in filebeat.yml
like;
multiline.pattern: '^\[%{TIMESTAMP_ISO8601}\] '
multiline.negate: true
multiline.match: after
But, this was not working because I was getting all the log lines in a single message. Then, I gave the pattern manually, like below;
multiline.pattern: '^\[[[:digit:]]{4}-[[:digit:]]{2}-[[:digit:]]{2}T[[:digit:]]{2}:[[:digit:]]{2}:[[:digit:]]{2}\+[[:digit:]]{2}:[[:digit:]]{2}\]'
This worked like charm, and every log line gets out as separate messages. I was just wondering, why the TIMESTAMP_ISO8601
pattern configuration is not working?
Thanks.