Getting Data In

How to correlate two sourcetypes on a single field?

pjb2160
Path Finder

I wish to correlate two sourcetypes on a single field which I would expect should look something like this:

(sourcetype=type_1 changed_user=*) OR (sourcetype=type_2 users_affected=*) | where changed_user=users_affected | table changed_user, users_affected

Unfortunately this returns no results when I know there are matching results. I have created sample data with "John Smith" appearing in each.

I should also mention that users_affected is likely to have one or more users listed whereas changed_user will only ever have one user listed.

In trying to resolve this I was initially looking for exact matches (on "John Smith") so if anyone knows how I can get this query to first work on an exact match then working to include results where changed_user "exists in" type_2 users_affected that would be much appreciated!

happy to explain further if my intention is not clear!

cheers

Tags (2)
0 Karma

vasanthmss
Motivator

MuS
SplunkTrust
SplunkTrust

I second the second answer 🙂

Get Updates on the Splunk Community!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...