<?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 Data frequency for all index and sourcetype. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Data-frequency-for-all-index-and-sourcetype/m-p/545669#M154615</link>
    <description>&lt;P&gt;Hi All,&amp;nbsp; I was looking for a query which can look for the previous one month data, calculate frequency of data being coming to indexer and sourcetype (data is not real time and for eg. say we are getting data into index and sourcetype after . 5 hours or so) and return average (as frequency will differ every time say sometime 5 hours or sometimes 4 hours). For example. Indexer A and sourcetype B are receiving data every 5 hour on an average within a day. Can somebody please help in this regards? Thanks.&lt;/P&gt;</description>
    <pubDate>Fri, 26 Mar 2021 23:42:42 GMT</pubDate>
    <dc:creator>arjit</dc:creator>
    <dc:date>2021-03-26T23:42:42Z</dc:date>
    <item>
      <title>Data frequency for all index and sourcetype.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Data-frequency-for-all-index-and-sourcetype/m-p/545669#M154615</link>
      <description>&lt;P&gt;Hi All,&amp;nbsp; I was looking for a query which can look for the previous one month data, calculate frequency of data being coming to indexer and sourcetype (data is not real time and for eg. say we are getting data into index and sourcetype after . 5 hours or so) and return average (as frequency will differ every time say sometime 5 hours or sometimes 4 hours). For example. Indexer A and sourcetype B are receiving data every 5 hour on an average within a day. Can somebody please help in this regards? Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 23:42:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Data-frequency-for-all-index-and-sourcetype/m-p/545669#M154615</guid>
      <dc:creator>arjit</dc:creator>
      <dc:date>2021-03-26T23:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: Data frequency for all index and sourcetype.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Data-frequency-for-all-index-and-sourcetype/m-p/545729#M154655</link>
      <description>&lt;P&gt;The monitoring console provides examples for working with license usage data (Indexing &amp;gt; License Usage &amp;gt; Historic License Usage). You can adapt those searches to your needs.&lt;/P&gt;&lt;P&gt;The average interarrival time is just the inverse of the arrival rate, so we can use e.g. the sum of the bytes indexed every 24 hours to find the average time in hours between bytes. Adapted from the monitoring console:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;index=_internal source=*license_usage.log* type=Usage earliest=-1mon@mon latest=@mon
| eval h=if(((len(h) == 0) OR isnull(h)),"(SQUASHED)",h) 
| eval s=if(((len(s) == 0) OR isnull(s)),"(SQUASHED)",s) 
| eval idx=if(((len(idx) == 0) OR isnull(idx)),"(UNKNOWN)",idx) 
| bin _time span=1d 
| stats sum(b) as b by _time st idx
| stats avg(eval(1/(b/24))) as avg_interarrival_time_in_hours by _time idx st&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Mar 2021 00:32:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Data-frequency-for-all-index-and-sourcetype/m-p/545729#M154655</guid>
      <dc:creator>tscroggins</dc:creator>
      <dc:date>2021-03-28T00:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: Data frequency for all index and sourcetype.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Data-frequency-for-all-index-and-sourcetype/m-p/545730#M154656</link>
      <description>&lt;P&gt;Thanks &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/49493"&gt;@tscroggins&lt;/a&gt;&amp;nbsp;! I will look into them...&lt;/P&gt;</description>
      <pubDate>Sun, 28 Mar 2021 00:49:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Data-frequency-for-all-index-and-sourcetype/m-p/545730#M154656</guid>
      <dc:creator>arjit</dc:creator>
      <dc:date>2021-03-28T00:49:55Z</dc:date>
    </item>
  </channel>
</rss>

