<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic DNSLOOKUP for a Destination Host, only the Source Host is working. in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/DNSLOOKUP-for-a-Destination-Host-only-the-Source-Host-is-working/m-p/286429#M54654</link>
    <description>&lt;P&gt;I am apparently doing something wrong with the Destination Host dnslookup, it shows the Source Host instead.  Any ideas on why I can't translate the destination IP into a host?  It should be pulling the IP from the log file name which is correct, the destination IP works.  The Destination Host is the only thing incorrect.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index = syslog sourcetype = cisco:ios configured
| rex field=source "^/\w+/\w+/\w+/(?&amp;lt;SourceIP&amp;gt;\w+\.\w+\.\w+\.\w+).log"
| eval "Destination IP" = SourceIP
| eval "Source IP" = src_ip
| lookup dnslookup clientip AS "Source IP"
| eval "Source Host" = upper(clienthost)
| lookup dnslookup clientip AS "Destination Host"
| eval "Destination Host" = upper(clienthost)
| eval Date = strftime(_time,"%m-%d-%Y %I:%M")
| eval Username = upper(user)
| eval Message = upper(message_text)
| eventstats count AS "Event Count" BY Date "Source IP" "Destination IP" Username Message
| dedup Date "Destination IP" Username Message
| table Date "Source IP" "Source Host" "Destination IP" "Destination Host" Username Message "Event Count"
| sort Date "Destination IP" Desc
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 21 Oct 2015 16:58:27 GMT</pubDate>
    <dc:creator>rfiscus</dc:creator>
    <dc:date>2015-10-21T16:58:27Z</dc:date>
    <item>
      <title>DNSLOOKUP for a Destination Host, only the Source Host is working.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/DNSLOOKUP-for-a-Destination-Host-only-the-Source-Host-is-working/m-p/286429#M54654</link>
      <description>&lt;P&gt;I am apparently doing something wrong with the Destination Host dnslookup, it shows the Source Host instead.  Any ideas on why I can't translate the destination IP into a host?  It should be pulling the IP from the log file name which is correct, the destination IP works.  The Destination Host is the only thing incorrect.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index = syslog sourcetype = cisco:ios configured
| rex field=source "^/\w+/\w+/\w+/(?&amp;lt;SourceIP&amp;gt;\w+\.\w+\.\w+\.\w+).log"
| eval "Destination IP" = SourceIP
| eval "Source IP" = src_ip
| lookup dnslookup clientip AS "Source IP"
| eval "Source Host" = upper(clienthost)
| lookup dnslookup clientip AS "Destination Host"
| eval "Destination Host" = upper(clienthost)
| eval Date = strftime(_time,"%m-%d-%Y %I:%M")
| eval Username = upper(user)
| eval Message = upper(message_text)
| eventstats count AS "Event Count" BY Date "Source IP" "Destination IP" Username Message
| dedup Date "Destination IP" Username Message
| table Date "Source IP" "Source Host" "Destination IP" "Destination Host" Username Message "Event Count"
| sort Date "Destination IP" Desc
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 21 Oct 2015 16:58:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/DNSLOOKUP-for-a-Destination-Host-only-the-Source-Host-is-working/m-p/286429#M54654</guid>
      <dc:creator>rfiscus</dc:creator>
      <dc:date>2015-10-21T16:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: DNSLOOKUP for a Destination Host, only the Source Host is working.</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/DNSLOOKUP-for-a-Destination-Host-only-the-Source-Host-is-working/m-p/286430#M54655</link>
      <description>&lt;P&gt;This fixed it, thanks Bert!&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rename clienthost AS "Source Host" 
| lookup dnslookup clientip AS SourceIP
| eval "Destination Host" = upper(clienthost)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 21 Oct 2015 18:52:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/DNSLOOKUP-for-a-Destination-Host-only-the-Source-Host-is-working/m-p/286430#M54655</guid>
      <dc:creator>rfiscus</dc:creator>
      <dc:date>2015-10-21T18:52:17Z</dc:date>
    </item>
  </channel>
</rss>

