<?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 Email Alert Actions - How to remove default fields from each email in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Email-Alert-Actions-How-to-remove-default-fields-from-each-email/m-p/95883#M1385</link>
    <description>&lt;P&gt;Every email we get from Splunk looks like the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;**Saved search results.
Name: 'Tool - Test Port Channel Checking'
Query Terms: 'sourcetype=syslog_info  ETH_PORT_CHANNEL | rex "port-channel(?&amp;lt;port&amp;gt;\d+):" | dedup port | fields + port, host'
Link to results: &lt;A href="http://server.domain.net:8000/app/search/@go?sid=scheduler__nobody__search_VG9vbCAtIFRlc3QgUG9ydCBDaGFubmVsIENoZWNraW5n_at_1289576100_611669212" target="test_blank"&gt;http://server.domain.net:8000/app/search/@go?sid=scheduler__nobody__search_VG9vbCAtIFRlc3QgUG9ydCBDaGFubmVsIENoZWNraW5n_at_1289576100_611669212&lt;/A&gt;
Alert was triggered because of: 'Saved Search [Tool - Test Port Channel Checking]: custom(4)'**
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What I need to do is remove all that Splunk "Default" information and add my own. What .xml file controls this?
I know how to add/remove Fields from email alerts, but the data above is given by default on every email.&lt;/P&gt;

&lt;P&gt;MasterOogway&lt;/P&gt;</description>
    <pubDate>Tue, 30 Nov 2010 06:36:15 GMT</pubDate>
    <dc:creator>MasterOogway</dc:creator>
    <dc:date>2010-11-30T06:36:15Z</dc:date>
    <item>
      <title>Email Alert Actions - How to remove default fields from each email</title>
      <link>https://community.splunk.com/t5/Alerting/Email-Alert-Actions-How-to-remove-default-fields-from-each-email/m-p/95883#M1385</link>
      <description>&lt;P&gt;Every email we get from Splunk looks like the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;**Saved search results.
Name: 'Tool - Test Port Channel Checking'
Query Terms: 'sourcetype=syslog_info  ETH_PORT_CHANNEL | rex "port-channel(?&amp;lt;port&amp;gt;\d+):" | dedup port | fields + port, host'
Link to results: &lt;A href="http://server.domain.net:8000/app/search/@go?sid=scheduler__nobody__search_VG9vbCAtIFRlc3QgUG9ydCBDaGFubmVsIENoZWNraW5n_at_1289576100_611669212" target="test_blank"&gt;http://server.domain.net:8000/app/search/@go?sid=scheduler__nobody__search_VG9vbCAtIFRlc3QgUG9ydCBDaGFubmVsIENoZWNraW5n_at_1289576100_611669212&lt;/A&gt;
Alert was triggered because of: 'Saved Search [Tool - Test Port Channel Checking]: custom(4)'**
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;What I need to do is remove all that Splunk "Default" information and add my own. What .xml file controls this?
I know how to add/remove Fields from email alerts, but the data above is given by default on every email.&lt;/P&gt;

&lt;P&gt;MasterOogway&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2010 06:36:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Email-Alert-Actions-How-to-remove-default-fields-from-each-email/m-p/95883#M1385</guid>
      <dc:creator>MasterOogway</dc:creator>
      <dc:date>2010-11-30T06:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: Email Alert Actions - How to remove default fields from each email</title>
      <link>https://community.splunk.com/t5/Alerting/Email-Alert-Actions-How-to-remove-default-fields-from-each-email/m-p/95884#M1386</link>
      <description>&lt;P&gt;For the most part, these are controlled directly by the &lt;CODE&gt;sendemail.py&lt;/CODE&gt; script, and not by a config file.&lt;/P&gt;

&lt;P&gt;The simplest solution would be to schedule your search to call the &lt;CODE&gt;sendemail&lt;/CODE&gt; command directly, by piping to:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;.... | sendemail.py to=user@foo.org sendresults=true server=mail.bar.org
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you want more control, you'll need to create your own version of the &lt;CODE&gt;sendemail&lt;/CODE&gt; script, and update &lt;CODE&gt;commands.conf&lt;/CODE&gt; in the search app to point to your customized version.&lt;/P&gt;

&lt;P&gt;See also:
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;A href="http://answers.splunk.com/questions/8532/remove-query-and-table-header-from-emails" rel="nofollow"&gt;http://answers.splunk.com/questions/8532/remove-query-and-table-header-from-emails&lt;/A&gt;
&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
&lt;A href="http://answers.splunk.com/questions/6423/how-to-change-default-alert-smtp-port" rel="nofollow"&gt;http://answers.splunk.com/questions/6423/how-to-change-default-alert-smtp-port&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Nov 2010 06:51:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Email-Alert-Actions-How-to-remove-default-fields-from-each-email/m-p/95884#M1386</guid>
      <dc:creator>southeringtonp</dc:creator>
      <dc:date>2010-11-30T06:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: Email Alert Actions - How to remove default fields from each email</title>
      <link>https://community.splunk.com/t5/Alerting/Email-Alert-Actions-How-to-remove-default-fields-from-each-email/m-p/95885#M1387</link>
      <description>&lt;P&gt;Check out my answer in &lt;A href="http://answers.splunk.com/answers/41129/use-of-the-search-description-field-in-an-alert-email"&gt;http://answers.splunk.com/answers/41129/use-of-the-search-description-field-in-an-alert-email&lt;/A&gt; - I think it might be what you're looking for.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2013 14:08:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Email-Alert-Actions-How-to-remove-default-fields-from-each-email/m-p/95885#M1387</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2013-10-11T14:08:32Z</dc:date>
    </item>
  </channel>
</rss>

