<?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 Splunk Alert Script on Windows in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Splunk-Alert-Script-on-Windows/m-p/72706#M998</link>
    <description>&lt;P&gt;I am trying to find info on how to write a custom alert script in python on windows. &lt;/P&gt;

&lt;P&gt;Initially i thought i would write a custom email script to modify some fields and subject lines etc to create tickets via email.&lt;BR /&gt;
Based on this script, i could later create a ticket directly with my ticketing platform.&lt;/P&gt;

&lt;P&gt;I can't seem to find any info on the scripts and modules available to splunk internally (ex: email). I see the SDKs for various languages but this seems to be from outside splunk. What if i want to leverage a script inside splunk and just use the same modules? i know i could rip apart the current sendemail.py, it just seems like this might be documented already somewhere.&lt;/P&gt;

&lt;P&gt;Also there is so no clear indication for me on how to get the results of a search alert into my script. &lt;BR /&gt;
There is an article here on how to do this, but it seems not to be for windows.&lt;BR /&gt;
&lt;A href="http://www.seanelavelle.com/2012/04/11/scripting-splunk-alerts-with-python/"&gt;http://www.seanelavelle.com/2012/04/11/scripting-splunk-alerts-with-python/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;thanks &lt;/P&gt;

&lt;P&gt;gd&lt;/P&gt;</description>
    <pubDate>Wed, 25 Sep 2013 15:27:19 GMT</pubDate>
    <dc:creator>gdavid</dc:creator>
    <dc:date>2013-09-25T15:27:19Z</dc:date>
    <item>
      <title>Splunk Alert Script on Windows</title>
      <link>https://community.splunk.com/t5/Alerting/Splunk-Alert-Script-on-Windows/m-p/72706#M998</link>
      <description>&lt;P&gt;I am trying to find info on how to write a custom alert script in python on windows. &lt;/P&gt;

&lt;P&gt;Initially i thought i would write a custom email script to modify some fields and subject lines etc to create tickets via email.&lt;BR /&gt;
Based on this script, i could later create a ticket directly with my ticketing platform.&lt;/P&gt;

&lt;P&gt;I can't seem to find any info on the scripts and modules available to splunk internally (ex: email). I see the SDKs for various languages but this seems to be from outside splunk. What if i want to leverage a script inside splunk and just use the same modules? i know i could rip apart the current sendemail.py, it just seems like this might be documented already somewhere.&lt;/P&gt;

&lt;P&gt;Also there is so no clear indication for me on how to get the results of a search alert into my script. &lt;BR /&gt;
There is an article here on how to do this, but it seems not to be for windows.&lt;BR /&gt;
&lt;A href="http://www.seanelavelle.com/2012/04/11/scripting-splunk-alerts-with-python/"&gt;http://www.seanelavelle.com/2012/04/11/scripting-splunk-alerts-with-python/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;thanks &lt;/P&gt;

&lt;P&gt;gd&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2013 15:27:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Splunk-Alert-Script-on-Windows/m-p/72706#M998</guid>
      <dc:creator>gdavid</dc:creator>
      <dc:date>2013-09-25T15:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Alert Script on Windows</title>
      <link>https://community.splunk.com/t5/Alerting/Splunk-Alert-Script-on-Windows/m-p/72707#M999</link>
      <description>&lt;P&gt;I am currently trying to do the same but with powershell. I want to execute a script to update a users attribute if value/Alert is triggered. &lt;/P&gt;

&lt;P&gt;I found this document which I have been using to start working on it. &lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0/Alert/Configuringscriptedalerts"&gt;ConfiguringScriptedAlerts&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2013 18:25:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Splunk-Alert-Script-on-Windows/m-p/72707#M999</guid>
      <dc:creator>MartinMcNutt</dc:creator>
      <dc:date>2013-09-25T18:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Alert Script on Windows</title>
      <link>https://community.splunk.com/t5/Alerting/Splunk-Alert-Script-on-Windows/m-p/72708#M1000</link>
      <description>&lt;P&gt;right i saw that page, but it still leaves me with a ton of questions. so in order to use python, they have this block:&lt;/P&gt;

&lt;P&gt;to use Python to interpret the script file:&lt;BR /&gt;
'---- myscript.py -----&lt;BR /&gt;
'#!/path/to/python&lt;BR /&gt;
'.....&lt;BR /&gt;
'.....&lt;/P&gt;

&lt;P&gt;does this mean that i need to install my own version of python? or is there a way to point it to the version installed with splunk?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2013 23:30:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Splunk-Alert-Script-on-Windows/m-p/72708#M1000</guid>
      <dc:creator>gdavid</dc:creator>
      <dc:date>2013-09-25T23:30:09Z</dc:date>
    </item>
  </channel>
</rss>

