Recent query in Logs Explorer

Recent query in Logs Explorer in GCP allows users to quickly access and rerun their most recent log queries within the Cloud Logging interface. It helps streamline troubleshooting and analysis by saving time when investigating recurring issues or monitoring specific log patterns.

gcp.logging_recent_query

Fields

TitleIDTypeData TypeDescription
_keycorestring
ancestorscorearray<string>
datadog_display_namecorestring
labelscorearray<string>
last_run_timecoretimestampOutput only. The timestamp when this query was last run.
logging_querycorejsonLogging query that can be executed in Logs Explorer or via Logging API.
namecorestringOutput only. Resource name of the recent query.In the format: "projects/[PROJECT_ID]/locations/[LOCATION_ID]/recentQueries/[QUERY_ID]" For a list of supported locations, see Supported Regions (https://cloud.google.com/logging/docs/region-support)The QUERY_ID is a system generated 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
zone_idcorestring