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
Revered Legend

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
Revered Legend

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!

Celebrating Fast Lane: 2025 Authorized Learning Partner of the Year

At .conf25, Splunk proudly recognized Fast Lane as the 2025 Authorized Learning Partner of the Year. This ...

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...