Saltar al contenido principal

Log providers

Log providers (Category: Log) collect or receive log data and store each record as a Casdoor Entry.

KindDescriptionTypes
Push-basedCasdoor writes one entry per event it generates internallyCasdoor Permission Log
Pull-basedA background collector reads records from an external sourceSystem Log, SELinux Log
Receive-basedAn external agent pushes data to Casdoor over HTTPAgent (OpenClaw)

Provider types

Casdoor Permission Log

Records every non-GET API call that passes through Casdoor's authorization filter. Each call produces one entry containing the subject, HTTP method, URL path, and whether access was allowed or denied.

No configuration fields are required.

Entry format:

[info]    sub=<owner>/<user> method=<METHOD> url=<path> objOwner=<org> allowed=true
[warning] sub=<owner>/<user> method=<METHOD> url=<path> objOwner=<org> allowed=false

System Log

Reads records from the operating system's native logging facility — journald/syslog on Linux/Unix and Windows Event Log on Windows — and stores each record as an Entry. The collector starts automatically at Casdoor startup.

FieldDescription
TitleLog tag used to filter records (e.g. casdoor). Leave empty to collect all records.

SELinux Log

Collects SELinux audit events (AVC denials and related records) from /var/log/audit/audit.log and stores each one as an Entry. Only available on Linux systems with SELinux enabled.

Collected record types include: AVC, USER_AVC, SELINUX_ERR, MAC_POLICY_LOAD, MAC_STATUS.

No configuration fields are required. The provider checks at startup whether SELinux is active and the audit log is readable; if not, it exits cleanly without error.

Agent (OpenClaw)

Receives OpenTelemetry data pushed by an OpenClaw agent over HTTP. Casdoor accepts all three OTLP signal types: traces (/api/v1/traces), metrics (/api/v1/metrics), and logs (/api/v1/logs).

Only requests from the configured IP are accepted; all other senders receive 403 Forbidden.

FieldDescription
Sub typeOpenClaw
HostIP address of the OpenClaw agent (e.g. 192.168.1.100). Leave empty to allow any IP.

See Entries — OpenTelemetry data for details on the payload format and viewer.

Setting up permission logging

  1. Go to ProvidersAdd.
  2. Set Category to Log, Type to Casdoor Permission Log.
  3. Save. Enforcement events are recorded as entries immediately.
  4. View results under Entries in the sidebar.