<?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 Bytes Ingested by host/source Over a Specified Time? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-Bytes-Ingested-by-host-source-Over-a-Specified-Time/m-p/610149#M105734</link>
    <description>&lt;P&gt;Does anyone know of a way to get bytes ingested by host and source over a specified time? I know I can use the license_usage.log to get index and sourcetype like&amp;nbsp; this ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index="_internal" source="/opt/splunk/var/log/splunk/license_usage.log" sourcetype="splunkd" type="Usage"
| stats sum(b) as bytes by idx
| rename idx as index
| sort - bytes&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or this ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index="_internal" source="/opt/splunk/var/log/splunk/license_usage.log" sourcetype="splunkd" type="Usage"
| stats sum(b) as bytes by st
| rename st as sourcetype
| sort - bytes&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, you cannot use it reliably for host and source because it squashes the data to prevent too many events. I know that can be tuned in server.conf with &lt;SPAN&gt;squash_threshold&amp;nbsp;&lt;/SPAN&gt;but that would be an arbitrary value that could potentially need to keep changing and honestly it's set that way to not overload the system. So, I'm left wondering if anyone knows of a way to get that data without using license_usage.log.&lt;/P&gt;</description>
    <pubDate>Fri, 19 Aug 2022 16:54:23 GMT</pubDate>
    <dc:creator>fredclown</dc:creator>
    <dc:date>2022-08-19T16:54:23Z</dc:date>
    <item>
      <title>How to get Bytes Ingested by host/source Over a Specified Time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-Bytes-Ingested-by-host-source-Over-a-Specified-Time/m-p/610149#M105734</link>
      <description>&lt;P&gt;Does anyone know of a way to get bytes ingested by host and source over a specified time? I know I can use the license_usage.log to get index and sourcetype like&amp;nbsp; this ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index="_internal" source="/opt/splunk/var/log/splunk/license_usage.log" sourcetype="splunkd" type="Usage"
| stats sum(b) as bytes by idx
| rename idx as index
| sort - bytes&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or this ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index="_internal" source="/opt/splunk/var/log/splunk/license_usage.log" sourcetype="splunkd" type="Usage"
| stats sum(b) as bytes by st
| rename st as sourcetype
| sort - bytes&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, you cannot use it reliably for host and source because it squashes the data to prevent too many events. I know that can be tuned in server.conf with &lt;SPAN&gt;squash_threshold&amp;nbsp;&lt;/SPAN&gt;but that would be an arbitrary value that could potentially need to keep changing and honestly it's set that way to not overload the system. So, I'm left wondering if anyone knows of a way to get that data without using license_usage.log.&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2022 16:54:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-Bytes-Ingested-by-host-source-Over-a-Specified-Time/m-p/610149#M105734</guid>
      <dc:creator>fredclown</dc:creator>
      <dc:date>2022-08-19T16:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Bytes Ingested by host/source Over a Specified Time?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-get-Bytes-Ingested-by-host-source-Over-a-Specified-Time/m-p/610178#M105737</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;I afraid that the only way is just sum up to all length of _raw by those events. See.&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Installation/How-does-Splunk-calculate-license-usage-splunk-license-internal/m-p/418334" target="_blank"&gt;https://community.splunk.com/t5/Installation/How-does-Splunk-calculate-license-usage-splunk-license-internal/m-p/418334&lt;/A&gt;&lt;BR /&gt;r. Ismo&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Aug 2022 20:10:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-get-Bytes-Ingested-by-host-source-Over-a-Specified-Time/m-p/610178#M105737</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2022-08-19T20:10:53Z</dc:date>
    </item>
  </channel>
</rss>

