Splunk Search

How to merge multiple events into single events?

kannu
Communicator

Hello Splunkers,

I have one file whose starting line can be anything but that file ends with "Completed Backup" line. So currently the contents of the file are getting indexed line by line based on time. But I want the full content of the file from starting of file till "Completed Backup" in a single event.

I have checked LINE_BREAKER and SHOULD_LINEMERGE settings but didn't get the confidence on using these settings.

Please help me

Warm regards

0 Karma
1 Solution

somesoni2
Revered Legend

If you want the entire file content, regardless of how it starts, to a single events, you need to setup a LINE_BREAKER to something which will never be found on the log file.
Give this a try

[yourSourceType]
SHOULD_LINEMERGE =false
LINE_BREAKER = (MaryHadALittleLamb)
#Set below two attribute to values high enough to hold all your file content
TRUNCATE = 99999
MAX_EVENTS =1000

View solution in original post

somesoni2
Revered Legend

If you want the entire file content, regardless of how it starts, to a single events, you need to setup a LINE_BREAKER to something which will never be found on the log file.
Give this a try

[yourSourceType]
SHOULD_LINEMERGE =false
LINE_BREAKER = (MaryHadALittleLamb)
#Set below two attribute to values high enough to hold all your file content
TRUNCATE = 99999
MAX_EVENTS =1000

kannu
Communicator

where i need to mention in the UF props.conf or Indexer Props.conf

0 Karma

somesoni2
Revered Legend

This should be in indexer or heavy forwarder, whichever comes fast.

0 Karma

kannu
Communicator

@somesoni2 , where i need to mention in the UF props.conf or Indexer Props.conf

0 Karma
Get Updates on the Splunk Community!

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

🔐 Trust at Every Hop: How mTLS in Splunk Enterprise 10.0 Makes Security Simpler

From Idea to Implementation: Why Splunk Built mTLS into Splunk Enterprise 10.0  mTLS wasn’t just a checkbox ...