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!

Automatic Discovery Part 1: What is Automatic Discovery in Splunk Observability Cloud ...

If you’ve ever deployed a new database cluster, spun up a caching layer, or added a load balancer, you know it ...

Real-Time Fraud Detection: How Splunk Dashboards Protect Financial Institutions

Financial fraud isn't slowing down. If anything, it's getting more sophisticated. Account takeovers, credit ...

Splunk + ThousandEyes: Correlate frontend, app, and network data to troubleshoot ...

 Are you tired of troubleshooting delays caused by siloed frontend, application, and network data? We've got a ...