<?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: Run a shell script in remote linux server based on the value of &amp;quot;Host&amp;quot; field returned for that alert query in Alerting</title>
    <link>https://community.splunk.com/t5/Alerting/Run-a-shell-script-in-remote-linux-server-based-on-the-value-of/m-p/579308#M13337</link>
    <description>Hi&lt;BR /&gt;&lt;BR /&gt;Maybe a better way could be to run those services under systemd on linux servers and give it to handle restarts?&lt;BR /&gt;&lt;BR /&gt;With script on splunk server you must also give access to all other servers from splunk server with Splunk User and then give needed sudo access to that user on all servers where you want start those services (could be huge security risk/issue that way)!&lt;BR /&gt;&lt;BR /&gt;r. Ismo</description>
    <pubDate>Mon, 27 Dec 2021 13:01:19 GMT</pubDate>
    <dc:creator>isoutamo</dc:creator>
    <dc:date>2021-12-27T13:01:19Z</dc:date>
    <item>
      <title>Run a shell script in remote linux server based on the value of "Host" field returned for that alert query</title>
      <link>https://community.splunk.com/t5/Alerting/Run-a-shell-script-in-remote-linux-server-based-on-the-value-of/m-p/579284#M13336</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I've a shell script to restart services. I want to setup an alert condition to run this shell script in a remote node(remote host in which this script should run should be determined based on the value which is being returned in "Host" field value in the Splunk query).&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I place the shell script in "$SPLUNK_HOME/bin/scripts" , this script runs only on the Splunk server. I want to know how can i make it to run on the remote node based on the host value being returned from Splunk query. Any help would be much appreciated!. Thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Dec 2021 08:34:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Run-a-shell-script-in-remote-linux-server-based-on-the-value-of/m-p/579284#M13336</guid>
      <dc:creator>Elavarasi02</dc:creator>
      <dc:date>2021-12-27T08:34:21Z</dc:date>
    </item>
    <item>
      <title>Re: Run a shell script in remote linux server based on the value of "Host" field returned for that alert query</title>
      <link>https://community.splunk.com/t5/Alerting/Run-a-shell-script-in-remote-linux-server-based-on-the-value-of/m-p/579308#M13337</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Maybe a better way could be to run those services under systemd on linux servers and give it to handle restarts?&lt;BR /&gt;&lt;BR /&gt;With script on splunk server you must also give access to all other servers from splunk server with Splunk User and then give needed sudo access to that user on all servers where you want start those services (could be huge security risk/issue that way)!&lt;BR /&gt;&lt;BR /&gt;r. Ismo</description>
      <pubDate>Mon, 27 Dec 2021 13:01:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Alerting/Run-a-shell-script-in-remote-linux-server-based-on-the-value-of/m-p/579308#M13337</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2021-12-27T13:01:19Z</dc:date>
    </item>
  </channel>
</rss>

