<?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: Email Alert not not working as expected in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Email-Alert-not-not-working-as-expected/m-p/497673#M12795</link>
    <description>&lt;P&gt;Does fields &lt;CODE&gt;Message, ExceptionMessage, ExceptionClass and ExceptionId&lt;/CODE&gt; contains any values in your index?&lt;/P&gt;

&lt;P&gt;Add table command to your base query and check if values are coming for these fields.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;your_alert_search&amp;gt; | table Message, ExceptionMessage, ExceptionClass and ExceptionId 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If not you need to extract them from _raw data using rex.&lt;/P&gt;</description>
    <pubDate>Thu, 19 Mar 2020 12:43:23 GMT</pubDate>
    <dc:creator>manjunathmeti</dc:creator>
    <dc:date>2020-03-19T12:43:23Z</dc:date>
    <item>
      <title>Email Alert not not working as expected</title>
      <link>https://community.splunk.com/t5/Alerting/Email-Alert-not-not-working-as-expected/m-p/497672#M12794</link>
      <description>&lt;P&gt;Hi I was trying to create alerts  from Splunk. But it was not working as expected.  For example below is how the log looks like in Splunk.&lt;/P&gt;

&lt;P&gt;Hi I was trying to create email alerts from splunk log. I setup the alert and email is also triggering, but the problem is that I am not getting the mail as expected.&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;2020-03-18T17:04:27,335+0100 ERROR&lt;BR /&gt;
[http-nio-10.96.106.134-8084-exec-6]&lt;BR /&gt;
c.n.c.controller.ErrorController -&lt;BR /&gt;
Message = Extraction process failed.&lt;BR /&gt;
ExceptionMessage = The date&lt;BR /&gt;
223345.990.2 cannot be parsed. The pattern is: YYYY-MM-DD. ExceptionClass&lt;BR /&gt;
= DateParseException. ExceptionId = fb04d08a-db10-40ee-97a4-d2934f5a55da &lt;/P&gt;

&lt;P&gt;host = xxxx.oneadr.net source =&lt;BR /&gt;
/xxx/logs/ninjainst/microservices/xxxx/TokenHandler/TokenHandler-app.log&lt;BR /&gt;
sourcetype = xxxx_app&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;This is what I configured in my splunk for getting mails.&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;"The alert condition for '$name$' was&lt;BR /&gt;
triggered on $trigger_date$, where&lt;BR /&gt;
there is a pattern ERROR in the log. &lt;/P&gt;

&lt;P&gt;====================&lt;/P&gt;

&lt;P&gt;====================&lt;/P&gt;

&lt;P&gt;Host Name: $result.host$.&lt;/P&gt;

&lt;P&gt;Source File: $result.source$.&lt;/P&gt;

&lt;P&gt;Message: $result.Message$.&lt;/P&gt;

&lt;P&gt;Exception Message:&lt;BR /&gt;
$result.ExceptionMessage$.&lt;/P&gt;

&lt;P&gt;ExceptionClass:&lt;BR /&gt;
$result.ExceptionClass$.&lt;/P&gt;

&lt;P&gt;ExceptionId: $result.ExceptionId$"&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;But I am getting mail as below,few fields are not populating. Any idea about this&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;The alert condition for '768_Alert'&lt;BR /&gt;
was triggered on March 18, 2020, where&lt;/P&gt;

&lt;H1&gt;there is a pattern ERROR in the log. &lt;/H1&gt;

&lt;P&gt;==================== Host Name: xxxx.oneadr.net. Source File:&lt;BR /&gt;
/xxx/logs/ninjainst/microservices/xxxx/TokenHandler/TokenHandler-app.log.&lt;BR /&gt;
Message: . Exception Message: .&lt;BR /&gt;
ExceptionClass: . ExceptionId:&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Thu, 19 Mar 2020 08:15:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Email-Alert-not-not-working-as-expected/m-p/497672#M12794</guid>
      <dc:creator>geoisaac</dc:creator>
      <dc:date>2020-03-19T08:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: Email Alert not not working as expected</title>
      <link>https://community.splunk.com/t5/Alerting/Email-Alert-not-not-working-as-expected/m-p/497673#M12795</link>
      <description>&lt;P&gt;Does fields &lt;CODE&gt;Message, ExceptionMessage, ExceptionClass and ExceptionId&lt;/CODE&gt; contains any values in your index?&lt;/P&gt;

&lt;P&gt;Add table command to your base query and check if values are coming for these fields.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;your_alert_search&amp;gt; | table Message, ExceptionMessage, ExceptionClass and ExceptionId 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If not you need to extract them from _raw data using rex.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2020 12:43:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Email-Alert-not-not-working-as-expected/m-p/497673#M12795</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2020-03-19T12:43:23Z</dc:date>
    </item>
  </channel>
</rss>

