There is currently very little configuration required to use Central Logging. Most configuration is done through the web interface. However, there are a few things that can be configured via environment variables and CLI flags.
-v — Display the application version and build date-install — Install Central Logging as a systemd service (requires sudo)-update — Download and install the latest version of the binaryPORT — HTTP listen address and port. Defaults to :80. Set this when running locally or behind a reverse proxy (e.g. PORT=:8080).Nightly backups upload the main application database and every per-source log database to an S3 bucket. Both AWS S3 and self-hosted S3-compatible servers such as Garage and MinIO are supported.
Backups can be configured on the Settings page in the web UI (see below) or with the following environment variables:
AWS_ACCESS_KEY_IDAWS_SECRET_ACCESS_KEYBACKUP_AWS_REGIONBACKUP_S3_BUCKETBACKUP_S3_ENDPOINT — optional. Set this to the URL of an S3-compatible server (e.g. https://s3.example.com:3900 for Garage). Leave unset for AWS S3.Values saved in the web UI take precedence over environment variables.
Backups are uploaded under the appdb/ prefix (main database) and logs/{source-token}/ prefixes (per-source log databases), and backups older than 15 days are removed automatically.
Example for a Garage server: set the endpoint to your Garage S3 API URL (e.g. https://s3.example.com:3900), the region to your Garage region (garage by default), and use a bucket and key pair created with garage bucket create / garage key create.
After initial setup, the following settings are available in the Settings page:
garage).Each log source can be configured individually:
Central Logging stores all data in a cl-data/ directory relative to the binary:
cl-data/
├── db.db # Main application database
├── sessions.db # Session store
├── {source-token}/
│ └── logs.db # Per-source log database
└── metrics/
└── {metric-token}/
└── metrics.db # Per-metric time-series data
Backups of the main database are created automatically on a daily schedule.
💌 Get notified on new features and updates