Logging Saved Query

A Logging Saved Query in Google Cloud is a reusable query definition that allows users to store and manage log queries in Cloud Logging. It helps streamline log analysis by saving frequently used queries for quick access, sharing, and consistent monitoring across projects or teams.

gcp.logging_saved_query

Fields

TitleIDTypeData TypeDescription
_keycorestring
ancestorscorearray<string>
create_timecoretimestampOutput only. The timestamp when the saved query was created.
datadog_display_namecorestring
descriptioncorestringOptional. A human readable description of the saved query.
gcp_display_namecorestringRequired. The user specified title for the SavedQuery.
labelscorearray<string>
logging_querycorejsonLogging query that can be executed in Logs Explorer or via Logging API.
namecorestringOutput only. Resource name of the saved query.In the format: "projects/[PROJECT_ID]/locations/[LOCATION_ID]/savedQueries/[QUERY_ID]" For a list of supported locations, see Supported Regions (https://cloud.google.com/logging/docs/region-support#bucket-regions)After the saved query is created, the location cannot be changed.If the user doesn't provide a QUERY_ID, the system will generate an alphanumeric ID.
ops_analytics_querycorejsonAnalytics query that can be executed in Log Analytics.
organization_idcorestring
parentcorestring
project_idcorestring
project_numbercorestring
region_idcorestring
resource_namecorestring
tagscorehstore_csv
update_timecoretimestampOutput only. The timestamp when the saved query was last updated.
visibilitycorestringRequired. The visibility status of this query, which determines its ownership.
zone_idcorestring