Getting Data In

Find line number of search string in multiline event

snoobzilla
Builder

I have multiline events and I need to identify which line number a search string appears in. Preferred would be a solution that avoids breaking entire event into multivalue fields.

e.g. this would return 4
blah blah
blah blah
blah blah
what I want to know line number of
blah blah
blah blah
blah blah

this would return 2
blah blah
what I want to know line number of
blah blah
blah blah
blah blah
blah blah

0 Karma
1 Solution

snoobzilla
Builder

I ended up going with multivalue field solution and mvfind/mvindex solution for this. Expensive but worked.

View solution in original post

0 Karma

snoobzilla
Builder

I ended up going with multivalue field solution and mvfind/mvindex solution for this. Expensive but worked.

0 Karma

alon7786
New Member

Can you publish your solution please

0 Karma
Get Updates on the Splunk Community!

Join Us for Splunk University and Get Your Bootcamp Game On!

If you know, you know! Splunk University is the vibe this summer so register today for bootcamps galore ...

.conf24 | Learning Tracks for Security, Observability, Platform, and Developers!

.conf24 is taking place at The Venetian in Las Vegas from June 11 - 14. Continue reading to learn about the ...

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...