<?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 How to group data to send email alerts in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-group-data-to-send-email-alerts/m-p/703587#M238463</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I have a huge set of data with different emails in it , I want to setup email alerts for few parameters.&lt;BR /&gt;But the issue is I'm unable to group the events on email and send a email alert with the csv attachment of the results.&lt;BR /&gt;&lt;BR /&gt;Example:-&lt;BR /&gt;&lt;BR /&gt;&lt;A href="mailto:abc@email" target="_blank" rel="noopener"&gt;abc@email&lt;/A&gt;&amp;nbsp;has around 80 events in the table , I want to send only one alert to abc with all the 80 events in it as csv attachment.&lt;BR /&gt;&lt;BR /&gt;And there are around 85+ emails in my data , and they have to be grouped using only 1 spl and it should be used in alert.&lt;BR /&gt;&lt;BR /&gt;Note :- dont suggest $result.field$&amp;nbsp; or stats to group its not useful for me.&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 05 Nov 2024 10:43:52 GMT</pubDate>
    <dc:creator>Dayalss</dc:creator>
    <dc:date>2024-11-05T10:43:52Z</dc:date>
    <item>
      <title>How to group data to send email alerts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-group-data-to-send-email-alerts/m-p/703587#M238463</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I have a huge set of data with different emails in it , I want to setup email alerts for few parameters.&lt;BR /&gt;But the issue is I'm unable to group the events on email and send a email alert with the csv attachment of the results.&lt;BR /&gt;&lt;BR /&gt;Example:-&lt;BR /&gt;&lt;BR /&gt;&lt;A href="mailto:abc@email" target="_blank" rel="noopener"&gt;abc@email&lt;/A&gt;&amp;nbsp;has around 80 events in the table , I want to send only one alert to abc with all the 80 events in it as csv attachment.&lt;BR /&gt;&lt;BR /&gt;And there are around 85+ emails in my data , and they have to be grouped using only 1 spl and it should be used in alert.&lt;BR /&gt;&lt;BR /&gt;Note :- dont suggest $result.field$&amp;nbsp; or stats to group its not useful for me.&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2024 10:43:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-group-data-to-send-email-alerts/m-p/703587#M238463</guid>
      <dc:creator>Dayalss</dc:creator>
      <dc:date>2024-11-05T10:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to group data to send email alerts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-group-data-to-send-email-alerts/m-p/703595#M238465</link>
      <description>&lt;P&gt;I don't understand. You want to send different set of results to different people as a single alert action?&lt;/P&gt;&lt;P&gt;No can do.&lt;/P&gt;&lt;P&gt;You could try using &lt;A href="https://splunkbase.splunk.com/app/1794" target="_blank"&gt;https://splunkbase.splunk.com/app/1794&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2024 12:15:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-group-data-to-send-email-alerts/m-p/703595#M238465</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-11-05T12:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to group data to send email alerts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-group-data-to-send-email-alerts/m-p/703596#M238466</link>
      <description>&lt;P&gt;I feel if we can first group the events on email and then use the email as a token in the email recipient , we can do it .&lt;BR /&gt;&lt;BR /&gt;But Im not getting how we can do that.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2024 12:18:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-group-data-to-send-email-alerts/m-p/703596#M238466</guid>
      <dc:creator>Dayalss</dc:creator>
      <dc:date>2024-11-05T12:18:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to group data to send email alerts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-group-data-to-send-email-alerts/m-p/703601#M238467</link>
      <description>&lt;P&gt;Have you tried to consolidate then via stats command and then configure your alert to trigger for each result and tokenize the email parameter?&lt;BR /&gt;&lt;BR /&gt;Try this (adjust to your reality):&lt;BR /&gt;&lt;BR /&gt;&amp;lt;your search&amp;gt; | stats values(event_field) as events by user, email&lt;BR /&gt;&lt;BR /&gt;Then in your alert configuration, set trigger conditions:&lt;BR /&gt;Number of results &amp;gt; 0&lt;BR /&gt;Trigger: For each result&lt;BR /&gt;&lt;BR /&gt;And add the email action with To with token $result.email$&lt;BR /&gt;&lt;BR /&gt;That will make each email receive their group of events&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Give it a try and let me know&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2024 13:57:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-group-data-to-send-email-alerts/m-p/703601#M238467</guid>
      <dc:creator>victor_menezes</dc:creator>
      <dc:date>2024-11-05T13:57:52Z</dc:date>
    </item>
  </channel>
</rss>

