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!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...