RQL to identify if logging is disabled within a project in GCP

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

RQL to identify if logging is disabled within a project in GCP

L0 Member
Need help with the RQL to alert when the "state": "DISABLED"
 
{"name": "*/logging.googleapis.com",
"state": "ENABLED",
"parent": "projects/*"
},
 
2 REPLIES 2

Community Team Member

Hi @FAjah ,

 

Here is the Prisma Cloud Resource Query Language Reference that may assist you. Hope this helps!

LIVEcommunity team member
Stay Secure,
Jay
Don't forget to Like items if a post is helpful to you!

Please help out other users and “Accept as Solution” if a post helps solve your problem !

Read more about how and why to accept solutions.

L2 Linker

Hello,

 

You can use the below RQL to list projects with logging APIs. However, you may need to check the resource config JSOn to confirm it enabled or disabled.

config from cloud.resource where api.name = 'gcloud-services-list' AND json.rule = services[*].name contains "logging.googleapis.com"

  • 1006 Views
  • 2 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!