Difference in outcomes when executing RQL queries within the Policies section compared to the Investigate tab

Difference in outcomes when executing RQL queries within the Policies section compared to the Investigate tab

513
Created On 03/19/24 14:23 PM - Last Modified 06/28/26 22:16 PM


Symptom


  • Discrepancy in results: launching RQL from the policies screen yields 8 results, whereas initiating the same RQL from the investigate screen results in 108 findings. (Please note that exact numbers may vary depending on the case.)

Example 1:

  • Executing an RQL query from a policy returns 8 results.

image.png

  • The same RQL run from the investigate screen yields 108 results

image.png
image.png
 

Example 2:

  • Executing an RQL query from a policy returns 4 results.

image.png

  • The investigation tab view for this same RQL query: (More than 100 results ‘Since 24 hours ago’ only):

image.png



Environment


  • Prisma Cloud Enterprise Edition


Cause


  • Not including the cloud.account condition in both RQL queries can lead to inconsistencies within the results.


Resolution


  • Even if only a single cloud account is onboarded into Prisma Cloud, including the cloud.account condition is necessary to ensure consistent results on both the investigate and policy pages.


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA14u0000008XcNCAU&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail

Choose Language