<?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: Python script execution from Splunk GUI in Installation</title>
    <link>https://community.splunk.com/t5/Installation/Python-script-execution-from-Splunk-GUI/m-p/477350#M10316</link>
    <description>&lt;P&gt;You can create a custom alert action to trigger python script using steps provided here:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/810829/problem-with-scripted-alert.html#answer-810832"&gt;https://answers.splunk.com/answers/810829/problem-with-scripted-alert.html#answer-810832&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;And use &lt;CODE&gt;sendalert&lt;/CODE&gt; command to trigger script.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;base search&amp;gt; | sendalert scriptcustomalert
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 17 Apr 2020 14:27:49 GMT</pubDate>
    <dc:creator>manjunathmeti</dc:creator>
    <dc:date>2020-04-17T14:27:49Z</dc:date>
    <item>
      <title>Python script execution from Splunk GUI</title>
      <link>https://community.splunk.com/t5/Installation/Python-script-execution-from-Splunk-GUI/m-p/477349#M10315</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;

&lt;P&gt;We have a python script which runs and executes the results of the knowledge objects of rest apis. We are going to run this script on adhoc basis which will modify and list the permissions. Do we have to use custom search command for that?&lt;/P&gt;

&lt;P&gt;If yes then please let us know the approach...&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2020 13:20:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Python-script-execution-from-Splunk-GUI/m-p/477349#M10315</guid>
      <dc:creator>manish_singh_77</dc:creator>
      <dc:date>2020-04-17T13:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: Python script execution from Splunk GUI</title>
      <link>https://community.splunk.com/t5/Installation/Python-script-execution-from-Splunk-GUI/m-p/477350#M10316</link>
      <description>&lt;P&gt;You can create a custom alert action to trigger python script using steps provided here:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/810829/problem-with-scripted-alert.html#answer-810832"&gt;https://answers.splunk.com/answers/810829/problem-with-scripted-alert.html#answer-810832&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;And use &lt;CODE&gt;sendalert&lt;/CODE&gt; command to trigger script.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;base search&amp;gt; | sendalert scriptcustomalert
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 17 Apr 2020 14:27:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Python-script-execution-from-Splunk-GUI/m-p/477350#M10316</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2020-04-17T14:27:49Z</dc:date>
    </item>
    <item>
      <title>Re: Python script execution from Splunk GUI</title>
      <link>https://community.splunk.com/t5/Installation/Python-script-execution-from-Splunk-GUI/m-p/477351#M10317</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/129090"&gt;@manjunathmeti&lt;/a&gt; ,&lt;/P&gt;

&lt;P&gt;I have a python script, for now I am executing the commands from the server and getting the results.&lt;/P&gt;

&lt;P&gt;For example: /opt/splunk/bin/splunk cmd python /home/splunk/test_Script.py list savedsearch --user test_user&lt;/P&gt;

&lt;P&gt;This will return the results once executed from the server, how we do the same thing from GUI?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:03:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Python-script-execution-from-Splunk-GUI/m-p/477351#M10317</guid>
      <dc:creator>manish_singh_77</dc:creator>
      <dc:date>2020-09-30T05:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: Python script execution from Splunk GUI</title>
      <link>https://community.splunk.com/t5/Installation/Python-script-execution-from-Splunk-GUI/m-p/477352#M10318</link>
      <description>&lt;P&gt;If you want to run a script as command and get results in search app then you need to create a custom search command. Check this:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://dev.splunk.com/enterprise/docs/developapps/customsearchcommands/createcustomsearchcmd"&gt;https://dev.splunk.com/enterprise/docs/developapps/customsearchcommands/createcustomsearchcmd&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;If you listing all saved searches, you can use below search query:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rest /servicesNS/-/-/saved/searches  | table title,cron_schedule,next_scheduled_time,eai:acl.owner,actions,eai:acl.app
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 20 Apr 2020 13:15:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Python-script-execution-from-Splunk-GUI/m-p/477352#M10318</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2020-04-20T13:15:16Z</dc:date>
    </item>
    <item>
      <title>Re: Python script execution from Splunk GUI</title>
      <link>https://community.splunk.com/t5/Installation/Python-script-execution-from-Splunk-GUI/m-p/477353#M10319</link>
      <description>&lt;P&gt;@manjunathmeti &lt;/P&gt;

&lt;P&gt;Thanks for your reply, slight correction from my end, we can also use curl utility to modify the permissions, right?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2020 07:40:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Python-script-execution-from-Splunk-GUI/m-p/477353#M10319</guid>
      <dc:creator>manish_singh_77</dc:creator>
      <dc:date>2020-04-21T07:40:25Z</dc:date>
    </item>
    <item>
      <title>Re: Python script execution from Splunk GUI</title>
      <link>https://community.splunk.com/t5/Installation/Python-script-execution-from-Splunk-GUI/m-p/477354#M10320</link>
      <description>&lt;P&gt;If you are asking about modifying the splunk objects (like savedsearches, views etc.) permissions using REST API calls using curl utility, then yes you can use that.&lt;/P&gt;

&lt;P&gt;Check this link:&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.3/RESTTUT/RESTbasicexamples"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.3/RESTTUT/RESTbasicexamples&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2020 10:29:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Python-script-execution-from-Splunk-GUI/m-p/477354#M10320</guid>
      <dc:creator>manjunathmeti</dc:creator>
      <dc:date>2020-04-21T10:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: Python script execution from Splunk GUI</title>
      <link>https://community.splunk.com/t5/Installation/Python-script-execution-from-Splunk-GUI/m-p/477355#M10321</link>
      <description>&lt;P&gt;@manjunathmeti &lt;/P&gt;

&lt;P&gt;Do you have any sample python script?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2020 11:42:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Installation/Python-script-execution-from-Splunk-GUI/m-p/477355#M10321</guid>
      <dc:creator>manish_singh_77</dc:creator>
      <dc:date>2020-04-21T11:42:04Z</dc:date>
    </item>
  </channel>
</rss>

