<?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: How do you calculate the size of indexed data as per source type? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-calculate-the-size-of-indexed-data-as-per-source-type/m-p/441656#M77005</link>
    <description>&lt;P&gt;@rakesh44  Please accept the answer if it worked .&lt;/P&gt;</description>
    <pubDate>Tue, 05 Feb 2019 12:27:13 GMT</pubDate>
    <dc:creator>Vijeta</dc:creator>
    <dc:date>2019-02-05T12:27:13Z</dc:date>
    <item>
      <title>How do you calculate the size of indexed data as per source type?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-calculate-the-size-of-indexed-data-as-per-source-type/m-p/441638#M76987</link>
      <description>&lt;P&gt;Hi friends,&lt;/P&gt;

&lt;P&gt;I have two different source types, each with the same Index...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| dbinspect index=myindex | eval GB=sizeOnDiskMB/1024 | stat sum(GB)     
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;( It is giving over all indexed size )&lt;/P&gt;

&lt;P&gt;...but, I am looking size as per source type , have type and payabal source type. I don't have a monitoring console.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 10:15:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-calculate-the-size-of-indexed-data-as-per-source-type/m-p/441638#M76987</guid>
      <dc:creator>rakesh44</dc:creator>
      <dc:date>2019-02-01T10:15:46Z</dc:date>
    </item>
    <item>
      <title>Re: How do you calculate the size of indexed data as per source type?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-calculate-the-size-of-indexed-data-as-per-source-type/m-p/441639#M76988</link>
      <description>&lt;P&gt;Hello @rakesh44&lt;/P&gt;

&lt;P&gt;try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal source=*license_usage.log*  type=Usage pool=*  | eval GB=b/1024/1024/1024 | stats sum(GB) by st
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 Feb 2019 10:27:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-calculate-the-size-of-indexed-data-as-per-source-type/m-p/441639#M76988</guid>
      <dc:creator>vishaltaneja070</dc:creator>
      <dc:date>2019-02-01T10:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: How do you calculate the size of indexed data as per source type?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-calculate-the-size-of-indexed-data-as-per-source-type/m-p/441640#M76989</link>
      <description>&lt;P&gt;Hi &lt;BR /&gt;
can you try this : &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal 
    [ `set_local_host`] source=*license_usage.log* type="Usage" 
| 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, pool, s, st, h, idx 
| timechart span=1d sum(b) AS volumeB by st fixedrange=false 
| join type=outer _time 
    [ search index=_internal 
        [ `set_local_host`] source=*license_usage.log* type="RolloverSummary" earliest=-30d@d 
    | eval _time=_time - 43200 
    | bin _time span=1d 
    | stats latest(stacksz) AS "stack size" by _time] 
| fields - _timediff 
| foreach * 
    [ eval &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;=round('&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;'/1024/1024/1024, 3)]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You can find the same on license master :&lt;/P&gt;

&lt;P&gt;go to &lt;CODE&gt;Licensing &amp;gt; Usage Report &amp;gt; Previous 30 days &amp;gt; Split by Sourcetype&lt;/CODE&gt; &lt;/P&gt;

&lt;P&gt;let me know if this helps!&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 10:43:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-calculate-the-size-of-indexed-data-as-per-source-type/m-p/441640#M76989</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2019-02-01T10:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: How do you calculate the size of indexed data as per source type?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-calculate-the-size-of-indexed-data-as-per-source-type/m-p/441641#M76990</link>
      <description>&lt;P&gt;am sorry not able to run above command, but i tried one thing, correct me is this correct&lt;/P&gt;

&lt;P&gt;index=myindex sourcetype=type   ( then i checked in activity tab , under job section and find no of  events, size , is size is Indexed size ?) Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 10:48:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-calculate-the-size-of-indexed-data-as-per-source-type/m-p/441641#M76990</guid>
      <dc:creator>rakesh44</dc:creator>
      <dc:date>2019-02-01T10:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do you calculate the size of indexed data as per source type?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-calculate-the-size-of-indexed-data-as-per-source-type/m-p/441642#M76991</link>
      <description>&lt;P&gt;@rakesh44&lt;/P&gt;

&lt;P&gt;No i think that is event size on disk no the licensed size.&lt;/P&gt;

&lt;P&gt;What is the error you are getting while running this command?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 10:56:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-calculate-the-size-of-indexed-data-as-per-source-type/m-p/441642#M76991</guid>
      <dc:creator>vishaltaneja070</dc:creator>
      <dc:date>2019-02-01T10:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: How do you calculate the size of indexed data as per source type?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-calculate-the-size-of-indexed-data-as-per-source-type/m-p/441643#M76992</link>
      <description>&lt;P&gt;no error no result found&lt;/P&gt;

&lt;P&gt;index=_internal source=&lt;EM&gt;license_usage.log&lt;/EM&gt;  type=Usage pool=*  | eval GB=b/1024/1024/1024 | stats sum(GB) by st&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:03:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-calculate-the-size-of-indexed-data-as-per-source-type/m-p/441643#M76992</guid>
      <dc:creator>rakesh44</dc:creator>
      <dc:date>2020-09-29T23:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: How do you calculate the size of indexed data as per source type?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-calculate-the-size-of-indexed-data-as-per-source-type/m-p/441644#M76993</link>
      <description>&lt;P&gt;Thanks for quick reply, I tried above command but did not work. I dot have monitoring console.Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 11:05:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-calculate-the-size-of-indexed-data-as-per-source-type/m-p/441644#M76993</guid>
      <dc:creator>rakesh44</dc:creator>
      <dc:date>2019-02-01T11:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: How do you calculate the size of indexed data as per source type?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-calculate-the-size-of-indexed-data-as-per-source-type/m-p/441645#M76994</link>
      <description>&lt;P&gt;NOTE: You need to run this query on the license master if you have not forwarded internal logs to indexer.&lt;BR /&gt;
are you running it on license master?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 11:05:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-calculate-the-size-of-indexed-data-as-per-source-type/m-p/441645#M76994</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2019-02-01T11:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: How do you calculate the size of indexed data as per source type?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-calculate-the-size-of-indexed-data-as-per-source-type/m-p/441646#M76995</link>
      <description>&lt;P&gt;You can either run this search on License master or on SH if you have forwarded the _internal logs to Indexer layer. &lt;/P&gt;

&lt;P&gt;As you need details with sourcetype, so metrices.log will also not help you.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 11:14:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-calculate-the-size-of-indexed-data-as-per-source-type/m-p/441646#M76995</guid>
      <dc:creator>vishaltaneja070</dc:creator>
      <dc:date>2019-02-01T11:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: How do you calculate the size of indexed data as per source type?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-calculate-the-size-of-indexed-data-as-per-source-type/m-p/441647#M76996</link>
      <description>&lt;P&gt;@rakesh44 you probably don't have the permissions to search on _internal index that is why seeing no results.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 15:21:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-calculate-the-size-of-indexed-data-as-per-source-type/m-p/441647#M76996</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2019-02-01T15:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: How do you calculate the size of indexed data as per source type?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-calculate-the-size-of-indexed-data-as-per-source-type/m-p/441648#M76997</link>
      <description>&lt;P&gt;If my Index name is MyIndex and have source type is Payable ten below is command.&lt;/P&gt;

&lt;P&gt;index=MyIndex  source=license_usage.log type=Usage pool=* | eval GB=b/1024/1024/1024 | stats sum(GB) by Payable&lt;/P&gt;

&lt;P&gt;Can you confirm above command is correct.Thanks&lt;/P&gt;</description>
      <pubDate>Sun, 03 Feb 2019 13:44:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-calculate-the-size-of-indexed-data-as-per-source-type/m-p/441648#M76997</guid>
      <dc:creator>rakesh44</dc:creator>
      <dc:date>2019-02-03T13:44:49Z</dc:date>
    </item>
    <item>
      <title>Re: How do you calculate the size of indexed data as per source type?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-calculate-the-size-of-indexed-data-as-per-source-type/m-p/441649#M76998</link>
      <description>&lt;P&gt;@rakesh44 - you cannot find the usage data by searching on index=myindex, the index _internal stores the usage for each index and sourcetype. You can use below search , given that your role has permission to search on _internal index, if this search doesn't work for you ask someone with admin role to run it.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal source=*license_usage.log*  type=Usage idx=&amp;lt;yourindexname&amp;gt; | eval GB=b/1024/1024/1024 | stats sum(GB) by st
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 04 Feb 2019 00:00:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-calculate-the-size-of-indexed-data-as-per-source-type/m-p/441649#M76998</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2019-02-04T00:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: How do you calculate the size of indexed data as per source type?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-calculate-the-size-of-indexed-data-as-per-source-type/m-p/441650#M76999</link>
      <description>&lt;P&gt;index=_internal source=&lt;EM&gt;license_usage.log&lt;/EM&gt;  type=Usage idx= | eval GB=b/1024/1024/1024 | stats sum(GB) by st&lt;/P&gt;

&lt;P&gt;when i running above command in local machine getting below error &lt;/P&gt;

&lt;P&gt;Error in 'search' command: Unable to parse the search: Comparator '&amp;gt;' is missing a term on the right hand side.&lt;BR /&gt;
The search job has failed due to an error. You may be able view the job in the Job Inspector.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:08:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-calculate-the-size-of-indexed-data-as-per-source-type/m-p/441650#M76999</guid>
      <dc:creator>rakesh44</dc:creator>
      <dc:date>2020-09-29T23:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: How do you calculate the size of indexed data as per source type?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-calculate-the-size-of-indexed-data-as-per-source-type/m-p/441651#M77000</link>
      <description>&lt;P&gt;Kindly ignore previous comment , tried running below command in local machine which has splunk &lt;/P&gt;

&lt;P&gt;index=_internal source=&lt;EM&gt;license_usage.log&lt;/EM&gt;  type=Usage idx=test | eval GB=b/1024/1024/1024 | stats sum(GB) by st &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:08:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-calculate-the-size-of-indexed-data-as-per-source-type/m-p/441651#M77000</guid>
      <dc:creator>rakesh44</dc:creator>
      <dc:date>2020-09-29T23:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do you calculate the size of indexed data as per source type?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-calculate-the-size-of-indexed-data-as-per-source-type/m-p/441652#M77001</link>
      <description>&lt;P&gt;Hi @rakesh44 you need to write idx = the name of your index , no need to put &amp;lt;&amp;gt; sign &lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2019 03:23:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-calculate-the-size-of-indexed-data-as-per-source-type/m-p/441652#M77001</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2019-02-04T03:23:13Z</dc:date>
    </item>
    <item>
      <title>Re: How do you calculate the size of indexed data as per source type?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-calculate-the-size-of-indexed-data-as-per-source-type/m-p/441653#M77002</link>
      <description>&lt;P&gt;no am not running on license master&lt;/P&gt;</description>
      <pubDate>Mon, 04 Feb 2019 03:49:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-calculate-the-size-of-indexed-data-as-per-source-type/m-p/441653#M77002</guid>
      <dc:creator>rakesh44</dc:creator>
      <dc:date>2019-02-04T03:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: How do you calculate the size of indexed data as per source type?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-calculate-the-size-of-indexed-data-as-per-source-type/m-p/441654#M77003</link>
      <description>&lt;P&gt;index=_internal source=&lt;EM&gt;license_usage.log&lt;/EM&gt;  type=Usage idx= | eval GB=b/1024/1024/1024 | stats sum(GB) by st&lt;/P&gt;

&lt;P&gt;It worked for me Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:09:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-calculate-the-size-of-indexed-data-as-per-source-type/m-p/441654#M77003</guid>
      <dc:creator>rakesh44</dc:creator>
      <dc:date>2020-09-29T23:09:23Z</dc:date>
    </item>
    <item>
      <title>Re: How do you calculate the size of indexed data as per source type?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-calculate-the-size-of-indexed-data-as-per-source-type/m-p/441655#M77004</link>
      <description>&lt;P&gt;Check if this helps:&lt;BR /&gt;
index=_internal| eval size = len(_raw) | stats sum(size) as rawSize by sourcetype | eval mbSize = round(rawSize / 1024 / 1024, 2)&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 23:09:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-calculate-the-size-of-indexed-data-as-per-source-type/m-p/441655#M77004</guid>
      <dc:creator>jvishwak</dc:creator>
      <dc:date>2020-09-29T23:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: How do you calculate the size of indexed data as per source type?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-do-you-calculate-the-size-of-indexed-data-as-per-source-type/m-p/441656#M77005</link>
      <description>&lt;P&gt;@rakesh44  Please accept the answer if it worked .&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 12:27:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-do-you-calculate-the-size-of-indexed-data-as-per-source-type/m-p/441656#M77005</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2019-02-05T12:27:13Z</dc:date>
    </item>
  </channel>
</rss>

