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!

.conf24 | Day 0

Hello Splunk Community! My name is Chris, and I'm based in Canberra, Australia's capital, and I travelled for ...

Enhance Security Visibility with Splunk Enterprise Security 7.1 through Threat ...

(view in My Videos)Struggling with alert fatigue, lack of context, and prioritization around security ...

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...