<?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: Error with RQL joint and atributes with dot in Prisma Cloud Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/error-with-rql-joint-and-atributes-with-dot/m-p/300132#M99</link>
    <description>&lt;P&gt;VRuiz,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please try the below RQL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;config where cloud.account = 'Azure-Redlock-public-demo' AND api.name = 'azure-network-nic-list' as X; config where api.name = 'azure-vm-list' as Y; filter "$.['X'].['properties.virtualMachine'].id contains $.['Y'].['properties.osProfile'].computerName and $.X.tags.owner exists"; show X;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue you were running into is that&amp;nbsp;$.['Y'].['properties.networkProfile'].networkInterfaces[*].id references the network interface Id, but that value doesn't exist in the nic-list response. So what you need to do is map from the NIC to the Computername.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/96848"&gt;@lpingali&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 22 Nov 2019 03:43:05 GMT</pubDate>
    <dc:creator>FranciscoBreijo</dc:creator>
    <dc:date>2019-11-22T03:43:05Z</dc:date>
    <item>
      <title>Error with RQL joint and atributes with dot</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/error-with-rql-joint-and-atributes-with-dot/m-p/294938#M95</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an error when we are implementing a RQL query in the Investigate tab.&lt;/P&gt;&lt;P&gt;We make a join query searching in a VMs list and a NICs list in the prisma platform over a Azure suscription.&lt;/P&gt;&lt;P&gt;The problem seems to be over the filter part when we use the ['xxx.xxx'] format in a query when an atribute have a dot inside, because when we change to other atribute that don't have dot, it runs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The query is the next (we are checking the atributes to correlate the VMs):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;config where api.name = 'azure-network-nic-list' as X; config where api.name = 'azure-vm-list' as Y; filter '$.X.['properties.virtualMachine'].id == $.Y.['properties.networkProfile'].networkInterfaces[*].id and $.X.tags.owner exists'; show X;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do anyone know if the definition over the filter could be different that in the filter body? Is it any separating character that allow the query? Could be a bug in the prisma platform?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2020 18:09:04 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/error-with-rql-joint-and-atributes-with-dot/m-p/294938#M95</guid>
      <dc:creator>VRuiz</dc:creator>
      <dc:date>2020-09-02T18:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: Error with RQL joint and atributes with dot</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/error-with-rql-joint-and-atributes-with-dot/m-p/294990#M96</link>
      <description>&lt;P&gt;Try this RQL ( with double quotes for filter):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;config where api.name = 'azure-network-nic-list' as X; config where api.name = 'azure-vm-list' as Y; filter "$.['X'].['properties.virtualMachine'].['id'] == $.['Y'].['properties.networkProfile'].networkInterfaces[*].['id'] and $.X.tags.owner exists"; show X;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 16:22:19 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/error-with-rql-joint-and-atributes-with-dot/m-p/294990#M96</guid>
      <dc:creator>lpingali</dc:creator>
      <dc:date>2019-10-29T16:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Error with RQL joint and atributes with dot</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/error-with-rql-joint-and-atributes-with-dot/m-p/294995#M97</link>
      <description>&lt;P&gt;Hi Lpingali,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried this one and could execute (the button isn't grey) but the results was empty because show no one and, the suscription have several cases.&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, 29 Oct 2019 16:29:18 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/error-with-rql-joint-and-atributes-with-dot/m-p/294995#M97</guid>
      <dc:creator>VRuiz</dc:creator>
      <dc:date>2019-10-29T16:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: Error with RQL joint and atributes with dot</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/error-with-rql-joint-and-atributes-with-dot/m-p/296859#M98</link>
      <description>&lt;P&gt;Can you please open a ticket with screenshots of the results from both API calls, so we can debug further?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Nov 2019 22:45:00 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/error-with-rql-joint-and-atributes-with-dot/m-p/296859#M98</guid>
      <dc:creator>lpingali</dc:creator>
      <dc:date>2019-11-06T22:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: Error with RQL joint and atributes with dot</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/error-with-rql-joint-and-atributes-with-dot/m-p/300132#M99</link>
      <description>&lt;P&gt;VRuiz,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please try the below RQL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;config where cloud.account = 'Azure-Redlock-public-demo' AND api.name = 'azure-network-nic-list' as X; config where api.name = 'azure-vm-list' as Y; filter "$.['X'].['properties.virtualMachine'].id contains $.['Y'].['properties.osProfile'].computerName and $.X.tags.owner exists"; show X;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The issue you were running into is that&amp;nbsp;$.['Y'].['properties.networkProfile'].networkInterfaces[*].id references the network interface Id, but that value doesn't exist in the nic-list response. So what you need to do is map from the NIC to the Computername.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/96848"&gt;@lpingali&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2019 03:43:05 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/error-with-rql-joint-and-atributes-with-dot/m-p/300132#M99</guid>
      <dc:creator>FranciscoBreijo</dc:creator>
      <dc:date>2019-11-22T03:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: Error with RQL joint and atributes with dot</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/error-with-rql-joint-and-atributes-with-dot/m-p/300201#M100</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!!! That query works fine.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think that I have two problems. The first one is that you comment with the merge about the nic id and the vm id. But, I think that the real problem form my query is in the tests that I made before, when the filter and variable syntaxis was wrong.&lt;/P&gt;&lt;P&gt;In the filter phrasse need to use a double quote "" and the X, Y and Z variables need to be called with ['X'].&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Nov 2019 10:16:35 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/error-with-rql-joint-and-atributes-with-dot/m-p/300201#M100</guid>
      <dc:creator>VRuiz</dc:creator>
      <dc:date>2019-11-22T10:16:35Z</dc:date>
    </item>
  </channel>
</rss>

