<?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: Basic math operation applied to stats in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Basic-math-operation-applied-to-stats/m-p/371560#M164022</link>
    <description>&lt;P&gt;You can always perform operations after stats:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| stats count(field_name) AS field_name_count | eval field_name_result=field_name_count*&amp;lt;some constant&amp;gt;&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jan 2018 18:42:51 GMT</pubDate>
    <dc:creator>micahkemp</dc:creator>
    <dc:date>2018-01-03T18:42:51Z</dc:date>
    <item>
      <title>Basic math operation applied to stats</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Basic-math-operation-applied-to-stats/m-p/371559#M164021</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;Student, new to Splunk and dbs.&lt;/P&gt;

&lt;P&gt;I need some help performing basic math operation against stats results.   I'd like to take the total of events in a single field/column, using 'stats count(field_name)', and then multiply this total by a percentage or some other fixed number. &lt;/P&gt;

&lt;P&gt;Can anyone point me to the section of "Splunk for Real Dummies" that might provide me some guidance?&lt;/P&gt;

&lt;P&gt;Any help would be appreciate. Reading in circles on this one...&lt;/P&gt;

&lt;P&gt;Cheers,&lt;BR /&gt;
James&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 18:28:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Basic-math-operation-applied-to-stats/m-p/371559#M164021</guid>
      <dc:creator>JamesPineda</dc:creator>
      <dc:date>2018-01-03T18:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Basic math operation applied to stats</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Basic-math-operation-applied-to-stats/m-p/371560#M164022</link>
      <description>&lt;P&gt;You can always perform operations after stats:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;| stats count(field_name) AS field_name_count | eval field_name_result=field_name_count*&amp;lt;some constant&amp;gt;&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 18:42:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Basic-math-operation-applied-to-stats/m-p/371560#M164022</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2018-01-03T18:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: Basic math operation applied to stats</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Basic-math-operation-applied-to-stats/m-p/371561#M164023</link>
      <description>&lt;P&gt;Thanks Micah!&lt;/P&gt;

&lt;P&gt;I really appreciate your lightning-fast, concise, and illuminating response.&lt;/P&gt;

&lt;P&gt;It worked like a charm (after I removed the $ I initially used in the  field. &lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 19:13:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Basic-math-operation-applied-to-stats/m-p/371561#M164023</guid>
      <dc:creator>JamesPineda</dc:creator>
      <dc:date>2018-01-03T19:13:19Z</dc:date>
    </item>
  </channel>
</rss>

