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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

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 GA in US-AWS!

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