<?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 Use a Python module in  a custom alert action in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Use-a-Python-module-in-a-custom-alert-action/m-p/470369#M8344</link>
    <description>&lt;P&gt;I have a custom alert action that I wrote using the manual on the documentation:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.1/AdvancedDev/ModAlertsIntro"&gt;https://docs.splunk.com/Documentation/Splunk/7.3.1/AdvancedDev/ModAlertsIntro&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I need to import a Python module (boto3) into my action's script.&lt;/P&gt;

&lt;P&gt;How can I do that?&lt;BR /&gt;
Where and how do I install the module?&lt;/P&gt;</description>
    <pubDate>Mon, 02 Sep 2019 22:23:19 GMT</pubDate>
    <dc:creator>eden881</dc:creator>
    <dc:date>2019-09-02T22:23:19Z</dc:date>
    <item>
      <title>Use a Python module in  a custom alert action</title>
      <link>https://community.splunk.com/t5/Alerting/Use-a-Python-module-in-a-custom-alert-action/m-p/470369#M8344</link>
      <description>&lt;P&gt;I have a custom alert action that I wrote using the manual on the documentation:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.3.1/AdvancedDev/ModAlertsIntro"&gt;https://docs.splunk.com/Documentation/Splunk/7.3.1/AdvancedDev/ModAlertsIntro&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;I need to import a Python module (boto3) into my action's script.&lt;/P&gt;

&lt;P&gt;How can I do that?&lt;BR /&gt;
Where and how do I install the module?&lt;/P&gt;</description>
      <pubDate>Mon, 02 Sep 2019 22:23:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Use-a-Python-module-in-a-custom-alert-action/m-p/470369#M8344</guid>
      <dc:creator>eden881</dc:creator>
      <dc:date>2019-09-02T22:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: Use a Python module in  a custom alert action</title>
      <link>https://community.splunk.com/t5/Alerting/Use-a-Python-module-in-a-custom-alert-action/m-p/470370#M8345</link>
      <description>&lt;P&gt;Hi eden881,&lt;/P&gt;

&lt;P&gt;you can download the module directory or use a python egg of the module, place it in the bin directory of your app (assuming you created your alert action in a seperate app) and use &lt;CODE&gt;import boto3&lt;/CODE&gt; at top of your script. That should import the module if all module dependencies are fulfilled.&lt;/P&gt;

&lt;P&gt;Hope this helps ...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2019 00:57:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Use-a-Python-module-in-a-custom-alert-action/m-p/470370#M8345</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2019-09-03T00:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: Use a Python module in  a custom alert action</title>
      <link>https://community.splunk.com/t5/Alerting/Use-a-Python-module-in-a-custom-alert-action/m-p/470371#M8346</link>
      <description>&lt;P&gt;Thank you! It worked well.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2019 19:13:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Use-a-Python-module-in-a-custom-alert-action/m-p/470371#M8346</guid>
      <dc:creator>eden881</dc:creator>
      <dc:date>2019-09-03T19:13:37Z</dc:date>
    </item>
  </channel>
</rss>

