Splunk Search

Monitor file names with regex - is it a best practice?

vdevarayan
Path Finder

I am looking for best practice to monitor a bunch of files - whose names i dont know.
For example, my report directory's home is
/path/to/dir/report/1/result.zip
/path/to/dir/report/2/result.zip
/path/to/dir/report/3/result.zip
...

Is it correct to specify a regex like this in the inputs.conf and recommended?
/path/to/dir/report/[0-9]+/result.zip

Also, does splunk handle zip files?

Tags (3)
0 Karma
1 Solution

satishsdange
Builder

Hi -

Splunk can index zip files. Splunk automatically extracts important fields from raw data. Examples provides by you could be seen in source field in Splunk console.

I would recommend you go through Splunk search tutorial -
http://docs.splunk.com/Documentation/Splunk/6.2.2/SearchTutorial/WelcometotheSearchTutorial

Hope this helps.

View solution in original post

satishsdange
Builder

Hi -

Splunk can index zip files. Splunk automatically extracts important fields from raw data. Examples provides by you could be seen in source field in Splunk console.

I would recommend you go through Splunk search tutorial -
http://docs.splunk.com/Documentation/Splunk/6.2.2/SearchTutorial/WelcometotheSearchTutorial

Hope this helps.

satishsdange
Builder

Hi @vdevarayan - Please accept the answer and vote if above response helped you.

0 Karma
Get Updates on the Splunk Community!

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 ...

Splunk MCP & Agentic AI: Machine Data Without Limits

Discover how the Splunk Model Context Protocol (MCP) Server can revolutionize the way your organization uses ...