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!

.conf24 | Registration Open!

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

Splunk is officially part of Cisco

Revolutionizing how our customers build resilience across their entire digital footprint.   Splunk ...

Splunk APM & RUM | Planned Maintenance March 26 - March 28, 2024

There will be planned maintenance for Splunk APM and RUM between March 26, 2024 and March 28, 2024 as ...