Dashboards & Visualizations

threshold line time chart graph.

sbhatnagar88
Path Finder

I have a time chart graph for disk utilization. Requirement is to add a static red color line as a threshold limit at 90% in X axis.. Can some one suggest how can we do that.

Tags (1)
0 Karma

vnravikumar
Champion

Hi @sbhatnagar88

Try this

        <option name="charting.chart.overlayFields">threshold</option>
        <option name="charting.fieldColors">{"threshold":#ff0000}</option>
0 Karma

chrisyounger
SplunkTrust
SplunkTrust

One way you could do it would be to just add | eval threshold = 90 at the

index=_internal| timechart count by log_level | eval threshold = 90

Then go into the chart formatting options > "Chart Overlay" and set the threshold field as an overlay.

Hope this helps!

0 Karma

sbhatnagar88
Path Finder

Hi Chris,

That helped!!..can we also make the color of threshold line RED so that it should be visible easily and different from other lines.

Thanks

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, ...