<?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 Counting averages in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Counting-averages/m-p/104607#M27124</link>
    <description>&lt;P&gt;I have data for users running in two modes: Online, and Cached.&lt;/P&gt;

&lt;P&gt;I want to get the average number of connections for each type of user over a 1 week period, so that I have a line graph and compare the load on the server for each type of user.&lt;/P&gt;

&lt;P&gt;How can I do this? I think I'm way off track...&lt;/P&gt;

&lt;P&gt;index=sanindex source="&lt;EM&gt;rpc&lt;/EM&gt;" | timechart span=1h count(client_name)&lt;/P&gt;

&lt;P&gt;client_mode is either Online or Cached.
client_name is the name of a connecting user.&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;

&lt;P&gt;James&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Hi, James: Let me add more information about what you're looking for &lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Log Events &lt;/LI&gt;
&lt;/UL&gt;

&lt;PRE&gt;
   The logs contains
    - client_mode: Classic, Cached, etc...
    - client_name: 100s of different values 

   Each client_name is with either "client_mode=Classic" or "client_mode=Cached" 
&lt;/PRE&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;P&gt;What to achieve&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Count of each client_user every hour in the past one week &lt;/LI&gt;
&lt;LI&gt;Average the count of all the client_user per hour in the past one week &lt;/LI&gt;
&lt;LI&gt;Compare the averaged user's client_mode, Classic and Cached, in order to see one "average" user's mode.&lt;/LI&gt;
&lt;/OL&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
    <pubDate>Wed, 15 Dec 2010 03:14:52 GMT</pubDate>
    <dc:creator>jamesklassen</dc:creator>
    <dc:date>2010-12-15T03:14:52Z</dc:date>
    <item>
      <title>Counting averages</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Counting-averages/m-p/104607#M27124</link>
      <description>&lt;P&gt;I have data for users running in two modes: Online, and Cached.&lt;/P&gt;

&lt;P&gt;I want to get the average number of connections for each type of user over a 1 week period, so that I have a line graph and compare the load on the server for each type of user.&lt;/P&gt;

&lt;P&gt;How can I do this? I think I'm way off track...&lt;/P&gt;

&lt;P&gt;index=sanindex source="&lt;EM&gt;rpc&lt;/EM&gt;" | timechart span=1h count(client_name)&lt;/P&gt;

&lt;P&gt;client_mode is either Online or Cached.
client_name is the name of a connecting user.&lt;/P&gt;

&lt;P&gt;Thank you&lt;/P&gt;

&lt;P&gt;James&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Hi, James: Let me add more information about what you're looking for &lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Log Events &lt;/LI&gt;
&lt;/UL&gt;

&lt;PRE&gt;
   The logs contains
    - client_mode: Classic, Cached, etc...
    - client_name: 100s of different values 

   Each client_name is with either "client_mode=Classic" or "client_mode=Cached" 
&lt;/PRE&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;P&gt;What to achieve&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Count of each client_user every hour in the past one week &lt;/LI&gt;
&lt;LI&gt;Average the count of all the client_user per hour in the past one week &lt;/LI&gt;
&lt;LI&gt;Compare the averaged user's client_mode, Classic and Cached, in order to see one "average" user's mode.&lt;/LI&gt;
&lt;/OL&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 15 Dec 2010 03:14:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Counting-averages/m-p/104607#M27124</guid>
      <dc:creator>jamesklassen</dc:creator>
      <dc:date>2010-12-15T03:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: Counting averages</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Counting-averages/m-p/104608#M27125</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;index=sanindex source="rpc" client_name=* | timechart span=1h count by client_mode
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Dec 2010 05:47:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Counting-averages/m-p/104608#M27125</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-12-15T05:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: Counting averages</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Counting-averages/m-p/104609#M27126</link>
      <description>&lt;P&gt;Thanks gkanpathy, but not quite. &lt;/P&gt;

&lt;P&gt;I'd like to compare the average number of connections of each type, per day. So I take the average count of entries per day for client_mode=Cached, and the average count of entires per day where client_mode=Online, and then I can compare the two in a line graph. &lt;/P&gt;

&lt;P&gt;Thank you for your help.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:22:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Counting-averages/m-p/104609#M27126</guid>
      <dc:creator>jamesklassen</dc:creator>
      <dc:date>2020-09-28T09:22:08Z</dc:date>
    </item>
    <item>
      <title>Re: Counting averages</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Counting-averages/m-p/104610#M27127</link>
      <description>&lt;PRE&gt;

index=sanindex source="rpc" client_mode=Classic OR client_mode=cached earliest=-30d@d latest=@d 
  | bucket _time span=1h 
  | stats count by _time, client_name, client_mode 
  | timechart avg(count) by client_mode

&lt;/PRE&gt;</description>
      <pubDate>Thu, 16 Dec 2010 06:57:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Counting-averages/m-p/104610#M27127</guid>
      <dc:creator>Masa</dc:creator>
      <dc:date>2010-12-16T06:57:53Z</dc:date>
    </item>
  </channel>
</rss>

