<?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 tstat with dnslookup does not return the fqdn for an IP value in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/tstat-with-dnslookup-does-not-return-the-fqdn-for-an-IP-value/m-p/447513#M126856</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have the following tstats query that I do not understand why it is not returning  the FQDN&lt;/P&gt;

&lt;P&gt;Here's the query I started off with that works:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats summariesonly=t count FROM datamodel="pan_firewall" where nodename="log" log.vendor_action!=allow groupby host,log. src_zone,log.src_ip,log.dest_zone,log.dest_ip,log.dest_port
| rename log.* AS *
| table host,src_zone,src_ip,dest_zone,dest_ip,dest_port
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In the following query, I want to resolve both the 'src_ip' and 'dest_ip' to a FQDN but is not working with no error notification or any indication the matched event counter was incrementing.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|tstats summariesonly=t count FROM datamodel="pan_firewall" where nodename="log" log.vendor_action!=allow groupby host,log.src_zone,log.src_ip,log.dest_zone,log.dest_ip,log.dest_port
| rename log.* AS *
| lookup dnslookup clientip AS src_ip output clienthost AS src_hostname
| lookup dnslookup clientip AS dest_ip output clienthost AS dest_hostname
| table host,src_zone,src_ip,src_hostname,dest_zone,dest_ip,dest_hostname,dest_port
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If I run a similar command, the 'dnslookup' works.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=* sourcetype=*  vendor_action!=allow 
| lookup dnslookup clientip AS src_ip output clienthost AS src_hostname
| lookup dnslookup clientip AS dest_ip  output clienthost AS dest_hostname
| table host,src_zone,src_ip,src_hostname,dest_zone,dest_ip,dest_hostname,dest_port
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 30 Sep 2020 00:25:36 GMT</pubDate>
    <dc:creator>wmoy</dc:creator>
    <dc:date>2020-09-30T00:25:36Z</dc:date>
    <item>
      <title>tstat with dnslookup does not return the fqdn for an IP value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/tstat-with-dnslookup-does-not-return-the-fqdn-for-an-IP-value/m-p/447513#M126856</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have the following tstats query that I do not understand why it is not returning  the FQDN&lt;/P&gt;

&lt;P&gt;Here's the query I started off with that works:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| tstats summariesonly=t count FROM datamodel="pan_firewall" where nodename="log" log.vendor_action!=allow groupby host,log. src_zone,log.src_ip,log.dest_zone,log.dest_ip,log.dest_port
| rename log.* AS *
| table host,src_zone,src_ip,dest_zone,dest_ip,dest_port
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In the following query, I want to resolve both the 'src_ip' and 'dest_ip' to a FQDN but is not working with no error notification or any indication the matched event counter was incrementing.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|tstats summariesonly=t count FROM datamodel="pan_firewall" where nodename="log" log.vendor_action!=allow groupby host,log.src_zone,log.src_ip,log.dest_zone,log.dest_ip,log.dest_port
| rename log.* AS *
| lookup dnslookup clientip AS src_ip output clienthost AS src_hostname
| lookup dnslookup clientip AS dest_ip output clienthost AS dest_hostname
| table host,src_zone,src_ip,src_hostname,dest_zone,dest_ip,dest_hostname,dest_port
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If I run a similar command, the 'dnslookup' works.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=* sourcetype=*  vendor_action!=allow 
| lookup dnslookup clientip AS src_ip output clienthost AS src_hostname
| lookup dnslookup clientip AS dest_ip  output clienthost AS dest_hostname
| table host,src_zone,src_ip,src_hostname,dest_zone,dest_ip,dest_hostname,dest_port
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:25:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/tstat-with-dnslookup-does-not-return-the-fqdn-for-an-IP-value/m-p/447513#M126856</guid>
      <dc:creator>wmoy</dc:creator>
      <dc:date>2020-09-30T00:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: tstat with dnslookup does not return the fqdn for an IP value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/tstat-with-dnslookup-does-not-return-the-fqdn-for-an-IP-value/m-p/447514#M126857</link>
      <description>&lt;P&gt;Just guessing here, did you check if the field &lt;CODE&gt;log.src_ip&lt;/CODE&gt; is numeric in the datamodel?&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Sun, 05 May 2019 20:14:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/tstat-with-dnslookup-does-not-return-the-fqdn-for-an-IP-value/m-p/447514#M126857</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2019-05-05T20:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: tstat with dnslookup does not return the fqdn for an IP value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/tstat-with-dnslookup-does-not-return-the-fqdn-for-an-IP-value/m-p/447515#M126858</link>
      <description>&lt;P&gt;I ran your exact search but I inserted a &lt;CODE&gt;| head 10&lt;/CODE&gt; after the &lt;CODE&gt;| rename&lt;/CODE&gt; to speed it up and it worked fine; does yours work better if you limit the results this way?&lt;/P&gt;</description>
      <pubDate>Sun, 05 May 2019 23:00:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/tstat-with-dnslookup-does-not-return-the-fqdn-for-an-IP-value/m-p/447515#M126858</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-05-05T23:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: tstat with dnslookup does not return the fqdn for an IP value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/tstat-with-dnslookup-does-not-return-the-fqdn-for-an-IP-value/m-p/447516#M126859</link>
      <description>&lt;P&gt;To answer my own question... after trying a number of different things ... turns out that the SPL syntax was fine.&lt;BR /&gt;
What was happening was the number of results returned from the  tstat for a 24hr window caused  a huge resource consumption on search head.&lt;BR /&gt;
I ended up running a dedup and reducing the time window to 10 mins to get the query returning the fqdn from dnslookup.&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 13:14:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/tstat-with-dnslookup-does-not-return-the-fqdn-for-an-IP-value/m-p/447516#M126859</guid>
      <dc:creator>wmoy</dc:creator>
      <dc:date>2019-05-09T13:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: tstat with dnslookup does not return the fqdn for an IP value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/tstat-with-dnslookup-does-not-return-the-fqdn-for-an-IP-value/m-p/447517#M126860</link>
      <description>&lt;P&gt;Yes, log.src_ip is numeric in the datamodel&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 13:15:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/tstat-with-dnslookup-does-not-return-the-fqdn-for-an-IP-value/m-p/447517#M126860</guid>
      <dc:creator>wmoy</dc:creator>
      <dc:date>2019-05-09T13:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: tstat with dnslookup does not return the fqdn for an IP value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/tstat-with-dnslookup-does-not-return-the-fqdn-for-an-IP-value/m-p/447518#M126861</link>
      <description>&lt;P&gt;Good idea and that lead me to answering my own question that I've just posted.&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 13:18:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/tstat-with-dnslookup-does-not-return-the-fqdn-for-an-IP-value/m-p/447518#M126861</guid>
      <dc:creator>wmoy</dc:creator>
      <dc:date>2019-05-09T13:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: tstat with dnslookup does not return the fqdn for an IP value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/tstat-with-dnslookup-does-not-return-the-fqdn-for-an-IP-value/m-p/447519#M126862</link>
      <description>&lt;P&gt;@wmoy If your problem is resolved, please accept the answer to help future readers.&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 14:43:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/tstat-with-dnslookup-does-not-return-the-fqdn-for-an-IP-value/m-p/447519#M126862</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2019-05-09T14:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: tstat with dnslookup does not return the fqdn for an IP value</title>
      <link>https://community.splunk.com/t5/Splunk-Search/tstat-with-dnslookup-does-not-return-the-fqdn-for-an-IP-value/m-p/447520#M126863</link>
      <description>&lt;P&gt;Don't forget to &lt;CODE&gt;UpVote&lt;/CODE&gt; and click &lt;CODE&gt;Accept&lt;/CODE&gt; on your answer.&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 15:21:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/tstat-with-dnslookup-does-not-return-the-fqdn-for-an-IP-value/m-p/447520#M126863</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-05-09T15:21:08Z</dc:date>
    </item>
  </channel>
</rss>

