Splunk Search

How to do simple join between two different source types like primary key & foreign key in SQL?

tskarthic
New Member

I have two different source types Source A & B. 'ID' is the common field in both sources.
For each 'ID' in source A, multiple records will be in source B.
i want to fetch all the records from source A and latest matching record by compare the timestamp field value of source B.
How to make join like primary key and foreign key join in SQL.

0 Karma

DalJeanis
Legend

First, go read this one. Thinking about SQL's way of doing things will just mess you up over here.

https://answers.splunk.com/answers/561130/sql-analogy-for-my-log-search-join-two-tables-wher.html

Second, here's another reference answer for how to combine one record with the latest matching record

https://answers.splunk.com/answers/561578/map-fields-from-two-sourcetypes-based-on-a-certain.html

0 Karma
Get Updates on the Splunk Community!

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...

Splunk APM: New Product Features + Community Office Hours Recap!

Howdy Splunk Community! Over the past few months, we’ve had a lot going on in the world of Splunk Application ...

Index This | Forward, I’m heavy; backward, I’m not. What am I?

April 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...