<?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 Combining events and agregated statistics in an alert? in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Combining-events-and-agregated-statistics-in-an-alert/m-p/471302#M8352</link>
    <description>&lt;P&gt;If I perform a search like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...
| stats values(host) as Hosts
| eval Hosts=mvjoin(Hosts, ",")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'll get the comma-separated list of hosts in the Statistics-tab, and the full list of matching events in the Events-tab. So far so good.&lt;/P&gt;

&lt;P&gt;However, any alert based on this, will &lt;EM&gt;only&lt;/EM&gt; contain the list of hosts -- not the events. How can I have both? Ideally, the aggregated "event" will be the last one, so its fields can be used in the text of the e-mail (such as &lt;CODE&gt;$result.hostList$&lt;/CODE&gt;)...&lt;/P&gt;</description>
    <pubDate>Fri, 20 Dec 2019 02:35:41 GMT</pubDate>
    <dc:creator>unitedmarsupial</dc:creator>
    <dc:date>2019-12-20T02:35:41Z</dc:date>
    <item>
      <title>Combining events and agregated statistics in an alert?</title>
      <link>https://community.splunk.com/t5/Alerting/Combining-events-and-agregated-statistics-in-an-alert/m-p/471302#M8352</link>
      <description>&lt;P&gt;If I perform a search like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;...
| stats values(host) as Hosts
| eval Hosts=mvjoin(Hosts, ",")
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'll get the comma-separated list of hosts in the Statistics-tab, and the full list of matching events in the Events-tab. So far so good.&lt;/P&gt;

&lt;P&gt;However, any alert based on this, will &lt;EM&gt;only&lt;/EM&gt; contain the list of hosts -- not the events. How can I have both? Ideally, the aggregated "event" will be the last one, so its fields can be used in the text of the e-mail (such as &lt;CODE&gt;$result.hostList$&lt;/CODE&gt;)...&lt;/P&gt;</description>
      <pubDate>Fri, 20 Dec 2019 02:35:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Combining-events-and-agregated-statistics-in-an-alert/m-p/471302#M8352</guid>
      <dc:creator>unitedmarsupial</dc:creator>
      <dc:date>2019-12-20T02:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: Combining events and agregated statistics in an alert?</title>
      <link>https://community.splunk.com/t5/Alerting/Combining-events-and-agregated-statistics-in-an-alert/m-p/471303#M8353</link>
      <description>&lt;P&gt;Like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eventstats values(host) as Hosts
| eval Hosts=mvjoin(Hosts, ",")
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 20 Dec 2019 11:08:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Combining-events-and-agregated-statistics-in-an-alert/m-p/471303#M8353</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2019-12-20T11:08:30Z</dc:date>
    </item>
  </channel>
</rss>

