<?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: RQL Filter Query Syntax Error in Prisma Cloud Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/rql-filter-query-syntax-error/m-p/583438#M1213</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/208871"&gt;@HSoni_Northwell&lt;/a&gt;&amp;nbsp;please find the answers below:&lt;/P&gt;
&lt;P&gt;1. The filter command is like a join. You need one element in X to match with at least one element in Y.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2. The filter command needs left and right variables to work correctly. Remember, it's a join.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;3. The correct syntax should be in these lines -&amp;nbsp;filter '$.X.&amp;lt;path_to_value&amp;gt; &amp;lt;operator&amp;gt; $.Y.&amp;lt;path_to_value&amp;gt;'&lt;BR /&gt;More on joins &amp;amp; RQLs can be found here -&amp;nbsp;&lt;A href="https://docs.prismacloud.io/en/classic/rql-reference/rql-reference/rql-faqs" target="_blank"&gt;https://docs.prismacloud.io/en/classic/rql-reference/rql-reference/rql-faqs&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Apr 2024 22:49:01 GMT</pubDate>
    <dc:creator>bpachauli</dc:creator>
    <dc:date>2024-04-11T22:49:01Z</dc:date>
    <item>
      <title>RQL Filter Query Syntax Error</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/rql-filter-query-syntax-error/m-p/574940#M1165</link>
      <description>&lt;P&gt;I am testing few sample query with JOIN however running into multiple syntax errors.&lt;/P&gt;
&lt;P&gt;I am trying match Azure&amp;nbsp; NSG&amp;nbsp; list&amp;nbsp; and&amp;nbsp; would like to know, if&amp;nbsp; Azure VNET contain subnet with that specific NSG.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;NSG -ID to match with VNET-Subnet array contains NSGID.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1,. Does Join&amp;nbsp; works for single elements between X and Y or if&amp;nbsp; there is single to multiple match between X and Y , along wiht Y with array match.&lt;/P&gt;
&lt;P&gt;2. Does filter command needs left and right with variabl such as X.id ==Y.id or can it works X.id=="String"&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. Can we use filter with X.id == [array1][?any([properties].id 0] or similar?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below query shows syntax error&lt;/P&gt;
&lt;P&gt;config from cloud.resource where api.name = 'azure-network-nsg-list' AND json.rule = flowLogsSettings.enabled is false and id equals "AAAA" as X;&lt;/P&gt;
&lt;P&gt;config from cloud.resource where api.name = 'azure-network-vnet-list' as Y;&lt;/P&gt;
&lt;P&gt;filter '($.Y.id equals "BBBB")';&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>Tue, 30 Jan 2024 15:16:40 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/rql-filter-query-syntax-error/m-p/574940#M1165</guid>
      <dc:creator>HSoni_Northwell</dc:creator>
      <dc:date>2024-01-30T15:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: RQL Filter Query Syntax Error</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/rql-filter-query-syntax-error/m-p/583438#M1213</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/208871"&gt;@HSoni_Northwell&lt;/a&gt;&amp;nbsp;please find the answers below:&lt;/P&gt;
&lt;P&gt;1. The filter command is like a join. You need one element in X to match with at least one element in Y.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;2. The filter command needs left and right variables to work correctly. Remember, it's a join.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;3. The correct syntax should be in these lines -&amp;nbsp;filter '$.X.&amp;lt;path_to_value&amp;gt; &amp;lt;operator&amp;gt; $.Y.&amp;lt;path_to_value&amp;gt;'&lt;BR /&gt;More on joins &amp;amp; RQLs can be found here -&amp;nbsp;&lt;A href="https://docs.prismacloud.io/en/classic/rql-reference/rql-reference/rql-faqs" target="_blank"&gt;https://docs.prismacloud.io/en/classic/rql-reference/rql-reference/rql-faqs&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Apr 2024 22:49:01 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/rql-filter-query-syntax-error/m-p/583438#M1213</guid>
      <dc:creator>bpachauli</dc:creator>
      <dc:date>2024-04-11T22:49:01Z</dc:date>
    </item>
  </channel>
</rss>

