<?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 a script only on one search head in a SH cluster  Preferably the Captain in Monitoring Splunk</title>
    <link>https://community.splunk.com/t5/Monitoring-Splunk/How-to-run-a-script-only-on-one-search-head-in-a-SH-cluster/m-p/642305#M9588</link>
    <description>&lt;P&gt;This is a scripted input that is set to run every minute.&amp;nbsp; &amp;nbsp;I was hoping there was a setting for the input in inputs.conf that would cause this behavior, but this will work.&amp;nbsp;&amp;nbsp;Thanks for the info.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 04 May 2023 14:42:20 GMT</pubDate>
    <dc:creator>RDumbeck</dc:creator>
    <dc:date>2023-05-04T14:42:20Z</dc:date>
    <item>
      <title>How to run a script only on one search head in a SH cluster, preferably the captain?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/How-to-run-a-script-only-on-one-search-head-in-a-SH-cluster/m-p/642187#M9581</link>
      <description>&lt;P&gt;i have a script that is currently executing on all search heads.&amp;nbsp; Is there a way to execute on only the current captain?&lt;BR /&gt;&lt;BR /&gt;I need only one of my search heads to return results.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 14:51:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/How-to-run-a-script-only-on-one-search-head-in-a-SH-cluster/m-p/642187#M9581</guid>
      <dc:creator>RDumbeck</dc:creator>
      <dc:date>2023-05-04T14:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to run a script only on one search head in a SH cluster  Preferably the Captain</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/How-to-run-a-script-only-on-one-search-head-in-a-SH-cluster/m-p/642230#M9582</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/158192"&gt;@RDumbeck&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;if you associate the script execution to an Alert, managed by the Search Head Cluster, your script will be executed only one time.&lt;/P&gt;&lt;P&gt;I used this solution to send SNMP traps to an external system.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 06:34:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/How-to-run-a-script-only-on-one-search-head-in-a-SH-cluster/m-p/642230#M9582</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-05-04T06:34:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to run a script only on one search head in a SH cluster  Preferably the Captain</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/How-to-run-a-script-only-on-one-search-head-in-a-SH-cluster/m-p/642262#M9583</link>
      <description>&lt;P&gt;Depends on what you mean "run a script". If you want to use OS-level CLI to chose just one node to run the script on, just do "splunk show shcluster-status" and check which node is the captain. Then run only on that node. If you want to run it directly from Splunk's search window by means of | script command, it will only be run on one node (the one you're connected to in case of interactive search or any node it will get scheduled to by scheduler in case of scheduled searches).&lt;/P&gt;&lt;P&gt;So what's the use case?&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 10:08:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/How-to-run-a-script-only-on-one-search-head-in-a-SH-cluster/m-p/642262#M9583</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2023-05-04T10:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to run a script only on one search head in a SH cluster  Preferably the Captain</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/How-to-run-a-script-only-on-one-search-head-in-a-SH-cluster/m-p/642305#M9588</link>
      <description>&lt;P&gt;This is a scripted input that is set to run every minute.&amp;nbsp; &amp;nbsp;I was hoping there was a setting for the input in inputs.conf that would cause this behavior, but this will work.&amp;nbsp;&amp;nbsp;Thanks for the info.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 14:42:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/How-to-run-a-script-only-on-one-search-head-in-a-SH-cluster/m-p/642305#M9588</guid>
      <dc:creator>RDumbeck</dc:creator>
      <dc:date>2023-05-04T14:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to run a script only on one search head in a SH cluster  Preferably the Captain</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/How-to-run-a-script-only-on-one-search-head-in-a-SH-cluster/m-p/642306#M9589</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/158192"&gt;@RDumbeck&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;good for you, see next time!&lt;/P&gt;&lt;P&gt;Ciao and happy splunking&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;P.S.: Karma Points are appreciated by all the contributors &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 14:47:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/How-to-run-a-script-only-on-one-search-head-in-a-SH-cluster/m-p/642306#M9589</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-05-04T14:47:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to run a script only on one search head in a SH cluster  Preferably the Captain</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/How-to-run-a-script-only-on-one-search-head-in-a-SH-cluster/m-p/642409#M9592</link>
      <description>&lt;P&gt;Well... there is another thing to consider with inputs - why would you want to run your inputs on the search-head? You typically set up a HF for this (for scripted input even a UF should do). And why, oh why, would you distribute such input to all SHC members??? That's counterintuitive - first you want to create several separate instances of your input, then you want to disable almost all of them. Seems pointless.&lt;/P&gt;</description>
      <pubDate>Fri, 05 May 2023 14:43:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/How-to-run-a-script-only-on-one-search-head-in-a-SH-cluster/m-p/642409#M9592</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2023-05-05T14:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to run a script only on one search head in a SH cluster, preferably the captain?</title>
      <link>https://community.splunk.com/t5/Monitoring-Splunk/How-to-run-a-script-only-on-one-search-head-in-a-SH-cluster/m-p/709498#M10684</link>
      <description>&lt;P&gt;Did you tied( if it's one of the input types mentioned) ?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;run_only_one= &amp;lt;boolean&amp;gt;
* Determines if a scripted or modular inputs runs on one search head
  in SHC.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2025 17:51:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Monitoring-Splunk/How-to-run-a-script-only-on-one-search-head-in-a-SH-cluster/m-p/709498#M10684</guid>
      <dc:creator>hrawat</dc:creator>
      <dc:date>2025-01-22T17:51:25Z</dc:date>
    </item>
  </channel>
</rss>

