<?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 to determine disk utilization of a source? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-determine-disk-utilization-of-a-source/m-p/338211#M62444</link>
    <description>&lt;P&gt;Anyone knows how to identify the average disk space utilization by data source.&lt;/P&gt;</description>
    <pubDate>Mon, 06 Mar 2017 22:54:06 GMT</pubDate>
    <dc:creator>wasupchris</dc:creator>
    <dc:date>2017-03-06T22:54:06Z</dc:date>
    <item>
      <title>How to determine disk utilization of a source?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-determine-disk-utilization-of-a-source/m-p/338210#M62443</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
Is there a way to determine how much disk space a source is using? &lt;/P&gt;

&lt;P&gt;here is my index, source and sourcetype:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=network source="/opt/syslog-ng/log/hsm*.log" sourcetype=hsm:file 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Best Regards,&lt;BR /&gt;
Chris&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2017 21:10:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-determine-disk-utilization-of-a-source/m-p/338210#M62443</guid>
      <dc:creator>wasupchris</dc:creator>
      <dc:date>2017-03-06T21:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine disk utilization of a source?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-determine-disk-utilization-of-a-source/m-p/338211#M62444</link>
      <description>&lt;P&gt;Anyone knows how to identify the average disk space utilization by data source.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2017 22:54:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-determine-disk-utilization-of-a-source/m-p/338211#M62444</guid>
      <dc:creator>wasupchris</dc:creator>
      <dc:date>2017-03-06T22:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine disk utilization of a source?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-determine-disk-utilization-of-a-source/m-p/338212#M62445</link>
      <description>&lt;P&gt;@wasupchris - If you want to try to get some immediate help for your question, you should join the 1300+ Splunk users in our public Slack chat. People ask each other for immediate help on there daily. You can share your question/link to your post there to see if anyone can take a stab at it.&lt;/P&gt;

&lt;P&gt;You first have to request access through &lt;A href="http://www.splunk402.com/chat"&gt;www.splunk402.com/chat&lt;/A&gt;. Fill out the form, and once you receive the approval email from our Community Manager (usually the approval process takes a couple days), you can access Slack.com and ask for help in the #general channel or the #n00bs channel (if you're brand new to Splunk).&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2017 22:58:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-determine-disk-utilization-of-a-source/m-p/338212#M62445</guid>
      <dc:creator>aaraneta_splunk</dc:creator>
      <dc:date>2017-03-06T22:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine disk utilization of a source?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-determine-disk-utilization-of-a-source/m-p/338213#M62446</link>
      <description>&lt;P&gt;The  is not real good way of doing this but you can make some assumptions. You can assume that every character in _raw is one byte (some unicode characters are four bytes).  You then pick a time period you want to sample.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=network source="/opt/syslog-ng/log/hsm*.log" sourcetype=hsm:file earliest=-8h@h | eval length=len(_raw) | stats avg(length) as bytesPerMessage
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I don't know the size of your message but lets say every message on average 481 bytes.  Now that you've done that you can use tstats find the count of those messages per day.  Then we can use some eval statements with Math.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|tstats count WHERE index=network source="/opt/syslog-ng/log/hsm*.log" sourcetype=hsm:file by _time span=1d | eval bytesPerDay=(481*count) | eval MB=(bytesPerDay/1024/1024)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will get you close be is only an approximation.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Mar 2017 23:37:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-determine-disk-utilization-of-a-source/m-p/338213#M62446</guid>
      <dc:creator>bmacias84</dc:creator>
      <dc:date>2017-03-06T23:37:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine disk utilization of a source?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-determine-disk-utilization-of-a-source/m-p/338214#M62447</link>
      <description>&lt;P&gt;Thank you very much, bmacias84&lt;/P&gt;</description>
      <pubDate>Tue, 07 Mar 2017 00:04:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-determine-disk-utilization-of-a-source/m-p/338214#M62447</guid>
      <dc:creator>wasupchris</dc:creator>
      <dc:date>2017-03-07T00:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to determine disk utilization of a source?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-determine-disk-utilization-of-a-source/m-p/338215#M62448</link>
      <description>&lt;P&gt;@wasupchris - Did the answer provided by bmacias84 help provide a working solution to your question? If yes, please don't forget to resolve this post by clicking "Accept". If no, please leave a comment with more feedback. Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2017 23:07:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-determine-disk-utilization-of-a-source/m-p/338215#M62448</guid>
      <dc:creator>aaraneta_splunk</dc:creator>
      <dc:date>2017-03-09T23:07:40Z</dc:date>
    </item>
  </channel>
</rss>

