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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

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