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!

Combine Multiline Logs into a Single Event with SOCK - a Guide for Advanced Users

This article is the continuation of the “Combine multiline logs into a single event with SOCK - a step-by-step ...

Everything Community at .conf24!

You may have seen mention of the .conf Community Zone 'round these parts and found yourself wondering what ...

Index This | I’m short for "configuration file.” What am I?

May 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with a Special ...