I’m trying to parse a log line that contains a comma separated list of values for one key. The maximum count of values is variable there for not know before.
My problem is that I only get the first an last value of that list, regardless of which quantifier I use (*,+,{n,m})
The following is a simplified example for what I’m trying to achieve.
Grok-Pattern “LIST1”:
%{INT:Number}(,%{INT:Number})*
Sample Data:
1,12,123,1234,12345
Test Result:
{
“LIST1”: “1,12,123,1234,12345”,
“Number”: [
“1”,
“12345”
]
}
Expected Result:
{
“LIST1”: “1,12,123,1234,12345”,
“Number”: [
“1”,
“12”,
“123”,
“1234”,
“12345”
]
}
Can someone tell me how I can achieve my expected result in Graylog?
If Grok-Patterns are not the right way to do this, I would also appreciate other solutions.
I’m using Graylog 5.2.5 on Ubuntu with Elasticsearch all in one virtual maschine.
Thanks in advance
Philipp