Getting Data In

Inputs.conf and Multiple sourcetypes

andrewkenth
Communicator

Is it possible to monitor a directory for files that will be input with different source types (assuming I'd use whitelist) or will I need to create and monitor a differnet directory for each sourcetype?

So 1 Directory:

[monitor:///apps/splunk/staging/prod/crd/]
sourcetype = Windows_Events
whitelist = \d+-\S{8}_Windows_Events_\d{8}.csv

[monitor:///apps/splunk/staging/prod/crd/]
sourcetype = Windows_Users
whitelist = \d+-\S{8}_Windows_Users_\d{8}.csv

OR 2 dirs:

[monitor:///apps/splunk/staging/prod/crd/winEvents]
sourcetype = Windows_Events

[monitor:///apps/splunk/staging/prod/crd/winUsers]
sourcetype = Windows_Users
Tags (2)
1 Solution

yannK
Splunk Employee
Splunk Employee

Option 2 is nicer and easier to troubleshoot.

but there is an option 3 with a single folder. but 2 monitors, and the filter in the path.

`
[monitor:///apps/splunk/staging/prod/crd/.../Windows_Events/*.csv]
sourcetype = Windows_Events

[monitor:///apps/splunk/staging/prod/crd/.../Windows_Users/*.csv]
sourcetype = Windows_Users
`

View solution in original post

0 Karma

yannK
Splunk Employee
Splunk Employee

Option 2 is nicer and easier to troubleshoot.

but there is an option 3 with a single folder. but 2 monitors, and the filter in the path.

`
[monitor:///apps/splunk/staging/prod/crd/.../Windows_Events/*.csv]
sourcetype = Windows_Events

[monitor:///apps/splunk/staging/prod/crd/.../Windows_Users/*.csv]
sourcetype = Windows_Users
`

0 Karma

kristian_kolb
Ultra Champion

Go with option no2. That way, there are no uncertainties with how this will be handled by splunk.

/K

Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...