Monitoring Splunk

Passing the variable

bmkreddy234
Engager

| mstats avg(_value) as current where data.consumerName IN("XXXXXXX*") AND NOT (data.consumerName="*OH")AND host="*" AND `delphix_metrics_index` metric_name="system.capacity.consumer.size" span=30s by data.totalSpace, data.consumerName
| eval usage = round((current) / 1024 /1024/1024, 3)
| eval totalGB=round('data.totalSpace' / 1024 / 1024 / 1024, 3)
| eval name = 'data.consumerName'
| eval free = (totalGB - usage) -----------  i want pass the value to calculate the free space , the statment is not working can you please help 
| chart avg(usage) as "Usage (GB)"
avg(totalGB) as "Total (GB)"
avg(free GB) as "FREE MB" by name

Labels (1)
0 Karma
1 Solution

rnowitzki
Builder

Hi @bmkreddy234 ,

Is the issue maybe that you refer to the free space as "avg(free GB)" instead of just avg(free)?

BR
Ralph

--
Karma and/or Solution tagging appreciated.

View solution in original post

0 Karma

rnowitzki
Builder

Hi @bmkreddy234 ,

Is the issue maybe that you refer to the free space as "avg(free GB)" instead of just avg(free)?

BR
Ralph

--
Karma and/or Solution tagging appreciated.
0 Karma

thambisetty
SplunkTrust
SplunkTrust

@bmkreddy234 

Do you see values for totalGB and usage before eval free statement ?

————————————
If this helps, give a like below.
0 Karma

bmkreddy234
Engager

yes

0 Karma
Get Updates on the Splunk Community!

Unlock Database Monitoring with Splunk Observability Cloud

  In today’s fast-paced digital landscape, even minor database slowdowns can disrupt user experiences and ...

Purpose in Action: How Splunk Is Helping Power an Inclusive Future for All

At Cisco, purpose isn’t a tagline—it’s a commitment. Cisco’s FY25 Purpose Report outlines how the company is ...

[Upcoming Webinar] Demo Day: Transforming IT Operations with Splunk

Join us for a live Demo Day at the Cisco Store on January 21st 10:00am - 11:00am PST In the fast-paced world ...