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
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!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...