<?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: need prisma RQL query to fetch account name where &amp;quot;xxx&amp;quot; cloudtrail account is not present in Prisma Cloud Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/need-prisma-rql-query-to-fetch-account-name-where-quot-xxx-quot/m-p/574806#M1157</link>
    <description>&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;At this time we do not have an API that we ingest that shows the AWS account information and if cloud trail is enabled on the account.&amp;nbsp; I checked the json on the two API’s that would fall under your request and nothing related to cloud trail is displayed.&amp;nbsp; Let me check with the team if we have another workaround, but use the below query below to get more details on the cloudtrail status.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;config from cloud.resource where api.name= 'aws-cloudtrail-describe-trails' as X; config from cloud.resource where api.name= 'aws-cloudtrail-get-trail-status' AND json.rule = 'status.isLogging equals true' as Y; filter'($.X.name equals $.Y.trail)'; show Y; count(Y) less than 1&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 29 Jan 2024 21:36:54 GMT</pubDate>
    <dc:creator>MDavis29</dc:creator>
    <dc:date>2024-01-29T21:36:54Z</dc:date>
    <item>
      <title>need prisma RQL query to fetch account name where "xxx" cloudtrail account is not present</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/need-prisma-rql-query-to-fetch-account-name-where-quot-xxx-quot/m-p/568482#M1117</link>
      <description>&lt;P&gt;need prisma RQL query to fetch account name where "xxx" aws cloudtrail account is not present, whichever account is not present, I should list that account as Non-compliant, and if "xxx" present and is not matching specific configuration also list out as non-compliant, is this possible????&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I have split queries, how would merge this queries and show all required results.&amp;nbsp;&lt;BR /&gt;config from cloud.resource where api.name ='aws-cloudtrail-describe-trails' AND json.rule = name equal "xxx" as X; count(X) less than 1&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;BR /&gt;#this above one would list down all the accounts where "xxx" cloud trail is not present&lt;BR /&gt;&lt;BR /&gt;config from cloud.resource where cloud.type = 'aws' and api.name = 'aws-cloudtrail-describe-trails' and json.rule = name equals "xxx" and trailARN contains ":us-east-1"&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 19:10:02 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/need-prisma-rql-query-to-fetch-account-name-where-quot-xxx-quot/m-p/568482#M1117</guid>
      <dc:creator>mahendars</dc:creator>
      <dc:date>2023-12-05T19:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: need prisma RQL query to fetch account name where "xxx" cloudtrail account is not present</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/need-prisma-rql-query-to-fetch-account-name-where-quot-xxx-quot/m-p/574806#M1157</link>
      <description>&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;At this time we do not have an API that we ingest that shows the AWS account information and if cloud trail is enabled on the account.&amp;nbsp; I checked the json on the two API’s that would fall under your request and nothing related to cloud trail is displayed.&amp;nbsp; Let me check with the team if we have another workaround, but use the below query below to get more details on the cloudtrail status.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;config from cloud.resource where api.name= 'aws-cloudtrail-describe-trails' as X; config from cloud.resource where api.name= 'aws-cloudtrail-get-trail-status' AND json.rule = 'status.isLogging equals true' as Y; filter'($.X.name equals $.Y.trail)'; show Y; count(Y) less than 1&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 21:36:54 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/need-prisma-rql-query-to-fetch-account-name-where-quot-xxx-quot/m-p/574806#M1157</guid>
      <dc:creator>MDavis29</dc:creator>
      <dc:date>2024-01-29T21:36:54Z</dc:date>
    </item>
  </channel>
</rss>

