<?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 - display all VPC's, except DEFAULT, that do not have FlowLogs in Prisma Cloud Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/rql-display-all-vpc-s-except-default-that-do-not-have-flowlogs/m-p/290188#M62</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/120267"&gt;@MPestell&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Quickly adding a filter to your second example, can you confirm if this is doing what you need:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;config where api.name = 'aws-ec2-describe-vpcs' as X; config where api.name = 'aws-ec2-describe-flow-logs' as Y; filter '($.X.isDefault is false) and not($.Y.resourceId equals $.X.vpcId)'; show X;&lt;/P&gt;</description>
    <pubDate>Thu, 26 Sep 2019 15:06:06 GMT</pubDate>
    <dc:creator>SRohatyn</dc:creator>
    <dc:date>2019-09-26T15:06:06Z</dc:date>
    <item>
      <title>RQL - display all VPC's, except DEFAULT, that do not have FlowLogs</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/rql-display-all-vpc-s-except-default-that-do-not-have-flowlogs/m-p/290149#M61</link>
      <description>&lt;P&gt;Hello all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;New to RQL.&amp;nbsp; I have the below RQL that identifies DEFAULT VPC's;&lt;/P&gt;&lt;P&gt;config where cloud.account IN ( 'AWS_EBU_Networked_Prod_DR_DA_01' ) and api.name = 'aws-ec2-describe-vpcs' AND json.rule = isDefault is true&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the below RQL that shows all VPC's that do not have FlowLogs enabled;&lt;/P&gt;&lt;P&gt;config where cloud.account IN ( 'AWS_EBU_Networked_Prod_DR_DA_01' ) and api.name = 'aws-ec2-describe-vpcs' as X; config where api.name = 'aws-ec2-describe-flow-logs' as Y; filter ' not ($.Y.resourceId equals $.X.vpcId)'; show X;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to combine the 2 so I only show VPC's that do not have FlowLogs enabled AND are not the DEFAULT VPC please??&amp;nbsp; You help most welcome.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2020 17:21:13 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/rql-display-all-vpc-s-except-default-that-do-not-have-flowlogs/m-p/290149#M61</guid>
      <dc:creator>MPestell</dc:creator>
      <dc:date>2020-09-02T17:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: RQL - display all VPC's, except DEFAULT, that do not have FlowLogs</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/rql-display-all-vpc-s-except-default-that-do-not-have-flowlogs/m-p/290188#M62</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/120267"&gt;@MPestell&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Quickly adding a filter to your second example, can you confirm if this is doing what you need:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;config where api.name = 'aws-ec2-describe-vpcs' as X; config where api.name = 'aws-ec2-describe-flow-logs' as Y; filter '($.X.isDefault is false) and not($.Y.resourceId equals $.X.vpcId)'; show X;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2019 15:06:06 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/rql-display-all-vpc-s-except-default-that-do-not-have-flowlogs/m-p/290188#M62</guid>
      <dc:creator>SRohatyn</dc:creator>
      <dc:date>2019-09-26T15:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: RQL - display all VPC's, except DEFAULT, that do not have FlowLogs</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/rql-display-all-vpc-s-except-default-that-do-not-have-flowlogs/m-p/290337#M63</link>
      <description>&lt;P&gt;Hi and thank you for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That hasn't exactly worked.&amp;nbsp; What this is bringing back now is indeed those with isDefault=false, however it appears to be ignoring the RQL that looks for VPC's with 'no' Flowlog.&amp;nbsp; Instead it is bringing back just all VPC's that has a isDefault=false.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 15:31:10 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/rql-display-all-vpc-s-except-default-that-do-not-have-flowlogs/m-p/290337#M63</guid>
      <dc:creator>MPestell</dc:creator>
      <dc:date>2019-09-27T15:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: RQL - display all VPC's, except DEFAULT, that do not have FlowLogs</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/rql-display-all-vpc-s-except-default-that-do-not-have-flowlogs/m-p/290340#M64</link>
      <description>&lt;P&gt;Actually I think I have it.&amp;nbsp; I don't understand 'why' this works but it does.&amp;nbsp; Be great if someone could explain the logic for future reference;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;config where api.name = 'aws-ec2-describe-vpcs' as X; config where api.name = 'aws-ec2-describe-flow-logs' as Y; filter 'not($.Y.resourceId equals $.X.vpcId) or ($.X.isDefault == true)'; show X;&lt;/P&gt;&lt;P&gt;# appears that is applies the 'not' to both conditions.&amp;nbsp; Also it does not like 'and' but does work with 'or'&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 15:43:53 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/rql-display-all-vpc-s-except-default-that-do-not-have-flowlogs/m-p/290340#M64</guid>
      <dc:creator>MPestell</dc:creator>
      <dc:date>2019-09-27T15:43:53Z</dc:date>
    </item>
  </channel>
</rss>

