<?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: Updating search for a better accuracy when doing an eval in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Updating-search-for-a-better-accuracy-when-doing-an-eval/m-p/262575#M78835</link>
    <description>&lt;P&gt;Do you guys see a way to contain that number by the bin span or due to the eval needing to come after the sum or am I forced to use the highest distinct count?&lt;/P&gt;</description>
    <pubDate>Wed, 31 Aug 2016 18:12:33 GMT</pubDate>
    <dc:creator>trevorQmulos</dc:creator>
    <dc:date>2016-08-31T18:12:33Z</dc:date>
    <item>
      <title>Updating search for a better accuracy when doing an eval</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Updating-search-for-a-better-accuracy-when-doing-an-eval/m-p/262570#M78830</link>
      <description>&lt;P&gt;I have the current search right now but am getting inaccurate numbers due to an issue with my search. I would like to rearrange the search so that I can sum the cvss_base_score instead of doing the division on every event and then summing all those values. I have tried to move the stats sum prior to the eval but then I get no results back from the search. &lt;/P&gt;

&lt;P&gt;index=network sourcetype=nessus severity!=informational signature=&lt;EM&gt;Windows&lt;/EM&gt; OR signature=&lt;EM&gt;Adobe&lt;/EM&gt; OR signature=&lt;EM&gt;Java&lt;/EM&gt; OR signature_family="Windows : Microsoft Bulletins" OR signature_family="Red Hat Local Security Checks" OR signature="Google Chrome*" OR signature="Firefox*" OR signature="MS*" OR signature="Flash Player*" OR signature="Solaris*"&lt;BR /&gt;&lt;BR /&gt;
| dedup dest_dns signature_id&lt;BR /&gt;&lt;BR /&gt;
| eventstats dc(dest_dns) as TotalDNS&lt;BR /&gt;&lt;BR /&gt;
| bin span=1mon _time&lt;BR /&gt;&lt;BR /&gt;
| eval PatchScore=cvss_base_score/TotalDNS&lt;BR /&gt;&lt;BR /&gt;
|  stats sum(PatchScore) AS "Avg Host Patch Score" by _time&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:51:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Updating-search-for-a-better-accuracy-when-doing-an-eval/m-p/262570#M78830</guid>
      <dc:creator>trevorQmulos</dc:creator>
      <dc:date>2020-09-29T10:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Updating search for a better accuracy when doing an eval</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Updating-search-for-a-better-accuracy-when-doing-an-eval/m-p/262571#M78831</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=network sourcetype=nessus severity!=informational signature=Windows OR signature=Adobe OR signature=Java OR signature_family="Windows : Microsoft Bulletins" OR signature_family="Red Hat Local Security Checks" OR signature="Google Chrome*" OR signature="Firefox*" OR signature="MS*" OR signature="Flash Player*" OR signature="Solaris*" 
| dedup dest_dns signature_id 
| eventstats dc(dest_dns) as TotalDNS 
| bin span=1mon _time 
| stats sum(cvss_base_score) as TotalScore max(TotalDNS) as TotalDNS by _time
| eval "Avg Host Patch Score"=TotalScore/TotalDNS 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 31 Aug 2016 15:21:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Updating-search-for-a-better-accuracy-when-doing-an-eval/m-p/262571#M78831</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-08-31T15:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: Updating search for a better accuracy when doing an eval</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Updating-search-for-a-better-accuracy-when-doing-an-eval/m-p/262572#M78832</link>
      <description>&lt;P&gt;The field _time is not available after &lt;CODE&gt;stats sum(cvss_base....&lt;/CODE&gt;.  Did you miss &lt;CODE&gt;by _time&lt;/CODE&gt; there?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:47:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Updating-search-for-a-better-accuracy-when-doing-an-eval/m-p/262572#M78832</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2020-09-29T10:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: Updating search for a better accuracy when doing an eval</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Updating-search-for-a-better-accuracy-when-doing-an-eval/m-p/262573#M78833</link>
      <description>&lt;P&gt;Good catch. See updated.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2016 16:19:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Updating-search-for-a-better-accuracy-when-doing-an-eval/m-p/262573#M78833</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-08-31T16:19:01Z</dc:date>
    </item>
    <item>
      <title>Re: Updating search for a better accuracy when doing an eval</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Updating-search-for-a-better-accuracy-when-doing-an-eval/m-p/262574#M78834</link>
      <description>&lt;P&gt;Worked like a charm. Thanks again for the help. &lt;/P&gt;

&lt;P&gt;Is there anyway for the MAX(dest_dns) to be specific to the month... for instance with the search, it will take that MAX and apply it to every month regardless of the max during that time frame so results are off for months where the number was low. &lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2016 16:56:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Updating-search-for-a-better-accuracy-when-doing-an-eval/m-p/262574#M78834</guid>
      <dc:creator>trevorQmulos</dc:creator>
      <dc:date>2016-08-31T16:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: Updating search for a better accuracy when doing an eval</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Updating-search-for-a-better-accuracy-when-doing-an-eval/m-p/262575#M78835</link>
      <description>&lt;P&gt;Do you guys see a way to contain that number by the bin span or due to the eval needing to come after the sum or am I forced to use the highest distinct count?&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2016 18:12:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Updating-search-for-a-better-accuracy-when-doing-an-eval/m-p/262575#M78835</guid>
      <dc:creator>trevorQmulos</dc:creator>
      <dc:date>2016-08-31T18:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: Updating search for a better accuracy when doing an eval</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Updating-search-for-a-better-accuracy-when-doing-an-eval/m-p/262576#M78836</link>
      <description>&lt;P&gt;Try moving the bin to before the eventstats and add a by _time to eventstats. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=network sourcetype=nessus severity!=informational signature=Windows OR signature=Adobe OR signature=Java OR signature_family="Windows : Microsoft Bulletins" OR signature_family="Red Hat Local Security Checks" OR signature="Google Chrome*" OR signature="Firefox*" OR signature="MS*" OR signature="Flash Player*" OR signature="Solaris*" 
 | dedup dest_dns signature_id 
 | bin span=1mon _time 
 | eventstats dc(dest_dns) as TotalDNS by _time
 | stats sum(cvss_base_score) as TotalScore max(TotalDNS) as TotalDNS by _time
 | eval "Avg Host Patch Score"=TotalScore/TotalDNS
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 31 Aug 2016 18:20:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Updating-search-for-a-better-accuracy-when-doing-an-eval/m-p/262576#M78836</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-08-31T18:20:55Z</dc:date>
    </item>
  </channel>
</rss>

