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!

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...