<?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: Insert Date Into Subject of Email Alert in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Insert-Date-Into-Subject-of-Email-Alert/m-p/99795#M1425</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I succeeded to add a date to the subject by modifying the sendmail.py file, an example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;yesterday = datetime.datetime.now() - datetime.timedelta(days = 1)
message['Subject'] = subject + " " + yesterday.strftime("%d.%m.%Y")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 06 Dec 2011 10:23:10 GMT</pubDate>
    <dc:creator>imrago</dc:creator>
    <dc:date>2011-12-06T10:23:10Z</dc:date>
    <item>
      <title>Insert Date Into Subject of Email Alert</title>
      <link>https://community.splunk.com/t5/Alerting/Insert-Date-Into-Subject-of-Email-Alert/m-p/99794#M1424</link>
      <description>&lt;P&gt;When creating an alert, is it possible to insert a date in the email subject line, such as the previous days date?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Oct 2011 23:20:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Insert-Date-Into-Subject-of-Email-Alert/m-p/99794#M1424</guid>
      <dc:creator>karinerivet</dc:creator>
      <dc:date>2011-10-27T23:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Date Into Subject of Email Alert</title>
      <link>https://community.splunk.com/t5/Alerting/Insert-Date-Into-Subject-of-Email-Alert/m-p/99795#M1425</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I succeeded to add a date to the subject by modifying the sendmail.py file, an example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;yesterday = datetime.datetime.now() - datetime.timedelta(days = 1)
message['Subject'] = subject + " " + yesterday.strftime("%d.%m.%Y")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 06 Dec 2011 10:23:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Insert-Date-Into-Subject-of-Email-Alert/m-p/99795#M1425</guid>
      <dc:creator>imrago</dc:creator>
      <dc:date>2011-12-06T10:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Date Into Subject of Email Alert</title>
      <link>https://community.splunk.com/t5/Alerting/Insert-Date-Into-Subject-of-Email-Alert/m-p/99796#M1426</link>
      <description>&lt;P&gt;Where is the sendmail.py file, and how do I modify it?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2011 15:34:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Insert-Date-Into-Subject-of-Email-Alert/m-p/99796#M1426</guid>
      <dc:creator>karinerivet</dc:creator>
      <dc:date>2011-12-06T15:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Date Into Subject of Email Alert</title>
      <link>https://community.splunk.com/t5/Alerting/Insert-Date-Into-Subject-of-Email-Alert/m-p/99797#M1427</link>
      <description>&lt;P&gt;It is located in the  /opt/splunk/etc/app/search/bin/ directory. &lt;/P&gt;

&lt;P&gt;It is a python script and it can be modified with any text editor. Keep in mind that it will be probably overwritten on the next Splunk update.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2011 19:30:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Insert-Date-Into-Subject-of-Email-Alert/m-p/99797#M1427</guid>
      <dc:creator>imrago</dc:creator>
      <dc:date>2011-12-06T19:30:33Z</dc:date>
    </item>
  </channel>
</rss>

