Getting Data In

How to configure inputs.conf to separate files monitored in a directory?

PPape
Contributor

Hey Guys,

I'm trying to index Data via File Monitor

[monitor://D:\CDR]
disabled = false
index = cdr
sourcetype = cdr

This works just fine, but now I want to separate the files in this Directory there are

cdr[generic Name]_[Date] 
and cmd[generic Name]_[Date]

so I tried

[monitor://D:\CDR]
disabled = false
index = cdr
sourcetype = cdr
whitelist = ^cdr

[monitor://D:\CDR]
disabled = false
index = cdr
sourcetype = cmr
whitelist = ^cmr

But this doesn't work.
EDIT: No Files are indexed when I use it like shown above

Is my RegEx wrong? What am I doing wrong?

Thanks for Helping!

Tags (2)
0 Karma
1 Solution

PPape
Contributor

The answer was:

 [monitor://D:\CDR\cdr*]
 disabled = false
 index = cdr
 sourcetype = cdr


 [monitor://D:\CDR\cmr*]
 disabled = false
 index = cdr
 sourcetype = cmr

Thanks to s72ucor in the #splunk Channel

View solution in original post

PPape
Contributor

The answer was:

 [monitor://D:\CDR\cdr*]
 disabled = false
 index = cdr
 sourcetype = cdr


 [monitor://D:\CDR\cmr*]
 disabled = false
 index = cdr
 sourcetype = cmr

Thanks to s72ucor in the #splunk Channel

Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

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

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...