<?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: Custom Search Fails to run in distributed environment. in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Custom-Search-Fails-to-run-in-distributed-environment/m-p/603141#M10667</link>
    <description>&lt;P&gt;Hold up. None of those errors seem applicable, because:&lt;/P&gt;&lt;P&gt;Further reading shows me that streaming searches can happen on the indexers AND/OR the search heads. Why! How? And more importantly, which one should I use?&lt;/P&gt;&lt;P&gt;I ran a "sort" in front of my custom command&amp;nbsp; |sort -url | punycode fieldname=url and I believe this forces my command to run locally. After doing this, my command works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;So, I do not understand if this needs to be run on indexers and SH, or just SH.&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;And...&lt;/P&gt;&lt;P&gt;If it needs to run on indexers, do I just install my app on them also?&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 24 Jun 2022 10:09:59 GMT</pubDate>
    <dc:creator>oliverja</dc:creator>
    <dc:date>2022-06-24T10:09:59Z</dc:date>
    <item>
      <title>Custom Search Fails to run in distributed environment.</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Custom-Search-Fails-to-run-in-distributed-environment/m-p/603137#M10666</link>
      <description>&lt;P&gt;I have created a custom search command, using the streaming search templates provided for the splunk SDK.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is a simple "take in the results from x field, manipulate, and add in a couple new fields". This runs fine on my single instance development server.&lt;/P&gt;&lt;P&gt;When I push it out to my search head cluster, I have 2 problems:&lt;/P&gt;&lt;P&gt;1) (Coincidence?) My Indexers all spiked in CPU around the same time i ran my search. Can a search head custom search impact the indexer? Looking at the docs, it seems like it would only impact the search head.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2) My search runs fine in a standalone instance, but in a distributed instance (SHC, Index cluster), I get this error. I dont see any more info on this -- how can I debug something so vague in splunk?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;[idx01-g,idx01-k,idx02-g,idx02-k,idx03-g,idx03-k,idx04-g,idx04-k,idx05-g,idx05-k] Streamed search execute failed because: Error in 'punycode' command: External search command exited unexpectedly with non-zero error code 1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="oliverja_1-1656061135354.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/20279i93D7FBC68C52D9F2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="oliverja_1-1656061135354.png" alt="oliverja_1-1656061135354.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Further investigation throws this (not on standalone, SHC only) but I changed it and am still getting this error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="oliverja_0-1656061117947.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/20278iA620EBA0C278E810/image-size/medium?v=v2&amp;amp;px=400" role="button" title="oliverja_0-1656061117947.png" alt="oliverja_0-1656061117947.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2022 09:40:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Custom-Search-Fails-to-run-in-distributed-environment/m-p/603137#M10666</guid>
      <dc:creator>oliverja</dc:creator>
      <dc:date>2022-06-24T09:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: Custom Search Fails to run in distributed environment.</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Custom-Search-Fails-to-run-in-distributed-environment/m-p/603141#M10667</link>
      <description>&lt;P&gt;Hold up. None of those errors seem applicable, because:&lt;/P&gt;&lt;P&gt;Further reading shows me that streaming searches can happen on the indexers AND/OR the search heads. Why! How? And more importantly, which one should I use?&lt;/P&gt;&lt;P&gt;I ran a "sort" in front of my custom command&amp;nbsp; |sort -url | punycode fieldname=url and I believe this forces my command to run locally. After doing this, my command works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;So, I do not understand if this needs to be run on indexers and SH, or just SH.&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;And...&lt;/P&gt;&lt;P&gt;If it needs to run on indexers, do I just install my app on them also?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2022 10:09:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Custom-Search-Fails-to-run-in-distributed-environment/m-p/603141#M10667</guid>
      <dc:creator>oliverja</dc:creator>
      <dc:date>2022-06-24T10:09:59Z</dc:date>
    </item>
  </channel>
</rss>

