<?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: Can you launch a search from within a custom search command? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Can-you-launch-a-search-from-within-a-custom-search-command/m-p/363695#M107376</link>
    <description>&lt;P&gt;You definitely can, and the key to that is passing your sessionKey to your custom search command so that it can pass said key back to the Splunk REST API.  This answers post lays out the major components you're looking for:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/434017/how-to-get-session-key-in-a-search-script-script-s.html"&gt;https://answers.splunk.com/answers/434017/how-to-get-session-key-in-a-search-script-script-s.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 17 Nov 2017 00:00:05 GMT</pubDate>
    <dc:creator>micahkemp</dc:creator>
    <dc:date>2017-11-17T00:00:05Z</dc:date>
    <item>
      <title>Can you launch a search from within a custom search command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-launch-a-search-from-within-a-custom-search-command/m-p/363694#M107375</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;
I have already created a custom search command, Can I launch from my python scripy a search that gets me values I need to continue my custom search command?&lt;BR /&gt;
Not passing them as arguments but running a search inside the custom command script?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Nov 2017 13:14:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-launch-a-search-from-within-a-custom-search-command/m-p/363694#M107375</guid>
      <dc:creator>MarcHelou</dc:creator>
      <dc:date>2017-11-16T13:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: Can you launch a search from within a custom search command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-launch-a-search-from-within-a-custom-search-command/m-p/363695#M107376</link>
      <description>&lt;P&gt;You definitely can, and the key to that is passing your sessionKey to your custom search command so that it can pass said key back to the Splunk REST API.  This answers post lays out the major components you're looking for:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/434017/how-to-get-session-key-in-a-search-script-script-s.html"&gt;https://answers.splunk.com/answers/434017/how-to-get-session-key-in-a-search-script-script-s.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Nov 2017 00:00:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-launch-a-search-from-within-a-custom-search-command/m-p/363695#M107376</guid>
      <dc:creator>micahkemp</dc:creator>
      <dc:date>2017-11-17T00:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: Can you launch a search from within a custom search command?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-you-launch-a-search-from-within-a-custom-search-command/m-p/363696#M107377</link>
      <description>&lt;P&gt;I was also looking to answer this question. Much of the documentation that exists is for version 1 of the custom search command protocol, which was deprecated in Splunk 6.4.0. I posted an example here: &lt;A href="https://answers.splunk.com/answers/434017/how-to-get-session-key-in-a-search-script-script-s.html#answer-740645"&gt;https://answers.splunk.com/answers/434017/how-to-get-session-key-in-a-search-script-script-s.html#answer-740645&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2019 00:46:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-you-launch-a-search-from-within-a-custom-search-command/m-p/363696#M107377</guid>
      <dc:creator>supersleepwalke</dc:creator>
      <dc:date>2019-04-16T00:46:06Z</dc:date>
    </item>
  </channel>
</rss>

