Back to Genai Toolbox

cloud-logging-admin-query-logs

docs/en/integrations/cloudloggingadmin/tools/cloud-logging-admin-query-logs.md

1.1.01.8 KB
Original Source

About

The cloud-logging-admin-query-logs tool allows you to query log entries from Google Cloud Logging using the advanced logs filter syntax.

Compatible Sources

{{< compatible-sources >}}

Example

yaml
kind: tool
name: query_logs
type: cloud-logging-admin-query-logs
source: my-cloud-logging
description: Queries log entries from Cloud Logging.

Reference

fieldtyperequireddescription
typestringtrueMust be "cloud-logging-admin-query-logs".
sourcestringtrueName of the cloud-logging-admin source.
descriptionstringtrueDescription of the tool that is passed to the LLM.

Parameters

parametertyperequireddescription
filterstringfalseCloud Logging filter query. Common fields: resource.type, resource.labels., logName, severity, textPayload, jsonPayload., protoPayload., labels., httpRequest.*. Operators: =, !=, <, <=, >, >=, :, =~, AND, OR, NOT.
newestFirstbooleanfalseSet to true for newest logs first. Defaults to oldest first.
startTimestringfalseStart time in RFC3339 format (e.g., 2025-12-09T00:00:00Z). Defaults to 30 days ago.
endTimestringfalseEnd time in RFC3339 format (e.g., 2025-12-09T23:59:59Z). Defaults to now.
verbosebooleanfalseInclude additional fields (insertId, trace, spanId, httpRequest, labels, operation, sourceLocation). Defaults to false.
limitintegerfalseMaximum number of log entries to return. Default: 200.