Splunk Search

Add two lines in a chart

wasifchowdhury
Explorer

wasifchowdhury_0-1631305861286.png

 

I have this query and I want to add another data series/line to this chart. How can I do it?

index="eniq_voice"
|where localDn="ManagedElement=TO5CSCF01"
|bucket _time span=15m
|stats max(CPULoad_Total) as CPULoad_Total by localDn _time
|timechart max(CPULoad_Total) as CPULoad_Total

I want to add this to the query with a linechart:
|stats max(CPULoad_Max) as CPULoad_Max by localDn _time
|timechart max(CPULoad_Max) as CPULoad_Max by localDn _time

Labels (1)
0 Karma
1 Solution

Siddharth
Path Finder

Hi 

index="eniq_voice"
|where localDn="ManagedElement=TO5CSCF01"
|bucket _time span=15m
|stats max(CPULoad_Total) as CPULoad_Total by localDn _time
|timechart max(CPULoad_Total) as CPULoad_Total max(CPULoad_Max) as CPULoad_Max 


This should help . Basically you can add as much as line you want  see example below

Siddharth_0-1631406313369.png

 

View solution in original post

0 Karma

Siddharth
Path Finder

Hi 

index="eniq_voice"
|where localDn="ManagedElement=TO5CSCF01"
|bucket _time span=15m
|stats max(CPULoad_Total) as CPULoad_Total by localDn _time
|timechart max(CPULoad_Total) as CPULoad_Total max(CPULoad_Max) as CPULoad_Max 


This should help . Basically you can add as much as line you want  see example below

Siddharth_0-1631406313369.png

 

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Does this give you what you want?

index="eniq_voice"
|where localDn="ManagedElement=TO5CSCF01"
|bucket _time span=15m
|stats max(CPULoad_Total) as CPULoad_Total max(CPULoad_Max) as CPULoad_Max by localDn _time
|timechart max(CPULoad_Total) as CPULoad_Total max(CPULoad_Max) as CPULoad_Max
0 Karma

wasifchowdhury
Explorer

Sorry, it doesnt. I dont get any results.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Index This | What travels the world but is also stuck in place?

April 2026 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Discover New Use Cases: Unlock Greater Value from Your Existing Splunk Data

Realizing the full potential of your Splunk investment requires more than just understanding current usage; it ...

Continue Your Journey: Join Session 2 of the Data Management and Federation Bootcamp ...

As data volumes continue to grow and environments become more distributed, managing and optimizing data ...