Splunk Search

Compare data between two sourcetype

VandanaBansal
Loves-to-Learn

I have two different sourcetypes src_a, src_b.

src_a: This is a CSV uploaded from Server (has expected results for each event) and data has not changes since october so there was no upload after that

src_b: we have data for daily result count for each event

 

I want to compare src_a (last updated data received) to src_b (last 3 days) and show variance.  Please help

Labels (2)
Tags (1)
0 Karma

VandanaBansal
Loves-to-Learn

SO what I have is Expected Link Clicks count (this does not change) and Actual Link Clicks (Daily Data). It has common fields Link Name, Activity, count

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Start with something like this

(index=foo source=src_a) OR (index=bar source=src_b)
| stats values(*) as * by Link Name, Activity, count
---
If this reply helps you, Karma would be appreciated.
0 Karma

VandanaBansal
Loves-to-Learn

Hi

My requirement is:

I have two source types. First Source type data was uploaded 1 week back.

I have another source type which gets data on daily basis. I am using Time Range filter for 3 days. I want to setup alert while comparing data.

I need to find out how i can  get data from first source type which was last uploaded (can be 1 week back or 1 month back).  With last 3 days data of second source type.

 

Thank you for helping me on this!

0 Karma

richgalloway
SplunkTrust
SplunkTrust

Tell us more about the two sourcetypes.  Are they similar in structure?  Do they share any field names or values?  What do you mean by "show variance"?  Does it really make sense to compare October to 3 days ago?

---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Index This | Why did the turkey cross the road?

November 2025 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Feel the Splunk Love: Real Stories from Real Customers

Hello Splunk Community,    What’s the best part of hearing how our customers use Splunk? Easy: the positive ...