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
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...

Splunkbase Unveils New App Listing Management Public Preview

Splunkbase Unveils New App Listing Management Public PreviewWe're thrilled to announce the public preview of ...

Leveraging Automated Threat Analysis Across the Splunk Ecosystem

Are you leveraging automation to its fullest potential in your threat detection strategy?Our upcoming Security ...