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

RecordedExamples
Successful callsA metric query, an alert acknowledged, a webhook created
Calls rejected by a policyA tool the identity may not call
Calls rejected by a switchA tool in a disabled group of operations
Calls rejected by VCFThe account lacks the permission the operation needs
Calls awaiting or failing confirmationA confirmation token issued, used, expired or presented with changed parameters
Failed authenticationAn 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.

FieldTypeDescription
timestampstringRFC 3339, UTC, milliseconds
requestIdstringCorrelation identifier, shared with the diagnostic logs and with X-Request-Id
sessionIdstringMCP session
serverstringServer name, for example vcf-operations
serverVersionstringServer version
toolstringTool name
toolTypestringR, W or I
identitystringIdentity used towards VCF: the service account, or the user in On-Behalf-Of mode
identityTypestringservice-account, api-token or user
onBehalfOfstringEnd-user identity supplied by the gateway in service-account mode
authSourcestringVCF authentication source
clientAddressstringAddress of the gateway or client
parametersobjectCall parameters, with secrets masked
decisionstringallowed, denied-policy, denied-switch, denied-confirmation or denied-auth
confirmation.requiredbooleanWhether the operation needed a confirmation
confirmation.approvedBystringIdentity that confirmed the operation
confirmation.tokenIdstringToken identifier. The token itself is never logged
resultstringsuccess or error
upstream.endpointstringMethod and path called on the VCF API
upstream.statusnumberHTTP status returned by VCF
durationMsnumberTotal handling time
error.codestringError code, when result is error
error.messagestringError message, without data read from VCF
policy.decisionIdstringPolicy 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.

RuleBehaviour
Always maskedAny parameter whose name contains password, token, apiKey, secret or authorization
Masking formatThe value is replaced with "***". Neither the length nor a hash of the original is recorded
Additional namesAUDIT_MASK_KEYS adds your own parameter names to the list
Large valuesParameters are truncated at 8 KB per record, and the record then carries "truncated": true
Credential headersNever recorded, in any mode

Destinations

Destinations can be combined with AUDIT_DESTINATIONS.

DestinationConfigurationNotes
stdoutdefaultCollected by Kubernetes or Docker and whatever ships logs from there
fileAUDIT_FILE_PATH, AUDIT_FILE_RETENTION100 MB segments, 30 days by default
syslogAUDIT_SYSLOG_ADDRESSRFC 5424 over TCP with TLS
logs-ingestionAUDIT_LOGS_INGESTION_URLVCF 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:

QuestionQuery
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.

PropertyValue
FormatJSON by default, LOG_FORMAT=text for a human-readable form
LevelLOG_LEVEL, info by default
CorrelationEvery entry carries the same requestId as the audit record
Never includedCredentials, 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.