show results from two splunk queries into one

A-D picture A-D · Jan 6, 2017 · Viewed 9.7k times · Source

I have two separate splunk queries: 1st Query : Outputs unique user count in last 24 hours 2nd Query : Outputs unique users count in last 24 hours in geo = US

I want to create a timechart that will show , a line chart with % of user everyday from US.

How can this be achieved.

Answer

Pritam Banerjee picture Pritam Banerjee · Jan 6, 2017

You can join the two queries by using :

|

So your query can look like this:

{firstQuery} as countUS| {secondQuery} as countTotal | eval perc=countUS/countTotal