There's more...

In this recipe, we leveraged a DNS lookup to convert IP addresses into hostnames. We did this by calling the lookup in the search directly using the lookup command. However, you might wish to automate this and have the IP/host translation done automatically for a given sourcetype, host, or source.

Get Splunk Operational Intelligence Cookbook - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.