<?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 How to do a basic plot of network traffic by minute? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-basic-plot-of-network-traffic-by-minute/m-p/139422#M38303</link>
    <description>&lt;P&gt;I'm trying to do a basic plot of network traffic (bps) by minute over three days. I uploaded a .csv file that has the following values (table below): Date/Time, Inbound Traffic (bps), and Outbound Traffic (bps).&lt;/P&gt;

&lt;P&gt;I assume timechart would be the way to go, but is there an alternative to using count with timechart? Would xyseries be better for this?&lt;/P&gt;

&lt;P&gt;Thx&lt;/P&gt;

&lt;P&gt;Date/Time           Inbound Traffic (bps)   Outbound Traffic (bps)&lt;BR /&gt;
2/6/2015 9:05   5041.333333                16797.2&lt;BR /&gt;
2/6/2015 9:06   81465.06667                46898.13333&lt;BR /&gt;
2/6/2015 9:07   75185.86667                39628.4&lt;BR /&gt;
2/6/2015 9:08   63014.26667                36598.53333&lt;BR /&gt;
2/6/2015 9:09   59666.53333                33969.2&lt;BR /&gt;
2/6/2015 9:10   59962.66667                34255.86667&lt;BR /&gt;
2/6/2015 9:11   58208.8                        33594.13333&lt;BR /&gt;
2/6/2015 9:12   58009.73333                32810&lt;BR /&gt;
2/6/2015 9:13   57551.6                        31079.86667&lt;BR /&gt;
2/6/2015 9:14   58302.8                        32979.33333&lt;BR /&gt;
2/6/2015 9:15   55626.8                        32290.26667&lt;BR /&gt;
2/6/2015 9:16   57272.93333                30226.66667&lt;BR /&gt;
2/6/2015 9:17   52814.26667                28473.46667&lt;BR /&gt;
2/6/2015 9:18   50604.66667                24304.13333&lt;/P&gt;</description>
    <pubDate>Mon, 09 Feb 2015 14:43:36 GMT</pubDate>
    <dc:creator>jwalzerpitt</dc:creator>
    <dc:date>2015-02-09T14:43:36Z</dc:date>
    <item>
      <title>How to do a basic plot of network traffic by minute?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-basic-plot-of-network-traffic-by-minute/m-p/139422#M38303</link>
      <description>&lt;P&gt;I'm trying to do a basic plot of network traffic (bps) by minute over three days. I uploaded a .csv file that has the following values (table below): Date/Time, Inbound Traffic (bps), and Outbound Traffic (bps).&lt;/P&gt;

&lt;P&gt;I assume timechart would be the way to go, but is there an alternative to using count with timechart? Would xyseries be better for this?&lt;/P&gt;

&lt;P&gt;Thx&lt;/P&gt;

&lt;P&gt;Date/Time           Inbound Traffic (bps)   Outbound Traffic (bps)&lt;BR /&gt;
2/6/2015 9:05   5041.333333                16797.2&lt;BR /&gt;
2/6/2015 9:06   81465.06667                46898.13333&lt;BR /&gt;
2/6/2015 9:07   75185.86667                39628.4&lt;BR /&gt;
2/6/2015 9:08   63014.26667                36598.53333&lt;BR /&gt;
2/6/2015 9:09   59666.53333                33969.2&lt;BR /&gt;
2/6/2015 9:10   59962.66667                34255.86667&lt;BR /&gt;
2/6/2015 9:11   58208.8                        33594.13333&lt;BR /&gt;
2/6/2015 9:12   58009.73333                32810&lt;BR /&gt;
2/6/2015 9:13   57551.6                        31079.86667&lt;BR /&gt;
2/6/2015 9:14   58302.8                        32979.33333&lt;BR /&gt;
2/6/2015 9:15   55626.8                        32290.26667&lt;BR /&gt;
2/6/2015 9:16   57272.93333                30226.66667&lt;BR /&gt;
2/6/2015 9:17   52814.26667                28473.46667&lt;BR /&gt;
2/6/2015 9:18   50604.66667                24304.13333&lt;/P&gt;</description>
      <pubDate>Mon, 09 Feb 2015 14:43:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-basic-plot-of-network-traffic-by-minute/m-p/139422#M38303</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2015-02-09T14:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to do a basic plot of network traffic by minute?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-basic-plot-of-network-traffic-by-minute/m-p/139423#M38304</link>
      <description>&lt;P&gt;I think timechart is the way to go. Otherwise you may run into plotting issues with the date time field. &lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.1/Viz/ChartDisplayissues"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.1/Viz/ChartDisplayissues&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;You're not really asking how to plot it in a specific way, but the documentation is really useful.  I would play around with the different values you can use.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.1/SearchReference/Timechart#Examples"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.1/SearchReference/Timechart#Examples&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Feb 2015 15:27:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-basic-plot-of-network-traffic-by-minute/m-p/139423#M38304</guid>
      <dc:creator>TaylorWhitt</dc:creator>
      <dc:date>2015-02-09T15:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to do a basic plot of network traffic by minute?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-basic-plot-of-network-traffic-by-minute/m-p/139424#M38305</link>
      <description>&lt;P&gt;Thx for the info&lt;/P&gt;</description>
      <pubDate>Mon, 09 Feb 2015 15:30:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-basic-plot-of-network-traffic-by-minute/m-p/139424#M38305</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2015-02-09T15:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to do a basic plot of network traffic by minute?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-basic-plot-of-network-traffic-by-minute/m-p/139425#M38306</link>
      <description>&lt;P&gt;I put your file into an index to test this and used:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="215776.csv" index="answers" | eval Bandwidth=Inbound+Outbound | timechart span=1m values(Inbound) as "Inbound Traffic (bps)",values(Outbound) as "Outbound Traffic (bps)",values(Bandwidth) as "Total Bandwidth (bps)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Which resulted in:&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/231iD94A605BDD28247B/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;Is this what you need?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Feb 2015 15:43:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-basic-plot-of-network-traffic-by-minute/m-p/139425#M38306</guid>
      <dc:creator>jtrucks</dc:creator>
      <dc:date>2015-02-09T15:43:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to do a basic plot of network traffic by minute?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-basic-plot-of-network-traffic-by-minute/m-p/139426#M38307</link>
      <description>&lt;P&gt;Thx for the great info. That is exactly what I wanted, however, I had to modify my search as such:&lt;/P&gt;

&lt;P&gt;| eval Bandwidth=Inbound+Outbound | timechart span=1m values("Inbound Traffic _bps") as "Inbound" ,values("Outbound Traffic _bps") as "Outbound"&lt;/P&gt;

&lt;P&gt;With that, I'm seeing a different result than you got. How can I post a screenshot?&lt;/P&gt;

&lt;P&gt;Thx&lt;/P&gt;</description>
      <pubDate>Mon, 09 Feb 2015 16:25:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-basic-plot-of-network-traffic-by-minute/m-p/139426#M38307</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2015-02-09T16:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to do a basic plot of network traffic by minute?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-basic-plot-of-network-traffic-by-minute/m-p/139427#M38308</link>
      <description>&lt;P&gt;You can save the screenshot, then click the little square Polaroid looking icon on the edit bar above the text entry box.&lt;/P&gt;

&lt;P&gt;I suspect since you have different field names, you need to change the eval statement to:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval Bandwidth="Inbound Traffic _bps" + "Outbound Traffic _bps" | ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 09 Feb 2015 16:28:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-basic-plot-of-network-traffic-by-minute/m-p/139427#M38308</guid>
      <dc:creator>jtrucks</dc:creator>
      <dc:date>2015-02-09T16:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to do a basic plot of network traffic by minute?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-basic-plot-of-network-traffic-by-minute/m-p/139428#M38309</link>
      <description>&lt;P&gt;Missed that first eval statement - thx&lt;/P&gt;

&lt;P&gt;New search query:&lt;BR /&gt;
| eval Bandwidth="Inbound Traffic _bps" + "Outbound Traffic _bps"| timechart span=1m values("Inbound Traffic _bps") as "Inbound" ,values("Outbound Traffic _bps") as "Outbound" values(Bandwidth) as "Total Bandwidth (bps)"&lt;/P&gt;

&lt;P&gt;What do I enter for the image URL?&lt;/P&gt;

&lt;P&gt;Thx again&lt;/P&gt;</description>
      <pubDate>Mon, 09 Feb 2015 16:36:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-basic-plot-of-network-traffic-by-minute/m-p/139428#M38309</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2015-02-09T16:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to do a basic plot of network traffic by minute?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-basic-plot-of-network-traffic-by-minute/m-p/139429#M38310</link>
      <description>&lt;P&gt;Just choose "upload" and the Answers app will use a local image you've uploaded.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Feb 2015 16:38:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-basic-plot-of-network-traffic-by-minute/m-p/139429#M38310</guid>
      <dc:creator>jtrucks</dc:creator>
      <dc:date>2015-02-09T16:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to do a basic plot of network traffic by minute?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-basic-plot-of-network-traffic-by-minute/m-p/139430#M38311</link>
      <description>&lt;P&gt;My bad - wasn't seeing the upload option when replying to a message. Needed to add an answer to see the option. Screenshot below:&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/232i0FF82782EF545247/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Feb 2015 16:45:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-basic-plot-of-network-traffic-by-minute/m-p/139430#M38311</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2015-02-09T16:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to do a basic plot of network traffic by minute?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-basic-plot-of-network-traffic-by-minute/m-p/139431#M38312</link>
      <description>&lt;P&gt;I only had the subset of data you posted in the question, so the charts might not look the same.&lt;/P&gt;

&lt;P&gt;My table results driving the chart are:&lt;/P&gt;

&lt;P&gt;&lt;IMG src="http://jtrucks.info/splk/answers-table.png" alt="alt text" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Feb 2015 17:33:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-basic-plot-of-network-traffic-by-minute/m-p/139431#M38312</guid>
      <dc:creator>jtrucks</dc:creator>
      <dc:date>2015-02-09T17:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to do a basic plot of network traffic by minute?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-basic-plot-of-network-traffic-by-minute/m-p/139432#M38313</link>
      <description>&lt;P&gt;File attached - please try this&lt;/P&gt;</description>
      <pubDate>Mon, 09 Feb 2015 19:28:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-basic-plot-of-network-traffic-by-minute/m-p/139432#M38313</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2015-02-09T19:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to do a basic plot of network traffic by minute?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-basic-plot-of-network-traffic-by-minute/m-p/139433#M38314</link>
      <description>&lt;P&gt;No file attached. It looks like maybe an error in the filename?&lt;/P&gt;</description>
      <pubDate>Mon, 09 Feb 2015 19:33:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-basic-plot-of-network-traffic-by-minute/m-p/139433#M38314</guid>
      <dc:creator>jtrucks</dc:creator>
      <dc:date>2015-02-09T19:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to do a basic plot of network traffic by minute?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-basic-plot-of-network-traffic-by-minute/m-p/139434#M38315</link>
      <description>&lt;P&gt;I'll try again&lt;/P&gt;

&lt;P&gt;&lt;A href="http://answers.splunk.com/storage/attachments/28619-flow_02_09_15.zip"&gt;http://answers.splunk.com/storage/attachments/28619-flow_02_09_15.zip&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Feb 2015 20:26:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-basic-plot-of-network-traffic-by-minute/m-p/139434#M38315</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2015-02-09T20:26:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to do a basic plot of network traffic by minute?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-basic-plot-of-network-traffic-by-minute/m-p/139435#M38316</link>
      <description>&lt;P&gt;Can you put the file somewhere and provide a URL? I think the image link only works with images.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Feb 2015 21:08:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-basic-plot-of-network-traffic-by-minute/m-p/139435#M38316</guid>
      <dc:creator>jtrucks</dc:creator>
      <dc:date>2015-02-09T21:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to do a basic plot of network traffic by minute?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-basic-plot-of-network-traffic-by-minute/m-p/139436#M38317</link>
      <description>&lt;P&gt;I'm actually using the Attachment link, and when I click on 'edit' for the one posting that lists the two files, I actually see the file attached, which is confusing as to why it's not actually being posted.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Feb 2015 21:22:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-basic-plot-of-network-traffic-by-minute/m-p/139436#M38317</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2015-02-09T21:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to do a basic plot of network traffic by minute?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-basic-plot-of-network-traffic-by-minute/m-p/139437#M38318</link>
      <description>&lt;P&gt;I think I figured it out. I attach the file and then after it's uploaded, I dragged the file into the body of the text and was able to click on it and download the file. Hope this works for you. Thx for sticking through this!&lt;/P&gt;</description>
      <pubDate>Mon, 09 Feb 2015 21:25:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-basic-plot-of-network-traffic-by-minute/m-p/139437#M38318</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2015-02-09T21:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to do a basic plot of network traffic by minute?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-basic-plot-of-network-traffic-by-minute/m-p/139438#M38319</link>
      <description>&lt;P&gt;Got it! I used double quotes in the eval above not single quotes. I apologize for that error. Double quotes make for a literal string interpretation, whereas single quotes interprets the contents as a field name.&lt;/P&gt;

&lt;P&gt;Therfore, try this:&lt;BR /&gt;
    source="sw_report_flow_02_09_15.csv" index="answers" | eval Bandwidth='Inbound Traffic _bps'+'Outbound Traffic _bps' | timechart span=1m values("Inbound Traffic _bps") as Inbound,values("Outbound Traffic _bps") as Outbound,values(Bandwidth) as Bandwidth&lt;/P&gt;

&lt;P&gt;I get this:&lt;/P&gt;

&lt;P&gt;&lt;IMG src="http://jtrucks.info/splk/answers-chart2.png" alt="alt text" /&gt;&lt;/P&gt;

&lt;P&gt;I, also, set the chart to display NULL values as zero, hence the flat line at the bottom that shoots up on the right when there is data again.&lt;/P&gt;

&lt;P&gt;( If your settings truncate results, see &lt;A href="http://answers.splunk.com/answers/73745/max-data-points-that-charts-can-handle.html" target="_blank"&gt;http://answers.splunk.com/answers/73745/max-data-points-that-charts-can-handle.html&lt;/A&gt; )&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:52:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-basic-plot-of-network-traffic-by-minute/m-p/139438#M38319</guid>
      <dc:creator>jtrucks</dc:creator>
      <dc:date>2020-09-28T18:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to do a basic plot of network traffic by minute?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-basic-plot-of-network-traffic-by-minute/m-p/139439#M38320</link>
      <description>&lt;P&gt;Jesse, awesome - thx a million for your help and patience! Greatly appreciated!&lt;/P&gt;</description>
      <pubDate>Mon, 09 Feb 2015 21:54:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-do-a-basic-plot-of-network-traffic-by-minute/m-p/139439#M38320</guid>
      <dc:creator>jwalzerpitt</dc:creator>
      <dc:date>2015-02-09T21:54:30Z</dc:date>
    </item>
  </channel>
</rss>

