Splunk Search

How to merge 3 timecharts into one?

larsxschneider
Explorer

Hi,

I have three slightly different queries on the same data set.

(1)
general_attribute="foo" special_attribute="A" | timechart span="1d" dc(user)

(2)
general_attribute="foo" special_attribute="B" | timechart span="1d" dc(user)

(3)
general_attribute="foo" special_attribute="C" | timechart span="1d" dc(user)

I would like to see all three of them in one chart. E.g a bar chart with 3 bars per day.
Is this possible with Splunk?

Thanks,
Lars

Tags (3)
1 Solution

martin_mueller
SplunkTrust
SplunkTrust

Sure.

 general_attribute="foo" (special_attribute="A" OR special_attribute="B" OR special_attribute="C") | timechart span="1d" dc(user) by special_attribute

Common visualizations for this are (stacked) columns, (stacked) area, or line charts depending on the meaning of the data and the viewer.

View solution in original post

martin_mueller
SplunkTrust
SplunkTrust

Sure.

 general_attribute="foo" (special_attribute="A" OR special_attribute="B" OR special_attribute="C") | timechart span="1d" dc(user) by special_attribute

Common visualizations for this are (stacked) columns, (stacked) area, or line charts depending on the meaning of the data and the viewer.

larsxschneider
Explorer

Works great, thank you!!

0 Karma
Get Updates on the Splunk Community!

September Community Champions: A Shoutout to Our Contributors!

As we close the books on another fantastic month, we want to take a moment to celebrate the people who are the ...

Splunk Decoded: Service Maps vs Service Analyzer Tree View vs Flow Maps

It’s Monday morning, and your phone is buzzing with alert escalations – your customer-facing portal is running ...

What’s New in Splunk Observability – September 2025

What's NewWe are excited to announce the latest enhancements to Splunk Observability, designed to help ITOps ...