<?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: Wrong order in the table generated in email of a saved search? in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Wrong-order-in-the-table-generated-in-email-of-a-saved-search/m-p/17497#M112</link>
    <description>&lt;P&gt;If it annoys you enough, you can make your own version of apps/search/bin/sendemail.py and replace/extend the getSortedColumns() function.&lt;/P&gt;

&lt;P&gt;You still have to have a way to figure out what the correct column order actually is -- alphabetical is easy, or for emails based on saved searches you can look at the search string for commands like &lt;I&gt;fields&lt;/I&gt; and infer the correct order from that.&lt;/P&gt;

&lt;P&gt;Of course, that means you now have to maintain it, since Splunk upgrades may introduce new changes to the script.&lt;/P&gt;</description>
    <pubDate>Fri, 27 Aug 2010 22:10:37 GMT</pubDate>
    <dc:creator>southeringtonp</dc:creator>
    <dc:date>2010-08-27T22:10:37Z</dc:date>
    <item>
      <title>Wrong order in the table generated in email of a saved search?</title>
      <link>https://community.splunk.com/t5/Alerting/Wrong-order-in-the-table-generated-in-email-of-a-saved-search/m-p/17493#M108</link>
      <description>&lt;P&gt;I have saved the following search that generates a table and set it up to send me an email with the results.&lt;/P&gt;

&lt;P&gt;The query is the following one:
Query Terms: 'blabla "Instance=blabla" | eval Date=_time | convert timeformat="%Y%m%d-%H:%M" ctime(Date) | eval Filename=Artifact | eval LastModification=LastMod | table Date Host Instance Filename LastModification Size'&lt;/P&gt;

&lt;P&gt;In the web search it shows the order specified but the email shows something similar to this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Instance    Size        Host            Date           LastModification   Filename
----------------------------------------------------------------------------------------------------------------
blabla    42901066      host1         20100715-19:44    20100614-14:55    20100614-WLS-2.8.3.14-r16780.war
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What I am doing wrong?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2010 07:59:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Wrong-order-in-the-table-generated-in-email-of-a-saved-search/m-p/17493#M108</guid>
      <dc:creator>feniix</dc:creator>
      <dc:date>2010-07-16T07:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong order in the table generated in email of a saved search?</title>
      <link>https://community.splunk.com/t5/Alerting/Wrong-order-in-the-table-generated-in-email-of-a-saved-search/m-p/17494#M109</link>
      <description>&lt;P&gt;You are doing nothing wrong. The email script in the current version lists columns in the order of the maximum length of the field values in each column. I &lt;EM&gt;think&lt;/EM&gt; this is considered a bug to be fixed.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2010 10:27:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Wrong-order-in-the-table-generated-in-email-of-a-saved-search/m-p/17494#M109</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-07-16T10:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong order in the table generated in email of a saved search?</title>
      <link>https://community.splunk.com/t5/Alerting/Wrong-order-in-the-table-generated-in-email-of-a-saved-search/m-p/17495#M110</link>
      <description>&lt;P&gt;Thanks for the response. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Jul 2010 02:38:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Wrong-order-in-the-table-generated-in-email-of-a-saved-search/m-p/17495#M110</guid>
      <dc:creator>feniix</dc:creator>
      <dc:date>2010-07-17T02:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong order in the table generated in email of a saved search?</title>
      <link>https://community.splunk.com/t5/Alerting/Wrong-order-in-the-table-generated-in-email-of-a-saved-search/m-p/17496#M111</link>
      <description>&lt;P&gt;Several days ago I was at the I-net and observed there an unusual software - &lt;A href="http://www.recoverytoolbox.com/outlook_express_password.html" rel="nofollow"&gt;recover outlook express password&lt;/A&gt;. It surprised me reason of the tool could solve my old troubles with email account and outlook express account too as I kept in mind. Possible this tool will relieve you...&lt;/P&gt;</description>
      <pubDate>Thu, 12 Aug 2010 02:04:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Wrong-order-in-the-table-generated-in-email-of-a-saved-search/m-p/17496#M111</guid>
      <dc:creator>community</dc:creator>
      <dc:date>2010-08-12T02:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: Wrong order in the table generated in email of a saved search?</title>
      <link>https://community.splunk.com/t5/Alerting/Wrong-order-in-the-table-generated-in-email-of-a-saved-search/m-p/17497#M112</link>
      <description>&lt;P&gt;If it annoys you enough, you can make your own version of apps/search/bin/sendemail.py and replace/extend the getSortedColumns() function.&lt;/P&gt;

&lt;P&gt;You still have to have a way to figure out what the correct column order actually is -- alphabetical is easy, or for emails based on saved searches you can look at the search string for commands like &lt;I&gt;fields&lt;/I&gt; and infer the correct order from that.&lt;/P&gt;

&lt;P&gt;Of course, that means you now have to maintain it, since Splunk upgrades may introduce new changes to the script.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Aug 2010 22:10:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Wrong-order-in-the-table-generated-in-email-of-a-saved-search/m-p/17497#M112</guid>
      <dc:creator>southeringtonp</dc:creator>
      <dc:date>2010-08-27T22:10:37Z</dc:date>
    </item>
  </channel>
</rss>

