turbot/tailpipe-mod-gcp-audit-log-detections

Query: Logs by Project

Usage

powerpipe query gcp_audit_log_detections.query.activity_dashboard_logs_by_project

Tailpipe Tables

SQL

select
split_part(log_name, '/', 2) as "Project",
count(*) as "Logs"
from
gcp_audit_log
where
split_part(log_name, '/', 2) is not null
group by
split_part(log_name, '/', 2)
order by
count(*) desc
limit 10;

Dashboards

The query is used in the dashboards: