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!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...