join command overview
join command to combine the left-hand side dataset with the right-hand side dataset, by using one or more common fields. The left-hand side dataset is the set of results from a search that is piped into the
join command. The left-hand side dataset is sometimes referred to as the source data. The right-hand-side dataset can be either a saved dataset or a subsearch.
The simplest join possible looks like this:
<left-dataset> | join left=L right=R where L.pid = R.pid <right-dataset>
This joins the source data from the search pipeline with the right-hand side dataset. Rows from each dataset are merged into a single row if the
where predicate is satisfied.
The required syntax is in bold.
- where <left-alias>.<left-field>=<right-alias>.<right-field>
- [ AND <left-alias>.<left-field>=<right-alias>.<right-field> ]...
You can specify the aliases and fields in
where clause on either side of the equal sign.
For example you can specify:
into command examples
join command syntax details
This documentation applies to the following versions of Splunk® Cloud Services: current