Splunk Search

Troubles pivoting from dnslookup results to index search

cbakes
New Member

I am trying to use the results of dnslookup to pivot the results to query my index.

| makeresults
| eval domain="google.com"
| lookup dnslookup clienthost as domain OUTPUT clientip
| search index=myindex ip=clientip

The end goal would be to create a text token for a dashboard so any domain could be entered where "google.com" is. Then i want to see if the ip is in my index under the ip field.

 

 

Labels (3)
0 Karma

richgalloway
SplunkTrust
SplunkTrust
What is your question? Does your query work?
---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

A Season of Skills: New Splunk Courses to Light Up Your Learning Journey

There’s something special about this time of year—maybe it’s the glow of the holidays, maybe it’s the ...

Announcing the Migration of the Splunk Add-on for Microsoft Azure Inputs to ...

Announcing the Migration of the Splunk Add-on for Microsoft Azure Inputs to Officially Supported Splunk ...

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI! Discover how Splunk’s agentic AI ...