<?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 get an average per day in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-an-average-per-day/m-p/523492#M147626</link>
    <description>&lt;P&gt;I am trying to get an average for the last (x) days for a that specific day and hour.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This search lists a count for the current day. I am trying to achieve an average for a specific field for the last 5 Mondays or Tuesdays or Wednesday..etc.&amp;nbsp; So if today was Monday, the first value, AL-A at 00, would be the average of the past (x) Mondays at 00 for AL-A.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;index=net_auth_long&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| eval time_hour=strftime(_time,"%H")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| chart count over channel by time_hour limit=30&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="example.PNG" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/11188i6D9F27B9E8E537DB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="example.PNG" alt="example.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
    <pubDate>Wed, 07 Oct 2020 17:26:14 GMT</pubDate>
    <dc:creator>tefa627</dc:creator>
    <dc:date>2020-10-07T17:26:14Z</dc:date>
    <item>
      <title>How to get an average per day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-an-average-per-day/m-p/523492#M147626</link>
      <description>&lt;P&gt;I am trying to get an average for the last (x) days for a that specific day and hour.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This search lists a count for the current day. I am trying to achieve an average for a specific field for the last 5 Mondays or Tuesdays or Wednesday..etc.&amp;nbsp; So if today was Monday, the first value, AL-A at 00, would be the average of the past (x) Mondays at 00 for AL-A.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;index=net_auth_long&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| eval time_hour=strftime(_time,"%H")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| chart count over channel by time_hour limit=30&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="example.PNG" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/11188i6D9F27B9E8E537DB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="example.PNG" alt="example.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 07 Oct 2020 17:26:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-an-average-per-day/m-p/523492#M147626</guid>
      <dc:creator>tefa627</dc:creator>
      <dc:date>2020-10-07T17:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to get an average per day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-an-average-per-day/m-p/523507#M147632</link>
      <description>&lt;P&gt;See if this helps.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=_internal earliest=-5w@d
| eval today=lower(strftime(now(),"%a"))
| eval dow=lower(strftime(_time, "%a"))
| where today=dow
| timechart span=1w avg(specifiField) by channel&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 07 Oct 2020 18:35:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-an-average-per-day/m-p/523507#M147632</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-10-07T18:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to get an average per day</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-get-an-average-per-day/m-p/528029#M149063</link>
      <description>&lt;P&gt;What goes in specific field? I need it to be count by haven't use a count command.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 21:38:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-get-an-average-per-day/m-p/528029#M149063</guid>
      <dc:creator>tefa627</dc:creator>
      <dc:date>2020-11-04T21:38:52Z</dc:date>
    </item>
  </channel>
</rss>

