Splunk Search

How to append two columns from different data inputs based on time

pahujadeep
Explorer

I have data in below format 

Data Input 1 :  index=abc

Time (YYYY-MM-DD HH24)Count1
2020-09-30 0010
2020-09-30 0120
2020-09-30 02 40

 

Data Input 2 : index=xyz

Time (YYYY-MM-DD HH24)Count2
2020-09-30 0030
2020-09-30 0110
2020-09-30 02 25

 

I am looking for output like this :

Time (YYYY-MM-DD HH24)Count1Count2
2020-09-30 001030
2020-09-30 012010
2020-09-30 024025

 

And create a timechart out of this for both values

Labels (2)
0 Karma
1 Solution

ITWhisperer
SplunkTrust
SplunkTrust
index=abc OR index=xyz
| stats values(Count1) as Count1 values(Count2) as Count2 by _time

View solution in original post

ITWhisperer
SplunkTrust
SplunkTrust
index=abc OR index=xyz
| stats values(Count1) as Count1 values(Count2) as Count2 by _time
Get Updates on the Splunk Community!

Unlock Database Monitoring with Splunk Observability Cloud

  In today’s fast-paced digital landscape, even minor database slowdowns can disrupt user experiences and ...

Purpose in Action: How Splunk Is Helping Power an Inclusive Future for All

At Cisco, purpose isn’t a tagline—it’s a commitment. Cisco’s FY25 Purpose Report outlines how the company is ...

[Upcoming Webinar] Demo Day: Transforming IT Operations with Splunk

Join us for a live Demo Day at the Cisco Store on January 21st 10:00am - 11:00am PST In the fast-paced world ...