<?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: timechart search question in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/timechart-search-question/m-p/80623#M20365</link>
    <description>&lt;P&gt;Use a subsearch to grab your top 5 hosts, then timechart based on those:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... [search ... | stats sum(traffic) by host | sort - host | head 5 | fields host] | timechart sum(traffic) by sys_report_id,host
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 05 Oct 2012 05:05:38 GMT</pubDate>
    <dc:creator>Ayn</dc:creator>
    <dc:date>2012-10-05T05:05:38Z</dc:date>
    <item>
      <title>timechart search question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-search-question/m-p/80622#M20364</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;My indexer receives the following network traffic stats in which value 3 and 4 of sys_report_id field indicates inbound and outbound traffic respectively.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;_time                     host          sys_report_id   traffic
1 10/4/12 9:48:59.000 PM    host1.foo.com   4               503.283333
2   10/4/12 9:48:59.000 PM  host1.foo.com   3               4103.533333
3   10/4/12 9:48:56.000 PM  host2.foo.com   4               923.966102
4   10/4/12 9:48:56.000 PM  host2.foo.com   3               4554.000000
5   10/4/12 9:48:55.000 PM  host3.foo.com   4               4290.796296
6   10/4/12 9:48:55.000 PM  host3.foo.com   3               6284.962963
7   10/4/12 9:48:01.000 PM  host3.foo.com   4               4249.809524
8   10/4/12 9:48:01.000 PM  host3.foo.com   3               4970.936508
....
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How can I generate a timechart search to return inbound and outbound traffic stats for top 5 hosts that generate the most combined (inbound+outbound) traffic? i.e., I'm expecting this search shows 10 lines (5 pairs) with a line chart.&lt;/P&gt;

&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:34:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-search-question/m-p/80622#M20364</guid>
      <dc:creator>frank_zhang</dc:creator>
      <dc:date>2020-09-28T12:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: timechart search question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-search-question/m-p/80623#M20365</link>
      <description>&lt;P&gt;Use a subsearch to grab your top 5 hosts, then timechart based on those:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... [search ... | stats sum(traffic) by host | sort - host | head 5 | fields host] | timechart sum(traffic) by sys_report_id,host
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 05 Oct 2012 05:05:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-search-question/m-p/80623#M20365</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-10-05T05:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: timechart search question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/timechart-search-question/m-p/80624#M20366</link>
      <description>&lt;P&gt;Many thanks, Ayn. It solved my problems. Do you think there's any way to do this without having to use subsearch?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2012 18:10:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/timechart-search-question/m-p/80624#M20366</guid>
      <dc:creator>frank_zhang</dc:creator>
      <dc:date>2012-10-05T18:10:19Z</dc:date>
    </item>
  </channel>
</rss>

