<?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: Columns split by Sum and Average over _time in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Columns-split-by-Sum-and-Average-over-time/m-p/183972#M11380</link>
    <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_audit host=search-* earliest=-90d latest=-1d  search_id!=scheduler_* 
| bucket _time span=1d 
    |stats count by _time,user 
    |stats sum(count) as TotalSearches, avg(count) by _time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This gives total search count (from all users) and daily average (for all user, total searches that day divided by total users that day).&lt;/P&gt;</description>
    <pubDate>Fri, 30 May 2014 14:55:58 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2014-05-30T14:55:58Z</dc:date>
    <item>
      <title>Columns split by Sum and Average over _time</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Columns-split-by-Sum-and-Average-over-time/m-p/183969#M11377</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;

&lt;P&gt;I am having a terrible time trying to get this logic correct and maybe someone can chime in to help a bit.&lt;/P&gt;

&lt;P&gt;I would like the sum of searches per day of all users split by the avg number of searches by user over 90 days but I can't seem to work it out just right. I am able to post the average of the total search across the chart but not the daily average. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_audit host=search-* earliest=-90d latest=-1d  search_id!=scheduler_* 
| bucket _time span=1d 
|stats count by _time 
| eventstats avg(count) as SearchAVG
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Any help is appreciated. Thank you!&lt;/P&gt;

&lt;P&gt;&lt;A href="https://drive.google.com/file/d/0B7c2Ap0cICFka243RFlqeTVRVlU/edit?usp=sharing"&gt;https://drive.google.com/file/d/0B7c2Ap0cICFka243RFlqeTVRVlU/edit?usp=sharing&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 30 May 2014 14:28:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Columns-split-by-Sum-and-Average-over-time/m-p/183969#M11377</guid>
      <dc:creator>glancaster</dc:creator>
      <dc:date>2014-05-30T14:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: Columns split by Sum and Average over _time</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Columns-split-by-Sum-and-Average-over-time/m-p/183970#M11378</link>
      <description>&lt;P&gt;What is the expected output?&lt;BR /&gt;
_time...TotalSearches...AvgSearch&lt;/P&gt;

&lt;P&gt;OR &lt;/P&gt;

&lt;P&gt;_time...TotalSearches...AvgSearchUser1...AvgSearchUser2...&lt;/P&gt;</description>
      <pubDate>Fri, 30 May 2014 14:47:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Columns-split-by-Sum-and-Average-over-time/m-p/183970#M11378</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-05-30T14:47:22Z</dc:date>
    </item>
    <item>
      <title>Re: Columns split by Sum and Average over _time</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Columns-split-by-Sum-and-Average-over-time/m-p/183971#M11379</link>
      <description>&lt;P&gt;_time, TotalSearches and AvgSearches (of all users) - all per day.&lt;/P&gt;

&lt;P&gt;a graph over time with columns split by Total Searches per day and the Avg Searches by all users per day.&lt;/P&gt;

&lt;P&gt;The part I can't work out is the avg of the dc(search_id) by users per day.&lt;/P&gt;</description>
      <pubDate>Fri, 30 May 2014 14:52:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Columns-split-by-Sum-and-Average-over-time/m-p/183971#M11379</guid>
      <dc:creator>glancaster</dc:creator>
      <dc:date>2014-05-30T14:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: Columns split by Sum and Average over _time</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Columns-split-by-Sum-and-Average-over-time/m-p/183972#M11380</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_audit host=search-* earliest=-90d latest=-1d  search_id!=scheduler_* 
| bucket _time span=1d 
    |stats count by _time,user 
    |stats sum(count) as TotalSearches, avg(count) by _time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This gives total search count (from all users) and daily average (for all user, total searches that day divided by total users that day).&lt;/P&gt;</description>
      <pubDate>Fri, 30 May 2014 14:55:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Columns-split-by-Sum-and-Average-over-time/m-p/183972#M11380</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-05-30T14:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Columns split by Sum and Average over _time</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Columns-split-by-Sum-and-Average-over-time/m-p/183973#M11381</link>
      <description>&lt;P&gt;This worked exactly like I needed! Here is what I ended up with:&lt;/P&gt;

&lt;P&gt;index=&lt;EM&gt;audit host=search-* earliest=-90d latest=-1d |search search_id=scheduler&lt;/EM&gt;* | timechart dc(search_id) AS SchedSearches span=1d| appendcols [search index=&lt;EM&gt;audit host=search-* earliest=-90d latest=-1d  search_id=scheduler&lt;/EM&gt;* user=*  | bucket _time span=1d |stats count by _time, user |timechart avg(count) as "AVG Search Head Usage"]&lt;/P&gt;

&lt;P&gt;Do you know how I could ask to forget any users who did not have more than 5 searches that day? I tried adding in &lt;/P&gt;

&lt;P&gt;|stats count by user&lt;BR /&gt;
|search count &amp;gt; 5&lt;/P&gt;

&lt;P&gt;but thats yielded no results.&lt;/P&gt;

&lt;P&gt;Cheers!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:46:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Columns-split-by-Sum-and-Average-over-time/m-p/183973#M11381</guid>
      <dc:creator>glancaster</dc:creator>
      <dc:date>2020-09-28T16:46:08Z</dc:date>
    </item>
  </channel>
</rss>

