Getting Data In

inputs.conf configuration help ..

rakesh_498115
Motivator

Hi.

I have source files in the following folder

path : splunkInput/logs/

Files in the path are
Managed1.txt
Managed2.txt
Managed3.txt
Managed4.txt
....
....
....

Managed50.txt

I have 50 Files like this..

Now i have given this configuration in inputs.conf to index only first ten files..ie.Managed1.txt to Managed10.txt.

So i have like this in inputs.conf

inputs.conf

[monitor:///splunkInput/logs/Managed[1-10]{2}.txt]
disable=false
sourcetype=mydata

but this is not working ..can u help the correct regex expression for this sceneraio.

Thanx

0 Karma
1 Solution

kristian_kolb
Ultra Champion

I think you'd better work with whitelists/blacklists in this case. I don't think that [monitor] stanza header can make use of full regexes.

[monitor:///splunkInput/logs]
sourcetype = blaha
index = blaha
whitelist = Managed1\d?\.log

Hope this helps,

Kristian

View solution in original post

kristian_kolb
Ultra Champion

I think you'd better work with whitelists/blacklists in this case. I don't think that [monitor] stanza header can make use of full regexes.

[monitor:///splunkInput/logs]
sourcetype = blaha
index = blaha
whitelist = Managed1\d?\.log

Hope this helps,

Kristian

Get Updates on the Splunk Community!

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...

Index This | What is broken 80% of the time by February?

December 2025 Edition   Hayyy Splunk Education Enthusiasts and the Eternally Curious!    We’re back with this ...

Unlock Faster Time-to-Value on Edge and Ingest Processor with New SPL2 Pipeline ...

Hello Splunk Community,   We're thrilled to share an exciting update that will help you manage your data more ...