Splunk Search

Put multiple timecharts into one

deanamite91
Explorer

I have three timecharts which I want to sum together.

index="commercial_performance" Cat1="Entitlement *" | timechart limit=0 sum(Value) by Service_line
index="commercial_performance" Cat1="Efficiency *" | timechart limit=0  sum(Value) by Service_line
index="commercial_performance" Cat1="Intervention *" | timechart limit=0  sum(Value) by Service_line

I have tried appendcols but it didn't seen to work. Can someone help?

0 Karma
1 Solution

somesoni2
SplunkTrust
SplunkTrust

Try something like this (to get one sum of Value per Service_line for all of Cat1 field)

index="commercial_performance" Cat1="Entitlement *" OR  Cat1="Efficiency *" OR  Cat1="Intervention *"  | timechart limit=0  sum(Value) by Service_line

If you want have one sum of Value per Service_line per Cat1, tryr this

   index="commercial_performance" Cat1="Entitlement *" OR  Cat1="Efficiency *" OR  Cat1="Intervention *"  | eval Service_line=Service_line."-".Cat1| timechart limit=0  sum(Value) by Service_line

View solution in original post

0 Karma

somesoni2
SplunkTrust
SplunkTrust

Try something like this (to get one sum of Value per Service_line for all of Cat1 field)

index="commercial_performance" Cat1="Entitlement *" OR  Cat1="Efficiency *" OR  Cat1="Intervention *"  | timechart limit=0  sum(Value) by Service_line

If you want have one sum of Value per Service_line per Cat1, tryr this

   index="commercial_performance" Cat1="Entitlement *" OR  Cat1="Efficiency *" OR  Cat1="Intervention *"  | eval Service_line=Service_line."-".Cat1| timechart limit=0  sum(Value) by Service_line
0 Karma
Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...