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!

Why You Can't Miss .conf25: Unleashing the Power of Agentic AI with Splunk & Cisco

The Defining Technology Movement of Our Lifetime The advent of agentic AI is arguably the defining technology ...

Deep Dive into Federated Analytics: Unlocking the Full Power of Your Security Data

In today’s complex digital landscape, security teams face increasing pressure to protect sprawling data across ...

Your summer travels continue with new course releases

Summer in the Northern hemisphere is in full swing, and is often a time to travel and explore. If your summer ...