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!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...