4 Commits

Author SHA1 Message Date
unkin-agent f6f93d855e Collect kernel audit records in journald (#579)
EL drops systemd-journald-audit.socket from journald's Sockets=, so kernel audit records never reach the journal or the victorialogs upload. journald only picks up listen fds at start, so the drop-in needs a restart to apply.

- add a systemd-journald drop-in listing the audit socket when journald upload is enabled
- remove the drop-in when upload is disabled
- restart journald on drop-in add or removal via the drop-in notifying the service puppet-systemd already manages

Reviewed-on: #579
Co-authored-by: unkin-agent <unkin-agent@unkin.net>
Co-committed-by: unkin-agent <unkin-agent@unkin.net>
2026-11-17 21:45:03 +11:00
unkin-agent 42c4e41508 Allow systemd-journal-upload through SELinux (#577)
systemd-journal-upload never ships logs on SELinux-enforcing hosts: policy denies `systemd_journal_upload_t` `name_connect` to `http_port_t` (443), so uploads to VictoriaLogs fail.

- add local `journal_upload_local` SELinux module to `victorialogs::client::journald` on enforcing hosts
- order the module before `Service[systemd-journal-upload]`

Reviewed-on: #577
Co-authored-by: unkin-agent <unkin-agent@unkin.net>
Co-committed-by: unkin-agent <unkin-agent@unkin.net>
2026-11-15 19:03:15 +11:00
unkinben ac36d9627b feat: capture all journald logs (#377)
- create module class for journald clients
- ensure module class it used on all hosts
- use consul service address for insert/journald

Reviewed-on: #377
2025-08-09 15:11:47 +10:00
unkinben 1c71229fd3 feat: add victorialogs module (#374)
- add module for victorialogs
- add hieradata for vl insert/select/storage
- manage packages, directories, services, etc
- manage exporting metrics

Reviewed-on: #374
2025-08-08 23:59:46 +10:00