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!

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, ...