<?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 convert KB to MB? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-convert-KB-to-MB/m-p/427104#M167714</link>
    <description>&lt;P&gt;to convert MB to GB , divide by 1024&lt;BR /&gt;
and I don't think you will require to use &lt;CODE&gt;eventstats&lt;/CODE&gt; command&lt;/P&gt;</description>
    <pubDate>Mon, 27 Aug 2018 09:41:08 GMT</pubDate>
    <dc:creator>493669</dc:creator>
    <dc:date>2018-08-27T09:41:08Z</dc:date>
    <item>
      <title>How to convert KB to MB?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-convert-KB-to-MB/m-p/427100#M167710</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;
I need to convert these 2 counters from KB to MB&lt;BR /&gt;
TotalSpaceKB=486757372&lt;BR /&gt;
FreeSpaceKB=435455092&lt;BR /&gt;
Do I have to divide this by 1024000?&lt;BR /&gt;
thanks&lt;/P&gt;</description>
      <pubDate>Mon, 27 Aug 2018 07:21:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-convert-KB-to-MB/m-p/427100#M167710</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2018-08-27T07:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert KB to MB?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-convert-KB-to-MB/m-p/427101#M167711</link>
      <description>&lt;P&gt;yes to convert KB to MB divide by 1024-&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...| eval TotalSpaceMB=TotalSpaceKB/1024
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and similarly,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...| eval FreeSpaceMB=FreeSpaceKB/1024
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 27 Aug 2018 07:29:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-convert-KB-to-MB/m-p/427101#M167711</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-08-27T07:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert KB to MB?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-convert-KB-to-MB/m-p/427102#M167712</link>
      <description>&lt;P&gt;Ok thanks&lt;BR /&gt;
And if i want to convert the MB in GB i divise by 1000?&lt;BR /&gt;
I have done this, is it ok??&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="perfmon" sourcetype=WinHostMon 
| eval TotalSpace =  TotalSpaceKB/1024
| eval FreeSpace = FreeSpaceKB/1024
| eventstats first(TotalSpace) as TotalSpace,first(FreeSpace) as FreeSpace 
| eval FreeSpace = round(FreeSpace/1000,1)
| eval TotalSpace = round(TotalSpace/1000,1)
| eval FreePerc = round((FreeSpace/TotalSpace)*100,1)
| eval DiskSpace = TotalSpace." GB". " (Total) ". FreeSpace." GB". " (Free) ". FreePerc." %". " (Free %) "
| table host DiskSpace
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 27 Aug 2018 07:55:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-convert-KB-to-MB/m-p/427102#M167712</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2018-08-27T07:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert KB to MB?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-convert-KB-to-MB/m-p/427103#M167713</link>
      <description>&lt;P&gt;@jip31, you can keep this formula handy for future calculations:&lt;/P&gt;

&lt;P&gt;1Terabytes = 1024Gigabytes&lt;BR /&gt;
1Gigabytes = 1024Megabytes&lt;BR /&gt;
1Megabytes = 1024Kilobytes&lt;BR /&gt;
1Kilobytes = 1024Bytes&lt;BR /&gt;
1Byte = 8Bits&lt;/P&gt;

&lt;P&gt;You go downwards, you multiply by the number on the right side.&lt;BR /&gt;
You go upwards, you divide by the number on the right side.&lt;/P&gt;

&lt;P&gt;eg: 1&lt;BR /&gt;
10 GB = 10*1024 MB&lt;BR /&gt;
10 MB = 10/1024 GB &lt;/P&gt;

&lt;P&gt;makes sense? Just keep in mind that people round it off to 1000 but in reality the number is 1024&lt;/P&gt;</description>
      <pubDate>Mon, 27 Aug 2018 09:39:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-convert-KB-to-MB/m-p/427103#M167713</guid>
      <dc:creator>pramit46</dc:creator>
      <dc:date>2018-08-27T09:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert KB to MB?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-convert-KB-to-MB/m-p/427104#M167714</link>
      <description>&lt;P&gt;to convert MB to GB , divide by 1024&lt;BR /&gt;
and I don't think you will require to use &lt;CODE&gt;eventstats&lt;/CODE&gt; command&lt;/P&gt;</description>
      <pubDate>Mon, 27 Aug 2018 09:41:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-convert-KB-to-MB/m-p/427104#M167714</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-08-27T09:41:08Z</dc:date>
    </item>
  </channel>
</rss>

