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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...