Audit log
Every tool call is recorded in a structured audit log: reads, changes and calls that were rejected. The audit log is a separate stream from the diagnostic logs, it can't be switched off, and it stays in your environment.
What's recorded
| Recorded | Examples |
|---|---|
| Successful calls | A metric query, an alert acknowledged, a webhook created |
| Calls rejected by a policy | A tool the identity may not call |
| Calls rejected by a switch | A tool in a disabled group of operations |
| Calls rejected by VCF | The account lacks the permission the operation needs |
| Calls awaiting or failing confirmation | A confirmation token issued, used, expired or presented with changed parameters |
| Failed authentication | An unknown API key, invalid user credentials |
Each record covers one call and is written when the call ends, with the identity that made it, the time, the operation, its parameters and its result.
Record format
One JSON object per line (JSON Lines), so the log can be read by any log collector without a parser of ours.
| Field | Type | Description |
|---|---|---|
timestamp | string | RFC 3339, UTC, milliseconds |
requestId | string | Correlation identifier, shared with the diagnostic logs and with X-Request-Id |
sessionId | string | MCP session |
server | string | Server name, for example vcf-operations |
serverVersion | string | Server version |
tool | string | Tool name |
toolType | string | R, W or I |
identity | string | Identity used towards VCF: the service account, or the user in On-Behalf-Of mode |
identityType | string | service-account, api-token or user |
onBehalfOf | string | End-user identity supplied by the gateway in service-account mode |
authSource | string | VCF authentication source |
clientAddress | string | Address of the gateway or client |
parameters | object | Call parameters, with secrets masked |
decision | string | allowed, denied-policy, denied-switch, denied-confirmation or denied-auth |
confirmation.required | boolean | Whether the operation needed a confirmation |
confirmation.approvedBy | string | Identity that confirmed the operation |
confirmation.tokenId | string | Token identifier. The token itself is never logged |
result | string | success or error |
upstream.endpoint | string | Method and path called on the VCF API |
upstream.status | number | HTTP status returned by VCF |
durationMs | number | Total handling time |
error.code | string | Error code, when result is error |
error.message | string | Error message, without data read from VCF |
policy.decisionId | string | Policy decision identifier, when a policy engine is enabled |
A read:
{"timestamp":"2026-11-02T10:14:52.381Z","requestId":"01JBQ8M4ZC7R","sessionId":"sess-7f3a",
"server":"vcf-operations","serverVersion":"1.0.0","tool":"vcfops_getAlerts","toolType":"R",
"identity":"[email protected]","identityType":"user","authSource":"corporate-idp",
"clientAddress":"10.42.0.17","parameters":{"resourceId":"a1b2","activeOnly":true},
"decision":"allowed","result":"success","upstream":{"endpoint":"GET /suite-api/api/alerts","status":200},
"durationMs":184}
An irreversible operation, confirmed:
{"timestamp":"2026-11-02T10:21:07.902Z","requestId":"01JBQ8QF31XK","sessionId":"sess-7f3a",
"server":"operations-for-logs","serverVersion":"1.0.0","tool":"arlog_deleteWebhook","toolType":"I",
"identity":"svc-mcp-logs","identityType":"service-account","onBehalfOf":"[email protected]",
"clientAddress":"10.42.0.17","parameters":{"id":"wh-2291"},"decision":"allowed",
"confirmation":{"required":true,"approvedBy":"[email protected]","tokenId":"cnf-9d21f0c4"},
"result":"success","upstream":{"endpoint":"DELETE /api/v2/notification/webhook/wh-2291","status":204},
"durationMs":311,"policy":{"decisionId":"opa-3f81b7"}}
Parameter masking
Parameters are recorded so that an auditor can see what was asked for, with secrets removed.
| Rule | Behaviour |
|---|---|
| Always masked | Any parameter whose name contains password, token, apiKey, secret or authorization |
| Masking format | The value is replaced with "***". Neither the length nor a hash of the original is recorded |
| Additional names | AUDIT_MASK_KEYS adds your own parameter names to the list |
| Large values | Parameters are truncated at 8 KB per record, and the record then carries "truncated": true |
| Credential headers | Never recorded, in any mode |
Destinations
Destinations can be combined with AUDIT_DESTINATIONS.
| Destination | Configuration | Notes |
|---|---|---|
stdout | default | Collected by Kubernetes or Docker and whatever ships logs from there |
file | AUDIT_FILE_PATH, AUDIT_FILE_RETENTION | 100 MB segments, 30 days by default |
syslog | AUDIT_SYSLOG_ADDRESS | RFC 5424 over TCP with TLS |
logs-ingestion | AUDIT_LOGS_INGESTION_URL | VCF Operations for Logs ingestion API, so the audit log lands next to your infrastructure logs |
When a destination is unavailable, records are held in the on-disk buffer at AUDIT_BUFFER_PATH and retried with an exponential backoff. If the buffer fills, the oldest records are dropped and mcp_audit_dropped_total is incremented. Treat any non-zero value of that counter as a gap in the audit trail and alert on it, as described in Metrics and monitoring.
Access for the customer
The audit log is yours. It's written in your environment, to destinations you configure, and read with the tools you already use. None of it leaves your environment, and we can't read it. This is the same rule that applies to the rest of the data the servers touch: see Network requirements.
Querying the audit log in VCF Operations for Logs
With logs-ingestion enabled, the records arrive as structured events and the field names above become extracted fields. Useful queries:
| Question | Query |
|---|---|
| What did one person do? | identity = "[email protected]" |
| Who deleted configuration objects? | toolType = "I" AND result = "success" |
| What was rejected, and why? | decision = "denied-policy" OR decision = "denied-switch" |
| Which tools fail most often? | group by tool where result = "error" |
| Were infrastructure actions used? | tool = "vcfops_performAction" |
Three log alert definitions worth creating:
decision = "denied-policy"over a threshold: an assistant or a user is repeatedly asking for tools they may not use.toolType = "I" AND result = "success": any irreversible operation, as a notification to the team that owns the platform.decision = "denied-auth"over a threshold: invalid keys or credentials.
Diagnostic logs
Separate from the audit log, each server writes application logs for troubleshooting: startup and configuration summary, connection problems with VCF, policy engine and secret source failures, and unexpected errors.
| Property | Value |
|---|---|
| Format | JSON by default, LOG_FORMAT=text for a human-readable form |
| Level | LOG_LEVEL, info by default |
| Correlation | Every entry carries the same requestId as the audit record |
| Never included | Credentials, credential headers and data read from VCF |
Diagnostic logs aren't a substitute for the audit log: they can be reduced to error, they can be switched off, and they aren't guaranteed to contain one entry per call.