<?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: Create table of max values from timechart results in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Create-table-of-max-values-from-timechart-results/m-p/18697#M2744</link>
    <description>&lt;P&gt;If you append this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | lookup lookup_name column_1 AS column_2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;you'll get the other fields from the lookup joined to the other rows. A look in the docs wouldn't hurt either &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 31 Jul 2013 07:05:08 GMT</pubDate>
    <dc:creator>martin_mueller</dc:creator>
    <dc:date>2013-07-31T07:05:08Z</dc:date>
    <item>
      <title>Create table of max values from timechart results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-table-of-max-values-from-timechart-results/m-p/18689#M2736</link>
      <description>&lt;P&gt;I've created a time chart which successfully builds a table of the count of "src_ip" values in a 5 minute bucket. So, for the 1 hour period, I have 12 time buckets (5 min each) for each "pool" of src_ip's. &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=my_index earliest=-60m sourcetype=*dhcp* dhcp_message=DHCPACK | lookup wireless_networks network as src_ip | search ssid=mynetwork | transaction src_ip maxspan=5m  | timechart span=5m count(_raw) as leases by pool
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I would instead like to end up with a table that has JUST the maximum value across all 12 buckets for each "pool". I thought I could simply pipe to a stats or streamstats or table command, but this does not seem to work. Once I have the timechart I want, how can I get a table with just the maximum of each column across all the time buckets?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:27:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-table-of-max-values-from-timechart-results/m-p/18689#M2736</guid>
      <dc:creator>ryanholland</dc:creator>
      <dc:date>2020-09-28T14:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: Create table of max values from timechart results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-table-of-max-values-from-timechart-results/m-p/18690#M2737</link>
      <description>&lt;P&gt;Have you tried the max aggregator in timechart?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2013 14:59:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-table-of-max-values-from-timechart-results/m-p/18690#M2737</guid>
      <dc:creator>sowings</dc:creator>
      <dc:date>2013-07-30T14:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: Create table of max values from timechart results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-table-of-max-values-from-timechart-results/m-p/18691#M2738</link>
      <description>&lt;P&gt;Just looked up what I think you are referring to, but not sure it's applicable. With timechart, I (obviously) get buckets for each time slice, and for each time slice, it's broken down by pool. However, for each individual pool, I want the max across ALL the time buckets. Perhaps a screen shot is worthwhile . . .&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2013 15:10:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-table-of-max-values-from-timechart-results/m-p/18691#M2738</guid>
      <dc:creator>ryanholland</dc:creator>
      <dc:date>2013-07-30T15:10:24Z</dc:date>
    </item>
    <item>
      <title>Re: Create table of max values from timechart results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-table-of-max-values-from-timechart-results/m-p/18692#M2739</link>
      <description>&lt;P&gt;Adding to the above comment response, here's an illustration. I currently have this:&lt;/P&gt;

&lt;P&gt;(Sorry for the link . . . apparently I don't have enough "Splunk karma")&lt;BR /&gt;
&lt;A href="https://www.dropbox.com/s/yt4gc9dl87matbj/splunk_img.png"&gt;https://www.dropbox.com/s/yt4gc9dl87matbj/splunk_img.png&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;What I'd like to have as a result is:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;north-A     1161&lt;/LI&gt;
&lt;LI&gt;north-B     1067&lt;/LI&gt;
&lt;LI&gt;south-A     925&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;(Ignore the fact that the first row contains the maximums. That's not always the case.)&lt;/P&gt;

&lt;P&gt;Ideas?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2013 15:19:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-table-of-max-values-from-timechart-results/m-p/18692#M2739</guid>
      <dc:creator>ryanholland</dc:creator>
      <dc:date>2013-07-30T15:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: Create table of max values from timechart results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-table-of-max-values-from-timechart-results/m-p/18693#M2740</link>
      <description>&lt;P&gt;I'll transfer your issue to something we can all run - counting _internal by sourcetype. This would be your timechart:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal | timechart count by sourcetype
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;As a result you get buckets with a count for each sourcetype for the specific timespan.&lt;BR /&gt;
In order to get the maximum value per sourcetype, append this stats:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=_internal | timechart count by sourcetype | stats max(*) as *
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then you get one row with the maximum per sourcetype.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2013 15:37:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-table-of-max-values-from-timechart-results/m-p/18693#M2740</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2013-07-30T15:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: Create table of max values from timechart results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-table-of-max-values-from-timechart-results/m-p/18694#M2741</link>
      <description>&lt;P&gt;Awesome! This gets the data I need. Is there a way to get one COLUMN with maximum per sourcetype instead of one ROW?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2013 15:47:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-table-of-max-values-from-timechart-results/m-p/18694#M2741</guid>
      <dc:creator>ryanholland</dc:creator>
      <dc:date>2013-07-30T15:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: Create table of max values from timechart results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-table-of-max-values-from-timechart-results/m-p/18695#M2742</link>
      <description>&lt;P&gt;Transpose?&lt;/P&gt;

&lt;P&gt;Note, depending on your ultimate goal there may be more efficient ways.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2013 15:54:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-table-of-max-values-from-timechart-results/m-p/18695#M2742</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2013-07-30T15:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: Create table of max values from timechart results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-table-of-max-values-from-timechart-results/m-p/18696#M2743</link>
      <description>&lt;P&gt;Awesome! Now I have a table with columnA=pool and columnB=highest_peak. This is great.&lt;/P&gt;

&lt;P&gt;In a different lookup table, I have columnA=pool and columnB equal to max allowed in the pool. I'd like to determine the percentage of highest_peak / max. I don't know how to put the results against the "max" column I have in the other lookup.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2013 16:53:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-table-of-max-values-from-timechart-results/m-p/18696#M2743</guid>
      <dc:creator>ryanholland</dc:creator>
      <dc:date>2013-07-30T16:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: Create table of max values from timechart results</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Create-table-of-max-values-from-timechart-results/m-p/18697#M2744</link>
      <description>&lt;P&gt;If you append this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | lookup lookup_name column_1 AS column_2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;you'll get the other fields from the lookup joined to the other rows. A look in the docs wouldn't hurt either &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jul 2013 07:05:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Create-table-of-max-values-from-timechart-results/m-p/18697#M2744</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2013-07-31T07:05:08Z</dc:date>
    </item>
  </channel>
</rss>

