<?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 Reordering columns not working through API in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Reordering-columns-not-working-through-API/m-p/98488#M25349</link>
    <description>&lt;P&gt;I want to reorder my columns. I tried both &lt;EM&gt;table&lt;/EM&gt; and &lt;EM&gt;fields&lt;/EM&gt;, and they seemed to work through the web UI, but when I tried it through the REST API the order did not change at all.&lt;/P&gt;

&lt;P&gt;Is there any known problem with reordering  through REST API, or can anyone point out what I'm doing wrong? Below is my query.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=na1 host=*app* logRecordTypeseclk=1 earliest=-5h tableEnumOrId=Contact OR tableEnumOrId=CollaborationGroup | where rank &amp;lt; 10 | stats count by rank, tableEnumOrId | table count, tableEnumOrId, rank
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;EDIT:&lt;/P&gt;

&lt;P&gt;I asked this a while ago but I think the issue is somehow &lt;CODE&gt;stats&lt;/CODE&gt; is affecting &lt;CODE&gt;table&lt;/CODE&gt;. When I change &lt;CODE&gt;stats count by rank, tableEnumOrId&lt;/CODE&gt; to &lt;CODE&gt;stats count by tableEnumOrId, rank&lt;/CODE&gt;, the output order changed accordingly. But no matter how I change the ordering of the column names in &lt;CODE&gt;table&lt;/CODE&gt;, nothing changes.&lt;/P&gt;

&lt;P&gt;Is this a known issue? Or am I just doing something wrong?&lt;/P&gt;</description>
    <pubDate>Wed, 17 Jul 2013 18:17:54 GMT</pubDate>
    <dc:creator>whateverwhouare</dc:creator>
    <dc:date>2013-07-17T18:17:54Z</dc:date>
    <item>
      <title>Reordering columns not working through API</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Reordering-columns-not-working-through-API/m-p/98488#M25349</link>
      <description>&lt;P&gt;I want to reorder my columns. I tried both &lt;EM&gt;table&lt;/EM&gt; and &lt;EM&gt;fields&lt;/EM&gt;, and they seemed to work through the web UI, but when I tried it through the REST API the order did not change at all.&lt;/P&gt;

&lt;P&gt;Is there any known problem with reordering  through REST API, or can anyone point out what I'm doing wrong? Below is my query.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=na1 host=*app* logRecordTypeseclk=1 earliest=-5h tableEnumOrId=Contact OR tableEnumOrId=CollaborationGroup | where rank &amp;lt; 10 | stats count by rank, tableEnumOrId | table count, tableEnumOrId, rank
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;EDIT:&lt;/P&gt;

&lt;P&gt;I asked this a while ago but I think the issue is somehow &lt;CODE&gt;stats&lt;/CODE&gt; is affecting &lt;CODE&gt;table&lt;/CODE&gt;. When I change &lt;CODE&gt;stats count by rank, tableEnumOrId&lt;/CODE&gt; to &lt;CODE&gt;stats count by tableEnumOrId, rank&lt;/CODE&gt;, the output order changed accordingly. But no matter how I change the ordering of the column names in &lt;CODE&gt;table&lt;/CODE&gt;, nothing changes.&lt;/P&gt;

&lt;P&gt;Is this a known issue? Or am I just doing something wrong?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2013 18:17:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Reordering-columns-not-working-through-API/m-p/98488#M25349</guid>
      <dc:creator>whateverwhouare</dc:creator>
      <dc:date>2013-07-17T18:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Reordering columns not working through API</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Reordering-columns-not-working-through-API/m-p/98489#M25350</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;

&lt;P&gt;I'm having the same issue with REST and I do not see anyway to fix it so far.&lt;/P&gt;

&lt;P&gt;I've just upgraded from Splunk 5.0.5 to 6.2.2 and noticed the behavior.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2015 20:39:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Reordering-columns-not-working-through-API/m-p/98489#M25350</guid>
      <dc:creator>nicolas_perreau</dc:creator>
      <dc:date>2015-03-24T20:39:18Z</dc:date>
    </item>
  </channel>
</rss>

