Dashboards & Visualizations

how to add new parameter on timechart graph

sbhatnagar88
Path Finder

HI All,

Below is the code for calculating disk utilization where "Name" is being passed as token for drive name being selected by user from drop down. Code is working perfectly fine.

Requirement is when we hover mouse over the time chart line it displays date,time server name and disk utilization. Customer also wants to see the drive name when we hover mouse over the line specially when user selects "All" from the disk drop down .

Basically when "All" is selected so for what all disks utilization is being shown.

index=windows sourcetype=WinHostMon Type=Disk FreeSpaceKB=* TotalSpaceKB=* Name="$Name$"
[ inputlookup servers.csv
| search $host$ Environment=$Environment$
| fields host ]
| eval TotalSpaceGb = TotalSpaceKB/1024, FreeSpaceGb= FreeSpaceKB/1024
| eval UsedPercent= 100-round(FreeSpaceGb*100/TotalSpaceGb)
| eval UsedPercent = round(UsedPercent)
| timechart max(UsedPercent) as Value by host | eval Threshold = "90"

Tags (1)
0 Karma

sbhatnagar88
Path Finder

Any update would be highly appreciated...

0 Karma
Get Updates on the Splunk Community!

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

🔐 Trust at Every Hop: How mTLS in Splunk Enterprise 10.0 Makes Security Simpler

From Idea to Implementation: Why Splunk Built mTLS into Splunk Enterprise 10.0  mTLS wasn’t just a checkbox ...

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...