<?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: Charting bytes in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Charting-bytes/m-p/49960#M12005</link>
    <description>&lt;P&gt;Provided that the "byte_in" field is properly extracted, you probably want something like this :&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;... | timechart sum(byte_in) AS "Incoming bytes"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;And if you would like to convert that number to say megabytes, you can pretty much do that in-line with timechart :&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;... | timechart sum(eval(byte_in/1024/1024)) AS "Incoming Megabytes"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Finally, it could be nice to throw in the incoming rate of events in kilobytes per second :&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;... | timechart sum(eval(byte_in/1024/1024)) AS "Incoming Megabytes" per_second(eval(byte_in/1024)) AS "Incoming throughput (KB/s)"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I recommend that you check the &lt;A href="http://docs.splunk.com/Documentation/Splunk/4.3/SearchReference/Timechart" target="_blank"&gt;entry for timechart&lt;/A&gt; in the search reference manual, as well as the page &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/CommonStatsFunctions" target="_blank"&gt;listing its available functions&lt;/A&gt; in detail.&lt;/P&gt;

&lt;P&gt;If you are very new to the search language, the &lt;A href="http://docs.splunk.com/Documentation/Splunk/4.3/User/WelcometotheSplunkTutorial" target="_blank"&gt;Splunk tutorial&lt;/A&gt; is a great read.&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 10:18:39 GMT</pubDate>
    <dc:creator>hexx</dc:creator>
    <dc:date>2020-09-28T10:18:39Z</dc:date>
    <item>
      <title>Charting bytes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Charting-bytes/m-p/49959#M12004</link>
      <description>&lt;P&gt;I'm trying to chart the total traffic that is flowing from inside my FW to the outside of my firewall.  Here is an excerpt of the log.&lt;/P&gt;

&lt;P&gt;Jan 11 22:33:15 10.197.210.243 Jan 12 2012 06:39:15: ASA: Teardown TCP connection 145063345275150489 for Inside_405:16.16.16.16/61463 to Outside_304:10.10.10.10/2223 duration 13:22:09 bytes 4081289473 TCP Reset-I&lt;/P&gt;

&lt;P&gt;I want to know how much traffic is going along port 2223 in this case.  I have used | timechart count(byte_in) but that doens't give me the amount of traffic.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 10:18:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Charting-bytes/m-p/49959#M12004</guid>
      <dc:creator>mlevenson</dc:creator>
      <dc:date>2020-09-28T10:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: Charting bytes</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Charting-bytes/m-p/49960#M12005</link>
      <description>&lt;P&gt;Provided that the "byte_in" field is properly extracted, you probably want something like this :&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;... | timechart sum(byte_in) AS "Incoming bytes"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;And if you would like to convert that number to say megabytes, you can pretty much do that in-line with timechart :&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;... | timechart sum(eval(byte_in/1024/1024)) AS "Incoming Megabytes"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Finally, it could be nice to throw in the incoming rate of events in kilobytes per second :&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;... | timechart sum(eval(byte_in/1024/1024)) AS "Incoming Megabytes" per_second(eval(byte_in/1024)) AS "Incoming throughput (KB/s)"&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;I recommend that you check the &lt;A href="http://docs.splunk.com/Documentation/Splunk/4.3/SearchReference/Timechart" target="_blank"&gt;entry for timechart&lt;/A&gt; in the search reference manual, as well as the page &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/CommonStatsFunctions" target="_blank"&gt;listing its available functions&lt;/A&gt; in detail.&lt;/P&gt;

&lt;P&gt;If you are very new to the search language, the &lt;A href="http://docs.splunk.com/Documentation/Splunk/4.3/User/WelcometotheSplunkTutorial" target="_blank"&gt;Splunk tutorial&lt;/A&gt; is a great read.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 10:18:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Charting-bytes/m-p/49960#M12005</guid>
      <dc:creator>hexx</dc:creator>
      <dc:date>2020-09-28T10:18:39Z</dc:date>
    </item>
  </channel>
</rss>

