Slack Notifications & Log Archiving (Premium)
Chada Activity Monitor can push events to a Slack channel in real time and automatically archive expiring events to a downloadable gzipped CSV before they are pruned. Both features require an active premium license.
Slack notifications
Setting up Slack
- In Slack, create or open an app for your workspace at api.slack.com/apps.
- Enable Incoming Webhooks and click Add New Webhook to Workspace.
- Select the channel where Activity Monitor should post and click Allow.
- Copy the webhook URL (it looks like
https://hooks.slack.com/services/T…/B…/…). - In WordPress, go to Activity Log → Settings → Slack.
- Toggle Enable Slack notifications on.
- Paste the webhook URL into the Slack Webhook URL field.
- Click Save Settings.
Filtering which events are sent to Slack
| Setting | Option key | Default | What it does |
|---|---|---|---|
| Minimum severity | slack_min_severity |
warning | Only events at this severity level or higher are sent. Set to critical for a low-noise channel, or info to receive every event. |
| Event groups | slack_groups |
(empty = all) | A comma-separated list of event group slugs to send. Leave empty to send events from all groups. Example: auth,plugins,core. |
Testing the connection
Click the Test button on the Slack settings tab to send a sample message to your configured webhook. If the message appears in your Slack channel, the connection is working. If not, double-check the webhook URL and confirm your server can make outbound HTTPS requests.
Log archiving
How archiving works
When log archiving is enabled, the daily cron job (cam_daily_cleanup) runs in two steps before deleting old events:
- It queries all events that would be pruned on this run (older than
retention_days). - It exports those events to a gzipped CSV file and saves it to a protected location in
wp-content/uploads/cam-archives/. - Only after the archive is successfully written are the events deleted from the database.
This means you never lose event history even when records fall outside the active retention window — they are preserved in compressed archives that can be downloaded and opened in any spreadsheet application.
Requirements for archiving
- Log archiving is toggled on via
archive_enabledin the Archiving settings tab. - Retention days must be greater than 0. If retention is set to 0 (keep forever) no events are ever pruned and therefore no archives are created.
- The
wp-content/uploads/directory must be writable by the web server.
Downloading archives
The Archiving tab shows a list of available archive files with their date range and file size. Click Download next to any archive to download it. Archives are protected from direct web access by an .htaccess rule; they can only be downloaded through the WordPress admin.