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!

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...