Splunk Search

self join in splunk

abhayneilam
Contributor

Hi,

Can you make me understand how to use a self join using splunk..

A short example will work.

thanks a lot !!

Abhay

Tags (4)

DaveSavage
Builder

Abhay,
....| selfjoin []* gives you a join on the selected field(s). The options are useful (overwrite, max or keepsingle. That allows control over values in the selected fields. Note the default on 'max' vs zero.
There's more at http://docs.splunk.com/Documentation/Splunk/5.0/SearchReference/Selfjoin

The example used is ... | selfjoin id...which may start you off with results. Depends what you are trying to do after that 😉

Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...