Dashboards & Visualizations

Single graph from Multi search index

BharathKN
New Member

Hi, I need a chart from multiple source and multiple search terms.

search 1: index="SessionController" host = "abc01*" | stats distinct_count(session) by date_hour
search 2: index="CompleteSale" host = "xyz*" | stats distinct_count(order) by date_hour

I want a line graph that will show number of requests (i.e. count of Session's) and the orders per hour.

Thanks in advance.

0 Karma

knielsen
Contributor

If the session and order fields are exclusively used on the source where you want to count them, you can simply combine your searches:

(index="SessionController" host = "abc01*") OR (index="CompleteSale" host = "xyz*") | stats distinct_count(session) distinct_count(order) by date_hour
0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...