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!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...