Getting Data In

How to create lookup without header?

rayar
Contributor

Hi

I am going to create a DC list lookup daily using nslookup

how I can I define the lookup without a header  or I should create a header manually  ? 

Labels (1)
0 Karma
1 Solution

gcusello
SplunkTrust
SplunkTrust

Hi @rayar,

no you have only to create your lookup and the Lookup Definition (don't forget it!) and then save the nslookup command output in it.

Ciao.

Giuseppe

View solution in original post

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @rayar,

no you have only to create your lookup and the Lookup Definition (don't forget it!) and then save the nslookup command output in it.

Ciao.

Giuseppe

0 Karma

rayar
Contributor

How I can define that the lookup doesn't have a header  and the first line is a value  ?

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @rayar,

how do you think to populate the lookup, using a search or a script?

is using a search, at the end of the search (before the outputlookup command) you'll use the table command listing all the fields that are the output of your search, this will be the header for your lookup defining the lookup fields list.

Ciao.

Giuseppe

0 Karma
Get Updates on the Splunk Community!

Detecting Remote Code Executions With the Splunk Threat Research Team

WATCH NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If exploited, ...

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