Getting Data In

Is it best to ingest logs by parent path or each individual path?

elsaddiq
Engager

/var/log

VS

/var/log/messages

/var/log/auth.log

/var/log/boot.log

etc, etc, etc

Labels (1)
0 Karma

elsaddiq
Engager

Understood. Thank you.

0 Karma

PickleRick
SplunkTrust
SplunkTrust

As always - it depends. If you have multiple types of files within a single directory, it's easier to specify separate stanzas for them and assign different sourcetypes than to overwrite sourcetypes later with transforms. It's more straightforward. Remember that you can't have two separate monitors defined on the same object (for example /var/log as a whole) with two different sets of settings (like two different whitelists).

On the other hand, if you have a single directory with multiple files of the same type (possibly with a deep and variable subdirectory structure), it's easier to specify a general directory input.

So there is no single good practice here.

Get Updates on the Splunk Community!

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...