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!

Upcoming Webinar: Unmasking Insider Threats with Slunk Enterprise Security’s UEBA

Join us on Wed, Dec 10. at 10AM PST / 1PM EST for a live webinar and demo with Splunk experts! Discover how ...

.conf25 technical session recap of Observability for Gen AI: Monitoring LLM ...

If you’re unfamiliar, .conf is Splunk’s premier event where the Splunk community, customers, partners, and ...

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