Splunk Search

Merge 2 queries based on month

ninadbhaskarwar
Path Finder

One query give me data as
Month Closed-Issues
Jan 100
Feb 110
Mar 105

Second Query Give me data as

Month New-Issues
Jan 200
Feb 150
Mar 50

I need to join these two queries to get the result as

Month New Issue Closed-Issues
Jan 200 100
Feb 150 110
Mar 50 105

What should be query to get such result

0 Karma
1 Solution

somesoni2
Revered Legend

There may be a better solution to this but we need to see your current searches to figure that one out. Without seeing those, my suggestion would be like this

your search1 to get Month Closed-Issues
| append [Second Query to get Month New-Issues]
| stats values(*) as * by Month

View solution in original post

somesoni2
Revered Legend

There may be a better solution to this but we need to see your current searches to figure that one out. Without seeing those, my suggestion would be like this

your search1 to get Month Closed-Issues
| append [Second Query to get Month New-Issues]
| stats values(*) as * by Month

DalJeanis
Legend

Suggestion - Change your month format to 2017-01, so that they will sort correctly.

0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...