<?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: help on alert message in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/help-on-alert-message/m-p/516461#M9569</link>
    <description>&lt;P&gt;Nope, just the first result.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"First value for the specified field name from the first search result row."&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Alert/EmailNotificationTokens#Result_tokens" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Alert/EmailNotificationTokens#Result_tokens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BR&lt;BR /&gt;Ralph&lt;/P&gt;</description>
    <pubDate>Thu, 27 Aug 2020 08:11:07 GMT</pubDate>
    <dc:creator>rnowitzki</dc:creator>
    <dc:date>2020-08-27T08:11:07Z</dc:date>
    <item>
      <title>help on alert message</title>
      <link>https://community.splunk.com/t5/Alerting/help-on-alert-message/m-p/516429#M9565</link>
      <description>&lt;P&gt;hello&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use the search below in order to generate an alert if disk size is &amp;gt; 20&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;search = `diskspace` \
| fields host FreeSpaceKB \
| eval host=upper(host) \
| eval time = strftime(_time, "%m/%d/%Y %H:%M") \
| eval FreeSpace = FreeSpaceKB/1024 \
| eval FreeSpace = round(FreeSpace/1024,1) \
| stats latest(time) as time latest(FreeSpace) as FreeSpace by host \
| where FreeSpace &amp;gt;= 20 \
| table host&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the alert message I need to display the host concerned by the alert&lt;/P&gt;&lt;P&gt;So I put :&amp;nbsp;The $host$ encounter a disk size issue but the host is not displayed&lt;/P&gt;&lt;P&gt;Same thing in the object of the alert :&amp;nbsp;Splunk Disk size alert for the $host$&lt;/P&gt;&lt;P&gt;What is the problem please??&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2020 04:45:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/help-on-alert-message/m-p/516429#M9565</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2020-08-27T04:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: help on alert message</title>
      <link>https://community.splunk.com/t5/Alerting/help-on-alert-message/m-p/516455#M9567</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/102660"&gt;@jip31&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;You have to use &lt;EM&gt;$result.field$&lt;/EM&gt; to reference fields from the search results.&lt;BR /&gt;So, &lt;EM&gt;$result.host$&lt;/EM&gt; should work for you.&lt;BR /&gt;&lt;BR /&gt;BR&lt;BR /&gt;Ralph&lt;BR /&gt;--&lt;BR /&gt;&lt;EM&gt;Karma and/or Solution tagging appreciated.&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2020 07:40:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/help-on-alert-message/m-p/516455#M9567</guid>
      <dc:creator>rnowitzki</dc:creator>
      <dc:date>2020-08-27T07:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: help on alert message</title>
      <link>https://community.splunk.com/t5/Alerting/help-on-alert-message/m-p/516458#M9568</link>
      <description>&lt;P&gt;Hi and thanks. I am going to test it&lt;/P&gt;&lt;P&gt;Last question : if I have many host results, all the host will be displayed?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2020 08:03:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/help-on-alert-message/m-p/516458#M9568</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2020-08-27T08:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: help on alert message</title>
      <link>https://community.splunk.com/t5/Alerting/help-on-alert-message/m-p/516461#M9569</link>
      <description>&lt;P&gt;Nope, just the first result.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"First value for the specified field name from the first search result row."&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Alert/EmailNotificationTokens#Result_tokens" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/Alert/EmailNotificationTokens#Result_tokens&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BR&lt;BR /&gt;Ralph&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2020 08:11:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/help-on-alert-message/m-p/516461#M9569</guid>
      <dc:creator>rnowitzki</dc:creator>
      <dc:date>2020-08-27T08:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: help on alert message</title>
      <link>https://community.splunk.com/t5/Alerting/help-on-alert-message/m-p/516466#M9570</link>
      <description>&lt;P&gt;Thanks ralph&amp;nbsp;&lt;/P&gt;&lt;P&gt;But its a problem for me because I need to créate incident automatically in SNOW from this alert&lt;/P&gt;&lt;P&gt;So it means that i have to run this alert very often (actually one time per day) if i want to créate incident for each host when an event corresponding to the search occurs. BR&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2020 08:40:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/help-on-alert-message/m-p/516466#M9570</guid>
      <dc:creator>jip31</dc:creator>
      <dc:date>2020-08-27T08:40:20Z</dc:date>
    </item>
    <item>
      <title>Re: help on alert message</title>
      <link>https://community.splunk.com/t5/Alerting/help-on-alert-message/m-p/516469#M9571</link>
      <description>&lt;P&gt;Ok, you could create a mv field from the resulting hosts. This should give you the possibility to add multiple hosts in one email.&lt;BR /&gt;&lt;BR /&gt;Aadd this as last line to your SPL:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats values(host) as hosts&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;All hosts can be referenced as $result.hosts$ in the email.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Hope it helps.&lt;BR /&gt;&lt;BR /&gt;BR&lt;BR /&gt;Ralph&lt;BR /&gt;--&lt;BR /&gt;&lt;EM&gt;Karma and/or Solution tagging appreciated.&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2020 08:52:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/help-on-alert-message/m-p/516469#M9571</guid>
      <dc:creator>rnowitzki</dc:creator>
      <dc:date>2020-08-27T08:52:48Z</dc:date>
    </item>
  </channel>
</rss>

