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!

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 ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...