Prisma cloud rql join filter

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Prisma cloud rql join filter

L0 Member

How can I use the cloud account filter in an RQL query? I'm putting together a query to display which screen images are not in use and I would need to add the cloud account filter.

 

My querys is:

config from cloud.resource where api.name = 'aws-ecr-image' as X; config from cloud.resource where api.name = 'aws-ecs-describe-task-definition' as Y; filter '$.Y.containerDefinitions[0].image does not contain $.X.imageTags[0]'; show X;

1 REPLY 1

L1 Bithead

The way to go about this is add "cloud.account = 'your account'" to this statement sort of like this:

 

config from cloud.resource where cloud.account = 'your account' AND api.name = 'aws-ecr-image' as X; config from cloud.resource where cloud.account = 'your account' AND api.name = 'aws-ecs-describe-task-definition' as Y; filter '$.Y.containerDefinitions[0].image does not contain $.X.imageTags[0]'; show X;

 

Hopefully this would resolve your issue, also make sure to add same cloud account to both cloud.account if you're for screen images in a single account.

  • 930 Views
  • 1 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!