All Apps and Add-ons

DNSLookup not working in Version 5.06

chengyu
Path Finder

Hi:

I need resolve my dstip field, my search "sourcetype=xxx |lookup ip AS dstip OUTPUTNEW host AS hostname| table dstip,hostname"

My external_lookup.py in $SPLUNK_HOME/etc/system/bin/

My conf follow below:

props.conf
[xxx] <------ sourcetype ?

LOOKUP-rdns = dnsLookup ip AS dstip OUTPUTNEW host AS host

transforms.conf
[dnsLookup]
external_cmd = external_lookup.py host ip
fields_list = host, ip

What am I doing wrong place? Thank you.

Tags (1)
0 Karma

MuS
SplunkTrust
SplunkTrust

Hi chengyu,

the .conf files look good and it seams you did follow the docs on this.
The most common reason for such 'errors' like transforms and props not being honored are that your sourcetpye is not matching. The sourcetype in props.conf must be 100% exact, so if you have it like MySourceType in the events it must be MySourceType in the props.conf - double check this. Also remember the inital restart of Splunk after the first setup of this kind of transforms.

Afterwards you can reload the transforms and/or props be doing this search in Splunk:

| extract reload=T 

hope this helps ...

cheers, MuS

Get Updates on the Splunk Community!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...