<?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 len(_raw) vs |dbinspect rawSize in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/len-raw-vs-dbinspect-rawSize/m-p/408033#M94490</link>
    <description>&lt;P&gt;I use a simple query to determine the amount of data I've sent to splunk:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=x
|eval esize=len(_raw)
|timechart sum(esize) span=1h
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is pretty expensive when ran over long timeranges. I also tried this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|dbinspect index=x
|eval date=strftime(startEpoch,"%F")
|chart sum(rawSize) over date
|rename sum(*) -&amp;gt; *
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The results are different, dbinspect reporting lower values than len(_raw). &lt;/P&gt;

&lt;P&gt;Any ideas on a cheap way to get the right results?&lt;/P&gt;</description>
    <pubDate>Fri, 29 Jun 2018 12:20:27 GMT</pubDate>
    <dc:creator>Hoekb03</dc:creator>
    <dc:date>2018-06-29T12:20:27Z</dc:date>
    <item>
      <title>len(_raw) vs |dbinspect rawSize</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/len-raw-vs-dbinspect-rawSize/m-p/408033#M94490</link>
      <description>&lt;P&gt;I use a simple query to determine the amount of data I've sent to splunk:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=x
|eval esize=len(_raw)
|timechart sum(esize) span=1h
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This is pretty expensive when ran over long timeranges. I also tried this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|dbinspect index=x
|eval date=strftime(startEpoch,"%F")
|chart sum(rawSize) over date
|rename sum(*) -&amp;gt; *
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The results are different, dbinspect reporting lower values than len(_raw). &lt;/P&gt;

&lt;P&gt;Any ideas on a cheap way to get the right results?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jun 2018 12:20:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/len-raw-vs-dbinspect-rawSize/m-p/408033#M94490</guid>
      <dc:creator>Hoekb03</dc:creator>
      <dc:date>2018-06-29T12:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: len(_raw) vs |dbinspect rawSize</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/len-raw-vs-dbinspect-rawSize/m-p/408034#M94491</link>
      <description>&lt;P&gt;I usually get that sort of info from the license usage events in _internal.&lt;/P&gt;

&lt;P&gt;Eg: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="_internal" source="*license_usage.log" type=Usage 
| bin _time span=1d 
| stats sum(b) AS bytes by _time,idx 
| eval DailyGB=bytes/1024/1024/1024 
| timechart sum(DailyGB) by idx span=1d
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 29 Jun 2018 14:19:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/len-raw-vs-dbinspect-rawSize/m-p/408034#M94491</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2018-06-29T14:19:30Z</dc:date>
    </item>
  </channel>
</rss>

