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!

Stay Connected: Your Guide to January Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...

[Puzzles] Solve, Learn, Repeat: Reprocessing XML into Fixed-Length Events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Data Management Digest – December 2025

Welcome to the December edition of Data Management Digest! As we continue our journey of data innovation, the ...