Splunk Search

what does "join type=left _raw" actually do when i use it between 2 different searches?

pavanae
Builder

I am just curious to know what does it actually doing in a big splunk quary?

As per the result i understood if we use join it joins the query.

0 Karma
1 Solution

DalJeanis
Legend

| join type=left means that the stuff coming into the left side (through the pipe symbol) will be matched and kept, whereas the stuff coming in from the subsearch on the right side will only be kept if it matches the left side. http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Join

The field _raw is the underlying data in its raw form. Per the documentation, it "contains the original raw data of an event." http://docs.splunk.com/Documentation/Splunk/6.5.2/Knowledge/Usedefaultfields

One of the non-obvious results of the join will be that, if a record is found on the subsearch (right) side of the join, then (per default overwrite=true) the values for all fields found on the right branch will overwrite the values by the same names from the left branch. for any matching records.

View solution in original post

0 Karma

koshyk
Super Champion

it depends on your dataset. If the dataset is huge, i wouldn't use join but two searches with a NOT. if you give example of your dataset, it will be helpful to answer

DalJeanis
Legend

| join type=left means that the stuff coming into the left side (through the pipe symbol) will be matched and kept, whereas the stuff coming in from the subsearch on the right side will only be kept if it matches the left side. http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Join

The field _raw is the underlying data in its raw form. Per the documentation, it "contains the original raw data of an event." http://docs.splunk.com/Documentation/Splunk/6.5.2/Knowledge/Usedefaultfields

One of the non-obvious results of the join will be that, if a record is found on the subsearch (right) side of the join, then (per default overwrite=true) the values for all fields found on the right branch will overwrite the values by the same names from the left branch. for any matching records.

0 Karma

woodcock
Esteemed Legend

It also means that your search is almost guaranteed to fail SILENTLY in the future as the joined dataset approaches the inescapable ~50K-event dataset size limit. Do not use join in Splunk for anything other than an ad-hoc search where you know your datasets are small. If you have a saved search using join, then you have created a time-bomb for somebody at some point.

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