<?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 How to divide a sum based values/count ? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-divide-a-sum-based-values-count/m-p/483280#M145965</link>
    <description>&lt;LI-CODE lang="markup"&gt;| stats sum("Sum of consumption") as Total_Consumption count as Session&lt;/LI-CODE&gt;
&lt;P&gt;I got as a result in splunk / statistics chart:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Total_Consumption 750.580&lt;/LI&gt;
&lt;LI&gt;Session 25&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Now I want to divide them to get the average of consumption per session,&lt;BR /&gt;to show it on my dashboard.&lt;/P&gt;</description>
    <pubDate>Thu, 17 Sep 2020 22:35:46 GMT</pubDate>
    <dc:creator>aryamehr360</dc:creator>
    <dc:date>2020-09-17T22:35:46Z</dc:date>
    <item>
      <title>How to divide a sum based values/count ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-divide-a-sum-based-values-count/m-p/483280#M145965</link>
      <description>&lt;LI-CODE lang="markup"&gt;| stats sum("Sum of consumption") as Total_Consumption count as Session&lt;/LI-CODE&gt;
&lt;P&gt;I got as a result in splunk / statistics chart:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Total_Consumption 750.580&lt;/LI&gt;
&lt;LI&gt;Session 25&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Now I want to divide them to get the average of consumption per session,&lt;BR /&gt;to show it on my dashboard.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 22:35:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-divide-a-sum-based-values-count/m-p/483280#M145965</guid>
      <dc:creator>aryamehr360</dc:creator>
      <dc:date>2020-09-17T22:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to divide a sum based values/count ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-divide-a-sum-based-values-count/m-p/483281#M145966</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;....
|eval divide=Total_Consumption / Session
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;Now I want to divide them to get the avrage of consumption per session,&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Sorry, I don't understand that &lt;CODE&gt;divide them&lt;/CODE&gt; = &lt;CODE&gt;get the avrage of consumption per session,&lt;/CODE&gt;&lt;BR /&gt;
Only divide, this query is. but I think &lt;CODE&gt;per session&lt;/CODE&gt; is another way.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jan 2020 12:42:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-divide-a-sum-based-values-count/m-p/483281#M145966</guid>
      <dc:creator>to4kawa</dc:creator>
      <dc:date>2020-01-15T12:42:43Z</dc:date>
    </item>
  </channel>
</rss>

