Documentation · Administration · Settings

Audit settings

Settings → Audit: how long audit entries are kept, and streams that forward them to your SIEM as they are written.

Retention

  • Keep entries forever (the default), or for a number of days, at least 90.
  • Older entries are deleted once a day, and the deletion is itself recorded (AUDIT_PURGED).
  • Nothing is deleted until a day after a change, so a mistake can be undone. Shortening retention asks for confirmation.
  • Entries a stream has not sent yet are never deleted.
  • Offboarding reports and access reviews are kept whatever the retention.

Streams

Streams forward entries about 30 seconds after they are written, at least once; each carries its id so the SIEM can drop duplicates.

KindSendsExample
HTTPJSON lines in a POST, with a header you choose, optionally gzipped; any 2xx is successSplunk HEC raw: https://splunk.example.com:8088/services/collector/raw, header Authorization: Splunk <token>. Vector, Fluent Bit and Logstash HTTP inputs work too
SyslogRFC 5424 over TLS (usually port 6514), or TCP or UDP to a host in CREDVANE_ALLOWED_PRIVATE_HOSTSsiem.example.com:6514, TLS
  • Limit a stream to some actions or a minimum severity, for example warning for an alerting pipeline.
  • Give a CA certificate for a receiver with a private or self-signed certificate.
  • The header value (an ingest token) goes to Credvane's own secret store and is never shown again.
  • Test sends one AUDIT_STREAM_TEST entry and shows the receiver's answer.
  • A new stream starts now, or from a date up to 400 days back to send older entries too.
  • If the receiver is down, entries wait and are retried. After an hour, admins get a notice and subscribed channels an email.

Terraform

credvane_audit_settings and credvane_audit_stream. The ingest token is write-only and ephemeral, so it never reaches Terraform state: pass it with TF_VAR_hec_token.

variable "hec_token" {
  type      = string
  sensitive = true
  ephemeral = true
}

resource "credvane_audit_settings" "this" {
  retention_days = 365
}

resource "credvane_audit_stream" "splunk" {
  name                    = "Splunk"
  kind                    = "HTTP"
  url                     = "https://splunk.example.com:8088/services/collector/raw"
  header_name             = "Authorization"
  header_value_wo         = "Splunk ${var.hec_token}"
  header_value_wo_version = 1   # bump when the token changes
}

# Only warnings, to a syslog collector over TLS.
resource "credvane_audit_stream" "warnings" {
  name         = "Warnings to syslog"
  kind         = "SYSLOG"
  host         = "siem.example.com"
  port         = 6514
  transport    = "TLS"
  min_severity = "warning"
}