Getting Data In

How to monitor logs 7 directories deep?

ned692000
Engager

Hi, I’m trying to monitor changing log files within directories that change regularly. These log files are 7 layers deep on a Netapp share. I’m setting up the monitor stanza in inputs.conf on a Linux box. I have tried everything but only certain directories at the 3rd layer are being monitored, but not others at that same layer, including the one I need. I’ve added recursive = true and tried all variations of syntax with no luck. All permissions are the same as directories that can be monitored. What am I doing wrong?

Thanks in advance.

Labels (2)
Tags (1)
0 Karma

livehybrid
SplunkTrust
SplunkTrust

What does your inputs.conf stanza for the input currently look like? 

You should be able to use ellipsis (...) to look recursively:

For example:

 "..." searches recursively through one or more directories. This means that
  /foo/.../bar matches foo/1/bar, foo/1/2/bar, etc.

Whereas * does not look recursively.

https://docs.splunk.com/Documentation/Splunk/9.1.0/Admin/Inputsconf#:~:text=%22...%22%20searches%20r....

 

0 Karma
Get Updates on the Splunk Community!

Observability Unlocked: Kubernetes Monitoring with Splunk Observability Cloud

 Ready to master Kubernetes and cloud monitoring like the pros? Join Splunk’s Growth Engineering team for an ...

Update Your SOAR Apps for Python 3.13: What Community Developers Need to Know

To Community SOAR App Developers - we're reaching out with an important update regarding Python 3.9's ...

October Community Champions: A Shoutout to Our Contributors!

As October comes to a close, we want to take a moment to celebrate the people who make the Splunk Community ...