<?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 Run a custom script in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Run-a-custom-script/m-p/665641#M17679</link>
    <description>&lt;P&gt;I came across of running a custom python script in Splunk on the triggered events by adding the run a script action but I don't know how to do it. As the alerts are visible on Splunk I want to run a script and extract those triggered alerts by running a script.&lt;/P&gt;</description>
    <pubDate>Fri, 20 Oct 2023 07:45:56 GMT</pubDate>
    <dc:creator>syedsaadat</dc:creator>
    <dc:date>2023-10-20T07:45:56Z</dc:date>
    <item>
      <title>Run a custom script</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Run-a-custom-script/m-p/665641#M17679</link>
      <description>&lt;P&gt;I came across of running a custom python script in Splunk on the triggered events by adding the run a script action but I don't know how to do it. As the alerts are visible on Splunk I want to run a script and extract those triggered alerts by running a script.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2023 07:45:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Run-a-custom-script/m-p/665641#M17679</guid>
      <dc:creator>syedsaadat</dc:creator>
      <dc:date>2023-10-20T07:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Run a custom script</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Run-a-custom-script/m-p/665704#M17683</link>
      <description>&lt;P&gt;Where did you come across this feature?&amp;nbsp; As I recall, Splunk removed the ability to run a script as an alert action years ago.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2023 18:21:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Run-a-custom-script/m-p/665704#M17683</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2023-10-23T18:21:30Z</dc:date>
    </item>
    <item>
      <title>Re: Run a custom script</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Run-a-custom-script/m-p/665705#M17684</link>
      <description>&lt;P&gt;You can create a Custom Alert Action that is backed by your python script:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Alert/CreateCustomAlerts" target="_blank"&gt;Using custom alert actions - Splunk Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;And here's the developer details on how you need to set things up:&lt;/P&gt;&lt;P&gt;&lt;A href="https://dev.splunk.com/enterprise/docs/devtools/customalertactions/" target="_blank"&gt;https://dev.splunk.com/enterprise/docs/devtools/customalertactions/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Oct 2023 16:44:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Run-a-custom-script/m-p/665705#M17684</guid>
      <dc:creator>_JP</dc:creator>
      <dc:date>2023-10-20T16:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Run a custom script</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Run-a-custom-script/m-p/665799#M17689</link>
      <description>&lt;P&gt;Yes I came across that thing. So is there a alternative way to run python scripts?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2023 05:19:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Run-a-custom-script/m-p/665799#M17689</guid>
      <dc:creator>syedsaadat</dc:creator>
      <dc:date>2023-10-23T05:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: Run a custom script</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Run-a-custom-script/m-p/665801#M17690</link>
      <description>&lt;P&gt;I tried implementing slack app but unable to send alerts to splunk so can you guide me through how to use the app to send alerts without using webhook.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2023 05:59:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Run-a-custom-script/m-p/665801#M17690</guid>
      <dc:creator>syedsaadat</dc:creator>
      <dc:date>2023-10-23T05:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: Run a custom script</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Run-a-custom-script/m-p/665899#M17696</link>
      <description>&lt;P&gt;The old way of just running a python script as an alert action was deprecated a while back.&amp;nbsp; It was a really simple, "run script and here's the search data."&amp;nbsp; That way is old and busted...so it is not around anymore.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The new hotness is &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Alert/CreateCustomAlerts" target="_self"&gt;Custom Alert Actions&lt;/A&gt;.&amp;nbsp; You can &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Alert/CreateCustomAlerts" target="_self"&gt;create one&lt;/A&gt; that runs your python.&amp;nbsp; There's some more setup/configuration so it is registered with the system and more effort goes into packaging it up as an official configuration in Splunk (official as in you made it for your environment...).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.splunk.com/t5/Alerting/Run-Script-Alert/m-p/388898#:~:text=%22Run%20a%20script%22%20alert%20action%20is%20deprecated%2C%20you,look%20at%20document%20https%3A%2F%2Fdocs.splunk.com%2FDocumentation%2FSplunk%2F7.3.0%2FAdvancedDev%2FModAlertsIntro%20and%20you%27ll%20get%20idea." target="_self"&gt;Here is a previous discussion&lt;/A&gt; on this topic, too.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Oct 2023 17:14:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Run-a-custom-script/m-p/665899#M17696</guid>
      <dc:creator>_JP</dc:creator>
      <dc:date>2023-10-23T17:14:30Z</dc:date>
    </item>
  </channel>
</rss>

