<?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: Group by field / table in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Group-by-field-table/m-p/172407#M49395</link>
    <description>&lt;P&gt;Path&lt;EM&gt;order repeats 1-19, there will not be multiple events in the same 5 min period with the same path&lt;/EM&gt;order number.  clear as mud? &lt;/P&gt;

&lt;P&gt;It takes about 5 min to get the data from all the routers and the cron job runs every 10 minutes.&lt;/P&gt;

&lt;P&gt;side note: If any wants some snmpget/walk scripts.. Willing to share..&lt;/P&gt;

&lt;P&gt;Thanks,
Ross Warren&lt;/P&gt;</description>
    <pubDate>Mon, 03 Mar 2014 21:22:46 GMT</pubDate>
    <dc:creator>ross_warren</dc:creator>
    <dc:date>2014-03-03T21:22:46Z</dc:date>
    <item>
      <title>Group by field / table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Group-by-field-table/m-p/172405#M49393</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I am grabbing interface errors from Cisco routers (via snmpget) that form a distinct path through the network.  I want to present them in the same order of the path..&lt;/P&gt;

&lt;P&gt;if I dedup the path_order, it works, but not over any period of time.. I want to be able to group the whole path (defined by path_order) (1-19) and display this "table" over time.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt; index=interface_path sourcetype=interface_errors | dedup path_order| table _time,host_name, ifName,ifOutDiscards,ifOutErrors,ifInDiscards,ifInErrors path_order | sort path_order &lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Sample of data output (formatting might not be screwy)(host_name field removed for sample data)&lt;BR /&gt;
&lt;PRE&gt;&lt;BR /&gt;
_time               ifName           ifOutDiscards  ifOutErrors ifInDiscards ifInErrors path_order&lt;BR /&gt;
2014-03-03 20:00:00 GigabitEthernet0/0   11508          0       0            0      1&lt;BR /&gt;
2014-03-03 20:00:03 FastEthernet5/1  5471           30595       0            1      2&lt;BR /&gt;
2014-03-03 20:00:13 POS2/0           3          0       4            13044      3&lt;BR /&gt;
2014-03-03 20:00:24 POS2/0           674            0       14           368866     4&lt;BR /&gt;
&lt;/PRE&gt;&lt;/P&gt;

&lt;P&gt;Does this make sense? I could be going about this wrong.. Looking for suggestions!&lt;/P&gt;

&lt;P&gt;I would love to be able to make a sparkline for each Error and Discard field showing errors over time on one table/chart. But i think i need to figure out the grouping first..&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Ross Warrren&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:01:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Group-by-field-table/m-p/172405#M49393</guid>
      <dc:creator>ross_warren</dc:creator>
      <dc:date>2020-09-28T16:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: Group by field / table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Group-by-field-table/m-p/172406#M49394</link>
      <description>&lt;P&gt;Will there be multiple events with same path_order? Will path_order set 1-19 repeats for different calls?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:01:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Group-by-field-table/m-p/172406#M49394</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2020-09-28T16:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: Group by field / table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Group-by-field-table/m-p/172407#M49395</link>
      <description>&lt;P&gt;Path&lt;EM&gt;order repeats 1-19, there will not be multiple events in the same 5 min period with the same path&lt;/EM&gt;order number.  clear as mud? &lt;/P&gt;

&lt;P&gt;It takes about 5 min to get the data from all the routers and the cron job runs every 10 minutes.&lt;/P&gt;

&lt;P&gt;side note: If any wants some snmpget/walk scripts.. Willing to share..&lt;/P&gt;

&lt;P&gt;Thanks,
Ross Warren&lt;/P&gt;</description>
      <pubDate>Mon, 03 Mar 2014 21:22:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Group-by-field-table/m-p/172407#M49395</guid>
      <dc:creator>ross_warren</dc:creator>
      <dc:date>2014-03-03T21:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: Group by field / table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Group-by-field-table/m-p/172408#M49396</link>
      <description>&lt;P&gt;Assuming that within a 10 min period, there are only one event/entry with one path_order (since the cron job runs every 10 min, there will be one set of entries every 10 min.), try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=interface_path sourcetype=interface_errors | eval orig_time=_time | bucket span=10m _time  | stats first(orig_time) as orig_time ,first(host_name) as host_name, first(ifName) as ifName,first(ifOutDiscards) as ifOutDiscards,first(ifOutErrors) as ifOutErrors,first(ifInDiscards) as ifInDiscards,first(ifInErrors) as ifInErrors  by path_order,_time | table orig_time,host_name, ifName,ifOutDiscards,ifOutErrors,ifInDiscards,ifInErrors, path_order | sort orig_time, path_order
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 03 Mar 2014 22:23:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Group-by-field-table/m-p/172408#M49396</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-03-03T22:23:43Z</dc:date>
    </item>
    <item>
      <title>Re: Group by field / table</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Group-by-field-table/m-p/172409#M49397</link>
      <description>&lt;P&gt;Wow.. At first cut and paste this looks great! wow.. Thank you somesoni2!   Need to take the time to understand what is going on now.. Give me a day to check it out!&lt;/P&gt;

&lt;P&gt;WOWOWW!&lt;/P&gt;</description>
      <pubDate>Mon, 03 Mar 2014 22:32:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Group-by-field-table/m-p/172409#M49397</guid>
      <dc:creator>ross_warren</dc:creator>
      <dc:date>2014-03-03T22:32:25Z</dc:date>
    </item>
  </channel>
</rss>

