<?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 bytes to GB or MB in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Converting-bytes-to-GB-or-MB/m-p/456878#M171195</link>
    <description>&lt;P&gt;Sure thing @dmarling ; -)&lt;/P&gt;</description>
    <pubDate>Thu, 16 May 2019 19:26:07 GMT</pubDate>
    <dc:creator>ddrillic</dc:creator>
    <dc:date>2019-05-16T19:26:07Z</dc:date>
    <item>
      <title>Converting bytes to GB or MB</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Converting-bytes-to-GB-or-MB/m-p/456872#M171189</link>
      <description>&lt;P&gt;Hey all, I was getting confused by some of the splunk answers for converting and couldn't figure out the eval portion of my query.  Can someone shed some light on how I can convert the bytes_out field from my palo logs to MB and GB?  Query below, thank you in advance!&lt;/P&gt;

&lt;P&gt;index=pan_logs sourcetype=pan:traffic&lt;BR /&gt;
| stats sum(bytes_out) AS bytes_out by user src_ip dest_ip&lt;BR /&gt;
| where bytes_out&amp;gt;35000000&lt;BR /&gt;
| sort - bytes_out&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:31:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Converting-bytes-to-GB-or-MB/m-p/456872#M171189</guid>
      <dc:creator>pmac22</dc:creator>
      <dc:date>2020-09-30T00:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: Converting bytes to GB or MB</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Converting-bytes-to-GB-or-MB/m-p/456873#M171190</link>
      <description>&lt;P&gt;In the spirit of - &lt;CODE&gt;| eval GB=kb/1024/1024&lt;/CODE&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2019 16:54:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Converting-bytes-to-GB-or-MB/m-p/456873#M171190</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2019-05-16T16:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: Converting bytes to GB or MB</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Converting-bytes-to-GB-or-MB/m-p/456874#M171191</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/130718"&gt;@ddrillic&lt;/a&gt; has it correct. bytes_out/1024 will get you kilobytes divide that by 1024 to get megabytes and divide that by 1024 to get gigabytes:  &lt;CODE&gt;| eval GB_out=bytes_out/1024/1024/1024&lt;/CODE&gt;  to get megabytes: &lt;CODE&gt;| eval MB_out=bytes_out/1024/1024&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:31:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Converting-bytes-to-GB-or-MB/m-p/456874#M171191</guid>
      <dc:creator>dmarling</dc:creator>
      <dc:date>2020-09-30T00:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Converting bytes to GB or MB</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Converting-bytes-to-GB-or-MB/m-p/456875#M171192</link>
      <description>&lt;P&gt;That worked out great!  Thanks guys! &lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2019 17:32:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Converting-bytes-to-GB-or-MB/m-p/456875#M171192</guid>
      <dc:creator>pmac22</dc:creator>
      <dc:date>2019-05-16T17:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: Converting bytes to GB or MB</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Converting-bytes-to-GB-or-MB/m-p/456876#M171193</link>
      <description>&lt;P&gt;@ddrillic You may want to convert your comment to an answer as it was basically the answer he needed.  I just added a comment to make it more specific to his use case.&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2019 17:39:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Converting-bytes-to-GB-or-MB/m-p/456876#M171193</guid>
      <dc:creator>dmarling</dc:creator>
      <dc:date>2019-05-16T17:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: Converting bytes to GB or MB</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Converting-bytes-to-GB-or-MB/m-p/456877#M171194</link>
      <description>&lt;P&gt;Thanks guys. Worked like a charm!  Here's my updated search...&lt;/P&gt;

&lt;P&gt;index=pan_logs sourcetype=pan:traffic &lt;BR /&gt;
| stats sum(bytes_out) AS bytes_out by user src_ip dest_ip&lt;BR /&gt;
| where bytes_out&amp;gt;35000000&lt;BR /&gt;
| eval MB_out=round(bytes_out/1024/1024,2)&lt;BR /&gt;
| sort - MB_out&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 00:32:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Converting-bytes-to-GB-or-MB/m-p/456877#M171194</guid>
      <dc:creator>pmac22</dc:creator>
      <dc:date>2020-09-30T00:32:04Z</dc:date>
    </item>
    <item>
      <title>Re: Converting bytes to GB or MB</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Converting-bytes-to-GB-or-MB/m-p/456878#M171195</link>
      <description>&lt;P&gt;Sure thing @dmarling ; -)&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2019 19:26:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Converting-bytes-to-GB-or-MB/m-p/456878#M171195</guid>
      <dc:creator>ddrillic</dc:creator>
      <dc:date>2019-05-16T19:26:07Z</dc:date>
    </item>
  </channel>
</rss>

