# We call Gemini, and some Claude models, through Google Cloud's Vertex AI, now Gemini Enterprise Agent Platform. If a customer later says the model told them something false, can we show exactly what was sent and returned? Does Google log it for us, do Cloud Audit Logs contain it, and what do we have to switch on?

**Short answer:** Only if you set it up. Google's 'Log requests and responses' page (last updated November 20, 2026, Preview) says the platform can log samples of requests and responses for Gemini and supported partner models to a BigQuery table you choose, and that request-response logging is disabled by default until you create a PublisherModelConfig with setPublisherModelConfig. You pick a sampling rate between 0 and 1; set 1 to log every request. The BigQuery rows carry the full GenerateContentRequest and GenerateContentResponse, the model and model version, the API method, a logging time and metadata with latency, but pairs larger than BigQuery's 10 MB row limit aren't recorded. Cloud Audit Logs answer 'who did what, where, and when'; their Data Access logs, which cover calls such as generateContent, are off by default. Google's zero data retention page lists request-response logging as a feature that stays off unless you enable it.

## Checklist
1. For each model and project you use, check the current setting with fetchPublisherModelConfig. A 404 NOT_FOUND means no config exists and logging is in its default disabled state; enabled false means it was turned off.
2. Enable it with setPublisherModelConfig (REST) or set_request_response_logging_config (Python SDK), naming a BigQuery destination. For Anthropic Claude models on the platform, Google says only REST is supported, with publisher set to anthropic.
3. Set samplingRate to 1 if you need every call; 0.1 logs only 10% of requests, and a disputed answer may be in the 90% you didn't keep.
4. For a fine-tuned model, set predictRequestResponseLoggingConfig on the endpoint; logging there is per endpoint and covers every model deployed to it.
5. Allow a few minutes after changing the configuration before relying on it, and send a test call to confirm a row appears.
6. Restrict the aiplatform.endpoints.setPublisherModelConfig permission so only approved people can turn logging, or partner log sharing, on or off.
7. Protect the BigQuery table like evidence: limit who can modify or delete rows, and hash any rows you export for a dispute.

## What do Vertex AI request-response logs record for Gemini calls?
- Google says request-response logging is supported for all Gemini models that use generateContent or streamGenerateContent, and for Anthropic Claude through rawPredict or streamRawPredict. Logs are written to a BigQuery table; if you give only a project ID, a dataset is created for you, and if you give no table name the table is called request_response_logging. On the global endpoint you must name an existing dataset.
- The table schema lists endpoint and deployed_model_id (for tuned models), logging_time (roughly when the response was returned), an auto-generated request_id, model, model_version (often 'default' for Gemini models, Google notes), api_method, full_request (the full GenerateContentRequest), full_response (the full GenerateContentResponse), metadata including the request latency, request_payload and response_payload for partner models, and otel_log when OpenTelemetry logging is enabled.
- Two gaps matter for disputes. Request-response pairs over the BigQuery write API's 10 MB row limit are not recorded, and with a sampling rate below 1 some calls are never logged. The feature is also in Preview under Google's Pre-GA Offerings Terms.

## Do Cloud Audit Logs or Google's own retention keep your Gemini prompts and responses?
- Google's audit logging page for the platform says Admin Activity and System Event audit logs can't be turned off, while Data Access audit logs, which cover reading and writing user-provided data and list operations such as endpoints.generateContent and endpoints.predict, must be explicitly enabled. Audit logs are built to answer who did what, where and when; the page doesn't describe them as a store of prompt and response text, so don't plan on them for that.
- Google's zero data retention page says Google may log prompts for abuse monitoring under its Cloud terms, keeps Grounding with Google Search queries for up to three days and Grounding with Google Maps prompts and output for thirty days, and that the Interactions API stores prompts, responses and conversation state when store is true, which is its default. Those copies exist for Google's purposes, not as records you can call up later. The same page lists request-response logging as disabled by default and says not to enable it if you need zero data retention.

## How does Vertex AI partner log sharing work, and can request-response logs be used as evidence?
- For certain Advanced AI partner models, Google says some partners require a tamper-proof log of prompts and responses to be shared with their trust and safety teams; with dataSharingEnabledProvider active, logged requests and responses under the Advanced AI Safety Addendum are shared with that partner in real time. Google lists Anthropic models it calls Claude Mythos Preview, Claude Mythos 5 and Claude Fable 5 on Google Cloud, and shows an organization policy custom constraint to stop anyone turning sharing on.
- A BigQuery row shows what the platform logged as the request and response at about that time. It doesn't show the answer was correct, and anyone with write access to the table could alter it. Our suggestion: keep the logging configuration's history, export the rows for a disputed call as soon as the dispute starts, hash them and timestamp the hash outside your Google Cloud project, so a later reviewer can check the copy you rely on.

## Ask Rightshold (free, no key)
Add the MCP server https://www.rightshold.com/mcp to Claude, Cursor, ChatGPT, Grok or VS Code (one-click setup: https://www.rightshold.com/start?ref=seo), then ask: "We exported the BigQuery request-response log row for a disputed Gemini answer. Record a receipt with the model, model version, logging time, request ID and the SHA-256 of the exported row."

```json
{
  "tool": "record_action",
  "arguments": {
    "action_type": "ai_output.records_collected",
    "outcome": "success",
    "occurred_at": "2026-11-25T12:00:00Z",
    "client_event_id": "gemini-review:<case id>",
    "summary": "Request-response log row exported from BigQuery for case <case id>: api_method generateContent, model <model name>, model_version <version>, logging_time <time>, request_id <id>; sampling rate 1 confirmed with fetchPublisherModelConfig",
    "action_sha256": "<sha256 of the exported row and config response>"
  }
}
```
- Needs your API key (or accept_terms:true once to open a free account; the key comes back once). It returns a ledger-committed receipt of what you submitted and when, kept outside your Google Cloud project.
- It doesn't connect to Google Cloud or read BigQuery; it shows that export existed in that form at that time, not that Gemini's answer was right. Keep prompt text and personal data out of summary; the hash ties the receipt to the file.

_Rightshold isn't affiliated with Google and doesn't connect to Google Cloud, BigQuery or Cloud Logging. Details are from Google Cloud's 'Log requests and responses' page (last updated November 20, 2026; Preview), the platform's audit logging page (last updated November 20, 2026) and 'Gemini Enterprise Agent Platform and zero data retention' (last updated November 24, 2026), all read November 25, 2026. Preview features, field names and supported models can change; check the current pages. The advice on using the logs in a dispute is ours. Not legal advice._

## Sources
- [Google Cloud: Log requests and responses (Gemini Enterprise Agent Platform)](https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/request-response-logging)
- [Google Cloud: Gemini Enterprise Agent Platform audit logging](https://cloud.google.com/vertex-ai/docs/general/audit-logging)
- [Google Cloud: Gemini Enterprise Agent Platform and zero data retention](https://cloud.google.com/vertex-ai/generative-ai/docs/vertex-ai-zero-data-retention)

## Related
- [Can you get an old AI API response back from the provider?](https://www.rightshold.com/answers/can-you-get-an-old-ai-api-response-back-from-the-provider-to-settle-a-dispute)
- [Is an LLM observability trace the same as an audit trail of AI answers?](https://www.rightshold.com/answers/is-an-llm-observability-trace-the-same-as-an-audit-trail-of-ai-answers)
- [How to prove what an AI model said at a specific time](https://www.rightshold.com/answers/how-to-prove-what-an-ai-model-said-at-a-specific-time)
- [How to prove which model version, prompt and settings produced an AI output](https://www.rightshold.com/answers/how-to-prove-which-model-version-prompt-and-settings-produced-an-ai-output)

_Not legal advice. Updated 2026-11-25. JSON: https://www.rightshold.com/answers/can-you-log-every-gemini-prompt-and-response-on-google-cloud-vertex-ai-and-what-do-request-response-logs-record.json_