Splunk Search

entire file to a single event

722624
Path Finder

SHOULD_LINEMERGE = true
MAX_EVENTS = 99999
TRUNCATE = 9999999


SHOULD_LINEMERGE = false
LINE_BREAKER = ((FAIL*))

I have tried both of above (trying each one at a time) in indexer props.conf ...and restarted splunk..to have a simple text file , entire file to go to single event but whatever I do splunk automatically splitting the file into 2 events
Is there any way to have the entire file to single event

Thank you in advance
AB

Tags (1)
0 Karma

722624
Path Finder

surprisingly...If i download the file to my PC and upload with same source type then it is reading entire file as single event....
But if the same log file is coming from forwarder, then file is being split into 2 event...

Anybody? please help

Thank you
AB

0 Karma

bic
Explorer

please check the queue size from the forwarder , try indexing a smaller file and see if that is coming through in one piece

0 Karma

722624
Path Finder

this file is 90 lines only hardly 4kb in size....

0 Karma

722624
Path Finder

Actually documentation asked to have SHOULD_LINEMERGE= false for LINE_BREAKER ...
anyways tried your suggestion also ...
No Luck 😞

Thank you
AB

0 Karma

bic
Explorer

SHOULD_LINEMERGE= TRUE, try with that

0 Karma

722624
Path Finder

[sourcetype]
SHOULD_LINEMERGE = false
LINE_BREAKER = (.*?)

I tried the above... still file is split into two events....the same regex (.*?) in regex101.com is selecting the entire file

Thank you
AB

0 Karma

bic
Explorer

in the LINE_BREAKER you can use regular expression to match end of file , something like (.*?) . Hope that should not break your file into two parts

0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

December 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...