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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...