Skip to main content

Observability Configuration

The Observability section configures structured logging sinks for Vectra. Logging is powered by Serilog.

Class: Vectra.BuildingBlocks.Configuration.Observability.ObservabilityConfiguration


Logging

Class: LoggingConfiguration

PropertyTypeDefaultDescription
DefaultLogLevelstring"Information"Minimum log level: Verbose, Debug, Information, Warning, Error, Fatal
FileFileLoggingConfigurationRolling file sink
SeqSeqLoggingConfigurationSeq structured log server

File Sink

PropertyTypeDefaultDescription
EnabledbooltrueEnable file logging
Pathstring./logs/vectra-.logLog file path (supports Serilog rolling tokens like -{Date})
"Observability": {
"Logging": {
"DefaultLogLevel": "Information",
"File": {
"Enabled": true,
"Path": "./logs/vectra-.log"
}
}
}

Seq Sink

Seq provides a searchable, real-time structured log server.

PropertyTypeDefaultDescription
EnabledboolfalseEnable Seq logging
ServerUrlstringhttp://localhost:5341Seq server URL
ApiKeystringSeq API key (if authentication is enabled)
"Observability": {
"Logging": {
"Seq": {
"Enabled": true,
"ServerUrl": "http://seq:5341",
"ApiKey": "your-seq-api-key"
}
}
}

Structured Log Events

Vectra emits structured log events at key points in the pipeline:

EventLevelDescription
Agent authenticatedDebugSuccessful JWT validation
Rate limit exceededWarningAgent exceeded requests/min
Circuit breaker openWarningUpstream is temporarily unavailable
Policy deniedInformationRequest blocked by policy
HITL suspendedInformationRequest held for human review
Risk score computedDebugPer-request risk score
Startup failureCriticalUnhandled exception during startup