<?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: How to sort by max value of a dynamic set of columns in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-sort-by-max-value-of-a-dynamic-set-of-columns/m-p/126237#M34178</link>
    <description>&lt;P&gt;Try this (may be inefficient) workaround &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"Your  base search giving you output in Above format" | table [search "Your  base search giving you output in Above format" | untable "Error Code" SoftwareVersion Count | stats max(Count) as count by SoftwareVersion | sort 0 - count | stats list(SoftwareVersion) as search | nomv search] 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 03 Apr 2015 01:21:02 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2015-04-03T01:21:02Z</dc:date>
    <item>
      <title>How to sort by max value of a dynamic set of columns</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-sort-by-max-value-of-a-dynamic-set-of-columns/m-p/126236#M34177</link>
      <description>&lt;P&gt;I have a Splunk query that shows a count of error codes by software version. The table looks something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Error Code      1.1     1.2     1.3
Error 1         5       0       10
Error 2         7       9       0
Error 3         20      3       8
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What I'd like to do is dynamically find the column with the max value across all columns and sort descending on that column. Is that even possible?&lt;/P&gt;</description>
      <pubDate>Thu, 02 Apr 2015 23:59:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-sort-by-max-value-of-a-dynamic-set-of-columns/m-p/126236#M34177</guid>
      <dc:creator>dbendixen</dc:creator>
      <dc:date>2015-04-02T23:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort by max value of a dynamic set of columns</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-sort-by-max-value-of-a-dynamic-set-of-columns/m-p/126237#M34178</link>
      <description>&lt;P&gt;Try this (may be inefficient) workaround &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"Your  base search giving you output in Above format" | table [search "Your  base search giving you output in Above format" | untable "Error Code" SoftwareVersion Count | stats max(Count) as count by SoftwareVersion | sort 0 - count | stats list(SoftwareVersion) as search | nomv search] 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 03 Apr 2015 01:21:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-sort-by-max-value-of-a-dynamic-set-of-columns/m-p/126237#M34178</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-04-03T01:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort by max value of a dynamic set of columns</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-sort-by-max-value-of-a-dynamic-set-of-columns/m-p/126238#M34179</link>
      <description>&lt;P&gt;I will give this a try, thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 03 Apr 2015 01:40:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-sort-by-max-value-of-a-dynamic-set-of-columns/m-p/126238#M34179</guid>
      <dc:creator>dbendixen</dc:creator>
      <dc:date>2015-04-03T01:40:24Z</dc:date>
    </item>
  </channel>
</rss>

