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!

Building Reliable Asset and Identity Frameworks in Splunk ES

 Accurate asset and identity resolution is the backbone of security operations. Without it, alerts are ...

Cloud Monitoring Console - Unlocking Greater Visibility in SVC Usage Reporting

For Splunk Cloud customers, understanding and optimizing Splunk Virtual Compute (SVC) usage and resource ...

Automatic Discovery Part 3: Practical Use Cases

If you’ve enabled Automatic Discovery in your install of the Splunk Distribution of the OpenTelemetry ...