Getting Data In

Wildcard for subfolders

joshftx
Explorer

I need to index a CSV file that gets created daily in a folder with that day's name on it.
So today's path is ..long path...\default\20111128\2Eb4DcXy.csv

Can I use wildcards or a variable for date in the inputs.conf in order to grab this file? Like this: ..long path....\default\ * \2Eb4DcXy.csv

Tags (1)
0 Karma

tgow
Splunk Employee
Splunk Employee

You can use the "..." syntax to recurse directories and

Here is an example in the inputs.conf file:

[monitor::...default...2Eb4Dcy.csv]

or

[monitor::...default*2Eb4Dcy.csv]

or

[monitor::...default...]

Here is a link to more information:

http://docs.splunk.com/Documentation/Splunk/4.2.4/Data/Specifyinputpathswithwildcards

Takajian
Builder

Yes, this work on linux and Windows as well.

0 Karma

joshftx
Explorer

Does this work for Windows sources also?

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...