Getting Data In

resolving hostnames from a mail log

christerhe
New Member

I'm a beginner at this... but i love to know more!

I have a mail log that i like to extract the connection hostname from.
I have sorted out all the intresting lines:

"
Dec 1 04:02:42 mailgw1 postfix/smtpd[15515]: connect from unknown[XXX.YYY.ZZZ.NNN]
"

But when i try to get the IPadresses to hostnames i just hit the brick wall 😞

I'm ending up with a list of "unknown[XXX.YYY.ZZZ.NNN]" and i just love to resolve that to a hostname and make a nice chart for the boss... and a clear list for the developer that are trying to change mail system...

0 Karma

muebel
SplunkTrust
SplunkTrust

To add to Luke's answer, this script and lookup mechanism is described in the Splunk documentation

0 Karma

lukejadamec
Super Champion

It sounds like you are looking to resolve the host name from an IP. Splunk ships with a script that can do this at index time, which means once configured only new events will be resolved.

Check out this answer:

http://answers.splunk.com/answers/105246/dns-resolution-in-a-search

0 Karma
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 ...