<?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: Aggregate/subtotal the output by locations (not currently an index field) so I can produce a graph by location in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Aggregate-subtotal-the-output-by-locations-not-currently-an/m-p/341382#M101209</link>
    <description>&lt;P&gt;hi,&lt;BR /&gt;
Is the location mentioned in the events or you want to graph by iplocation?&lt;BR /&gt;
It will be nice to see a sample of your events&lt;/P&gt;</description>
    <pubDate>Mon, 18 Sep 2017 12:56:37 GMT</pubDate>
    <dc:creator>Sukisen1981</dc:creator>
    <dc:date>2017-09-18T12:56:37Z</dc:date>
    <item>
      <title>Aggregate/subtotal the output by locations (not currently an index field) so I can produce a graph by location</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Aggregate-subtotal-the-output-by-locations-not-currently-an/m-p/341381#M101208</link>
      <description>&lt;P&gt;I have a query below that produces the sum of bandwidth used by remote intermediate forwarders.  The output give me a simple linear output with sum by host.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal metrics thruput site-hub 11001 host=server0*  | stats sum(kb) by host
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What I am trying to get without success is to aggregate/subtotal the output by locations (not currently an index field) so that I can produce a graph by location rather than a graph by host.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2017 12:52:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Aggregate-subtotal-the-output-by-locations-not-currently-an/m-p/341381#M101208</guid>
      <dc:creator>tlmayes</dc:creator>
      <dc:date>2017-09-18T12:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate/subtotal the output by locations (not currently an index field) so I can produce a graph by location</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Aggregate-subtotal-the-output-by-locations-not-currently-an/m-p/341382#M101209</link>
      <description>&lt;P&gt;hi,&lt;BR /&gt;
Is the location mentioned in the events or you want to graph by iplocation?&lt;BR /&gt;
It will be nice to see a sample of your events&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2017 12:56:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Aggregate-subtotal-the-output-by-locations-not-currently-an/m-p/341382#M101209</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2017-09-18T12:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate/subtotal the output by locations (not currently an index field) so I can produce a graph by location</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Aggregate-subtotal-the-output-by-locations-not-currently-an/m-p/341383#M101210</link>
      <description>&lt;P&gt;No, there is no mention of location in the index, and assumed this field would be created via an eval statement.  &lt;/P&gt;

&lt;P&gt;As for the events, they are standard for every Splunk deployment, output from the "metrics.log" adding the kb field.  &lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2017 13:08:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Aggregate-subtotal-the-output-by-locations-not-currently-an/m-p/341383#M101210</guid>
      <dc:creator>tlmayes</dc:creator>
      <dc:date>2017-09-18T13:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate/subtotal the output by locations (not currently an index field) so I can produce a graph by location</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Aggregate-subtotal-the-output-by-locations-not-currently-an/m-p/341384#M101211</link>
      <description>&lt;P&gt;So you need something that maps the hosts to the locations.&lt;/P&gt;

&lt;P&gt;This could be something like...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| stats sum(kb) as totKb by host
| join type=left host [something that gets your host to location mapping | table host location]
| eval location=coalesce(location,"unknown")
| stats sum(totKb) as totKb by location
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You could also use &lt;CODE&gt;lookup&lt;/CODE&gt; or any number of other methods. &lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2017 13:27:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Aggregate-subtotal-the-output-by-locations-not-currently-an/m-p/341384#M101211</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-09-18T13:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate/subtotal the output by locations (not currently an index field) so I can produce a graph by location</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Aggregate-subtotal-the-output-by-locations-not-currently-an/m-p/341385#M101212</link>
      <description>&lt;P&gt;Thanks... the lookup was the key (and the tree hiding in the forest). &lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2017 15:10:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Aggregate-subtotal-the-output-by-locations-not-currently-an/m-p/341385#M101212</guid>
      <dc:creator>tlmayes</dc:creator>
      <dc:date>2017-09-18T15:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: Aggregate/subtotal the output by locations (not currently an index field) so I can produce a graph by location</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Aggregate-subtotal-the-output-by-locations-not-currently-an/m-p/341386#M101213</link>
      <description>&lt;P&gt;@tlmayes - yep, I've wandered that forest many times in the last 8 months.  Now it's just kind of "wave and a path appears..."&lt;/P&gt;</description>
      <pubDate>Mon, 18 Sep 2017 16:21:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Aggregate-subtotal-the-output-by-locations-not-currently-an/m-p/341386#M101213</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-09-18T16:21:37Z</dc:date>
    </item>
  </channel>
</rss>

