<?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 Convert bytes to GB in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Convert-bytes-to-GB/m-p/263193#M79001</link>
    <description>&lt;P&gt;Splunk noob here. I've been visting this site for awhile now so i decided to create my own account so I can learn more about the product.&lt;/P&gt;

&lt;P&gt;I'm trying to create a bandwidth utilization for my web logs and I'm a bit confused on what search string should I be using to get accurate date. I have tried the following and got different ressults.&lt;/P&gt;

&lt;P&gt;example A :&lt;BR /&gt;
base search | eval s_kilobytes=(sentbyte/1024)  | eval s_megabytes=s_kilobytes/1024  | eval s_gigabytes=s_megabytes/1024 | eval r_kilobytes=(rcvdbyte/1024)  | eval r_megabytes=r_kilobytes/1024  | eval r_gigabytes=r_megabytes/1024| timechart  sum(r_gigabytes) as "RECEIVED" sum(s_gigabytes)&lt;/P&gt;

&lt;P&gt;example B:&lt;BR /&gt;
base search | | stats sum(eval(((sentbyte*8)/(1024*1024*1024*1024) + (rcvdbyte*8)/(1024*1024*1024*1024)))) &lt;/P&gt;

&lt;P&gt;Which one is the more accurate one and what does the value 8 on second example means?&lt;/P&gt;

&lt;P&gt;Abe&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 08:04:26 GMT</pubDate>
    <dc:creator>Eyb</dc:creator>
    <dc:date>2020-09-29T08:04:26Z</dc:date>
    <item>
      <title>Convert bytes to GB</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Convert-bytes-to-GB/m-p/263193#M79001</link>
      <description>&lt;P&gt;Splunk noob here. I've been visting this site for awhile now so i decided to create my own account so I can learn more about the product.&lt;/P&gt;

&lt;P&gt;I'm trying to create a bandwidth utilization for my web logs and I'm a bit confused on what search string should I be using to get accurate date. I have tried the following and got different ressults.&lt;/P&gt;

&lt;P&gt;example A :&lt;BR /&gt;
base search | eval s_kilobytes=(sentbyte/1024)  | eval s_megabytes=s_kilobytes/1024  | eval s_gigabytes=s_megabytes/1024 | eval r_kilobytes=(rcvdbyte/1024)  | eval r_megabytes=r_kilobytes/1024  | eval r_gigabytes=r_megabytes/1024| timechart  sum(r_gigabytes) as "RECEIVED" sum(s_gigabytes)&lt;/P&gt;

&lt;P&gt;example B:&lt;BR /&gt;
base search | | stats sum(eval(((sentbyte*8)/(1024*1024*1024*1024) + (rcvdbyte*8)/(1024*1024*1024*1024)))) &lt;/P&gt;

&lt;P&gt;Which one is the more accurate one and what does the value 8 on second example means?&lt;/P&gt;

&lt;P&gt;Abe&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 08:04:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Convert-bytes-to-GB/m-p/263193#M79001</guid>
      <dc:creator>Eyb</dc:creator>
      <dc:date>2020-09-29T08:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: Convert bytes to GB</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Convert-bytes-to-GB/m-p/263194#M79002</link>
      <description>&lt;P&gt;In your second example, you shouldn't be multiplying a byte by 8.  You're thinking of 8 bits in a byte.  &lt;/P&gt;

&lt;P&gt;When you do your division, you can just do:      &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| eval s_GB=sentbyte/1024/1024/1024 | eval r_GB=rcvdbyte/1024/1024/1024 | timechart sum(r_GB) as "RECEIVED", sum(s_GB) as "SENT"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 05 Dec 2015 01:49:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Convert-bytes-to-GB/m-p/263194#M79002</guid>
      <dc:creator>hortonew</dc:creator>
      <dc:date>2015-12-05T01:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: Convert bytes to GB</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Convert-bytes-to-GB/m-p/263195#M79003</link>
      <description>&lt;P&gt;Hortonew,&lt;/P&gt;

&lt;P&gt;Sorry for the delay, caught up with lots of stuff. THANK YOU! Appreciate the help.&lt;/P&gt;

&lt;P&gt;Abe&lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2015 13:18:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Convert-bytes-to-GB/m-p/263195#M79003</guid>
      <dc:creator>Eyb</dc:creator>
      <dc:date>2015-12-10T13:18:09Z</dc:date>
    </item>
  </channel>
</rss>

