<?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 Re: Why is my current stats search not producing any results? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-current-stats-search-not-producing-any-results/m-p/203673#M59169</link>
    <description>&lt;P&gt;as i checked, "sourcetype=cisco:asa" events are not having a field "dev"&lt;/P&gt;

&lt;P&gt;tried it without "dev" and its working fine..&lt;BR /&gt;
src=122.15.158.173 sourcetype=cisco:asa "Deny*"|stats max(_time) as last_time by host,sourcetype,action,dest,dest_ip,dest_port,index,msg,src,src_ip,src_port,vendor_action |dedup last_time,host,sourcetype,action,dest,dest_ip,dest_port,index,msg,src,src_ip,src_port,vendor_action&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 10:27:55 GMT</pubDate>
    <dc:creator>inventsekar</dc:creator>
    <dc:date>2020-09-29T10:27:55Z</dc:date>
    <item>
      <title>Why is my current stats search not producing any results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-current-stats-search-not-producing-any-results/m-p/203671#M59167</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Can anyone tell me why this comment is not working? I have all the mentioned fields in my data, but when I add &lt;CODE&gt;stats max(_time) as last_time by host,sourcetype,action,dest,dest_ip,dest_port,dev,index,msg,src,src_ip,src_port,vendor_action |dedup last_time,host,sourcetype,action,dest,dest_ip,dest_port,dev,index,msg,src,src_ip,src_port,vendor_action&lt;/CODE&gt;&lt;BR /&gt;
I'm not getting any result. Here is my full search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;src=122.15.158.173 sourcetype=cisco:asa "Deny*" |stats max(_time) as last_time by host,sourcetype,action,dest,dest_ip,dest_port,dev,index,msg,src,src_ip,src_port,vendor_action |dedup last_time,host,sourcetype,action,dest,dest_ip,dest_port,dev,index,msg,src,src_ip,src_port,vendor_action
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 03 Aug 2016 07:41:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-current-stats-search-not-producing-any-results/m-p/203671#M59167</guid>
      <dc:creator>syed_star357</dc:creator>
      <dc:date>2016-08-03T07:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my current stats search not producing any results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-current-stats-search-not-producing-any-results/m-p/203672#M59168</link>
      <description>&lt;P&gt;Two things:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;You don't need the dedup afterwards because you are already summarising with stats&lt;/LI&gt;
&lt;LI&gt;If any of the fields in the stats group by clause does not exist or is empty you are going to have problems. &lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;Try this first to see if the are any events matching your requirements with data in all the required fields:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;src=122.15.158.173 sourcetype=cisco:asa "Deny*" 
    host=* 
    sourcetype=*
    action=* 
    dest=* 
    dest_ip=* 
    dest_port=* 
    dev=* 
    index=* 
    msg=* 
    src=* 
    src_ip=* 
    src_port=* 
    vendor_action=* 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If that works then append the stats afterwards:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| stats max(_time) as last_time by host, sourcetype, action, dest, dest_ip, dest_port, dev, index, msg, src, src_ip, src_port, vendor_action
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 03 Aug 2016 12:15:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-current-stats-search-not-producing-any-results/m-p/203672#M59168</guid>
      <dc:creator>javiergn</dc:creator>
      <dc:date>2016-08-03T12:15:59Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my current stats search not producing any results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-current-stats-search-not-producing-any-results/m-p/203673#M59169</link>
      <description>&lt;P&gt;as i checked, "sourcetype=cisco:asa" events are not having a field "dev"&lt;/P&gt;

&lt;P&gt;tried it without "dev" and its working fine..&lt;BR /&gt;
src=122.15.158.173 sourcetype=cisco:asa "Deny*"|stats max(_time) as last_time by host,sourcetype,action,dest,dest_ip,dest_port,index,msg,src,src_ip,src_port,vendor_action |dedup last_time,host,sourcetype,action,dest,dest_ip,dest_port,index,msg,src,src_ip,src_port,vendor_action&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:27:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-current-stats-search-not-producing-any-results/m-p/203673#M59169</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2020-09-29T10:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my current stats search not producing any results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-current-stats-search-not-producing-any-results/m-p/203674#M59170</link>
      <description>&lt;P&gt;No, it has Dev field.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 16:56:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-current-stats-search-not-producing-any-results/m-p/203674#M59170</guid>
      <dc:creator>syed_star357</dc:creator>
      <dc:date>2016-08-03T16:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: Why is my current stats search not producing any results?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Why-is-my-current-stats-search-not-producing-any-results/m-p/203675#M59171</link>
      <description>&lt;P&gt;oh ok. i thought cisco:asa logs may have same format. seems your environment is different. ok, thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Aug 2016 07:56:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Why-is-my-current-stats-search-not-producing-any-results/m-p/203675#M59171</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2016-08-04T07:56:23Z</dc:date>
    </item>
  </channel>
</rss>

