I am facing some issue while extracting the data from logs using grok pattern

Viewed 17

for example we will receive logs with one one this type at the end of each log eg 2|1 or 20 or empty we need to etract these fields and to map with values for numbers like eg 2=ison, 1=gfty, I am able to map when it is singal number, but when it comes to 2|10 or 5|6 etc the challenge is we need to remove pipe and we need map values for both numbers.

0 Answers
Related