Splunk Search

consequence of lookup command with or without OUTPUT parameter

ankithreddy777
Contributor

What is the difference between with or without using OUTPUT parameter in lookup command.

Tags (1)
0 Karma

s2_splunk
Splunk Employee
Splunk Employee

From the documentation

Usage
When using the lookup command, if an OUTPUT or OUTPUTNEW clause is not specified, all of the fields in the lookup table that are not the match field are used as output fields. If the OUTPUT clause is specified, the output lookup fields overwrite existing fields. If the OUTPUTNEW clause is specified, the lookup is not performed for events in which the output fields already exist.

somesoni2
Revered Legend

Without OUTPUT it'll return all the fields from the lookup table.

Get Updates on the Splunk Community!

Enter the Splunk Community Dashboard Challenge for Your Chance to Win!

The Splunk Community Dashboard Challenge is underway! This is your chance to showcase your skills in creating ...

.conf24 | Session Scheduler is Live!!

.conf24 is happening June 11 - 14 in Las Vegas, and we are thrilled to announce that the conference catalog ...

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...