All Apps and Add-ons

How to monitor two different sourcetypes in the same directory?

rubeniturrieta
Communicator

Hello to all,

I have a directory (logs/wsa/) and i'm sending a lot of files, but with two different sourcetypes (cisco:wsa:squid, and cisco:wsa:w3c)
I have an input for cisco:wsa:squid in inputs.conf, with /logs/wsa, but i need w3c too. How can I do this?,

Any help, will be very helpful

Thanks

0 Karma
1 Solution

jayannah
Builder

You can refer to several examples for specifying inputs file with wildcards at http://docs.splunk.com/Documentation/Splunk/6.2.1/Data/Specifyinputpathswithwildcards

View solution in original post

jayannah
Builder

You can refer to several examples for specifying inputs file with wildcards at http://docs.splunk.com/Documentation/Splunk/6.2.1/Data/Specifyinputpathswithwildcards

esix_splunk
Splunk Employee
Splunk Employee

You can create another monitor statement for that directory and set the sourcetype on the files. You can either use a regex for the file name or a combination of whitelists / blacklists. Refer to the spec file for inputs.conf:

http://docs.splunk.com/Documentation/Splunk/6.2.1/admin/Inputsconf

Get Updates on the Splunk Community!

Splunk Observability as Code: From Zero to Dashboard

For the details on what Self-Service Observability and Observability as Code is, we have some awesome content ...

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...

Shape the Future of Splunk: Join the Product Research Lab!

Join the Splunk Product Research Lab and connect with us in the Slack channel #product-research-lab to get ...