Splunk Enterprise

How to resolve disk usage show negative value on monitoring console after adding storage.

elend
Path Finder

Hi, i made changes on my indexer storage but when i see on monitoring console part disk usage, the value is negative. Have anyone face this?. I already refresh the asset with monitoring console refresh and restart the instance but nothing changed.

 

0 Karma

PickleRick
SplunkTrust
SplunkTrust

In which panel and which value is negative?

Anyway, you can open any panel in search and see where this value comes from. Most probably there is an initial rest call which returns wrong values but you have to double-check that.

Did you restart splunkd on the server(s) where you added storage or did you just extend the filesystem on the fly?

0 Karma

elend
Path Finder

Its on monitoring console, Disk Usage part. If we see there, there is a bar show the storage used. I already restart the service too, but the value still like the picture. I also inspect search from the panel, and the value are same, i copy it on excel like this one.

elend_0-1730543758028.png

 

0 Karma

PickleRick
SplunkTrust
SplunkTrust

Did you check the results which the initial rest command yields?

0 Karma

elend
Path Finder

as i know, the result is same

0 Karma

elend
Path Finder

this /cold partdisk_usage.png

0 Karma

PickleRick
SplunkTrust
SplunkTrust

OK. This is indeed interesting.

The search behind this panel uses the /services/server/status/partitions-space REST endpoint.

This endpoint, according to docs, returns four values.

- capacity

- free

- fs_type

- mount_point

(along with some "standard" fields like title, author, id and eai stuff)

But the actual data returned by the call also includes a field called "available". And in my case the "available" field indeed shows the free space on the filesystem. The "free" field (again - in my case) contains some value completely unrelated to anything.

But the search behind the MC panel uses the field "available" if it's included in the data. If it's not included, it uses the "free" field.

Check the results of

| rest splunk_server=<your indexer> /services/server/status/partitions-space
| fields - eai* id author published updated title

And see if the data makes sense.  I suspect you're not getting the "available" field and your "free" field contains some bonkers value.

EDIT: Posted a feedback to the docs page describing this REST endpoint

isoutamo
SplunkTrust
SplunkTrust

Hi

at least some older splunk versions (e.g. 7.3.x) there was (probably) bug which leads this kind of behavior when you are using REST with a increased storage areas like increased filesystem. The fix was restart splunkd.

r. Ismo

0 Karma

elend
Path Finder

but the restart process already done and it still show same value

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...