<?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: Add-On Builder Alert Action Alert Description in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Add-On-Builder-Alert-Action-Alert-Description/m-p/675513#M11336</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/264241"&gt;@addOnGuy&lt;/a&gt;&amp;nbsp;- I don't think there is any direct way to get the alert description. So you would need to make API REST call to saved/searches endpoint to find all the details about the alert.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/RESTREF/RESTsearch#saved.2Fsearches.2F.7Bname.7D" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/RESTREF/RESTsearch#saved.2Fsearches.2F.7Bname.7D&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;https://&amp;lt;host&amp;gt;:&amp;lt;mPort&amp;gt;/services/saved/searches/{name}&lt;/LI-CODE&gt;&lt;P&gt;As you mentioned you got the alert name already, replace it here and you will get the other details including the description.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps!!!&lt;/P&gt;</description>
    <pubDate>Fri, 26 Jan 2024 12:56:08 GMT</pubDate>
    <dc:creator>VatsalJagani</dc:creator>
    <dc:date>2024-01-26T12:56:08Z</dc:date>
    <item>
      <title>Add-On Builder Alert Action Alert Description</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Add-On-Builder-Alert-Action-Alert-Description/m-p/675121#M11325</link>
      <description>&lt;P&gt;I've been searching for awhile, but I haven't been able to find how to access an alert's description from within my add-on's alert action Python code. I'm using helper.get_events() to get the alert's triggered events and helper.settings to get the title of the alert. Both are from&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/AddonBuilder/4.1.4/UserGuide/PythonHelperFunctions" target="_blank"&gt;https://docs.splunk.com/Documentation/AddonBuilder/4.1.4/UserGuide/PythonHelperFunctions&lt;/A&gt;. That documentation page doesn't seem to list any way to pull an alert's description though. Does anyone know where it's stored/how to access it?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jan 2024 21:17:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Add-On-Builder-Alert-Action-Alert-Description/m-p/675121#M11325</guid>
      <dc:creator>addOnGuy</dc:creator>
      <dc:date>2024-01-22T21:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: Add-On Builder Alert Action Alert Description</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Add-On-Builder-Alert-Action-Alert-Description/m-p/675513#M11336</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/264241"&gt;@addOnGuy&lt;/a&gt;&amp;nbsp;- I don't think there is any direct way to get the alert description. So you would need to make API REST call to saved/searches endpoint to find all the details about the alert.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/RESTREF/RESTsearch#saved.2Fsearches.2F.7Bname.7D" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/latest/RESTREF/RESTsearch#saved.2Fsearches.2F.7Bname.7D&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;https://&amp;lt;host&amp;gt;:&amp;lt;mPort&amp;gt;/services/saved/searches/{name}&lt;/LI-CODE&gt;&lt;P&gt;As you mentioned you got the alert name already, replace it here and you will get the other details including the description.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps!!!&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2024 12:56:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Add-On-Builder-Alert-Action-Alert-Description/m-p/675513#M11336</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2024-01-26T12:56:08Z</dc:date>
    </item>
  </channel>
</rss>

