<?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: I need a query that shows how much data is being logged into Splunk by each hosts in every hour in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/I-need-a-query-that-shows-how-much-data-is-being-logged-into/m-p/357553#M65283</link>
    <description>&lt;P&gt;Give this a try (to be run from License server. You can also use Search Head if your forward internal data from License master to your indexers)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal sourcetype=splunkd component=LicenseUsage type=Usage 
| bucket span=1h _time 
| stats sum(b) as usage by _time h | rename h as host
| eval usageGB=round(usage/1024/1024/1024,3)
| table _time host usageGB
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 16 Mar 2018 21:04:49 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2018-03-16T21:04:49Z</dc:date>
    <item>
      <title>I need a query that shows how much data is being logged into Splunk by each hosts in every hour</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/I-need-a-query-that-shows-how-much-data-is-being-logged-into/m-p/357552#M65282</link>
      <description>&lt;P&gt;The reason i need this query is, last month and few days ago we passed our license usage because one server alone generated over 1.3 tb of data by error in one day.  If i get some kind of alert or notification that this server is generating this much data, we could have stopped it or figured out the problem.   if i can get a query which generate an alert if an host generate unusual amount data within an hour or 2 , that would be helpful&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2018 20:56:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/I-need-a-query-that-shows-how-much-data-is-being-logged-into/m-p/357552#M65282</guid>
      <dc:creator>loureni1</dc:creator>
      <dc:date>2018-03-16T20:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: I need a query that shows how much data is being logged into Splunk by each hosts in every hour</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/I-need-a-query-that-shows-how-much-data-is-being-logged-into/m-p/357553#M65283</link>
      <description>&lt;P&gt;Give this a try (to be run from License server. You can also use Search Head if your forward internal data from License master to your indexers)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal sourcetype=splunkd component=LicenseUsage type=Usage 
| bucket span=1h _time 
| stats sum(b) as usage by _time h | rename h as host
| eval usageGB=round(usage/1024/1024/1024,3)
| table _time host usageGB
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 16 Mar 2018 21:04:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/I-need-a-query-that-shows-how-much-data-is-being-logged-into/m-p/357553#M65283</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-03-16T21:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: I need a query that shows how much data is being logged into Splunk by each hosts in every hour</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/I-need-a-query-that-shows-how-much-data-is-being-logged-into/m-p/357554#M65284</link>
      <description>&lt;P&gt;This should get you started. &lt;/P&gt;

&lt;P&gt;index=_internal source=*license_usage.log type=Usage &lt;BR /&gt;
 | stats sum(b) as bytes by h &lt;BR /&gt;
 | eval MB = round(bytes/1024/1024,1)&lt;BR /&gt;
 | fields h MB&lt;BR /&gt;
 | rename h as host&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 18:31:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/I-need-a-query-that-shows-how-much-data-is-being-logged-into/m-p/357554#M65284</guid>
      <dc:creator>damiensurat</dc:creator>
      <dc:date>2020-09-29T18:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: I need a query that shows how much data is being logged into Splunk by each hosts in every hour</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/I-need-a-query-that-shows-how-much-data-is-being-logged-into/m-p/357555#M65285</link>
      <description>&lt;P&gt;Thank you for this query. yes it gives the hourly usage of data by each host.  I am still figuring out  about the query   of which shows from each server how much data is being generated every hour  and it should generate the alert when it exceeded&amp;nbsp; certain percentage&lt;BR /&gt;
 For example: if host ABCD is sending Splunk 10GB of data 1st hour, 2nd hour it send  15GB and  and in 3rd hour if it send 50GB  that is a big spike in  data and when this kind of spike occurs I want to be alerted .&lt;/P&gt;</description>
      <pubDate>Sun, 18 Mar 2018 17:55:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/I-need-a-query-that-shows-how-much-data-is-being-logged-into/m-p/357555#M65285</guid>
      <dc:creator>loureni1</dc:creator>
      <dc:date>2018-03-18T17:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: I need a query that shows how much data is being logged into Splunk by each hosts in every hour</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/I-need-a-query-that-shows-how-much-data-is-being-logged-into/m-p/357556#M65286</link>
      <description>&lt;P&gt;thanks Surat &lt;/P&gt;</description>
      <pubDate>Sun, 18 Mar 2018 17:57:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/I-need-a-query-that-shows-how-much-data-is-being-logged-into/m-p/357556#M65286</guid>
      <dc:creator>loureni1</dc:creator>
      <dc:date>2018-03-18T17:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: I need a query that shows how much data is being logged into Splunk by each hosts in every hour</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/I-need-a-query-that-shows-how-much-data-is-being-logged-into/m-p/357557#M65287</link>
      <description>&lt;P&gt;You can easily enhance the above answer to make it an alert.  I'd probably just add a where clause and some threshold.  In the alert configuration, just alert if the query returns more than 0 rows, which I think is the default.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal sourcetype=splunkd component=LicenseUsage type=Usage 
| bucket span=1h _time 
| stats sum(b) as usage by _time h | rename h as host
| eval usageGB=round(usage/1024/1024/1024,3)
| table _time host usageGB
| where usageGB &amp;gt;= 20
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can set your alert to run hourly and check the last hour.  This will only return a row if a host is using 20 or more GB an hour.  If this query does return a row, the alert will fire.&lt;/P&gt;

&lt;P&gt;If you really do need the alert to only detect spikes and not a fixed threshold, that is very doable but you probably want to create a separate question for that.  I think your original question was answered.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Mar 2018 03:03:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/I-need-a-query-that-shows-how-much-data-is-being-logged-into/m-p/357557#M65287</guid>
      <dc:creator>FeatureCreeep</dc:creator>
      <dc:date>2018-03-19T03:03:21Z</dc:date>
    </item>
    <item>
      <title>Re: I need a query that shows how much data is being logged into Splunk by each hosts in every hour</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/I-need-a-query-that-shows-how-much-data-is-being-logged-into/m-p/357558#M65288</link>
      <description>&lt;P&gt;@loureni1 check out the &lt;A href="https://splunkbase.splunk.com/app/2949/#/details"&gt;Meta Woot!&lt;/A&gt; app from Splunkbase which can do this and much more &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Mar 2018 03:20:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/I-need-a-query-that-shows-how-much-data-is-being-logged-into/m-p/357558#M65288</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-03-19T03:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: I need a query that shows how much data is being logged into Splunk by each hosts in every hour</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/I-need-a-query-that-shows-how-much-data-is-being-logged-into/m-p/357559#M65289</link>
      <description>&lt;P&gt;Thank you ...this is very  helpful. I was actualy looking for an Alert&lt;/P&gt;</description>
      <pubDate>Mon, 19 Mar 2018 03:23:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/I-need-a-query-that-shows-how-much-data-is-being-logged-into/m-p/357559#M65289</guid>
      <dc:creator>loureni1</dc:creator>
      <dc:date>2018-03-19T03:23:45Z</dc:date>
    </item>
  </channel>
</rss>

