<?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: Determine frequency over time in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Determine-frequency-over-time/m-p/520215#M146486</link>
    <description>&lt;LI-CODE lang="markup"&gt;index=mydata
| addinfo | eval timepickerSpanWeeks=round(((info_max_time - info_min_time)/60/60/24/7),0)
| where ishotfix= "false"
| eventstats count(timepickerSpanWeeks) as counter
| eval rate = round(counter / timepickerSpanWeeks,2)
| top rate
| fields rate&lt;/LI-CODE&gt;&lt;P&gt;This is what got me the result, it seems like a poor way of getting it but the number of results isn't large.&amp;nbsp; Happy for someone to revise! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp; Thanks for your help &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Sep 2020 21:30:20 GMT</pubDate>
    <dc:creator>chrisj</dc:creator>
    <dc:date>2020-09-17T21:30:20Z</dc:date>
    <item>
      <title>Determine frequency over time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Determine-frequency-over-time/m-p/520044#M146434</link>
      <description>&lt;P&gt;I am attempting to work out the frequency of events over the selected timespan in weeks.&amp;nbsp; Basically: count of events in current timespan divided by weeks in timespan.&lt;/P&gt;&lt;P&gt;I can get a count of events for the selected timespan using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=mydata
| stats count(eval(ishotfix= "false")) as hfx
| fields hfx&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can get the timepicker span weeks using (im sure this is terrible):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| addinfo
| eval timepickerSpanWeeks=round(((info_max_time - info_min_time)/60/60/24/7),0)
| fields timepickerSpanWeeks&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and if I combine I am getting no results&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| addinfo
| eval timepickerSpanWeeks=round(((info_max_time - info_min_time)/60/60/24/7),0)
| map search="search index=mydata"
| stats count(eval(ishotfix= "false")) as hfx
| eval rate=round((hfx/timepickerSpanWeeks), 2)
| fields rate&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 03:53:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Determine-frequency-over-time/m-p/520044#M146434</guid>
      <dc:creator>chrisj</dc:creator>
      <dc:date>2020-09-17T03:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: Determine frequency over time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Determine-frequency-over-time/m-p/520061#M146438</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index=mydata
| addinfo
| eval timepickerSpanWeeks=round(((info_max_time - info_min_time)/60/60/24/7),0)
| stats count(eval(ishotfix= "false")) as hfx
| eval rate=round((hfx/timepickerSpanWeeks), 2)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 17 Sep 2020 07:25:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Determine-frequency-over-time/m-p/520061#M146438</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-09-17T07:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Determine frequency over time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Determine-frequency-over-time/m-p/520215#M146486</link>
      <description>&lt;LI-CODE lang="markup"&gt;index=mydata
| addinfo | eval timepickerSpanWeeks=round(((info_max_time - info_min_time)/60/60/24/7),0)
| where ishotfix= "false"
| eventstats count(timepickerSpanWeeks) as counter
| eval rate = round(counter / timepickerSpanWeeks,2)
| top rate
| fields rate&lt;/LI-CODE&gt;&lt;P&gt;This is what got me the result, it seems like a poor way of getting it but the number of results isn't large.&amp;nbsp; Happy for someone to revise! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp; Thanks for your help &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2020 21:30:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Determine-frequency-over-time/m-p/520215#M146486</guid>
      <dc:creator>chrisj</dc:creator>
      <dc:date>2020-09-17T21:30:20Z</dc:date>
    </item>
  </channel>
</rss>

