<?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: Outputlookup creating csv with columns that are alphabetical? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Outputlookup-creating-csv-with-columns-that-are-alphabetical/m-p/616859#M106543</link>
    <description>&lt;P&gt;So table "works" but it was too much to keep adding this logic as I have a few columns, and I didn't want to have to keep editing them everywhere as I add/remove them.&lt;/P&gt;&lt;P&gt;In the end, I fixed it differently (going to share how for the next person).&amp;nbsp; Instead of using a csv (that, once again, gets read in will alphabetize the columns (booooo!)) I leveraged a report!&amp;nbsp; It's probably a better way anyway.&lt;/P&gt;&lt;P&gt;Once the report was scheduled, I leverage it using&amp;nbsp;&lt;/P&gt;&lt;P&gt;loadjob savedseach="user:app:reportname"&amp;nbsp;&lt;/P&gt;&lt;P&gt;This preserves column order!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Oct 2022 19:06:41 GMT</pubDate>
    <dc:creator>maxsteel</dc:creator>
    <dc:date>2022-10-12T19:06:41Z</dc:date>
    <item>
      <title>Outputlookup creating csv with columns that are alphabetical?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Outputlookup-creating-csv-with-columns-that-are-alphabetical/m-p/616347#M106486</link>
      <description>&lt;P&gt;I have a search that gathers a bunch of data from various sources and appends to 1 big stats that I have reporting in a customized column order.&lt;BR /&gt;After I weed out some things I don't like, it looks perfect in search, so I appended a:&lt;BR /&gt;| outputlookup file.csv&lt;BR /&gt;to the very bottom so it'd write to a reusable csv.&lt;BR /&gt;&lt;BR /&gt;When I look at the dataset/csv it is rearranging my columns into an alphabetical order (caps first).&lt;/P&gt;
&lt;P&gt;Is there any way to keep my order in the csv so when I reference it later in an inputlookup I don't need to manually reorder it everytime?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 16:44:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Outputlookup-creating-csv-with-columns-that-are-alphabetical/m-p/616347#M106486</guid>
      <dc:creator>maxsteel</dc:creator>
      <dc:date>2022-10-07T16:44:02Z</dc:date>
    </item>
    <item>
      <title>Re: Outputlookup creating csv with columns that are alphabetical?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Outputlookup-creating-csv-with-columns-that-are-alphabetical/m-p/616349#M106487</link>
      <description>&lt;P&gt;Do you have a &lt;FONT face="courier new,courier"&gt;table&lt;/FONT&gt; command in the query?&amp;nbsp; That's a sure way to set the order in which fields appear.&lt;/P&gt;&lt;P&gt;Why do you have to reorder fields following &lt;FONT face="courier new,courier"&gt;inputlookup&lt;/FONT&gt;?&amp;nbsp; Splunk doesn't care what the order is.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 20:13:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Outputlookup-creating-csv-with-columns-that-are-alphabetical/m-p/616349#M106487</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-10-07T20:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: Outputlookup creating csv with columns that are alphabetical?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Outputlookup-creating-csv-with-columns-that-are-alphabetical/m-p/616353#M106490</link>
      <description>&lt;P&gt;I leveraged stats to create the output in a specific order, not table.&lt;/P&gt;&lt;P&gt;It &lt;STRONG&gt;appears&lt;/STRONG&gt; that the outputlookup is rearranging my reusable csv alphabetically and then when I call it later it's showing this new alphabetical order.&lt;/P&gt;&lt;P&gt;I'd rather it be in the same order as my stats so that I don't have to reorder every time I call the csv.&lt;/P&gt;&lt;P&gt;(you are right that splunk doesn't care about order, but I do &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; )&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 17:07:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Outputlookup-creating-csv-with-columns-that-are-alphabetical/m-p/616353#M106490</guid>
      <dc:creator>maxsteel</dc:creator>
      <dc:date>2022-10-07T17:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: Outputlookup creating csv with columns that are alphabetical?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Outputlookup-creating-csv-with-columns-that-are-alphabetical/m-p/616374#M106498</link>
      <description>&lt;P&gt;Try putting a table command before outputlookup to enforce the field order.&amp;nbsp; Not sure if it will help, but it might.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 20:14:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Outputlookup-creating-csv-with-columns-that-are-alphabetical/m-p/616374#M106498</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2022-10-07T20:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: Outputlookup creating csv with columns that are alphabetical?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Outputlookup-creating-csv-with-columns-that-are-alphabetical/m-p/616694#M106522</link>
      <description>&lt;P&gt;I was hoping to not have to create a table for each, hence the original question.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That being said, if splunk likes to alphabetize outputlookup tables, then I guess I have to use a table and specify order each time.. yuk..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Oct 2022 14:26:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Outputlookup-creating-csv-with-columns-that-are-alphabetical/m-p/616694#M106522</guid>
      <dc:creator>maxsteel</dc:creator>
      <dc:date>2022-10-11T14:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: Outputlookup creating csv with columns that are alphabetical?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Outputlookup-creating-csv-with-columns-that-are-alphabetical/m-p/616859#M106543</link>
      <description>&lt;P&gt;So table "works" but it was too much to keep adding this logic as I have a few columns, and I didn't want to have to keep editing them everywhere as I add/remove them.&lt;/P&gt;&lt;P&gt;In the end, I fixed it differently (going to share how for the next person).&amp;nbsp; Instead of using a csv (that, once again, gets read in will alphabetize the columns (booooo!)) I leveraged a report!&amp;nbsp; It's probably a better way anyway.&lt;/P&gt;&lt;P&gt;Once the report was scheduled, I leverage it using&amp;nbsp;&lt;/P&gt;&lt;P&gt;loadjob savedseach="user:app:reportname"&amp;nbsp;&lt;/P&gt;&lt;P&gt;This preserves column order!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2022 19:06:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Outputlookup-creating-csv-with-columns-that-are-alphabetical/m-p/616859#M106543</guid>
      <dc:creator>maxsteel</dc:creator>
      <dc:date>2022-10-12T19:06:41Z</dc:date>
    </item>
  </channel>
</rss>

