<?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: Define field order on export in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Define-field-order-on-export/m-p/12936#M1082</link>
    <description>&lt;P&gt;What version of Splunk is this?  I think that the ordering was an issue prior to 4.0...&lt;/P&gt;</description>
    <pubDate>Fri, 07 May 2010 03:44:13 GMT</pubDate>
    <dc:creator>bfaber</dc:creator>
    <dc:date>2010-05-07T03:44:13Z</dc:date>
    <item>
      <title>Define field order on export</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Define-field-order-on-export/m-p/12935#M1081</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;

&lt;P&gt;I have a saved search that I want to run every day at noon, I am sending the results trough mail and want to analyse them, but the fields order isn't logic.&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;host="fw.azl.local" type="event" subtype="admin" pri="notice" seq!="" | fields - _* | fields date, time, ui, user, msg, devname, sintf, dintf, saddr, daddr, svr, act &lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;My results are in a different order then the one i am searching for (date, time, etc..)
How can i make sure i have the same order in my mail as the search string ?&lt;/P&gt;

&lt;P&gt;Thnx !&lt;/P&gt;</description>
      <pubDate>Wed, 05 May 2010 18:40:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Define-field-order-on-export/m-p/12935#M1081</guid>
      <dc:creator>CerielTjuh</dc:creator>
      <dc:date>2010-05-05T18:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Define field order on export</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Define-field-order-on-export/m-p/12936#M1082</link>
      <description>&lt;P&gt;What version of Splunk is this?  I think that the ordering was an issue prior to 4.0...&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2010 03:44:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Define-field-order-on-export/m-p/12936#M1082</guid>
      <dc:creator>bfaber</dc:creator>
      <dc:date>2010-05-07T03:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: Define field order on export</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Define-field-order-on-export/m-p/12937#M1083</link>
      <description>&lt;P&gt;Latest version, 4.1.2, I found out yesterday that if i create a new dashboard with the search, the order is fine, only when i create a saved search and let Splunk e-mail me the results it is messed up.&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2010 13:48:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Define-field-order-on-export/m-p/12937#M1083</guid>
      <dc:creator>CerielTjuh</dc:creator>
      <dc:date>2010-05-07T13:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Define field order on export</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Define-field-order-on-export/m-p/12938#M1084</link>
      <description>&lt;P&gt;That may be a bug -- I'd send it to &lt;A href="mailto:support@splunk.com"&gt;support@splunk.com&lt;/A&gt;...&lt;/P&gt;</description>
      <pubDate>Sat, 08 May 2010 01:37:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Define-field-order-on-export/m-p/12938#M1084</guid>
      <dc:creator>bfaber</dc:creator>
      <dc:date>2010-05-08T01:37:10Z</dc:date>
    </item>
    <item>
      <title>Re: Define field order on export</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Define-field-order-on-export/m-p/12939#M1085</link>
      <description>&lt;P&gt;I was told by support that the field order difference between the the web GUI and saved searches is a bug and should be resolved in 4.1.4.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2010 04:27:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Define-field-order-on-export/m-p/12939#M1085</guid>
      <dc:creator>kbecker</dc:creator>
      <dc:date>2010-06-18T04:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: Define field order on export</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Define-field-order-on-export/m-p/12940#M1086</link>
      <description>&lt;P&gt;The script that sends emails out specifically re-orders fields by length of content (field with longest value first). I have modified the script to remove this logic, but yes it would be nice if that is being done permanently.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2010 05:13:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Define-field-order-on-export/m-p/12940#M1086</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-06-18T05:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: Define field order on export</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Define-field-order-on-export/m-p/12941#M1087</link>
      <description>&lt;P&gt;Thnx guys, I will wait for the new release &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2010 13:28:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Define-field-order-on-export/m-p/12941#M1087</guid>
      <dc:creator>CerielTjuh</dc:creator>
      <dc:date>2010-06-18T13:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: Define field order on export</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Define-field-order-on-export/m-p/12942#M1088</link>
      <description>&lt;P&gt;The email functionality is driven by a script called 'sendemail.py' in the search app. If you're brave, you can do this:
  - copy sendemail.py to sendemail-custom.py
  - make any changes you like in that script
  - add this to apps/search/local/commands.conf:
        [sendemail]
        filename = sendemail-custom.py&lt;/P&gt;

&lt;P&gt;Your custom version can do whatever you want it to, but the drawback is you now have to maintain it if Splunk makes changes to the original (for example, the addition of PDF emails in Splunk 4.1)&lt;/P&gt;

&lt;P&gt;I use a modified version of the script that adds CSS formatting to the email and re-orders the fields if it sees a 'fields' command in the search string.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Aug 2010 20:44:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Define-field-order-on-export/m-p/12942#M1088</guid>
      <dc:creator>southeringtonp</dc:creator>
      <dc:date>2010-08-16T20:44:11Z</dc:date>
    </item>
  </channel>
</rss>

