<?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: API Filtering in Splunk SOAR - Access child elements in JSON in Splunk SOAR</title>
    <link>https://community.splunk.com/t5/Splunk-SOAR/API-Filtering-in-Splunk-SOAR-Access-child-elements-in-JSON/m-p/741233#M1694</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/260356"&gt;@SOARt_of_Lost&lt;/a&gt;&amp;nbsp;Going by your profile name, would appreciate your thoughts on this question as well! TIA&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.splunk.com/t5/Splunk-SOAR/Splunk-SOAR-access-environment-variables/td-p/741231" target="_blank"&gt;https://community.splunk.com/t5/Splunk-SOAR/Splunk-SOAR-access-environment-variables/td-p/741231&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sun, 09 Mar 2025 12:58:05 GMT</pubDate>
    <dc:creator>JustntherSplker</dc:creator>
    <dc:date>2025-03-09T12:58:05Z</dc:date>
    <item>
      <title>API Filtering in Splunk SOAR - Access child elements in JSON</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/API-Filtering-in-Splunk-SOAR-Access-child-elements-in-JSON/m-p/712358#M1685</link>
      <description>&lt;P&gt;Working on a use case which entails finding All containers/artifacts that match certain field conditions.&lt;BR /&gt;&lt;BR /&gt;The idea is to run an API query against SOAR artifact end point to get all the artifacts and use the returned artifact fields in further fulfilling automation.&lt;BR /&gt;&lt;BR /&gt;A few questions in this respect&lt;BR /&gt;&lt;BR /&gt;1)Does SOAR support API filtering like described in this article -&amp;nbsp;&lt;A href="https://medium.com/@lovely_peel_hamster_92/splunk-phantom-rest-api-filters-956a58854bfc" target="_blank" rel="noopener"&gt;https://medium.com/@lovely_peel_hamster_92/splunk-phantom-rest-api-filters-956a58854bfc&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Specifically the ability to access child objects in JSON. Documentation does not seem to mention anything about accessing child objects.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://docs.splunk.com/Documentation/Phantom/4.10.7/PlatformAPI/RESTQueryData" target="_blank" rel="noopener"&gt;https://docs.splunk.com/Documentation/Phantom/4.10.7/PlatformAPI/RESTQueryData&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;3)Also when filters are applied, we seem to lose the ability to restrict the output to a list of fields. It returns the entire JSON while the requirement is for specific fields.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;What we are actually trying to achieve -&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Check for closed SNow INCs and close corresponding Splunk ES notables, and SOAR containers.&lt;BR /&gt;&lt;BR /&gt;We have broken down the approach into modules and have the component parts working but the aforementioned filtering is tripping us up - Solving the problem will help us complete the playbook.&lt;BR /&gt;&lt;BR /&gt;I also found this and we are attempting something very similar -&amp;nbsp;&lt;A href="https://community.splunk.com/t5/Splunk-SOAR/Playbook-run-on-bulk-events/m-p/667251" target="_blank" rel="noopener"&gt;https://community.splunk.com/t5/Splunk-SOAR/Playbook-run-on-bulk-events/m-p/667251&lt;/A&gt;. Again, the filtering is key to completing this.&lt;BR /&gt;&lt;BR /&gt;Also, open to suggestions on approach to achieve the above. Thanks! in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2025 13:08:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/API-Filtering-in-Splunk-SOAR-Access-child-elements-in-JSON/m-p/712358#M1685</guid>
      <dc:creator>JustntherSplker</dc:creator>
      <dc:date>2025-02-24T13:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: API Filtering in Splunk SOAR - Access child elements in JSON</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/API-Filtering-in-Splunk-SOAR-Access-child-elements-in-JSON/m-p/740971#M1690</link>
      <description>&lt;P&gt;Thanks for linking that article, I haven't seen it and it's got some handy tips.&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Yes. In my limited testing, this works.&lt;/P&gt;&lt;P&gt;3) Unfortunately, that seems to be the tradeoff based on what you're trying to do. When you &lt;A href="https://docs.splunk.com/Documentation/Phantom/4.10.7/PlatformAPI/RESTQueryData#Filtering" target="_self"&gt;filter&lt;/A&gt;&amp;nbsp;(rest/&lt;U&gt;artifact&lt;/U&gt;) you're look for&amp;nbsp;&lt;EM&gt;any&amp;nbsp;&lt;/EM&gt;artifacts which match your search results. When you &lt;A href="https://docs.splunk.com/Documentation/Phantom/4.10.7/PlatformAPI/RESTQueryData#Requesting_Object_Detail" target="_self"&gt;request object detail&lt;/A&gt;, (rest/artifact/&lt;U&gt;5&lt;/U&gt;/name) you're restricting your results to artifact 5 specifically.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to give an example of your specific flow, we can probably come up with a more detailed answer. I'm guessing you're going to want something roughly along these lines:&lt;/P&gt;&lt;P&gt;/rest/artifact?_filter_cef__destinationAddress={SNOW INC CI}&amp;amp;_filter_status="new"&amp;amp;page_size=0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, I don't think you'll be able to avoid looping through the results one way or another.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2025 21:05:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/API-Filtering-in-Splunk-SOAR-Access-child-elements-in-JSON/m-p/740971#M1690</guid>
      <dc:creator>SOARt_of_Lost</dc:creator>
      <dc:date>2025-03-05T21:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: API Filtering in Splunk SOAR - Access child elements in JSON</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/API-Filtering-in-Splunk-SOAR-Access-child-elements-in-JSON/m-p/740977#M1691</link>
      <description>&lt;P&gt;Thanks for linking that article, I haven't seen it and it's got some handy tips.&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Yes, this works.&lt;/P&gt;&lt;P&gt;3) Unfortunately, that seems to be the tradeoff based on what you're trying to do. When you &lt;A href="https://docs.splunk.com/Documentation/Phantom/4.10.7/PlatformAPI/RESTQueryData#Filtering" target="_self"&gt;filter&lt;/A&gt;&amp;nbsp;(rest/&lt;U&gt;artifact&lt;/U&gt;) you're look for&amp;nbsp;&lt;EM&gt;any&amp;nbsp;&lt;/EM&gt;artifacts which match your search results. When you &lt;A href="https://docs.splunk.com/Documentation/Phantom/4.10.7/PlatformAPI/RESTQueryData#Requesting_Object_Detail" target="_self"&gt;request object detail&lt;/A&gt;, (rest/artifact/&lt;U&gt;5&lt;/U&gt;/name) you're restricting your results to artifact 5 specifically.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on your question, I'm guessing you're going to want something along these lines:&lt;/P&gt;&lt;P&gt;/rest/artifact?_filter_cef__destinationAddress={SNow CI}&amp;amp;page_size=0&lt;/P&gt;&lt;P&gt;I don't think you'll be able to get of looping through your results one way or another.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Mar 2025 21:58:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/API-Filtering-in-Splunk-SOAR-Access-child-elements-in-JSON/m-p/740977#M1691</guid>
      <dc:creator>SOARt_of_Lost</dc:creator>
      <dc:date>2025-03-05T21:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: API Filtering in Splunk SOAR - Access child elements in JSON</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/API-Filtering-in-Splunk-SOAR-Access-child-elements-in-JSON/m-p/741226#M1692</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/260356"&gt;@SOARt_of_Lost&lt;/a&gt;&amp;nbsp;Appreciate the response. I have since figured out exactly what we want to achieve. The key to achieving it was figuring out how the value is passed to the filter.&lt;BR /&gt;&lt;BR /&gt;The DJANGO 'in' filter expects a comma even if just one value is found for the custom field&lt;BR /&gt;&lt;BR /&gt;So the python script in the custom function looks at&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/rest/artifacts?&lt;/SPAN&gt;_filter_cef__&amp;lt;our_custom_field&amp;gt;__in="a","b","c","d"&lt;SPAN&gt;&amp;amp;page_size=0 for multiple values &amp;amp;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;/rest/artifacts?&lt;/SPAN&gt;_filter_cef__&amp;lt;our_custom_field&amp;gt;__in="a",&amp;amp;page_size=0 when a single value is found.&lt;BR /&gt;&lt;BR /&gt;As for the filter outputs to restrict fields, we eventually achieved that in the function output. The plan was to restrict values/volume of data return but oh well, wasn't working any which way! so function output was the way to go.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 09 Mar 2025 12:23:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/API-Filtering-in-Splunk-SOAR-Access-child-elements-in-JSON/m-p/741226#M1692</guid>
      <dc:creator>JustntherSplker</dc:creator>
      <dc:date>2025-03-09T12:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: API Filtering in Splunk SOAR - Access child elements in JSON</title>
      <link>https://community.splunk.com/t5/Splunk-SOAR/API-Filtering-in-Splunk-SOAR-Access-child-elements-in-JSON/m-p/741233#M1694</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/260356"&gt;@SOARt_of_Lost&lt;/a&gt;&amp;nbsp;Going by your profile name, would appreciate your thoughts on this question as well! TIA&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://community.splunk.com/t5/Splunk-SOAR/Splunk-SOAR-access-environment-variables/td-p/741231" target="_blank"&gt;https://community.splunk.com/t5/Splunk-SOAR/Splunk-SOAR-access-environment-variables/td-p/741231&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 09 Mar 2025 12:58:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-SOAR/API-Filtering-in-Splunk-SOAR-Access-child-elements-in-JSON/m-p/741233#M1694</guid>
      <dc:creator>JustntherSplker</dc:creator>
      <dc:date>2025-03-09T12:58:05Z</dc:date>
    </item>
  </channel>
</rss>

