<?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: How to run scripts in Search Head Cluster on an alive node? in Deployment Architecture</title>
    <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-run-scripts-in-Search-Head-Cluster-on-an-alive-node/m-p/399168#M14435</link>
    <description>&lt;P&gt;You should run the script on a Heavy Forwarder (HF).  It's a single place to run that will forward STDOUT and STDERR to your indexers.&lt;BR /&gt;
Configure the script on the HF the same way you would on a SH.&lt;/P&gt;</description>
    <pubDate>Fri, 10 Aug 2018 20:45:58 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2018-08-10T20:45:58Z</dc:date>
    <item>
      <title>How to run scripts in Search Head Cluster on an alive node?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-run-scripts-in-Search-Head-Cluster-on-an-alive-node/m-p/399167#M14434</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;

&lt;P&gt;We have some scripts for lookup filling via splunk lookup rest api &lt;A href="http://dev.splunk.com/view/webframework-developapps/SP-CAAAEZG"&gt;link text&lt;/A&gt;&lt;BR /&gt;
Also we have search head cluster (SHC).&lt;/P&gt;

&lt;P&gt;It would be great to use SHC capability to to run our scripts on the one of alive node.&lt;/P&gt;

&lt;P&gt;Best candidate for this procedure - inputs.conf. We can not only run script, but also collect STDOUT and STDERR in to index (docker style), for example:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[script://$SPLUNK_HOME/etc/apps/myapp/bin/lookup_fill.py]
interval = 50 23 * * *
sourcetype = lookup_fill
index = index_for_scripts_output
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But, when we use inputs.conf our script start on all SHC nodes.&lt;/P&gt;

&lt;P&gt;Can you advise to us way for a single run script from inputs.conf or maybe is the better way to:&lt;BR /&gt;
1. Run custom script on the on of the SHC nodes (in the best case - less loaded)&lt;BR /&gt;
2. Collect STDOUT and STDERR from script to index.&lt;/P&gt;

&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2018 20:00:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-run-scripts-in-Search-Head-Cluster-on-an-alive-node/m-p/399167#M14434</guid>
      <dc:creator>gots</dc:creator>
      <dc:date>2018-08-10T20:00:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to run scripts in Search Head Cluster on an alive node?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-run-scripts-in-Search-Head-Cluster-on-an-alive-node/m-p/399168#M14435</link>
      <description>&lt;P&gt;You should run the script on a Heavy Forwarder (HF).  It's a single place to run that will forward STDOUT and STDERR to your indexers.&lt;BR /&gt;
Configure the script on the HF the same way you would on a SH.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2018 20:45:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-run-scripts-in-Search-Head-Cluster-on-an-alive-node/m-p/399168#M14435</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2018-08-10T20:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to run scripts in Search Head Cluster on an alive node?</title>
      <link>https://community.splunk.com/t5/Deployment-Architecture/How-to-run-scripts-in-Search-Head-Cluster-on-an-alive-node/m-p/399169#M14436</link>
      <description>&lt;P&gt;it is recommended solution, as i remember. &lt;BR /&gt;
But it will be only one HF versus some searchheads, so if HF will down, my script will not work until HF recovered.&lt;/P&gt;</description>
      <pubDate>Sat, 11 Aug 2018 08:50:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Deployment-Architecture/How-to-run-scripts-in-Search-Head-Cluster-on-an-alive-node/m-p/399169#M14436</guid>
      <dc:creator>gots</dc:creator>
      <dc:date>2018-08-11T08:50:44Z</dc:date>
    </item>
  </channel>
</rss>

