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!

[Puzzles] Solve, Learn, Repeat: Dynamic formatting from XML events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Stronger Security with Federated Search for S3, GCP SQL & Australian Threat ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...