<?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: Stats against timechart in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Stats-against-timechart/m-p/154852#M43551</link>
    <description>&lt;P&gt;Yes, of course, you need this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=pan_logs sourcetype=pan_traffic src_zone=ClientVPNZone OR src_zone=trust dst_zone=Untrust  $location$ | eval mbits_sec_down=(bytes_received/elapsed_time)*8/1000/1000 | eval mbits_sec_up=(bytes_sent/elapsed_time)*8/1000/1000 | bucket _time span=1s | stats sum(mbits_sec_down) AS Down, sum(mbits_sec_up) AS Up by _time host | stats max(*) by host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Which I see @somesoni2 has already noted (what he said).&lt;/P&gt;</description>
    <pubDate>Tue, 04 Aug 2015 21:45:34 GMT</pubDate>
    <dc:creator>woodcock</dc:creator>
    <dc:date>2015-08-04T21:45:34Z</dc:date>
    <item>
      <title>Stats against timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Stats-against-timechart/m-p/154844#M43543</link>
      <description>&lt;P&gt;I have a search that I can use in a dashboard that gives me statistical data about bandwidth usage on a firewall.  I have a drop down that sets the location ($location$) that the user wants to query and then shows them the max mbps up and down.  Here is that search:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=pan_logs sourcetype=pan_traffic src_zone=ClientVPNZone OR src_zone=trust dst_zone=Untrust  $location$  
|  eval mbits_sec_down=(bytes_received/elapsed_time)*8/1000/1000 
| eval mbits_sec_up=(bytes_sent/elapsed_time)*8/1000/1000 
| timechart span=1s sum(mbits_sec_down) AS Down, sum(mbits_sec_up) AS  Up 
| stats max(*)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I would like to create a report that shows bandwidth usage per site and thought it would be as simple as adding "by host" to the end but the search doesn't show anything under the statistics tab.  I'm assumed the host information isn't being sent to the last stats command so I tried adding "by host" to the timechart command but it still doesn't show results.  &lt;/P&gt;

&lt;P&gt;Any ideas on how to get this report?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2015 20:50:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Stats-against-timechart/m-p/154844#M43543</guid>
      <dc:creator>hlarimer</dc:creator>
      <dc:date>2015-08-04T20:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Stats against timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Stats-against-timechart/m-p/154845#M43544</link>
      <description>&lt;P&gt;Try this...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=pan_logs sourcetype=pan_traffic src_zone=ClientVPNZone OR src_zone=trust dst_zone=Untrust  $location$  
 |  eval mbits_sec_down=(bytes_received/elapsed_time)*8/1000/1000 
 | eval mbits_sec_up=(bytes_sent/elapsed_time)*8/1000/1000  | bucket span=1s _time
 | stats sum(mbits_sec_down) AS Down, sum(mbits_sec_up) AS  Up by _time host | fields - _time
 | stats max(*) as * by host
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 04 Aug 2015 21:24:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Stats-against-timechart/m-p/154845#M43544</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-08-04T21:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: Stats against timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Stats-against-timechart/m-p/154846#M43545</link>
      <description>&lt;P&gt;Bucket + stats will give similar result as timechart.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2015 21:24:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Stats-against-timechart/m-p/154846#M43545</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-08-04T21:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: Stats against timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Stats-against-timechart/m-p/154847#M43546</link>
      <description>&lt;P&gt;I didn't get any results off of the search listed in your first response&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2015 21:32:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Stats-against-timechart/m-p/154847#M43546</guid>
      <dc:creator>hlarimer</dc:creator>
      <dc:date>2015-08-04T21:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: Stats against timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Stats-against-timechart/m-p/154848#M43547</link>
      <description>&lt;P&gt;I take that back, I had to remove the variable name left in there from the dashboard and I'm seeing data now.  &lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2015 21:34:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Stats-against-timechart/m-p/154848#M43547</guid>
      <dc:creator>hlarimer</dc:creator>
      <dc:date>2015-08-04T21:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: Stats against timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Stats-against-timechart/m-p/154849#M43548</link>
      <description>&lt;P&gt;You lost &lt;CODE&gt;host&lt;/CODE&gt; at &lt;CODE&gt;timechart&lt;/CODE&gt; so you need to keep it there like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=pan_logs sourcetype=pan_traffic src_zone=ClientVPNZone OR src_zone=trust dst_zone=Untrust  $location$ | eval mbits_sec_down=(bytes_received/elapsed_time)*8/1000/1000 | eval mbits_sec_up=(bytes_sent/elapsed_time)*8/1000/1000 | timechart span=1s sum(mbits_sec_down) AS Down, sum(mbits_sec_up) AS Up by host | stats max(*) by host
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 04 Aug 2015 21:38:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Stats-against-timechart/m-p/154849#M43548</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-08-04T21:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: Stats against timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Stats-against-timechart/m-p/154850#M43549</link>
      <description>&lt;P&gt;That's what I was thinking but when I tried that it still didn't give me any data&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2015 21:40:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Stats-against-timechart/m-p/154850#M43549</guid>
      <dc:creator>hlarimer</dc:creator>
      <dc:date>2015-08-04T21:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: Stats against timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Stats-against-timechart/m-p/154851#M43550</link>
      <description>&lt;P&gt;You would loose host even after specifying it in by clause of timechart (the host values will appear as field name).&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2015 21:41:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Stats-against-timechart/m-p/154851#M43550</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-08-04T21:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Stats against timechart</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Stats-against-timechart/m-p/154852#M43551</link>
      <description>&lt;P&gt;Yes, of course, you need this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=pan_logs sourcetype=pan_traffic src_zone=ClientVPNZone OR src_zone=trust dst_zone=Untrust  $location$ | eval mbits_sec_down=(bytes_received/elapsed_time)*8/1000/1000 | eval mbits_sec_up=(bytes_sent/elapsed_time)*8/1000/1000 | bucket _time span=1s | stats sum(mbits_sec_down) AS Down, sum(mbits_sec_up) AS Up by _time host | stats max(*) by host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Which I see @somesoni2 has already noted (what he said).&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2015 21:45:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Stats-against-timechart/m-p/154852#M43551</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2015-08-04T21:45:34Z</dc:date>
    </item>
  </channel>
</rss>

