Splunk Search

data input - path name is the same

borgy95
Path Finder

I have two type of files i am inputted into splunk.

Both reside at /var/data/proxy/isolde.2015060812.log or mimi.2015060515.log

I can easily use the whitelist field with a regex to specifically point out which file i want to take. I want to to take them as separate inputs so each one can be assigned a different host value to be searched against.

However when specifying the path a second time splunk returns an error: "path is the same and another input". So I edited inputs.conf manually to specify the path/sourcetype/host/whitelist regex. doing a ./splunk btool check returned no errors so i think it will work?

Does anyone have any experience with this kind of scenario? Can you comment on using inputs.conf as a valid way to workaround the splunk error?

0 Karma
1 Solution

woodcock
Esteemed Legend

It should work but if it doesn't, just create a soft link like this:

ln -fs /var/data/proxy/ /var/data/proxycopy

Then use this:

[monitor:///var/data/proxycopy/]
whilelist=other regex

View solution in original post

0 Karma

woodcock
Esteemed Legend

It should work but if it doesn't, just create a soft link like this:

ln -fs /var/data/proxy/ /var/data/proxycopy

Then use this:

[monitor:///var/data/proxycopy/]
whilelist=other regex
0 Karma

borgy95
Path Finder

It did work , however editing the conf file means there is no entry in the splunk web gui, so i've opted for the softlink approach.

thanks again WC

0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In the last month, the Splunk Threat Research Team (STRT) has had 2 releases of new security content via the ...

Announcing the 1st Round Champion’s Tribute Winners of the Great Resilience Quest

We are happy to announce the 20 lucky questers who are selected to be the first round of Champion's Tribute ...

We’ve Got Education Validation!

Are you feeling it? All the career-boosting benefits of up-skilling with Splunk? It’s not just a feeling, it's ...