Alerting

How to setup email alert for low disk space on partition?

kavraja
Path Finder

I got a message today saying

"You are low in disk space on partition "D:\splunk\sep\db". Indexing has been paused. Will resume when free disk space rises above 1000MB."

I was hoping if there is a way of creating an email alert for this to make such incidents easier to track so I can get notified if this happens while I'm not logged onto splunk at the time.

Thanks

0 Karma
1 Solution

MuS
SplunkTrust
SplunkTrust

Hi kavraja,

If you're collecting WMI data you can build a search like this:

 sourcetype="WMI:FreeDiskSpace"  PercentFreeSpace<10 

Otherwise you will need to enable some WMI inputs and read this: Monitor WMI-based data
Once you got this search working, you can easily define an alert out of it.

hope this helps ...

cheers, MuS

View solution in original post

martin_mueller
SplunkTrust
SplunkTrust

If you're on a fairly recent version of Splunk you don't need to collect the data yourself, it's already there in the _introspection index:

index=_introspection component=Partitions | timechart min(data.free) by data.mount_point

kavraja
Path Finder

I'm on 6.0 but this index didn't seem to work. Thanks for the help though.

0 Karma

martin_mueller
SplunkTrust
SplunkTrust

It's been introduced in 6.1.0 😞

0 Karma

kavraja
Path Finder

Just my luck

0 Karma

MuS
SplunkTrust
SplunkTrust

Hi kavraja,

If you're collecting WMI data you can build a search like this:

 sourcetype="WMI:FreeDiskSpace"  PercentFreeSpace<10 

Otherwise you will need to enable some WMI inputs and read this: Monitor WMI-based data
Once you got this search working, you can easily define an alert out of it.

hope this helps ...

cheers, MuS

kavraja
Path Finder

Thanks for the help MuS. Works fine now

0 Karma

linu1988
Champion

Hello Kavraja,
This is kind of easy. Monitor your local server with Splunk and see when it closes to the limit. Run a alert in the same.

Thanks,
L

kavraja
Path Finder

Thanks for the help linu1988

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Index This | What travels the world but is also stuck in place?

April 2026 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Discover New Use Cases: Unlock Greater Value from Your Existing Splunk Data

Realizing the full potential of your Splunk investment requires more than just understanding current usage; it ...

Continue Your Journey: Join Session 2 of the Data Management and Federation Bootcamp ...

As data volumes continue to grow and environments become more distributed, managing and optimizing data ...