<?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 Help with RQL 'group by' in Prisma Cloud Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/help-with-rql-group-by/m-p/559947#M1059</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to do a search that groups every assset name of a result from an api by account and return the project where in can't find an specific string.&lt;/P&gt;
&lt;P&gt;Wanted to know if 'group by' could be used for that?&lt;/P&gt;
&lt;P&gt;Wasn't able to find examples of how to user this operator in the docs.&lt;/P&gt;</description>
    <pubDate>Thu, 28 Sep 2023 22:38:46 GMT</pubDate>
    <dc:creator>CLimachi1</dc:creator>
    <dc:date>2023-09-28T22:38:46Z</dc:date>
    <item>
      <title>Help with RQL 'group by'</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/help-with-rql-group-by/m-p/559947#M1059</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to do a search that groups every assset name of a result from an api by account and return the project where in can't find an specific string.&lt;/P&gt;
&lt;P&gt;Wanted to know if 'group by' could be used for that?&lt;/P&gt;
&lt;P&gt;Wasn't able to find examples of how to user this operator in the docs.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Sep 2023 22:38:46 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/help-with-rql-group-by/m-p/559947#M1059</guid>
      <dc:creator>CLimachi1</dc:creator>
      <dc:date>2023-09-28T22:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: Help with RQL 'group by'</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/help-with-rql-group-by/m-p/560076#M1060</link>
      <description>&lt;P&gt;Hello CLimachi1&lt;BR /&gt;Can you please share an example of the objective you are trying to accomplish? Is this through API or RQL. An example would be great.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2023 16:44:37 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/help-with-rql-group-by/m-p/560076#M1060</guid>
      <dc:creator>bpachauli</dc:creator>
      <dc:date>2023-09-29T16:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: Help with RQL 'group by'</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/help-with-rql-group-by/m-p/560098#M1061</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is through RQL. For example the return of: config from cloud.resource where cloud.type = 'gcp' AND cloud.service = 'Google Stackdriver Logging' AND api.name = 'gcloud-logging-sinks-list'&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is something like this:&lt;/P&gt;
&lt;TABLE width="178"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="110"&gt;&lt;STRONG&gt;Resource Name&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="68"&gt;&lt;STRONG&gt;Account&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;default&lt;/TD&gt;
&lt;TD&gt;dev&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;sink1&lt;/TD&gt;
&lt;TD&gt;dev&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;sink2&lt;/TD&gt;
&lt;TD&gt;dev&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;sinkpub&lt;/TD&gt;
&lt;TD&gt;dev&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;default&lt;/TD&gt;
&lt;TD&gt;qa&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;sink1&lt;/TD&gt;
&lt;TD&gt;qa&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;sink3&lt;/TD&gt;
&lt;TD&gt;qa&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;default&lt;/TD&gt;
&lt;TD&gt;prod&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;sink4&lt;/TD&gt;
&lt;TD&gt;prod&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;sink2&lt;/TD&gt;
&lt;TD&gt;prod&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;sinkpub&lt;/TD&gt;
&lt;TD&gt;prod&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to group the results by accoutn and only get a result for QA that doesn't have a resource with name "sinkpub".&lt;/P&gt;
&lt;TABLE width="278"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="103" class="lia-align-center"&gt;&lt;STRONG&gt;dev&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="73" class="lia-align-center"&gt;&lt;STRONG&gt;qa&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="102" class="lia-align-center"&gt;&lt;STRONG&gt;prod&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;default&lt;/TD&gt;
&lt;TD&gt;default&lt;/TD&gt;
&lt;TD&gt;default&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;sink1&lt;/TD&gt;
&lt;TD&gt;sink1&lt;/TD&gt;
&lt;TD&gt;sink4&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;sink2&lt;/TD&gt;
&lt;TD&gt;sink3&lt;/TD&gt;
&lt;TD&gt;sink2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD&gt;sinkpub&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;sinkpub&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Sep 2023 22:19:50 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/help-with-rql-group-by/m-p/560098#M1061</guid>
      <dc:creator>CLimachi1</dc:creator>
      <dc:date>2023-09-29T22:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: Help with RQL 'group by'</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/help-with-rql-group-by/m-p/560114#M1062</link>
      <description>&lt;P&gt;Hello, you can leverage the attribute - "cloud.account" in this use case. You can rewrite your query to&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;config from cloud.resource where cloud.type = 'gcp' AND cloud.account = 'QA' AND cloud.service = 'Google Stackdriver Logging' AND api.name = 'gcloud-logging-sinks-list' &lt;/LI-CODE&gt;
&lt;P&gt;If you want results from two or more accounts, use the operator IN&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;config from cloud.resource where cloud.type = 'gcp' AND cloud.account IN ( 'DEV', 'QA' ) AND cloud.service = 'Google Stackdriver Logging' AND api.name = 'gcloud-logging-sinks-list'&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 30 Sep 2023 23:35:34 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/help-with-rql-group-by/m-p/560114#M1062</guid>
      <dc:creator>bpachauli</dc:creator>
      <dc:date>2023-09-30T23:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Help with RQL 'group by'</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/help-with-rql-group-by/m-p/560269#M1065</link>
      <description>&lt;P&gt;Hi CLimachi1. Please let me know if you were able to use the query to resolve your issue.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2023 18:23:12 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/help-with-rql-group-by/m-p/560269#M1065</guid>
      <dc:creator>bpachauli</dc:creator>
      <dc:date>2023-10-02T18:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: Help with RQL 'group by'</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/help-with-rql-group-by/m-p/560286#M1066</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;No, those queries are not what I need.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to get as result an Account that doesn't have a sink with the specific string in their logging sink list.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Oct 2023 23:02:47 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/help-with-rql-group-by/m-p/560286#M1066</guid>
      <dc:creator>CLimachi1</dc:creator>
      <dc:date>2023-10-02T23:02:47Z</dc:date>
    </item>
    <item>
      <title>Re: Help with RQL 'group by'</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/help-with-rql-group-by/m-p/560360#M1068</link>
      <description>&lt;P&gt;Hello, for that you need to use the &lt;STRONG&gt;JSON rule&lt;/STRONG&gt; feature in the RQL. For example, the below RQL will only show you results for account&lt;SPAN&gt;&amp;nbsp;QA that doesn't have a resource with the name "sinkpub".&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;config from cloud.resource where cloud.type = 'gcp' AND cloud.account = 'QA' AND cloud.service = 'Google Stackdriver Logging' AND api.name = 'gcloud-logging-sinks-list'  AND json.rule = name does not equal "sinkpub" &lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Oct 2023 13:50:19 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/help-with-rql-group-by/m-p/560360#M1068</guid>
      <dc:creator>bpachauli</dc:creator>
      <dc:date>2023-10-03T13:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Help with RQL 'group by'</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/help-with-rql-group-by/m-p/561314#M1077</link>
      <description>&lt;P&gt;Can you clarify your requirements here?&amp;nbsp; You said:&lt;BR /&gt;'&lt;SPAN&gt;&lt;EM&gt;I would like to group the results by account and only get a result for QA that doesn't have a resource with name "sinkpub"&lt;/EM&gt;'&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;In your example "qa" has the results {default, sink1, sink3}.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;"dev" has {default, sink1, sink2, sinkpub} - "sink2" is not in "qa", why is it not also a result you want?&amp;nbsp;&lt;BR /&gt;"prod" has {default, sink2, sink4, sinkpub} - "sink2" and "sink4" are not in "qa", why is this not also a result you want?&lt;BR /&gt;&lt;BR /&gt;This type of report can be created by downloading the results from the Investigate page as a csv file, and using your favorite csv/spreadsheet tool to do the analysis and reporting.&amp;nbsp; Many customers use a BI tool to customize this type of reporting.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Or you can use the Prisma Cloud API to get the results just as you get in the UI, and you can write the additional logic to perform what you are trying to create.&amp;nbsp; Prisma Cloud does provide Python libraries to get RQL queries and you just need to provide the additional custom logic to manipulate the data.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Let me know if I can provide additional information or clarification.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 16:41:20 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/help-with-rql-group-by/m-p/561314#M1077</guid>
      <dc:creator>PBurega</dc:creator>
      <dc:date>2023-10-11T16:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Help with RQL 'group by'</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/help-with-rql-group-by/m-p/561321#M1079</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;was able to resolve my requirement with another tool. Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Oct 2023 17:08:28 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/help-with-rql-group-by/m-p/561321#M1079</guid>
      <dc:creator>CLimachi1</dc:creator>
      <dc:date>2023-10-11T17:08:28Z</dc:date>
    </item>
  </channel>
</rss>

