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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...