<?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 Is there a way to change the font size or bold text in alert emails? in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Is-there-a-way-to-change-the-font-size-or-bold-text-in-alert/m-p/247638#M4625</link>
    <description>&lt;P&gt;Hi &lt;/P&gt;

&lt;P&gt;Is there a way to change font size or Bold text in email alerts? Can this be done by scripting?&lt;/P&gt;</description>
    <pubDate>Fri, 08 Jul 2016 21:31:14 GMT</pubDate>
    <dc:creator>kiran331</dc:creator>
    <dc:date>2016-07-08T21:31:14Z</dc:date>
    <item>
      <title>Is there a way to change the font size or bold text in alert emails?</title>
      <link>https://community.splunk.com/t5/Alerting/Is-there-a-way-to-change-the-font-size-or-bold-text-in-alert/m-p/247638#M4625</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;

&lt;P&gt;Is there a way to change font size or Bold text in email alerts? Can this be done by scripting?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2016 21:31:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Is-there-a-way-to-change-the-font-size-or-bold-text-in-alert/m-p/247638#M4625</guid>
      <dc:creator>kiran331</dc:creator>
      <dc:date>2016-07-08T21:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to change the font size or bold text in alert emails?</title>
      <link>https://community.splunk.com/t5/Alerting/Is-there-a-way-to-change-the-font-size-or-bold-text-in-alert/m-p/247639#M4626</link>
      <description>&lt;P&gt;Out of the box Splunk's email system escapes all HTML elements, so if you used &lt;CODE&gt;&amp;lt;b&amp;gt;this is bold&amp;lt;/b&amp;gt;&lt;/CODE&gt; it would appear literally.&lt;/P&gt;

&lt;P&gt;You can change that behaviour quick and dirty by making a backup of etc/apps/search/bin/sendemail.py, modifying the original by changing &lt;CODE&gt;${msg|h}&lt;/CODE&gt; to &lt;CODE&gt;${msg}&lt;/CODE&gt; in line 672, and then using HTML in your alert email texts.&lt;BR /&gt;
HOWEVER, you have to be aware of a few things:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;This won't survive an upgrade, you'll have to reapply the change every time&lt;/LI&gt;
&lt;LI&gt;This change is global to your Splunk instance, affecting every single email sent&lt;/LI&gt;
&lt;LI&gt;Unexpected things may happen if existing emails already contain HTML-like things&lt;/LI&gt;
&lt;LI&gt;Bad things may happen if your users craft email alerts to mess with recipients' inboxes&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;A nicer way would be to write a custom alert action as a kind of "advanced sendemail" without the escaping of HTML elements, and only grant permission to this to advanced users. That wouldn't be global, would survive upgrades, would be shareable on splunkbase, but would be a bit more effort.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Jul 2016 08:03:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Is-there-a-way-to-change-the-font-size-or-bold-text-in-alert/m-p/247639#M4626</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2016-07-09T08:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to change the font size or bold text in alert emails?</title>
      <link>https://community.splunk.com/t5/Alerting/Is-there-a-way-to-change-the-font-size-or-bold-text-in-alert/m-p/247640#M4627</link>
      <description>&lt;P&gt;Adding to Martin's point, you may as well create a scripted solution which will give you more flexibility. &lt;/P&gt;

&lt;P&gt;Moreover if you are just copying the sendemail.py to your own app it will not be overwritten upon upgrade but may malfunction upon the original sendemail.py structure change for on splunk instance. I have been following the same method for colors, font, resizing text + own scripted alerts. &lt;/P&gt;</description>
      <pubDate>Sat, 09 Jul 2016 08:19:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Is-there-a-way-to-change-the-font-size-or-bold-text-in-alert/m-p/247640#M4627</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2016-07-09T08:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to change the font size or bold text in alert emails?</title>
      <link>https://community.splunk.com/t5/Alerting/Is-there-a-way-to-change-the-font-size-or-bold-text-in-alert/m-p/247641#M4628</link>
      <description>&lt;P&gt;If you have a solution built, do consider sharing that on splunkbase &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Jul 2016 08:21:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Is-there-a-way-to-change-the-font-size-or-bold-text-in-alert/m-p/247641#M4628</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2016-07-09T08:21:08Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to change the font size or bold text in alert emails?</title>
      <link>https://community.splunk.com/t5/Alerting/Is-there-a-way-to-change-the-font-size-or-bold-text-in-alert/m-p/247642#M4629</link>
      <description>&lt;P&gt;Hi Linu1988, Thanks for the response!Can you share the script for resizing text.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Jul 2016 20:42:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Is-there-a-way-to-change-the-font-size-or-bold-text-in-alert/m-p/247642#M4629</guid>
      <dc:creator>kiran331</dc:creator>
      <dc:date>2016-07-09T20:42:34Z</dc:date>
    </item>
  </channel>
</rss>

