Getting Data In

Why is my inputs.conf monitor stanza not monitoring directories recursively and no data is being indexed?

Volto
Path Finder

Hello,

I have a monitoring stanza in my inputs.conf that is intended to monitor everything that is in /var/log/splunk that ends in .log.

Reading the guides online, the triple dot ... is supposed to monitor every directory under splunk. The only thing is that nothing is getting indexed into Splunk. I'm not sure what is wrong with this stanza, any help would be greatly appreciated.

[monitor:///var/log/splunk/...]
disabled = false
recursive = true
whitelist = .log$
index = dev_test
sourcetype = splunk_test
0 Karma
1 Solution

somesoni2
Revered Legend

Try this

[monitor:///var/log/splunk/.../*.log]
 disabled = false
 recursive = true
 index = dev_test
 sourcetype = splunk_test

View solution in original post

somesoni2
Revered Legend

Try this

[monitor:///var/log/splunk/.../*.log]
 disabled = false
 recursive = true
 index = dev_test
 sourcetype = splunk_test

Volto
Path Finder

This worked for me, thank you very much.

0 Karma

cramasta
Builder

Try removing the end ... so its just
[monitor:///var/log/splunk/]

recursive = true should take care of recursing through the additional directories.

I would have expected what you did to work but who knows maybe the two recursive settings are conflicting with each other.

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...