RunReveal

CRI source

The cri source reads Kubernetes Container Runtime Interface (CRI) log files. It parses the CRI log format and extracts metadata like namespace, pod name, and container name from the file path.

CRI logs are typically found at /var/log/pods/ on Kubernetes nodes. The path format is /var/log/pods/<namespace>_<pod>_<uid>/<container>/<rotation>.log.

Configuration

{
  "sources": {
    "containers": {
      "type": "cri",
      "path": "/var/log/pods/",
      "extension": ".log",
      "recursive": true
    }
  }
}

Options

OptionTypeDefaultDescription
pathstringrequiredDirectory containing CRI logs
extensionstring""File extension filter
recursiveboolfalseWatch subdirectories (typically set to true for pod logs)
includestring[]nullGlob patterns to include
excludestring[]nullGlob patterns to exclude

Event fields

FieldValue
sourceType"cri"
rawLogParsed log body (JSON extracted if present)
eventTimeParsed from CRI timestamp (falls back to current time)
tags.namespaceKubernetes namespace (extracted from path)
tags.podPod name (extracted from path)
service.nameContainer name (extracted from path)

High-watermark

The CRI source saves read positions to ~/.config/reveald/cri-hwm.json. On restart, it resumes from the last position.

Kubernetes DaemonSet

For running reveald as a DaemonSet to collect CRI logs across a cluster, see Kubernetes deployment.

On this page