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
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...