<?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: How to include current, baseline, threshold values in HTML Body event message in Email Template in Splunk AppDynamics</title>
    <link>https://community.splunk.com/t5/Splunk-AppDynamics/How-to-include-current-baseline-threshold-values-in-HTML-Body/m-p/729758#M6819</link>
    <description>&lt;P&gt;+1&lt;/P&gt;</description>
    <pubDate>Fri, 05 Oct 2018 06:58:14 GMT</pubDate>
    <dc:creator>SERDAR_KULHANCI</dc:creator>
    <dc:date>2018-10-05T06:58:14Z</dc:date>
    <item>
      <title>How to include current, baseline, threshold values in HTML Body event message in Email Template</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/How-to-include-current-baseline-threshold-values-in-HTML-Body/m-p/729757#M6818</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;We have to change the email template body message to below, we are able to print Time Stamp, Alert Type, Event message but we are unable to get Current, Baseline and Threshold value to print separatly.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="font-size: 12.0pt; color: #555555; background: white;"&gt;&lt;SPAN&gt;--------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Used below for Time Stamp, Alert Type and Message&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Time Stamp:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;${action.triggerTime}:&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV&gt;&lt;STRONG&gt;Alert Type:&amp;nbsp;&lt;/STRONG&gt;${latestEvent.healthRule.name}&lt;/DIV&gt;
&lt;DIV&gt;For Application&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;${latestEvent.application.name}&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;Current&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;${latestEvent.healthRule.name}&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt;has breached the baseline value for last 10/20 mins.&lt;/SPAN&gt;&lt;/DIV&gt;

&lt;P class="xmsonormal"&gt;&lt;SPAN style="color: #1f497d;"&gt;&lt;FONT color="#1f497d"&gt;Current Value -&amp;nbsp;&lt;/FONT&gt;&lt;FONT color="#555555"&gt;&lt;STRONG&gt;&amp;lt;$xxxx&amp;gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="xmsonormal"&gt;&lt;SPAN style="color: #1f497d;"&gt;&lt;FONT color="#1f497d"&gt;Baseline Value -&amp;nbsp;&lt;/FONT&gt;&lt;FONT color="#555555"&gt;&lt;STRONG&gt;&amp;lt;$xxxxx&amp;gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="xmsonormal"&gt;&lt;SPAN style="color: #1f497d;"&gt;&lt;FONT color="#1f497d"&gt;Threshold (3 Std Deviations) -&amp;nbsp;&lt;/FONT&gt;&lt;FONT color="#555555"&gt;&lt;STRONG&gt;&amp;lt;$xxxx&amp;gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;--------------------------------------------------------------------------------------------------------------&lt;/P&gt;
&lt;P&gt;Output:&lt;/P&gt;
&lt;P class="xmsonormal"&gt;&lt;SPAN&gt;Time Stamp - Tue Jul 24 12:42:10 IST 2018:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="xmsonormal"&gt;&lt;SPAN&gt;Alert Type - &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;Average Response Time&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="xmsonormal"&gt;&lt;SPAN&gt;For Application &lt;STRONG&gt;ABC_XYZ_Prod&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt; &amp;nbsp;Current &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;Average Response Time 7754.0&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN&gt; has breached the baseline value for last 10/20 mins.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="xmsonormal"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="xmsonormal"&gt;&lt;SPAN&gt;Current Value - &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;7754.0 &lt;/SPAN&gt;&amp;lt;Unable to print&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="xmsonormal"&gt;&lt;SPAN&gt;Baseline Value - &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;337.0&amp;nbsp;&amp;lt;Unable to print&amp;gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="xmsonormal"&gt;&lt;SPAN&gt;Threshold (3 Std Deviations) - &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN&gt;517.4&amp;nbsp;&amp;lt;Unable to print&amp;gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;--------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please suggest&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;kalyan&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 07:25:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/How-to-include-current-baseline-threshold-values-in-HTML-Body/m-p/729757#M6818</guid>
      <dc:creator>CommunityUser</dc:creator>
      <dc:date>2018-07-25T07:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to include current, baseline, threshold values in HTML Body event message in Email Template</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/How-to-include-current-baseline-threshold-values-in-HTML-Body/m-p/729758#M6819</link>
      <description>&lt;P&gt;+1&lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2018 06:58:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/How-to-include-current-baseline-threshold-values-in-HTML-Body/m-p/729758#M6819</guid>
      <dc:creator>SERDAR_KULHANCI</dc:creator>
      <dc:date>2018-10-05T06:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to include current, baseline, threshold values in HTML Body event message in Email Template</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/How-to-include-current-baseline-threshold-values-in-HTML-Body/m-p/729759#M6820</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;There is already an enhancement to further expose values under eventMessage variables such as condition, violating values etc.&lt;/P&gt;
&lt;P&gt;Currently, eventMessage is the only option which is a long string.&lt;/P&gt;
&lt;P&gt;You can use split / regex on a string as in the usual java context.&lt;/P&gt;
&lt;P&gt;Example-&lt;/P&gt;
&lt;PRE&gt;#set ($summary = ${latestEvent.summaryMessage})
#set ($job = $summary.split(" "))
summary: $summary
Job: $job[2]
Job2: $job.get(2)&lt;/PRE&gt;
&lt;P&gt;This is the sample eventMessage-&lt;/P&gt;

&lt;PRE&gt;AppDynamics has detected a problem with Node nodejs-api-services--9.
Memory utilization is too high started violating and is now critical.
All of the following conditions were found to be violating
For Node nodejs-api-services--9:
1) Hardware Resources|Memory|Used % Condition
Used %'s value 93.00 was greater than the threshold 90.00 for the last 30 minutes&lt;/PRE&gt;
&lt;P&gt;where we have set condition name as "Hardware Resources|Memory|Used %"&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2019 22:06:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/How-to-include-current-baseline-threshold-values-in-HTML-Body/m-p/729759#M6820</guid>
      <dc:creator>Rugved_Sarode</dc:creator>
      <dc:date>2019-03-27T22:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to include current, baseline, threshold values in HTML Body event message in Email Template</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/How-to-include-current-baseline-threshold-values-in-HTML-Body/m-p/729760#M6821</link>
      <description>&lt;P&gt;&lt;A href="https://community.appdynamics.com/t5/user/viewprofilepage/user-id/77127"&gt;@Rugved.Sarode&lt;/A&gt;&amp;nbsp;Unfortunately this is not working for me.&lt;/P&gt;&lt;P&gt;Sample summary message-&amp;nbsp;AppDynamics has detected a problem with Node&amp;nbsp;node1.&lt;BR /&gt;Memory utilization is too high started&amp;nbsp;violating and is now warning&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;After splitting the summary message I am getting "detected" with both $job.get(2) and $job[2].&lt;/P&gt;&lt;P&gt;I am not sure how you were able to get&lt;/P&gt;&lt;PRE&gt;Used %'s value 93.00 was greater than the threshold 90.00 for the last 30 minutes&lt;/PRE&gt;&lt;P&gt;from summary message you provided.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2020 11:00:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/How-to-include-current-baseline-threshold-values-in-HTML-Body/m-p/729760#M6821</guid>
      <dc:creator>Abhimanyu_Sharm</dc:creator>
      <dc:date>2020-01-27T11:00:06Z</dc:date>
    </item>
  </channel>
</rss>

