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!

Updated Team Landing Page in Splunk Observability

We’re making some changes to the team landing page in Splunk Observability, based on your feedback. The ...

New! Splunk Observability Search Enhancements for Splunk APM Services/Traces and ...

Regardless of where you are in Splunk Observability, you can search for relevant APM targets including service ...

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...