Getting Data In

DNS look up set up in splunk 6.4.2 on windows

neelu123
Explorer

Hi Team,

I was trying to achieve the DNS lookup concept in splunk 6.4.2 in window server but its not working ,can someone pls help me on this.

I have gone through an article and did the set up as it is

inside etc folder created a new folder named search in side search hv created two more as local and lookups
copied the external_lookup.py file from etc/bin to above lookup folder and in side local I created two conf files named props.conf and transforms.conf below are the config which I have done in both the files.

props.conf :
[pan:traffic]
LOOKUP-rdns = dnsLookup ip AS host OUTPUT host as hostname
transforms.conf :
[dnsLookup]
external_cmd = external_lookup.py host ip
fields_list = host, ip

then restarted the splunk and tried to search like below

index=pan_logs sourcetype=pan:traffic | lookup dnsLookup ip AS host OUTPUT host as hostname

but am getting this error

Error in 'lookup' command: The lookup table 'dnsLookup' does not exist or is not available.

please help me to resolve the error.

Regards,
Neelu

Tags (1)
0 Karma

s2_splunk
Splunk Employee
Splunk Employee

Looks like you used dnsLookup when instead the lookup table is all lowercase, i.e. dnslookup. Hence the error message.

Splunk object names are always case sensitive.

0 Karma

woodcock
Esteemed Legend

You no longer need to create or enable dnslookup in Splunk search heads because the definitions are now deployed enabled by default so just use it. Try this:

|noop|stats count AS host | eval clienthost="splunxter.com" | lookup dnslookup clienthost OUTPUT clientip
0 Karma
Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...