<?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: Email Alert Subject in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Email-Alert-Subject/m-p/97980#M1399</link>
    <description>&lt;P&gt;From what I've read, it supports $name$ and the name of the saved search, and $seach$ as the search string itself.&lt;/P&gt;

&lt;P&gt;You can configure scripted alerts as per as &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/admin/Configurescriptedalerts#Script_options" target="_blank"&gt;alert_actions.conf#Script_options&lt;/A&gt;, but you're constrained by these 8:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SPLUNK_ARG_0 Script name
SPLUNK_ARG_1 Number of events returned
SPLUNK_ARG_2 Search terms
SPLUNK_ARG_3 Fully qualified query string
SPLUNK_ARG_4 Name of saved search
SPLUNK_ARG_5 Trigger reason (for example, "The number of events was greater than 1")
SPLUNK_ARG_6 Browser URL to view the saved search
SPLUNK_ARG_8 File in which the results for this search are stored (contains raw results)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you want to use hosts, then I think you're going to have to play around with custom scripted inputs.&lt;/P&gt;

&lt;P&gt;Check this link out as well, which can point you in the right direction: &lt;A href="http://splunk-base.splunk.com/answers/34570/how-to-add-custom-email-alert-content" target="_blank"&gt;http://splunk-base.splunk.com/answers/34570/how-to-add-custom-email-alert-content&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 12:04:56 GMT</pubDate>
    <dc:creator>rturk</dc:creator>
    <dc:date>2020-09-28T12:04:56Z</dc:date>
    <item>
      <title>Email Alert Subject</title>
      <link>https://community.splunk.com/t5/Alerting/Email-Alert-Subject/m-p/97979#M1398</link>
      <description>&lt;P&gt;Dear Splunkers:&lt;/P&gt;

&lt;P&gt;Is there any way to add extra search result field value to alert email subject? like host value&lt;BR /&gt;
Thanks in advance!!&lt;/P&gt;</description>
      <pubDate>Fri, 13 Jul 2012 08:37:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Email-Alert-Subject/m-p/97979#M1398</guid>
      <dc:creator>hjwang</dc:creator>
      <dc:date>2012-07-13T08:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: Email Alert Subject</title>
      <link>https://community.splunk.com/t5/Alerting/Email-Alert-Subject/m-p/97980#M1399</link>
      <description>&lt;P&gt;From what I've read, it supports $name$ and the name of the saved search, and $seach$ as the search string itself.&lt;/P&gt;

&lt;P&gt;You can configure scripted alerts as per as &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/admin/Configurescriptedalerts#Script_options" target="_blank"&gt;alert_actions.conf#Script_options&lt;/A&gt;, but you're constrained by these 8:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SPLUNK_ARG_0 Script name
SPLUNK_ARG_1 Number of events returned
SPLUNK_ARG_2 Search terms
SPLUNK_ARG_3 Fully qualified query string
SPLUNK_ARG_4 Name of saved search
SPLUNK_ARG_5 Trigger reason (for example, "The number of events was greater than 1")
SPLUNK_ARG_6 Browser URL to view the saved search
SPLUNK_ARG_8 File in which the results for this search are stored (contains raw results)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If you want to use hosts, then I think you're going to have to play around with custom scripted inputs.&lt;/P&gt;

&lt;P&gt;Check this link out as well, which can point you in the right direction: &lt;A href="http://splunk-base.splunk.com/answers/34570/how-to-add-custom-email-alert-content" target="_blank"&gt;http://splunk-base.splunk.com/answers/34570/how-to-add-custom-email-alert-content&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 12:04:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Email-Alert-Subject/m-p/97980#M1399</guid>
      <dc:creator>rturk</dc:creator>
      <dc:date>2020-09-28T12:04:56Z</dc:date>
    </item>
  </channel>
</rss>

