<?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 Phantom Custom Code Alarm in Splunk SOAR</title>
    <link>https://community.splunk.com/t5/Splunk-SOAR/Phantom-Custom-Code-Alarm/m-p/482815#M260</link>
    <description>&lt;P&gt;Hi guys I have been trying to make a alarm ring every time the playbook executes.&lt;/P&gt;
&lt;P&gt;However, when trying to do it with Python in the VPE, and import error occurs when I try to import winsound (&lt;EM&gt;No module named winsound&lt;/EM&gt;). I do not know how to resolve this error in the VPE.&lt;/P&gt;
&lt;P&gt;Does the development environment here allow for the import of that module?&lt;/P&gt;</description>
    <pubDate>Sun, 07 Jun 2020 17:27:19 GMT</pubDate>
    <dc:creator>johnteo</dc:creator>
    <dc:date>2020-06-07T17:27:19Z</dc:date>
    <item>
      <title>Phantom Custom Code Alarm</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/Phantom-Custom-Code-Alarm/m-p/482815#M260</link>
      <description>&lt;P&gt;Hi guys I have been trying to make a alarm ring every time the playbook executes.&lt;/P&gt;
&lt;P&gt;However, when trying to do it with Python in the VPE, and import error occurs when I try to import winsound (&lt;EM&gt;No module named winsound&lt;/EM&gt;). I do not know how to resolve this error in the VPE.&lt;/P&gt;
&lt;P&gt;Does the development environment here allow for the import of that module?&lt;/P&gt;</description>
      <pubDate>Sun, 07 Jun 2020 17:27:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/Phantom-Custom-Code-Alarm/m-p/482815#M260</guid>
      <dc:creator>johnteo</dc:creator>
      <dc:date>2020-06-07T17:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: Phantom Custom Code Alarm</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/Phantom-Custom-Code-Alarm/m-p/482816#M261</link>
      <description>&lt;P&gt;You have to install the module in your server first,then try to import the module in the global block.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 07:51:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/Phantom-Custom-Code-Alarm/m-p/482816#M261</guid>
      <dc:creator>ansusabu</dc:creator>
      <dc:date>2019-11-13T07:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: Phantom Custom Code Alarm</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/Phantom-Custom-Code-Alarm/m-p/482817#M262</link>
      <description>&lt;P&gt;You'll need to install that module either via &lt;CODE&gt;pip&lt;/CODE&gt; on your Phantom server or bundled into a Phantom app.&lt;/P&gt;

&lt;P&gt;To install a package, log into the command line of your Phantom server and run &lt;CODE&gt;phenv pip2.7 install {package}&lt;/CODE&gt; where &lt;CODE&gt;{package}&lt;/CODE&gt; is just the name of the package you want to install. For example, &lt;CODE&gt;phenv pip2.7 install winsound&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;Then you should be able to &lt;CODE&gt;import winsound&lt;/CODE&gt; in the global section of the playbook.&lt;/P&gt;

&lt;P&gt;Sources: &lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://my.phantom.us/kb/19/"&gt;https://my.phantom.us/kb/19/&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://my.phantom.us/4.6/docs/appdev/faq"&gt;https://my.phantom.us/4.6/docs/appdev/faq&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://my.phantom.us/4.6/docs/appdev/metadata#specifying_pip_dependencies"&gt;https://my.phantom.us/4.6/docs/appdev/metadata#specifying_pip_dependencies&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 13 Nov 2019 14:07:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/Phantom-Custom-Code-Alarm/m-p/482817#M262</guid>
      <dc:creator>rplas</dc:creator>
      <dc:date>2019-11-13T14:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: Phantom Custom Code Alarm</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/Phantom-Custom-Code-Alarm/m-p/482818#M263</link>
      <description>&lt;P&gt;However, I don't think this module will work as Phantom does not have access to your Windows environment.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 14:11:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/Phantom-Custom-Code-Alarm/m-p/482818#M263</guid>
      <dc:creator>rplas</dc:creator>
      <dc:date>2019-11-13T14:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: Phantom Custom Code Alarm</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/Phantom-Custom-Code-Alarm/m-p/482819#M264</link>
      <description>&lt;P&gt;Hi, I have returned to this problem again. I am able to install the package(playsound this time). However, if Phantom does not have access to my Windows Environment is it possible to play a sound from the mp3 file as I leave phantom running on the background?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 07:53:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/Phantom-Custom-Code-Alarm/m-p/482819#M264</guid>
      <dc:creator>johnteo</dc:creator>
      <dc:date>2019-12-11T07:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Phantom Custom Code Alarm</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/Phantom-Custom-Code-Alarm/m-p/482820#M265</link>
      <description>&lt;P&gt;May I know how to give Phantom access to the windows environment?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 08:19:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/Phantom-Custom-Code-Alarm/m-p/482820#M265</guid>
      <dc:creator>johnteo</dc:creator>
      <dc:date>2019-12-11T08:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: Phantom Custom Code Alarm</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/Phantom-Custom-Code-Alarm/m-p/482821#M266</link>
      <description>&lt;P&gt;After importing the module onto the server successfully, how do i make the sound play every time the playbook runs?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2019 08:19:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/Phantom-Custom-Code-Alarm/m-p/482821#M266</guid>
      <dc:creator>johnteo</dc:creator>
      <dc:date>2019-12-11T08:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Phantom Custom Code Alarm</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/Phantom-Custom-Code-Alarm/m-p/482822#M267</link>
      <description>&lt;P&gt;Phantom runs on Linux, not Windows.  You may be running Phantom on Linux on Windows (i.e. Phantom -&amp;gt; VirtualBox -&amp;gt; CentOS) but you'd need to get the underlying Linux system an audio device and driver.  You cannot directly give it access to the windows audio subsystem.&lt;/P&gt;

&lt;P&gt;You may be able to add a virtual sound device (if you're using vmware or virtualbox or the like) and then configure Linux to use that and play audio. If you get that working, you'll have to work out the right command(s) to play the sound and then build that into your playbook(s) (using something like ssh into the host).&lt;/P&gt;

&lt;P&gt;Overall, this will be pretty complicated to do directly. Finding an API you can hit that plays a sound would likely be much easier.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 01:22:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/Phantom-Custom-Code-Alarm/m-p/482822#M267</guid>
      <dc:creator>sam_splunk</dc:creator>
      <dc:date>2019-12-12T01:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: Phantom Custom Code Alarm</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/Phantom-Custom-Code-Alarm/m-p/482823#M268</link>
      <description>&lt;P&gt;@johnteo Just remember... what @rplas says is correct here for a development environment.  However, I would always use &lt;A href="https://my.phantom.us/4.6/docs/appdev/metadata#specifying_pip_dependencies"&gt;link text&lt;/A&gt; process to deploy in a production environment because, the playbooks would fail if you have a warm standby or clustered environment.&lt;/P&gt;

&lt;P&gt;Regards,&lt;BR /&gt;
Rob&lt;/P&gt;</description>
      <pubDate>Thu, 12 Dec 2019 06:19:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/Phantom-Custom-Code-Alarm/m-p/482823#M268</guid>
      <dc:creator>rgresham_splunk</dc:creator>
      <dc:date>2019-12-12T06:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Phantom Custom Code Alarm</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/Phantom-Custom-Code-Alarm/m-p/482824#M269</link>
      <description>&lt;P&gt;Thank you for your response ghays, I appreciate it.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2019 02:30:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/Phantom-Custom-Code-Alarm/m-p/482824#M269</guid>
      <dc:creator>johnteo</dc:creator>
      <dc:date>2019-12-16T02:30:39Z</dc:date>
    </item>
    <item>
      <title>Re: Phantom Custom Code Alarm</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/Phantom-Custom-Code-Alarm/m-p/482825#M270</link>
      <description>&lt;P&gt;You could follow the advice I posted in your previous question and use slack or some other application to generate the sound alerts you are looking for.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Dec 2019 19:10:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/Phantom-Custom-Code-Alarm/m-p/482825#M270</guid>
      <dc:creator>phantom_mhike</dc:creator>
      <dc:date>2019-12-16T19:10:47Z</dc:date>
    </item>
  </channel>
</rss>

