Cloud Logging MCP server

Cloud Logging MCP server gives an AI agent direct access to the log entries Google Cloud collects from resources and applications running in a project. Through Neotask, the agent can query logs using filters for time range, severity, resource type, or free text, inspect individual entries in detail, and configure how logs get routed, for example directing a subset of entries to a separate sink for longer retention or export to another system. Instead of an engineer opening the console and hand-building a filter every time an incident starts, the agent can search across the relevant logs the moment it's asked, pull the entries that match a described symptom, and summarize what it finds in plain terms. It can also handle the more structural side of logging, adjusting routing rules so specific log types land where a team actually wants them, whether that's a long-term storage bucket or a downstream analytics pipeline. This turns log search from a manual, filter-syntax-heavy task into something an agent handles conversationally while an engineer stays focused on diagnosing the underlying issue. Because the agent works from the same log entries a person would see in the console, its findings stay traceable back to a specific entry rather than a vague summary.

What you can automate

Search logsRun a filtered query across log entries for a project or resource, narrowing by time window and keyword.
Read log entryPull the full detail of a single log entry, including its payload, labels, and metadata.
List log sinksReview where log entries are currently being routed to across a project's sinks.
Create or update sinkSet up a new routing rule directing matching logs to a destination such as storage or a pub/sub topic.
Filter by severityNarrow a search to errors, warnings, or another specific severity level to cut through noise.
Export log resultsPull a matching set of log entries out for further review, reporting, or handoff to a teammate.

Real workflows

Incident triage from a vague report

A support ticket comes in saying a checkout flow failed for some users overnight, without any specifics on timing or which service was involved. The on-call engineer asks the agent to dig in. The agent searches error-level logs across the relevant services for the reported window, isolates the entries tied to failed checkout requests, and pulls out the stack traces and request IDs that appear most often across them. It hands the engineer a short list of the actual failures, grouped by error type, instead of a raw log dump, cutting the time spent hunting through unrelated entries from an hour to a few minutes.

Routing cleanup after a service split

After a monolith is split into two services, log entries from both are still landing in the same sink, making it hard for either team to review its own logs separately. A platform engineer asks the agent to sort it out. The agent inspects the current sink configuration, proposes a routing rule that separates entries by resource label so each service's logs land in its own destination, and creates the new sink once the team confirms the approach. It then checks that new entries are actually appearing in the correct destination over the following hour before declaring the cleanup complete.

Frequently asked questions

Can the agent search logs across an entire organization, not just one project?

It can search wherever the connected credentials have access, which may span multiple projects if permissions allow it. Scope is defined by the credentials, not by a limitation of the integration itself.

Does it modify log entries themselves?

No, it reads and searches existing entries. It can change routing configuration but doesn't edit or delete individual log content, since log entries are treated as an immutable record.

How far back can the agent search?

As far back as the underlying log retention allows for that project, which depends on retention settings already configured rather than anything this integration controls.

Can it set up alerting based on log content?

This integration covers querying and routing logs. Alert rules based on log-based metrics are typically handled through Cloud Monitoring instead, which reads the metrics logging produces.

Will the agent flag something unusual on its own?

Only when asked to look. It doesn't run background log scans unless a workflow specifically directs it to search on a recurring schedule and report back.

Is this helpful for compliance-style log review?

Yes, being able to query and pull specific entries on demand makes it easier to answer an audit question without a person manually assembling a filter and exporting results by hand.

Can it help reduce log storage costs over time?

Indirectly, since routing lower-value log types to shorter-retention sinks or excluding noisy sources from expensive destinations is exactly the kind of configuration change this integration can apply once a team identifies where the volume is coming from.