<?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 Custom Search Command (V2/Chunked): Persist script in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Custom-Search-Command-V2-Chunked-Persist-script/m-p/626063#M10884</link>
    <description>&lt;P&gt;Hi! Long time listener, first time caller here.&lt;/P&gt;&lt;P&gt;Our custom search command needs some slow initialization, which we would prefer to skip on repeated calls.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is there a way to keep the process alive after the first invocation and only call dispatch() afterwards?&lt;BR /&gt;&lt;/STRONG&gt;Something that does &lt;A href="https://dev.splunk.com/enterprise/docs/devtools/customrestendpoints/" target="_self"&gt;what scripttype = persist does for REST endpoints&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;My understanding is that the protocol would allow this.&lt;/P&gt;&lt;P&gt;Calling dispatch() in a loop sadly doesn't work - would've been too easy, huh?&lt;BR /&gt;(It does work in so far that the command finishes - it's just that the script gets started again the next time)&lt;/P&gt;</description>
    <pubDate>Fri, 06 Jan 2023 00:30:31 GMT</pubDate>
    <dc:creator>spunk_enthusias</dc:creator>
    <dc:date>2023-01-06T00:30:31Z</dc:date>
    <item>
      <title>Custom Search Command (V2/Chunked): Persist script</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Custom-Search-Command-V2-Chunked-Persist-script/m-p/626063#M10884</link>
      <description>&lt;P&gt;Hi! Long time listener, first time caller here.&lt;/P&gt;&lt;P&gt;Our custom search command needs some slow initialization, which we would prefer to skip on repeated calls.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is there a way to keep the process alive after the first invocation and only call dispatch() afterwards?&lt;BR /&gt;&lt;/STRONG&gt;Something that does &lt;A href="https://dev.splunk.com/enterprise/docs/devtools/customrestendpoints/" target="_self"&gt;what scripttype = persist does for REST endpoints&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;My understanding is that the protocol would allow this.&lt;/P&gt;&lt;P&gt;Calling dispatch() in a loop sadly doesn't work - would've been too easy, huh?&lt;BR /&gt;(It does work in so far that the command finishes - it's just that the script gets started again the next time)&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2023 00:30:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Custom-Search-Command-V2-Chunked-Persist-script/m-p/626063#M10884</guid>
      <dc:creator>spunk_enthusias</dc:creator>
      <dc:date>2023-01-06T00:30:31Z</dc:date>
    </item>
  </channel>
</rss>

