Splunk Search

Help on formula

jip31
Motivator

hi

i use this code to monitore the hdd free space
index="perfmon" sourcetype="perfmon:logicaldisk" instance=c: counter="% Free Space" | eval Value = round(Value, 2). "%" |table _time host Value
but this code give me the free space and not the buzy space
i have 89% free so i would to have instead 11% busy
how can i do please??

Tags (1)
0 Karma
1 Solution

p_gurav
Champion

Can you try subtracting free space from 100. Like, |eval Value=100-round(Value)

View solution in original post

0 Karma

jip31
Motivator

thanks it works!

0 Karma

p_gurav
Champion

Can you try subtracting free space from 100. Like, |eval Value=100-round(Value)

0 Karma
Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...