Getting Data In

How do I specify which sources should be indexed from data inputs and not the entire directory?

rwiltzius
Explorer

Hello,

Please bear with me because I'm new to Splunk and I've only just started using it today. Also note that I am currently running their trial and have not purchased anything yet.

I am looking to index the Application logs from our PeopleSoft server, which are stored as APPSRV_*.LOG on the PeopleSoft server. A new log file is created for each day and the format is APPSRV_MMDD.LOG. Within the directory that the APPSRV logs are stored are other files that are of no interest to me at the moment.

I currently have my data input setup as a UNC path to the directory, but I don't know how to only allow indexing on the APPSRV_MMDD.LOGs and not the others. Is there a way to index only certain file names by using a wildcard and not others, or must I index the entire directory? Please let me know if you have any questions.

Thank you,

Robert

0 Karma
1 Solution

sundareshr
Legend

See if this gets you what you are looking for http://docs.splunk.com/Documentation/Splunk/6.2.0/Data/Specifyinputpathswithwildcards

Basically, you will have something like [monitor:///APPSRV_*.log]

View solution in original post

0 Karma

sundareshr
Legend

See if this gets you what you are looking for http://docs.splunk.com/Documentation/Splunk/6.2.0/Data/Specifyinputpathswithwildcards

Basically, you will have something like [monitor:///APPSRV_*.log]

0 Karma
Get Updates on the Splunk Community!

Enterprise Security Content Update (ESCU) | New Releases

In December, the Splunk Threat Research Team had 1 release of new security content via the Enterprise Security ...

Why am I not seeing the finding in Splunk Enterprise Security Analyst Queue?

(This is the first of a series of 2 blogs). Splunk Enterprise Security is a fantastic tool that offers robust ...

Index This | What are the 12 Days of Splunk-mas?

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