<?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 display column results in descending order? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-column-results-in-descending-order/m-p/405622#M117264</link>
    <description>&lt;P&gt;hmm what happens if you try this &lt;CODE&gt;&amp;lt;your query&amp;gt;| addtotals | sort - Total&lt;/CODE&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Jun 2018 18:29:09 GMT</pubDate>
    <dc:creator>Sukisen1981</dc:creator>
    <dc:date>2018-06-27T18:29:09Z</dc:date>
    <item>
      <title>How to display column results in descending order?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-column-results-in-descending-order/m-p/405619#M117261</link>
      <description>&lt;P&gt;It shows the result in the below format&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;uri          208         400  
...            ....             ...
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I want to show those uri's on top which has maximum responseCodes, I tried using the below query but it is not giving the desired output.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;host="*prod*" uri="*v*" earliest = -7d@d
| WHERE responseCode != 200 
| chart count by uri, responseCode
| sort -responseCode
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Sort is not giving results in descending order.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2018 16:55:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-column-results-in-descending-order/m-p/405619#M117261</guid>
      <dc:creator>prannoy93singh</dc:creator>
      <dc:date>2018-06-27T16:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to display column results in descending order?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-column-results-in-descending-order/m-p/405620#M117262</link>
      <description>&lt;P&gt;Hi Prannoy,&lt;/P&gt;

&lt;P&gt;Try adding desc in your search, please try the one below.&lt;/P&gt;

&lt;P&gt;host="prod" uri="v" earliest = -7d@d&lt;BR /&gt;
    | WHERE responseCode != 200 &lt;BR /&gt;
    | chart count by uri, responseCode&lt;BR /&gt;
    | sort responseCode desc&lt;/P&gt;

&lt;P&gt;Let me know if it helps.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2018 17:40:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-column-results-in-descending-order/m-p/405620#M117262</guid>
      <dc:creator>pruthvikrishnap</dc:creator>
      <dc:date>2018-06-27T17:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to display column results in descending order?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-column-results-in-descending-order/m-p/405621#M117263</link>
      <description>&lt;P&gt;I tried implementing it, but still I am not getting the desired result. &lt;BR /&gt;
I was thinking to do the sum of columns and then sort the sum, but am not able to implement it effectively. &lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2018 17:54:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-column-results-in-descending-order/m-p/405621#M117263</guid>
      <dc:creator>prannoy93singh</dc:creator>
      <dc:date>2018-06-27T17:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to display column results in descending order?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-column-results-in-descending-order/m-p/405622#M117264</link>
      <description>&lt;P&gt;hmm what happens if you try this &lt;CODE&gt;&amp;lt;your query&amp;gt;| addtotals | sort - Total&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2018 18:29:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-column-results-in-descending-order/m-p/405622#M117264</guid>
      <dc:creator>Sukisen1981</dc:creator>
      <dc:date>2018-06-27T18:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to display column results in descending order?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-column-results-in-descending-order/m-p/405623#M117265</link>
      <description>&lt;P&gt;yes, it is working.&lt;BR /&gt;
Thank You &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jun 2018 20:22:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-column-results-in-descending-order/m-p/405623#M117265</guid>
      <dc:creator>prannoy93singh</dc:creator>
      <dc:date>2018-06-27T20:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to display column results in descending order?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-column-results-in-descending-order/m-p/405624#M117266</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;
Am facing similar kind of issue where i need to sort the time column with the latest time.&lt;BR /&gt;
Will sorting works with column header time value using chart command?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Nov 2019 00:30:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-column-results-in-descending-order/m-p/405624#M117266</guid>
      <dc:creator>arunrajamani</dc:creator>
      <dc:date>2019-11-25T00:30:55Z</dc:date>
    </item>
  </channel>
</rss>

