<?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: Converting from KB to GB in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Converting-from-KB-to-GB/m-p/355512#M164244</link>
    <description>&lt;P&gt;That worked thanks.so i wanto make a dashboard from these results but i am having hard time .when i select visualization the data it shows is cropped and not showing all the drives.can you help me with that?if i need to create another thread for it,i can do it.Thanks for all the help&lt;/P&gt;

&lt;P&gt;index="main"  host="hc1aptr3sv"  Name="C:" OR Name="D:" FreeSpace | eval FreeSpace_in_GB = round((FreeSpace/1024/1024/1024), 2)|eval Size_in_GB = round((Size/1024/1024/1024),2)|table host,Name,Size_in_GB,FreeSpace_in_GB| dedup Name&lt;IMG src="https://community.splunk.com/storage/temp/226572-visualization1.png" alt="alt text" /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 17:21:05 GMT</pubDate>
    <dc:creator>carlyleadmin</dc:creator>
    <dc:date>2020-09-29T17:21:05Z</dc:date>
    <item>
      <title>Converting from KB to GB</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Converting-from-KB-to-GB/m-p/355509#M164241</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;

&lt;P&gt;i have search that brings data from C and D Drives and results are in KB so i want to convert those fields to GB.&lt;/P&gt;

&lt;P&gt;index="main"  host="hc1xrds01"  Name="C:" OR Name="D:" FreeSpace |eval FreeSpace = round((FreeSpace/1024/1024/1024), 2)&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/4055i24B7FDEFA727766A/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;I still have fields after the conversion in kbs.and even after eval i get another "FreeSpace" field with GB the other FreeSpace taht is highligted is still in KB.how do i change all that to GB?not just the FreeSpace,size and Raw as well which i believe is the top value.&lt;/P&gt;

&lt;P&gt;do i have to change the way i get the data?&lt;/P&gt;

&lt;P&gt;Thanks Alot&lt;/P&gt;</description>
      <pubDate>Thu, 21 Dec 2017 15:52:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Converting-from-KB-to-GB/m-p/355509#M164241</guid>
      <dc:creator>carlyleadmin</dc:creator>
      <dc:date>2017-12-21T15:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: Converting from KB to GB</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Converting-from-KB-to-GB/m-p/355510#M164242</link>
      <description>&lt;P&gt;Your eval statement creates a new search time field. The raw data is not altered. What you see on the top is your actual raw data. To avoid confusion, name your new field different&lt;/P&gt;

&lt;PRE&gt;|eval FreeSpace_GB = round((FreeSpace/1024/1024/1024)&lt;/PRE&gt;</description>
      <pubDate>Thu, 21 Dec 2017 16:06:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Converting-from-KB-to-GB/m-p/355510#M164242</guid>
      <dc:creator>pradeepkumarg</dc:creator>
      <dc:date>2017-12-21T16:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: Converting from KB to GB</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Converting-from-KB-to-GB/m-p/355511#M164243</link>
      <description>&lt;P&gt;Hey &lt;BR /&gt;
What you have written is correct&lt;BR /&gt;
Evaluation functions does not change your raw data.It just creates a new field which you can use it further for analysis.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index="main" host="hc1xrds01" Name="C:" OR Name="D:" FreeSpace |eval FreeSpace_in_GB = round((FreeSpace/1024/1024/1024), 2)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;FreeSpace_in_GB&lt;/STRONG&gt; is the new field created by this search. Use this field for your analysis and not the one which you see &lt;CODE&gt;FreeSpace&lt;/CODE&gt;. &lt;/P&gt;

&lt;P&gt;Let me know if it helps you! &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:20:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Converting-from-KB-to-GB/m-p/355511#M164243</guid>
      <dc:creator>mayurr98</dc:creator>
      <dc:date>2020-09-29T17:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: Converting from KB to GB</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Converting-from-KB-to-GB/m-p/355512#M164244</link>
      <description>&lt;P&gt;That worked thanks.so i wanto make a dashboard from these results but i am having hard time .when i select visualization the data it shows is cropped and not showing all the drives.can you help me with that?if i need to create another thread for it,i can do it.Thanks for all the help&lt;/P&gt;

&lt;P&gt;index="main"  host="hc1aptr3sv"  Name="C:" OR Name="D:" FreeSpace | eval FreeSpace_in_GB = round((FreeSpace/1024/1024/1024), 2)|eval Size_in_GB = round((Size/1024/1024/1024),2)|table host,Name,Size_in_GB,FreeSpace_in_GB| dedup Name&lt;IMG src="https://community.splunk.com/storage/temp/226572-visualization1.png" alt="alt text" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:21:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Converting-from-KB-to-GB/m-p/355512#M164244</guid>
      <dc:creator>carlyleadmin</dc:creator>
      <dc:date>2020-09-29T17:21:05Z</dc:date>
    </item>
  </channel>
</rss>

