Getting Data In

Is it possible to monitor whether there are any files in a folder without indexing them?

newbiesplunk
Path Finder

Hi,

Is it possible to monitor whether there are any files in a folder without indexing them?

thks

0 Karma

sanjay_shrestha
Contributor

If you do not prefer to ingest file then you can write a script and run in desired interval (via cron or scheduler), which will continuously monitors a folder and write a log with one event with file count information.

e.g.
04/02/2015 10:20:30.00 - File Count = 2

then you can create an alert for this event.

Get Updates on the Splunk Community!

Shape the Future of Splunk: Join the Product Research Lab!

Join the Splunk Product Research Lab and connect with us in the Slack channel #product-research-lab to get ...

Auto-Injector for Everything Else: Making OpenTelemetry Truly Universal

You might have seen Splunk’s recent announcement about donating the OpenTelemetry Injector to the ...

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...