<?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 Scripts for Alert Actions in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Scripts-for-Alert-Actions/m-p/327476#M5792</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Can I please get an example of a script to make use of the alerts results. &lt;BR /&gt;
I have read the documentation that the "$SPLUNK_ARG_8" has the location that holds the results in a zip file . &lt;BR /&gt;
I want to know how can I access the zip file or open it and use the results by a python or a shell script. &lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 17:48:28 GMT</pubDate>
    <dc:creator>nawazns5038</dc:creator>
    <dc:date>2020-09-29T17:48:28Z</dc:date>
    <item>
      <title>Scripts for Alert Actions</title>
      <link>https://community.splunk.com/t5/Alerting/Scripts-for-Alert-Actions/m-p/327476#M5792</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Can I please get an example of a script to make use of the alerts results. &lt;BR /&gt;
I have read the documentation that the "$SPLUNK_ARG_8" has the location that holds the results in a zip file . &lt;BR /&gt;
I want to know how can I access the zip file or open it and use the results by a python or a shell script. &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:48:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Scripts-for-Alert-Actions/m-p/327476#M5792</guid>
      <dc:creator>nawazns5038</dc:creator>
      <dc:date>2020-09-29T17:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: Scripts for Alert Actions</title>
      <link>https://community.splunk.com/t5/Alerting/Scripts-for-Alert-Actions/m-p/327477#M5793</link>
      <description>&lt;P&gt;Can we use python scripts other than shell scripts for alert actions ? &lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2018 01:24:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Scripts-for-Alert-Actions/m-p/327477#M5793</guid>
      <dc:creator>nawazns5038</dc:creator>
      <dc:date>2018-01-26T01:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: Scripts for Alert Actions</title>
      <link>https://community.splunk.com/t5/Alerting/Scripts-for-Alert-Actions/m-p/327478#M5794</link>
      <description>&lt;P&gt;Example with scripted alert&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/latest/Alert/Configuringscriptedalerts"&gt;https://docs.splunk.com/Documentation/SplunkCloud/latest/Alert/Configuringscriptedalerts&lt;/A&gt;&lt;BR /&gt;
The idea behind the argument to the result zip file, is to use verify the presence of the file, then unzip, read the results (sometimes in csv). then trigger actions. As the scripts runs as the splunk user, it should be able to access the file.&lt;BR /&gt;
Also splunk ships with python so you can use this language.&lt;/P&gt;

&lt;P&gt;Otherwise nowadays, the supported method is to use custom alert actions&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/SplunkCloud/latest/Alert/CreateCustomAlerts"&gt;http://docs.splunk.com/Documentation/SplunkCloud/latest/Alert/CreateCustomAlerts&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Jan 2018 01:51:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Scripts-for-Alert-Actions/m-p/327478#M5794</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2018-01-26T01:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: Scripts for Alert Actions</title>
      <link>https://community.splunk.com/t5/Alerting/Scripts-for-Alert-Actions/m-p/327479#M5795</link>
      <description>&lt;P&gt;Yes I could see the link,&lt;BR /&gt;
Could you please paste some example scripts that are in use or that can be used. &lt;/P&gt;</description>
      <pubDate>Sat, 27 Jan 2018 01:39:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Scripts-for-Alert-Actions/m-p/327479#M5795</guid>
      <dc:creator>nawazns5038</dc:creator>
      <dc:date>2018-01-27T01:39:45Z</dc:date>
    </item>
  </channel>
</rss>

