Getting Data In

How to configure inputs.conf to monitor a directory with multiple folders, but ignore certain folders based on date in the path name?

seksit
Explorer

Hi

Now I'm working with many sub directories. I want to monitor some directories and don't want to monitor others.

This is example folder that I want to monitor and ignore some folder.

/home/user/2016-02-31/01/local3/
/home/user/2016-03-01/01/local3/
/home/user/2016-03-02/01/local7/
/home/user/2016-03-05/01/local3/

I want to monitor every folder dated in March and ignore folders dated in February.

I don't know how to configure inputs.conf. Now I'm using CLI (add monitor) for each folder.

[monitor:///home/user/......./*] << I don't know how to ignore folder on Feb.

Please kindly advise me.

Thank you

0 Karma
1 Solution

twinspop
Influencer

The inputs.conf blacklist feature should be serviceable for you:

[monitor:///home/user/......./*]
blacklist = /home/user/\d\d\d\d-02-\d\d/.*

View solution in original post

0 Karma

twinspop
Influencer

The inputs.conf blacklist feature should be serviceable for you:

[monitor:///home/user/......./*]
blacklist = /home/user/\d\d\d\d-02-\d\d/.*
0 Karma

seksit
Explorer

Thank you 🙂

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 ...