<?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: execute a powershell scipt based on an alert in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/execute-a-powershell-scipt-based-on-an-alert/m-p/188636#M3176</link>
    <description>&lt;P&gt;You can create a search alert, setup the conditions, and the schedule.&lt;BR /&gt;
Then in the actions options specify "trigger a shell script" to call.&lt;/P&gt;

&lt;P&gt;see the documentation on how to pass arguments to the script :&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.3/Alert/Configuringscriptedalerts"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.3/Alert/Configuringscriptedalerts&lt;/A&gt;&lt;BR /&gt;
and &lt;A href="http://wiki.splunk.com/Community:TroubleshootingAlertScripts"&gt;http://wiki.splunk.com/Community:TroubleshootingAlertScripts&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;For powershell, you may need to change the system policy settings to allow splunk to unsigned scripts run it.&lt;BR /&gt;
see &lt;A href="http://technet.microsoft.com/en-us/library/hh849812.aspx"&gt;http://technet.microsoft.com/en-us/library/hh849812.aspx&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Aug 2014 16:19:33 GMT</pubDate>
    <dc:creator>yannK</dc:creator>
    <dc:date>2014-08-20T16:19:33Z</dc:date>
    <item>
      <title>execute a powershell scipt based on an alert</title>
      <link>https://community.splunk.com/t5/Alerting/execute-a-powershell-scipt-based-on-an-alert/m-p/188635#M3175</link>
      <description>&lt;P&gt;I would like to execute a powershell script based on a search SPLUNK result. if the condition is 1111 run this powershell command.  This must be PS 2.0 &lt;/P&gt;</description>
      <pubDate>Wed, 20 Aug 2014 14:25:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/execute-a-powershell-scipt-based-on-an-alert/m-p/188635#M3175</guid>
      <dc:creator>jsdao</dc:creator>
      <dc:date>2014-08-20T14:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: execute a powershell scipt based on an alert</title>
      <link>https://community.splunk.com/t5/Alerting/execute-a-powershell-scipt-based-on-an-alert/m-p/188636#M3176</link>
      <description>&lt;P&gt;You can create a search alert, setup the conditions, and the schedule.&lt;BR /&gt;
Then in the actions options specify "trigger a shell script" to call.&lt;/P&gt;

&lt;P&gt;see the documentation on how to pass arguments to the script :&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.1.3/Alert/Configuringscriptedalerts"&gt;http://docs.splunk.com/Documentation/Splunk/6.1.3/Alert/Configuringscriptedalerts&lt;/A&gt;&lt;BR /&gt;
and &lt;A href="http://wiki.splunk.com/Community:TroubleshootingAlertScripts"&gt;http://wiki.splunk.com/Community:TroubleshootingAlertScripts&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;For powershell, you may need to change the system policy settings to allow splunk to unsigned scripts run it.&lt;BR /&gt;
see &lt;A href="http://technet.microsoft.com/en-us/library/hh849812.aspx"&gt;http://technet.microsoft.com/en-us/library/hh849812.aspx&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Aug 2014 16:19:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/execute-a-powershell-scipt-based-on-an-alert/m-p/188636#M3176</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2014-08-20T16:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: execute a powershell scipt based on an alert</title>
      <link>https://community.splunk.com/t5/Alerting/execute-a-powershell-scipt-based-on-an-alert/m-p/188637#M3177</link>
      <description>&lt;P&gt;Thanks I believe the second part is what I have been struggling with.  &lt;/P&gt;</description>
      <pubDate>Wed, 20 Aug 2014 16:28:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/execute-a-powershell-scipt-based-on-an-alert/m-p/188637#M3177</guid>
      <dc:creator>jsdao</dc:creator>
      <dc:date>2014-08-20T16:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: execute a powershell scipt based on an alert</title>
      <link>https://community.splunk.com/t5/Alerting/execute-a-powershell-scipt-based-on-an-alert/m-p/188638#M3178</link>
      <description>&lt;P&gt;Thanks for the suggestion, but unfortunatly non of these worked&lt;/P&gt;</description>
      <pubDate>Thu, 21 Aug 2014 11:10:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/execute-a-powershell-scipt-based-on-an-alert/m-p/188638#M3178</guid>
      <dc:creator>jsdao</dc:creator>
      <dc:date>2014-08-21T11:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: execute a powershell scipt based on an alert</title>
      <link>https://community.splunk.com/t5/Alerting/execute-a-powershell-scipt-based-on-an-alert/m-p/188639#M3179</link>
      <description>&lt;P&gt;I am looking for a way to run PS script directly from alert actions. I couldn't find a way to do it except running a bat script to call my powershell script. If anybody find a way to resolve this, please share &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2016 16:31:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/execute-a-powershell-scipt-based-on-an-alert/m-p/188639#M3179</guid>
      <dc:creator>axl88</dc:creator>
      <dc:date>2016-06-08T16:31:21Z</dc:date>
    </item>
  </channel>
</rss>

