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!

Announcing Scheduled Export GA for Dashboard Studio

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

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...