<?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 How to run a linux command on remote machine via splunk GUI, on demand only? in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-run-a-linux-command-on-remote-machine-via-splunk-GUI-on/m-p/485699#M16861</link>
    <description>&lt;P&gt;I have splunk instance running on one linux server.&lt;BR /&gt;
I have python code on another linux server, which I run manually something like: &lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;(console script command given in setup.py) (arguments)&lt;BR /&gt;
Is it possible to run this via Splunk GUI? If so, how?&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Note: &lt;BR /&gt;
This is to be run on demand and not in a scheduled way i.e. whenever user searches say a username from splunk GUI, python script from remote server needs to run, fetch some details and send back as results for the search.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jan 2020 07:44:17 GMT</pubDate>
    <dc:creator>smitapatankarso</dc:creator>
    <dc:date>2020-01-21T07:44:17Z</dc:date>
    <item>
      <title>How to run a linux command on remote machine via splunk GUI, on demand only?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-run-a-linux-command-on-remote-machine-via-splunk-GUI-on/m-p/485699#M16861</link>
      <description>&lt;P&gt;I have splunk instance running on one linux server.&lt;BR /&gt;
I have python code on another linux server, which I run manually something like: &lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;(console script command given in setup.py) (arguments)&lt;BR /&gt;
Is it possible to run this via Splunk GUI? If so, how?&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Note: &lt;BR /&gt;
This is to be run on demand and not in a scheduled way i.e. whenever user searches say a username from splunk GUI, python script from remote server needs to run, fetch some details and send back as results for the search.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2020 07:44:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-run-a-linux-command-on-remote-machine-via-splunk-GUI-on/m-p/485699#M16861</guid>
      <dc:creator>smitapatankarso</dc:creator>
      <dc:date>2020-01-21T07:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to run a linux command on remote machine via splunk GUI, on demand only?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-run-a-linux-command-on-remote-machine-via-splunk-GUI-on/m-p/485700#M16862</link>
      <description>&lt;P&gt;Sounds like you need a custom search command or external lookup. These links should get you started:&lt;/P&gt;

&lt;P&gt;External Lookups: &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.1/Knowledge/Configureexternallookups"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.1/Knowledge/Configureexternallookups&lt;/A&gt;&lt;BR /&gt;
Custom Search Command Docs: &lt;A href="https://docs.splunk.com/Documentation/Splunk/8.0.1/Search/Writeasearchcommand"&gt;https://docs.splunk.com/Documentation/Splunk/8.0.1/Search/Writeasearchcommand&lt;/A&gt;&lt;BR /&gt;
Custom Search Command Dev: &lt;A href="https://dev.splunk.com/enterprise/docs/developapps/customsearchcommands/"&gt;https://dev.splunk.com/enterprise/docs/developapps/customsearchcommands/&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;What kind of details does the script return? What does the script do? An example of an external search command is in Splunk Supporting Add-on for Active (&lt;A href="https://splunkbase.splunk.com/app/1151/"&gt;https://splunkbase.splunk.com/app/1151/&lt;/A&gt;). Given different arguments it will return LDAP user/object results to supplement results or create lookup tables.&lt;/P&gt;

&lt;P&gt;More details are likely needed to determine the best way to do this. There isn't really a simple "out of the box" way to do this.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2020 15:47:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-run-a-linux-command-on-remote-machine-via-splunk-GUI-on/m-p/485700#M16862</guid>
      <dc:creator>mdsnmss</dc:creator>
      <dc:date>2020-01-21T15:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to run a linux command on remote machine via splunk GUI, on demand only?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-run-a-linux-command-on-remote-machine-via-splunk-GUI-on/m-p/485701#M16863</link>
      <description>&lt;P&gt;Thanks I will go through the provided information.&lt;/P&gt;

&lt;P&gt;The script needs to take a username as input (via splunk GUI).&lt;BR /&gt;
It then needs to form a list of all the groups the user is a part of recursively, by communicating with Redis server which has raw information of users and groups.&lt;BR /&gt;
It needs to return that list of groups to be displayed as splunk search result.&lt;/P&gt;

&lt;P&gt;splunk(splunk server)&amp;lt;--&amp;gt;server that has script&amp;lt;--&amp;gt;redis server  &lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2020 12:20:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-run-a-linux-command-on-remote-machine-via-splunk-GUI-on/m-p/485701#M16863</guid>
      <dc:creator>smitapatankarso</dc:creator>
      <dc:date>2020-01-23T12:20:32Z</dc:date>
    </item>
  </channel>
</rss>

