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!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...