<?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: Math function on stats count in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Math-function-on-stats-count/m-p/467837#M131699</link>
    <description>&lt;P&gt;It comes from the lookup file. Field name is FTE&lt;/P&gt;</description>
    <pubDate>Tue, 07 Apr 2020 17:50:07 GMT</pubDate>
    <dc:creator>anz999</dc:creator>
    <dc:date>2020-04-07T17:50:07Z</dc:date>
    <item>
      <title>Math function on stats count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Math-function-on-stats-count/m-p/467835#M131697</link>
      <description>&lt;P&gt;I would like to do some math operation of retrieved count of each values. &lt;/P&gt;

&lt;P&gt;Eg: 318*5.5 + 418*2.5 + 54*5 + 83*2 and get the total from the resulted output(SS attached)&lt;/P&gt;

&lt;P&gt;Query used:-&lt;/P&gt;

&lt;P&gt;index=omi_qa host=DEFRNC* sourcetype=all_events_custom_attributes SEVERITY IN (CRITICAL,MAJOR,MINOR) OR (SEVERITY=WARNING AND APPLICATION=NNMi) | eval {idx} = elt &lt;BR /&gt;
| stats latest(CLIP) as CLIP, values(UMN) as UMN by ID  | lookup clipUMNs.csv UMN OUTPUTNEW Solution &lt;BR /&gt;
| search CLIP != "NULL" AND CLIP != "TRUE"&lt;BR /&gt;
| where Solution = "Escalation" &lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://community.splunk.com/storage/temp/287790-splunk-query-result.png" alt="alt text" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 04:53:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Math-function-on-stats-count/m-p/467835#M131697</guid>
      <dc:creator>anz999</dc:creator>
      <dc:date>2020-09-30T04:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: Math function on stats count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Math-function-on-stats-count/m-p/467836#M131698</link>
      <description>&lt;P&gt;Where do the multipliers (5.5. 2.5, 5, 2) come from?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2020 17:27:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Math-function-on-stats-count/m-p/467836#M131698</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-04-07T17:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Math function on stats count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Math-function-on-stats-count/m-p/467837#M131699</link>
      <description>&lt;P&gt;It comes from the lookup file. Field name is FTE&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2020 17:50:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Math-function-on-stats-count/m-p/467837#M131699</guid>
      <dc:creator>anz999</dc:creator>
      <dc:date>2020-04-07T17:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Math function on stats count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Math-function-on-stats-count/m-p/467838#M131700</link>
      <description>&lt;P&gt;Perhaps this will help.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=omi_qa host=DEFRNC* sourcetype=all_events_custom_attributes SEVERITY IN (CRITICAL,MAJOR,MINOR) OR (SEVERITY=WARNING AND APPLICATION=NNMi) | eval {idx} = elt
| stats latest(CLIP) as CLIP, values(UMN) as UMN cout as Count by ID | lookup clipUMNs.csv UMN OUTPUTNEW Solution FTE
| search CLIP != "NULL" AND CLIP != "TRUE"
| where Solution = "Escalation"
| eval Product = Count * FTE
| addcoltotals labelfield= ID label="Grand Total" Product 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Apr 2020 18:38:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Math-function-on-stats-count/m-p/467838#M131700</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-04-07T18:38:10Z</dc:date>
    </item>
  </channel>
</rss>

