Getting Data In

Splunk Universal forwarder inputs.conf

ajaybguthi
Explorer

Hi,

My issue is i need to monitor only 3 folders out of 9 folders is there any way that i can do this in the inputs.conf instead of adding all 3 folders and the files under them in separate monitor statements

ex:

Folder names are xxx1,xxx2,xxx3,......xxx9

i only need data from 1,2,3 folders , and multiple files under them

so in monitor statement in inputs.conf

/mnt/qa/xxx1/appslog/yyy/filename.log

instead of having statements for all 3 folders , can i do it one single monitor statement for all 3 folders if am monitoring files with same names under them ( by not including folders xxx4---xxx9

0 Karma
1 Solution

starcher
Influencer

You could try something like the below. I think it might work. I have a blacklist version of that setup to skip certain folders under /var/log on some systems:

[monitor:///mnt/qa/]
whitelist = (xxx1|xxx2|xxx3)

Reference:
http://docs.splunk.com/Documentation/Splunk/5.0.2/Data/Whitelistorblacklistspecificincomingdata

View solution in original post

0 Karma

starcher
Influencer

You could try something like the below. I think it might work. I have a blacklist version of that setup to skip certain folders under /var/log on some systems:

[monitor:///mnt/qa/]
whitelist = (xxx1|xxx2|xxx3)

Reference:
http://docs.splunk.com/Documentation/Splunk/5.0.2/Data/Whitelistorblacklistspecificincomingdata

0 Karma

ajaybguthi
Explorer

Thanks starcher that helped me

0 Karma
Get Updates on the Splunk Community!

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer at Splunk .conf24 ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...