<?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: Alert with email in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Alert-with-email/m-p/476094#M12709</link>
    <description>&lt;P&gt;it shows me:  No results found.&lt;/P&gt;</description>
    <pubDate>Tue, 17 Sep 2019 12:24:30 GMT</pubDate>
    <dc:creator>pudanelilita</dc:creator>
    <dc:date>2019-09-17T12:24:30Z</dc:date>
    <item>
      <title>Alert with email</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-with-email/m-p/476092#M12707</link>
      <description>&lt;P&gt;Hi, &lt;BR /&gt;
I'm struggling to create email alert.&lt;BR /&gt;
My search query:&lt;BR /&gt;
&lt;CODE&gt;| rex "Heap:\s(?&amp;lt;HeapNum&amp;gt;[\d\.]+)(?&amp;lt;unit&amp;gt;\w+)"  | search HeapNum!=" "  | eval HeapNum = case(unit="K",HeapNum/1000,unit="M", HeapNum,unit="G", HeapNum*1000) | eval critical=15000  | table _time HeapNum critical&lt;/CODE&gt; &lt;/P&gt;

&lt;P&gt;I want, that when it reaches critical value, it sends email to me. &lt;BR /&gt;
I created alert, but it doesn't work, can you please help with configuration?&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/7656iFC910AD9CDD53F7E/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/7657iE287291A33575E54/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2019 12:50:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-with-email/m-p/476092#M12707</guid>
      <dc:creator>pudanelilita</dc:creator>
      <dc:date>2019-09-12T12:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: Alert with email</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-with-email/m-p/476093#M12708</link>
      <description>&lt;P&gt;Hi pudanelilita,&lt;BR /&gt;
try something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex "Heap:\s(?&amp;lt;HeapNum&amp;gt;[\d\.]+)(?&amp;lt;unit&amp;gt;\w+)" 
| search NOT HeapNum=" "  
| eval HeapNum = case(unit="K",HeapNum/1000,unit="M", HeapNum,unit="G", HeapNum*1000) 
| search HeapNum&amp;gt;15000 
| table _time HeapNum critical
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then in the alert's condition put activation when there are results (results&amp;gt;0)&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2019 18:08:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-with-email/m-p/476093#M12708</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-09-12T18:08:56Z</dc:date>
    </item>
    <item>
      <title>Re: Alert with email</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-with-email/m-p/476094#M12709</link>
      <description>&lt;P&gt;it shows me:  No results found.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 12:24:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-with-email/m-p/476094#M12709</guid>
      <dc:creator>pudanelilita</dc:creator>
      <dc:date>2019-09-17T12:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: Alert with email</title>
      <link>https://community.splunk.com/t5/Alerting/Alert-with-email/m-p/476095#M12710</link>
      <description>&lt;P&gt;At first (my error!) replace &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| search HeapNum&amp;gt;15000 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;with &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| where HeapNum&amp;gt;15000 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;if you still have no results, delete the second search and then see what are the values you have for HeapNum to check if the condition is correct.&lt;/P&gt;

&lt;P&gt;Bye.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2019 12:36:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Alert-with-email/m-p/476095#M12710</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2019-09-17T12:36:17Z</dc:date>
    </item>
  </channel>
</rss>

