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!

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...

Combine Multiline Logs into a Single Event with SOCK: a Step-by-Step Guide for ...

Combine multiline logs into a single event with SOCK - a step-by-step guide for newbies Olga Malita The ...

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...