<?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: log file size in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/log-file-size/m-p/393046#M70210</link>
    <description>&lt;P&gt;Hello @premranjithj,&lt;/P&gt;

&lt;P&gt;I use the following search to list the top sources by size:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal source="*license_usage.log" type=usage
| eval KB= b/1024| chart sum(KB) as sum_KB by s | eval sum_KB=round(sum_KB,0) | sort - sum_KB
| head 10
| rename s as source
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Set the time picker accordingly, e.g. Last 24 hours.&lt;/P&gt;

&lt;P&gt;if you want those two specific sources then use:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal source="*license_usage.log" type=usage (s="xx1.log" OR s="xx2.log")
| eval KB= b/1024| chart sum(KB) as sum_KB by s | eval sum_KB=round(sum_KB,0)
| rename s as source
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 08 Apr 2019 13:58:43 GMT</pubDate>
    <dc:creator>whrg</dc:creator>
    <dc:date>2019-04-08T13:58:43Z</dc:date>
    <item>
      <title>log file size</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/log-file-size/m-p/393045#M70209</link>
      <description>&lt;P&gt;How to calculate file size size which is indexed in splunk.&lt;/P&gt;

&lt;P&gt;For example&lt;BR /&gt;
xx1.log&lt;BR /&gt;
xx2.log&lt;BR /&gt;
two files indexed at splunk and i want to calculate the size of the source after index.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Apr 2019 13:36:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/log-file-size/m-p/393045#M70209</guid>
      <dc:creator>DataOrg</dc:creator>
      <dc:date>2019-04-08T13:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: log file size</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/log-file-size/m-p/393046#M70210</link>
      <description>&lt;P&gt;Hello @premranjithj,&lt;/P&gt;

&lt;P&gt;I use the following search to list the top sources by size:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal source="*license_usage.log" type=usage
| eval KB= b/1024| chart sum(KB) as sum_KB by s | eval sum_KB=round(sum_KB,0) | sort - sum_KB
| head 10
| rename s as source
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Set the time picker accordingly, e.g. Last 24 hours.&lt;/P&gt;

&lt;P&gt;if you want those two specific sources then use:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal source="*license_usage.log" type=usage (s="xx1.log" OR s="xx2.log")
| eval KB= b/1024| chart sum(KB) as sum_KB by s | eval sum_KB=round(sum_KB,0)
| rename s as source
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Apr 2019 13:58:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/log-file-size/m-p/393046#M70210</guid>
      <dc:creator>whrg</dc:creator>
      <dc:date>2019-04-08T13:58:43Z</dc:date>
    </item>
  </channel>
</rss>

