<?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 Why does my alert script fail on windows? in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Why-does-my-alert-script-fail-on-windows/m-p/36836#M401</link>
    <description>&lt;P&gt;I have spent most of the afternoon trying to work out why the script doesn't seem to work. From the logs I found in &lt;CODE&gt;%SPLUNK_HOME%\var\log\splunk\&lt;/CODE&gt; the commmand will never work as long as my search command contains quotes, braces, &amp;gt;, &amp;lt; or &amp;amp; anywhere. e.g&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;C:\WINDOWS\system32\cmd.exe /c " "pathtosplunk\Splunk\bin\scripts\myscript.py" "49" "index="my_index" ("some" OR "other") | rex field=blah "(?&amp;lt;breakage&amp;gt;.*)" commands" "name_of saved search" "Saved Search [nameofsavedsearch] number of events(99)" "http://path toresults" "" "path\\to\\csv" "&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Is there any solution?&lt;/P&gt;</description>
    <pubDate>Tue, 19 Feb 2013 17:26:03 GMT</pubDate>
    <dc:creator>jameshgibson</dc:creator>
    <dc:date>2013-02-19T17:26:03Z</dc:date>
    <item>
      <title>Why does my alert script fail on windows?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-does-my-alert-script-fail-on-windows/m-p/36836#M401</link>
      <description>&lt;P&gt;I have spent most of the afternoon trying to work out why the script doesn't seem to work. From the logs I found in &lt;CODE&gt;%SPLUNK_HOME%\var\log\splunk\&lt;/CODE&gt; the commmand will never work as long as my search command contains quotes, braces, &amp;gt;, &amp;lt; or &amp;amp; anywhere. e.g&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;C:\WINDOWS\system32\cmd.exe /c " "pathtosplunk\Splunk\bin\scripts\myscript.py" "49" "index="my_index" ("some" OR "other") | rex field=blah "(?&amp;lt;breakage&amp;gt;.*)" commands" "name_of saved search" "Saved Search [nameofsavedsearch] number of events(99)" "http://path toresults" "" "path\\to\\csv" "&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Is there any solution?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2013 17:26:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-does-my-alert-script-fail-on-windows/m-p/36836#M401</guid>
      <dc:creator>jameshgibson</dc:creator>
      <dc:date>2013-02-19T17:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: Why does my alert script fail on windows?</title>
      <link>https://community.splunk.com/t5/Alerting/Why-does-my-alert-script-fail-on-windows/m-p/36837#M402</link>
      <description>&lt;P&gt;The only way I have managed to get this working is by re-writing &lt;CODE&gt;%SPLUNK_HOME%\etc\apps\search\bin\runshellscript.py&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;Clearly this is not a good solution and will break after any update. &lt;/P&gt;</description>
      <pubDate>Wed, 20 Feb 2013 11:54:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Why-does-my-alert-script-fail-on-windows/m-p/36837#M402</guid>
      <dc:creator>jameshgibson</dc:creator>
      <dc:date>2013-02-20T11:54:49Z</dc:date>
    </item>
  </channel>
</rss>

