<?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: Search with output_mode=csv ends up reordering the table command output. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Search-with-output-mode-csv-ends-up-reordering-the-table-command/m-p/99554#M25661</link>
    <description>&lt;P&gt;I ran into a similar issue... Ended up using &lt;CODE&gt;.... | table field1 field2 | outputcsv foo.csv&lt;/CODE&gt; and it corrected the problem.&lt;/P&gt;</description>
    <pubDate>Sat, 24 Jan 2015 05:19:03 GMT</pubDate>
    <dc:creator>ShaneNewman</dc:creator>
    <dc:date>2015-01-24T05:19:03Z</dc:date>
    <item>
      <title>Search with output_mode=csv ends up reordering the table command output.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-with-output-mode-csv-ends-up-reordering-the-table-command/m-p/99553#M25660</link>
      <description>&lt;P&gt;I am doing something like this:&lt;BR /&gt;
[ignore some syntax issues]&lt;/P&gt;

&lt;P&gt;curl ... &lt;A href="https://..../search/jobs/export" target="test_blank"&gt;https://..../search/jobs/export&lt;/A&gt; -d 'search=search index=xyz ... | table Fld1 Fld2' -d output_mode=csv&lt;/P&gt;

&lt;P&gt;Expected output (as given to table command) is:&lt;BR /&gt;
Fld1,Fl2&lt;BR /&gt;
123,abc&lt;/P&gt;

&lt;P&gt;Actual output is&lt;BR /&gt;
Fld2,Fld1&lt;BR /&gt;
abc ,123&lt;/P&gt;

&lt;P&gt;Any idea why it is getting re-ordered and how can I get it in the format I want?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Mar 2012 19:38:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-with-output-mode-csv-ends-up-reordering-the-table-command/m-p/99553#M25660</guid>
      <dc:creator>paragcisco</dc:creator>
      <dc:date>2012-03-22T19:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Search with output_mode=csv ends up reordering the table command output.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Search-with-output-mode-csv-ends-up-reordering-the-table-command/m-p/99554#M25661</link>
      <description>&lt;P&gt;I ran into a similar issue... Ended up using &lt;CODE&gt;.... | table field1 field2 | outputcsv foo.csv&lt;/CODE&gt; and it corrected the problem.&lt;/P&gt;</description>
      <pubDate>Sat, 24 Jan 2015 05:19:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Search-with-output-mode-csv-ends-up-reordering-the-table-command/m-p/99554#M25661</guid>
      <dc:creator>ShaneNewman</dc:creator>
      <dc:date>2015-01-24T05:19:03Z</dc:date>
    </item>
  </channel>
</rss>

