I'm trying to group multiline messages belonging to the same event. Unfortunately they don't appear to match the style of the examples in multiline-examples.html#_examples_of_multiline_configuration.
Each event has a unique 9-character alphanumeric value that should be easily isolated, and I can't figure out how to do that.
The number of lines per event can be dynamic so isolating "New ApplicationName SOAP request" as the start and line counting won't work.
I've trouble a couple approaches, most recently:
multiline.type: while_pattern
multiline.pattern: '^.*[ApplicationName:(.*)].*$'
multiline.negate: false
multiline.match: after
Hi, what version of filebeat?
what type are you using? I had a similar problem, perhaps the problem is in the config. I finally got multiline working. To understand all the pictures, it would be nice to see a little more of the log in order to understand the beginning and end of the multiline
I think there is also a question with the log format itself. You need to understand the structure of the logs so that you can choose the right configuration and pattern
I've truncated the log example and am still struggling to get the result I want. I get filebeat to match patterns, but it globs them all together into a single message.
Using this as a test log format:
[ApplicationName:D6NIHEW3] New ApplicationName SOAP request
[ApplicationName:D6NIHEW3] > Username: some_user_name
[ApplicationName:D6NIHEW3] > Password: xxxxxxxxxxx
[ApplicationName:D6NIHEW3] > Client ID: some_ip_address
[ApplicationName:D6NIHEW3] > Source IP: some_ip_address
[ApplicationName:D6NIHEW3] Registered ApplicationName request
[ApplicationName:D6NIHEW3] User invalid or not found
[ApplicationName:D6NIHEW3] Sent failure response
[ApplicationName:G6H4564S] New ApplicationName SOAP request
[ApplicationName:G6H4564S] > Username: some_other_user_name
[ApplicationName:G6H4564S] > Password: xxxxxxxxxxx
[ApplicationName:G6H4564S] > Client ID: some_ip_address
[ApplicationName:G6H4564S] > Source IP: some_ip_address
[ApplicationName:G6H4564S] Registered ApplicationName request
[ApplicationName:G6H4564S] User invalid or not found
[ApplicationName:G6H4564S] Sent failure response
Guess I'm wondering if I can have each while_pattern track the unique event ID's D6NIHEW3 & G6H4564S to log as different messages.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.