Skip to content

Conversation

@vsai12
Copy link
Contributor

@vsai12 vsai12 commented Oct 30, 2025

Implements JSON-formatted audit logging to stdout for ingestion by log aggregators (Splunk, ELK, Datadog, Loki).

Key features:

  • Structured JSON output with RFC3339Nano timestamps
  • Heartbeat logs every 5 minutes to detect gaps
  • Buffered channel with backpressure (blocks API on overflow rather than dropping logs)
  • Type-safe output structs with explicit enum mapping
  • Graceful shutdown with 1-second drain timeout

Enable with --audit-log-stdout flag (disabled by default).

Database remains source of truth - stdout failures log warnings but don't block API requests.

@vsai12 vsai12 requested a review from a team as a code owner October 30, 2025 09:11
@cla-bot cla-bot bot added the cla-signed label Oct 30, 2025
// Whether the server is running in a docker container.
IsDocker bool
// AuditLogStdout enables audit logging to stdout in structured JSON format
AuditLogStdout bool
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A setting in

message WorkspaceProfileSetting {
instead of CLI run argument?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants