Forward Lookup
| lookup dnslookup clienthost as hostname
Where "hostname" is the field in your search, containing domain names that you're looking to get the IP addresses for. Resulting IP addresses will be added to each event as the "clientip" field.
Note that in cases where multiple IP addresses are returned by the lookup, the "clientip" field will be a multivalue field and will need to be handled as such.
Reverse Lookup
| lookup dnslookup clientip as ipaddress
Where "ipaddress" is the field in your search, containing domain names or hostnames that you're looking to get the IP addresses for. Resulting domain names will be added to each event as the "clienthost" field.
Tip
| eval temp=split(url_field,"/") | eval domain=mvindex(temp,0)
Then just run the "dnslookup" lookup against the "domain" field.
No comments:
Post a Comment