<?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: Include hostname in alert email subject in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Include-hostname-in-alert-email-subject/m-p/188540#M3167</link>
    <description>&lt;P&gt;Thanks for the quick reply. I've tested and this solution does not work. I've tested with token "$result.host$" and "$result.src_host$".&lt;/P&gt;

&lt;P&gt;My saved search is as follows:&lt;BR /&gt;
Search&lt;BR /&gt;
tag::host="atg" tag::host="prod1" source=*/server.log TESTING--SRUFF&lt;BR /&gt;
Email subject&lt;BR /&gt;
Splunk Alert: $name$ $result.host$&lt;/P&gt;

&lt;P&gt;Latest alert email subject line has "Splunk Alert: &amp;lt;saved search name&amp;gt;" but does not include the hostname of from the server who's log contained the search text. I was expecting to see "Splunk Alert: &amp;lt;saved search name&amp;gt; &amp;lt;server name&amp;gt;".&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Thu, 14 May 2015 17:17:52 GMT</pubDate>
    <dc:creator>sruff</dc:creator>
    <dc:date>2015-05-14T17:17:52Z</dc:date>
    <item>
      <title>Include hostname in alert email subject</title>
      <link>https://community.splunk.com/t5/Alerting/Include-hostname-in-alert-email-subject/m-p/188537#M3164</link>
      <description>&lt;P&gt;I'm looking for a way to include the hostname in an alert email subject. Our pager system ignores multiple alerts with same subject so it is possible to miss alerts from multiple hosts with same issue.&lt;/P&gt;

&lt;P&gt;Thanks for reading.&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2015 15:41:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Include-hostname-in-alert-email-subject/m-p/188537#M3164</guid>
      <dc:creator>sruff</dc:creator>
      <dc:date>2015-05-14T15:41:10Z</dc:date>
    </item>
    <item>
      <title>Re: Include hostname in alert email subject</title>
      <link>https://community.splunk.com/t5/Alerting/Include-hostname-in-alert-email-subject/m-p/188538#M3165</link>
      <description>&lt;P&gt;You can use &lt;CODE&gt;$result.host$&lt;/CODE&gt; in your alert emails: &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.3/Alert/Setupalertactions#Use_tokens_in_email_notifications"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.3/Alert/Setupalertactions#Use_tokens_in_email_notifications&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2015 15:52:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Include-hostname-in-alert-email-subject/m-p/188538#M3165</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2015-05-14T15:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: Include hostname in alert email subject</title>
      <link>https://community.splunk.com/t5/Alerting/Include-hostname-in-alert-email-subject/m-p/188539#M3166</link>
      <description>&lt;P&gt;Put the token $result.host$ in the subject section of the alert configuration.&lt;/P&gt;

&lt;P&gt;See &lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.3/Alert/Setupalertactions"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.3/Alert/Setupalertactions&lt;/A&gt; for more details.&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2015 15:52:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Include-hostname-in-alert-email-subject/m-p/188539#M3166</guid>
      <dc:creator>mmccul</dc:creator>
      <dc:date>2015-05-14T15:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: Include hostname in alert email subject</title>
      <link>https://community.splunk.com/t5/Alerting/Include-hostname-in-alert-email-subject/m-p/188540#M3167</link>
      <description>&lt;P&gt;Thanks for the quick reply. I've tested and this solution does not work. I've tested with token "$result.host$" and "$result.src_host$".&lt;/P&gt;

&lt;P&gt;My saved search is as follows:&lt;BR /&gt;
Search&lt;BR /&gt;
tag::host="atg" tag::host="prod1" source=*/server.log TESTING--SRUFF&lt;BR /&gt;
Email subject&lt;BR /&gt;
Splunk Alert: $name$ $result.host$&lt;/P&gt;

&lt;P&gt;Latest alert email subject line has "Splunk Alert: &amp;lt;saved search name&amp;gt;" but does not include the hostname of from the server who's log contained the search text. I was expecting to see "Splunk Alert: &amp;lt;saved search name&amp;gt; &amp;lt;server name&amp;gt;".&lt;/P&gt;

&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2015 17:17:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Include-hostname-in-alert-email-subject/m-p/188540#M3167</guid>
      <dc:creator>sruff</dc:creator>
      <dc:date>2015-05-14T17:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: Include hostname in alert email subject</title>
      <link>https://community.splunk.com/t5/Alerting/Include-hostname-in-alert-email-subject/m-p/188541#M3168</link>
      <description>&lt;P&gt;Just for sanity's sake, see if that token works for you in the alert body.&lt;/P&gt;

&lt;P&gt;$result.host$ means insert from the results, the value of the field named host.  There are some oddities for some cases in that token, but source and host should just work.&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2015 17:21:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Include-hostname-in-alert-email-subject/m-p/188541#M3168</guid>
      <dc:creator>mmccul</dc:creator>
      <dc:date>2015-05-14T17:21:23Z</dc:date>
    </item>
    <item>
      <title>Re: Include hostname in alert email subject</title>
      <link>https://community.splunk.com/t5/Alerting/Include-hostname-in-alert-email-subject/m-p/188542#M3169</link>
      <description>&lt;P&gt;I'm not seeing where you can modify the body of the email.&lt;/P&gt;

&lt;P&gt;I tested with Subject: "Splunk Alert: $name$ $results.count$" which returns the proper count. Auto included in the body of the email has the below columns and under the index column it does list the correct hostname&lt;BR /&gt;
_raw    _time   host        index   linecount   source  sourcetype  splunk_server   tag::host&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 19:58:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Include-hostname-in-alert-email-subject/m-p/188542#M3169</guid>
      <dc:creator>sruff</dc:creator>
      <dc:date>2020-09-28T19:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: Include hostname in alert email subject</title>
      <link>https://community.splunk.com/t5/Alerting/Include-hostname-in-alert-email-subject/m-p/188543#M3170</link>
      <description>&lt;P&gt;What Splunk version are you using?&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2015 17:45:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Include-hostname-in-alert-email-subject/m-p/188543#M3170</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2015-05-14T17:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: Include hostname in alert email subject</title>
      <link>https://community.splunk.com/t5/Alerting/Include-hostname-in-alert-email-subject/m-p/188544#M3171</link>
      <description>&lt;P&gt;version 5.0.3, build 163460&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2015 17:48:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Include-hostname-in-alert-email-subject/m-p/188544#M3171</guid>
      <dc:creator>sruff</dc:creator>
      <dc:date>2015-05-14T17:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: Include hostname in alert email subject</title>
      <link>https://community.splunk.com/t5/Alerting/Include-hostname-in-alert-email-subject/m-p/188545#M3172</link>
      <description>&lt;P&gt;Using search results as tokens in Email alerts is only available from 6.1 and up &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2015 17:49:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Include-hostname-in-alert-email-subject/m-p/188545#M3172</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2015-05-14T17:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: Include hostname in alert email subject</title>
      <link>https://community.splunk.com/t5/Alerting/Include-hostname-in-alert-email-subject/m-p/188546#M3173</link>
      <description>&lt;P&gt;Aww man. Ok thanks for the help.&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2015 18:00:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Include-hostname-in-alert-email-subject/m-p/188546#M3173</guid>
      <dc:creator>sruff</dc:creator>
      <dc:date>2015-05-14T18:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: Include hostname in alert email subject</title>
      <link>https://community.splunk.com/t5/Alerting/Include-hostname-in-alert-email-subject/m-p/188547#M3174</link>
      <description>&lt;P&gt;Upgrading is fairly painless...&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2015 18:02:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Include-hostname-in-alert-email-subject/m-p/188547#M3174</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2015-05-14T18:02:51Z</dc:date>
    </item>
  </channel>
</rss>

