<?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 Need a custom variable for split the variable output in Splunk AppDynamics</title>
    <link>https://community.splunk.com/t5/Splunk-AppDynamics/Need-a-custom-variable-for-split-the-variable-output/m-p/720551#M2074</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Please help if some has done this before,&lt;BR /&gt;&lt;BR /&gt;I need custom variable to&amp;nbsp;split the variable output for my applications (xyzabc.com [P], abcxyz.com [G] &amp;amp; xyz123.com [S])&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output should be:&lt;BR /&gt;Application=[P]&lt;BR /&gt;Application=[S]&lt;BR /&gt;Application=[G]&lt;BR /&gt;_______&lt;/P&gt;&lt;P&gt;Please refer the below payload which I am using :&lt;/P&gt;&lt;P&gt;[&lt;BR /&gt;{&lt;BR /&gt;"labels": {&lt;BR /&gt;"Message": "A health rule violation occurred for the application ${latestEvent.application.name}",&lt;BR /&gt;"Time_of_Occurrence": "${action.triggerTime}",&lt;BR /&gt;"source": "AppD",&lt;BR /&gt;"Application_Name": "${latestEvent.application.name}",&lt;BR /&gt;"Event_Name": "${latestEvent.displayName}",&lt;BR /&gt;"Event_Message" : "${latestEvent.eventMessage}",&lt;BR /&gt;},&lt;BR /&gt;"annotations":&lt;BR /&gt;{&lt;BR /&gt;"type": "image",&lt;BR /&gt;"src": "${latestEvent.severityImage.deepLink}",&lt;BR /&gt;"alt": "${latestEvent.severity}",&lt;BR /&gt;"type_link": "link",&lt;BR /&gt;"href": "${latestEvent.deepLink}",&lt;BR /&gt;"text": "View this transaction in AppDynamics",&lt;BR /&gt;"Event_Message" : "${latestEvent.eventMessage}"&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;]&lt;/P&gt;</description>
    <pubDate>Wed, 01 Feb 2023 09:43:14 GMT</pubDate>
    <dc:creator>Ashish_Saxena3</dc:creator>
    <dc:date>2023-02-01T09:43:14Z</dc:date>
    <item>
      <title>Need a custom variable for split the variable output</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Need-a-custom-variable-for-split-the-variable-output/m-p/720551#M2074</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Please help if some has done this before,&lt;BR /&gt;&lt;BR /&gt;I need custom variable to&amp;nbsp;split the variable output for my applications (xyzabc.com [P], abcxyz.com [G] &amp;amp; xyz123.com [S])&amp;nbsp;&lt;/P&gt;&lt;P&gt;Output should be:&lt;BR /&gt;Application=[P]&lt;BR /&gt;Application=[S]&lt;BR /&gt;Application=[G]&lt;BR /&gt;_______&lt;/P&gt;&lt;P&gt;Please refer the below payload which I am using :&lt;/P&gt;&lt;P&gt;[&lt;BR /&gt;{&lt;BR /&gt;"labels": {&lt;BR /&gt;"Message": "A health rule violation occurred for the application ${latestEvent.application.name}",&lt;BR /&gt;"Time_of_Occurrence": "${action.triggerTime}",&lt;BR /&gt;"source": "AppD",&lt;BR /&gt;"Application_Name": "${latestEvent.application.name}",&lt;BR /&gt;"Event_Name": "${latestEvent.displayName}",&lt;BR /&gt;"Event_Message" : "${latestEvent.eventMessage}",&lt;BR /&gt;},&lt;BR /&gt;"annotations":&lt;BR /&gt;{&lt;BR /&gt;"type": "image",&lt;BR /&gt;"src": "${latestEvent.severityImage.deepLink}",&lt;BR /&gt;"alt": "${latestEvent.severity}",&lt;BR /&gt;"type_link": "link",&lt;BR /&gt;"href": "${latestEvent.deepLink}",&lt;BR /&gt;"text": "View this transaction in AppDynamics",&lt;BR /&gt;"Event_Message" : "${latestEvent.eventMessage}"&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;]&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 09:43:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Need-a-custom-variable-for-split-the-variable-output/m-p/720551#M2074</guid>
      <dc:creator>Ashish_Saxena3</dc:creator>
      <dc:date>2023-02-01T09:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: Need a custom variable for split the variable output</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Need-a-custom-variable-for-split-the-variable-output/m-p/720552#M2075</link>
      <description>&lt;P&gt;Hi Ashish&lt;/P&gt;
&lt;P&gt;It uses Apache Velocity as an intermediary translator through which variables get resolved. Anything that is supported in &lt;A href="https://velocity.apache.org/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://velocity.apache.org/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Examples below, you can use an if statement for what you require&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarioMorelli_0-1675324782688.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/35563iF77271FBF5B279CA/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Ciao&lt;/P&gt;</description>
      <pubDate>Thu, 02 Feb 2023 08:00:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Need-a-custom-variable-for-split-the-variable-output/m-p/720552#M2075</guid>
      <dc:creator>Morelz</dc:creator>
      <dc:date>2023-02-02T08:00:01Z</dc:date>
    </item>
  </channel>
</rss>

