<?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 [Phantom]  Looped Splunk Run Query action able to display results in Splunk SOAR</title>
    <link>https://community.splunk.com/t5/Splunk-SOAR/Phantom-Looped-Splunk-Run-Query-action-able-to-display-results/m-p/532789#M522</link>
    <description>&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;Below is the logic I am trying to achieve:&lt;/P&gt;&lt;P&gt;Perform enrichment on a list of host via information extraction using a Spunk's run query action. The resulting results will then be added as an artifact.&lt;/P&gt;&lt;P&gt;1. Get&amp;nbsp; List of Hosts and run each one of them against step 2.&lt;BR /&gt;2. Run a Splunk query which aims to get the host info (e.g. ldap details)&lt;BR /&gt;3. Extract the details from the splunk query and add an artifact.&lt;BR /&gt;4. Loop until steps 2-4 until the all the host in the list has been processed.&lt;/P&gt;&lt;P&gt;Issue:&lt;/P&gt;&lt;P&gt;The first loop is working fine, I am able to successfully run the query, extract the fields and place them in a format block and then add them as an artifact.&lt;/P&gt;&lt;P&gt;The problem comes in the succeeding searches, the splunk searches appears to be successful, but the resulting data is not passed properly, the value appears to show as None.&lt;/P&gt;&lt;P&gt;Note that the same format block works for every first time you run the playbook.&lt;/P&gt;&lt;P&gt;Another thing to note is that i am using a Join Function and using the built in add artifact action.&lt;/P&gt;&lt;P&gt;Cheers,&lt;BR /&gt;Carl&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Dec 2020 12:37:50 GMT</pubDate>
    <dc:creator>carl72086</dc:creator>
    <dc:date>2020-12-11T12:37:50Z</dc:date>
    <item>
      <title>[Phantom]  Looped Splunk Run Query action able to display results</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/Phantom-Looped-Splunk-Run-Query-action-able-to-display-results/m-p/532789#M522</link>
      <description>&lt;P&gt;Hi There,&lt;/P&gt;&lt;P&gt;Below is the logic I am trying to achieve:&lt;/P&gt;&lt;P&gt;Perform enrichment on a list of host via information extraction using a Spunk's run query action. The resulting results will then be added as an artifact.&lt;/P&gt;&lt;P&gt;1. Get&amp;nbsp; List of Hosts and run each one of them against step 2.&lt;BR /&gt;2. Run a Splunk query which aims to get the host info (e.g. ldap details)&lt;BR /&gt;3. Extract the details from the splunk query and add an artifact.&lt;BR /&gt;4. Loop until steps 2-4 until the all the host in the list has been processed.&lt;/P&gt;&lt;P&gt;Issue:&lt;/P&gt;&lt;P&gt;The first loop is working fine, I am able to successfully run the query, extract the fields and place them in a format block and then add them as an artifact.&lt;/P&gt;&lt;P&gt;The problem comes in the succeeding searches, the splunk searches appears to be successful, but the resulting data is not passed properly, the value appears to show as None.&lt;/P&gt;&lt;P&gt;Note that the same format block works for every first time you run the playbook.&lt;/P&gt;&lt;P&gt;Another thing to note is that i am using a Join Function and using the built in add artifact action.&lt;/P&gt;&lt;P&gt;Cheers,&lt;BR /&gt;Carl&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2020 12:37:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/Phantom-Looped-Splunk-Run-Query-action-able-to-display-results/m-p/532789#M522</guid>
      <dc:creator>carl72086</dc:creator>
      <dc:date>2020-12-11T12:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: [Phantom]  Looped Splunk Run Query action able to display results</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/Phantom-Looped-Splunk-Run-Query-action-able-to-display-results/m-p/533849#M524</link>
      <description>&lt;P&gt;Update:&amp;nbsp; Managed to figure this out after tons of testing. If you have multiple queries (e.g. splunk queries) inside a join loop, you need to be able to save the query result data and the easiest way to do that without having to add artifacts is to create a custom function after each query and pass the data (via custom function input an output). In that way you can call the custom function outputs at the end of the playbook and be able to format it as needed.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2020 14:58:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/Phantom-Looped-Splunk-Run-Query-action-able-to-display-results/m-p/533849#M524</guid>
      <dc:creator>carl72086</dc:creator>
      <dc:date>2020-12-22T14:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: [Phantom]  Looped Splunk Run Query action able to display results</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/Phantom-Looped-Splunk-Run-Query-action-able-to-display-results/m-p/650476#M1211</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create the custom code but no luck is it possible to share the custom code you have created so i can have modify it?&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2023 06:17:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/Phantom-Looped-Splunk-Run-Query-action-able-to-display-results/m-p/650476#M1211</guid>
      <dc:creator>prasanthkota</dc:creator>
      <dc:date>2023-07-14T06:17:25Z</dc:date>
    </item>
  </channel>
</rss>

