<?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: can we sort command for sorting the table records rowwise in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/can-we-sort-command-for-sorting-the-table-records-rowwise/m-p/68041#M17000</link>
    <description>&lt;P&gt;If you know from the start which values you will be getting in the column headers, use &lt;CODE&gt;table&lt;/CODE&gt;.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | chart avg(duration) by eventtype,SearchParameter | table SearchParameter B D E A C
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 05 Jun 2012 21:30:59 GMT</pubDate>
    <dc:creator>Ayn</dc:creator>
    <dc:date>2012-06-05T21:30:59Z</dc:date>
    <item>
      <title>can we sort command for sorting the table records rowwise</title>
      <link>https://community.splunk.com/t5/Splunk-Search/can-we-sort-command-for-sorting-the-table-records-rowwise/m-p/68040#M16999</link>
      <description>&lt;P&gt;Hi..&lt;/P&gt;

&lt;P&gt;My search query displays the search results in the form of a table like this...&lt;/P&gt;

&lt;P&gt;SearchParameter A   B  C  D  E&lt;BR /&gt;
xyz             9  4   10 5  6&lt;/P&gt;

&lt;P&gt;where xyz is the search parameter .actually i need the table to be sorted like this...&lt;/P&gt;

&lt;P&gt;SearchParameter B D E A C &lt;BR /&gt;
xyz             4 5 6 9 10&lt;/P&gt;

&lt;P&gt;tried sort command but couldn't get the desired results ..&lt;/P&gt;

&lt;P&gt;My search Query is like this...&lt;/P&gt;

&lt;P&gt;sourcetype="X" (somelogic) | transaction keepevicted=true searchparameter | chart avg(duration) by&lt;BR /&gt;
eventtype,searchparameter &lt;/P&gt;

&lt;P&gt;Thanx&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jun 2012 19:16:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/can-we-sort-command-for-sorting-the-table-records-rowwise/m-p/68040#M16999</guid>
      <dc:creator>rakesh_498115</dc:creator>
      <dc:date>2012-06-05T19:16:59Z</dc:date>
    </item>
    <item>
      <title>Re: can we sort command for sorting the table records rowwise</title>
      <link>https://community.splunk.com/t5/Splunk-Search/can-we-sort-command-for-sorting-the-table-records-rowwise/m-p/68041#M17000</link>
      <description>&lt;P&gt;If you know from the start which values you will be getting in the column headers, use &lt;CODE&gt;table&lt;/CODE&gt;.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | chart avg(duration) by eventtype,SearchParameter | table SearchParameter B D E A C
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 05 Jun 2012 21:30:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/can-we-sort-command-for-sorting-the-table-records-rowwise/m-p/68041#M17000</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-06-05T21:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: can we sort command for sorting the table records rowwise</title>
      <link>https://community.splunk.com/t5/Splunk-Search/can-we-sort-command-for-sorting-the-table-records-rowwise/m-p/68042#M17001</link>
      <description>&lt;P&gt;actaully we will not be knowing this information.after excuting the query we will be getting the values for the fields A,B,C,D,E and i need to arrange them in descending order..&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2012 09:16:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/can-we-sort-command-for-sorting-the-table-records-rowwise/m-p/68042#M17001</guid>
      <dc:creator>rakesh_498115</dc:creator>
      <dc:date>2012-06-06T09:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: can we sort command for sorting the table records rowwise</title>
      <link>https://community.splunk.com/t5/Splunk-Search/can-we-sort-command-for-sorting-the-table-records-rowwise/m-p/68043#M17002</link>
      <description>&lt;P&gt;Then I don't understand what you want to achieve. If you want to have stuff in the order B D E A C, but you don't know what B D E A C actually is, how are you (or Splunk) supposed to define the correct order? Also, descending order according to what?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2012 09:19:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/can-we-sort-command-for-sorting-the-table-records-rowwise/m-p/68043#M17002</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-06-06T09:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: can we sort command for sorting the table records rowwise</title>
      <link>https://community.splunk.com/t5/Splunk-Search/can-we-sort-command-for-sorting-the-table-records-rowwise/m-p/68044#M17003</link>
      <description>&lt;P&gt;see the fields which i mentioned above are eventtypes ..so i dont know wat avg(duration) values will be coming for these eventtypes based on the searchparameter..and now i want to sort them as shown above&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2012 09:47:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/can-we-sort-command-for-sorting-the-table-records-rowwise/m-p/68044#M17003</guid>
      <dc:creator>rakesh_498115</dc:creator>
      <dc:date>2012-06-06T09:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: can we sort command for sorting the table records rowwise</title>
      <link>https://community.splunk.com/t5/Splunk-Search/can-we-sort-command-for-sorting-the-table-records-rowwise/m-p/68045#M17004</link>
      <description>&lt;P&gt;sourcetype="X" (somelogic) | transaction keepevicted=true searchparameter | chart avg(duration) by eventtype,searchparameter &lt;/P&gt;

&lt;P&gt;this is my search query . in this search query if i use stats instead of chart .. i am getting the output like this..&lt;/P&gt;

&lt;P&gt;searchparameter      eventtype   avg(duration)&lt;/P&gt;

&lt;P&gt;xyz                   A              9&lt;BR /&gt;
xyz                   B              4&lt;BR /&gt;
xyz                   C              10&lt;BR /&gt;
xyz                   D               5&lt;BR /&gt;
xyz                   E               6&lt;/P&gt;

&lt;P&gt;Now if i use sort command my data is sorting .but the table appears as it is.plz help&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2012 09:54:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/can-we-sort-command-for-sorting-the-table-records-rowwise/m-p/68045#M17004</guid>
      <dc:creator>rakesh_498115</dc:creator>
      <dc:date>2012-06-06T09:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: can we sort command for sorting the table records rowwise</title>
      <link>https://community.splunk.com/t5/Splunk-Search/can-we-sort-command-for-sorting-the-table-records-rowwise/m-p/68046#M17005</link>
      <description>&lt;P&gt;Ah, OK. I don't think you can change the column order according to column values (if you could, how would Splunk handle different orders in different rows?)&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2012 10:17:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/can-we-sort-command-for-sorting-the-table-records-rowwise/m-p/68046#M17005</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-06-06T10:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: can we sort command for sorting the table records rowwise</title>
      <link>https://community.splunk.com/t5/Splunk-Search/can-we-sort-command-for-sorting-the-table-records-rowwise/m-p/68047#M17006</link>
      <description>&lt;P&gt;acutally my searchquery returns only one row..so is it possible to change the column order according to column values..&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2012 10:25:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/can-we-sort-command-for-sorting-the-table-records-rowwise/m-p/68047#M17006</guid>
      <dc:creator>rakesh_498115</dc:creator>
      <dc:date>2012-06-06T10:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: can we sort command for sorting the table records rowwise</title>
      <link>https://community.splunk.com/t5/Splunk-Search/can-we-sort-command-for-sorting-the-table-records-rowwise/m-p/68048#M17007</link>
      <description>&lt;P&gt;Yes, but I'm talking about the general functionality here. Reordering could perhaps be done in YOUR case with just one row, but to make a general solution out of it would be tricky and/or non-intuitive.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2012 11:44:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/can-we-sort-command-for-sorting-the-table-records-rowwise/m-p/68048#M17007</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-06-06T11:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: can we sort command for sorting the table records rowwise</title>
      <link>https://community.splunk.com/t5/Splunk-Search/can-we-sort-command-for-sorting-the-table-records-rowwise/m-p/68049#M17008</link>
      <description>&lt;P&gt;if its possible ..can you pls provide me the solution for jus one row..how to reorder the row..&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2012 14:55:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/can-we-sort-command-for-sorting-the-table-records-rowwise/m-p/68049#M17008</guid>
      <dc:creator>rakesh_498115</dc:creator>
      <dc:date>2012-06-06T14:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: can we sort command for sorting the table records rowwise</title>
      <link>https://community.splunk.com/t5/Splunk-Search/can-we-sort-command-for-sorting-the-table-records-rowwise/m-p/68050#M17009</link>
      <description>&lt;P&gt;I don't know of any way to accomplish what you want.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jun 2012 20:54:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/can-we-sort-command-for-sorting-the-table-records-rowwise/m-p/68050#M17009</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-06-06T20:54:27Z</dc:date>
    </item>
  </channel>
</rss>

