<?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: Calculation using the number of events returned to determine average in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Calculation-using-the-number-of-events-returned-to-determine/m-p/362865#M169984</link>
    <description>&lt;P&gt;Thanks for the quick solution. I'm now getting multiple instances for the calculation of AvgSessionPerAccount. How do I only show one result since all are the same?&lt;/P&gt;</description>
    <pubDate>Wed, 25 Apr 2018 21:44:01 GMT</pubDate>
    <dc:creator>dwong2</dc:creator>
    <dc:date>2018-04-25T21:44:01Z</dc:date>
    <item>
      <title>Calculation using the number of events returned to determine average</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculation-using-the-number-of-events-returned-to-determine/m-p/362862#M169981</link>
      <description>&lt;P&gt;I have data similiar to this:&lt;/P&gt;

&lt;P&gt;Account Count   TotalSessions&lt;BR /&gt;
abc            4                      12&lt;BR /&gt;
xyz            2                       12&lt;BR /&gt;
zzz            6                       12&lt;/P&gt;

&lt;P&gt;..search | stats count by Account | eventstats sum(count) as TotalSessions &lt;/P&gt;

&lt;P&gt;How do I get the calculation for TotalSessions/ # of Accounts?   i.e. 12 divided by 3 in this example.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 20:20:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculation-using-the-number-of-events-returned-to-determine/m-p/362862#M169981</guid>
      <dc:creator>dwong2</dc:creator>
      <dc:date>2018-04-25T20:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation using the number of events returned to determine average</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculation-using-the-number-of-events-returned-to-determine/m-p/362863#M169982</link>
      <description>&lt;P&gt;Like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;..search | stats count by Account | eventstats sum(count) as TotalSessions dc(Account) as TotalAccounts
| eval AvgSessionPerAccount=TotalSessions/TotalAccounts
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 Apr 2018 20:26:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculation-using-the-number-of-events-returned-to-determine/m-p/362863#M169982</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-04-25T20:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation using the number of events returned to determine average</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculation-using-the-number-of-events-returned-to-determine/m-p/362864#M169983</link>
      <description>&lt;P&gt;Thanks for the quick solution.   I'm now getting multiple instances for the calculation of AvgSessionPerAccount.    How do I only show one result since all are the same?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 21:41:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculation-using-the-number-of-events-returned-to-determine/m-p/362864#M169983</guid>
      <dc:creator>dwong2</dc:creator>
      <dc:date>2018-04-25T21:41:02Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation using the number of events returned to determine average</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Calculation-using-the-number-of-events-returned-to-determine/m-p/362865#M169984</link>
      <description>&lt;P&gt;Thanks for the quick solution. I'm now getting multiple instances for the calculation of AvgSessionPerAccount. How do I only show one result since all are the same?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 21:44:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Calculation-using-the-number-of-events-returned-to-determine/m-p/362865#M169984</guid>
      <dc:creator>dwong2</dc:creator>
      <dc:date>2018-04-25T21:44:01Z</dc:date>
    </item>
  </channel>
</rss>

