Getting Data In

Ignoring a specific portion of the log file (header/footer)

KidCrippler
Engager

I want splunk to start indexing my log file only after it encountered a specific string/regex.

Everything before that marker should be ignored as I have no use for it.

Is there any way to do that?

Thanks

ogdin
Splunk Employee
Splunk Employee

For Splunk 6, see:

http://docs.splunk.com/Documentation/Splunk/latest/Data/Extractfieldsfromfileheadersatindextime

Specifically the example on ignoring useless long headers.

0 Karma
Get Updates on the Splunk Community!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

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