https://github.com/cesnet/ansible-role-remote-logging
Ansible role for remote logging to a central server using syslog-ng
https://github.com/cesnet/ansible-role-remote-logging
Last synced: about 9 hours ago
JSON representation
Ansible role for remote logging to a central server using syslog-ng
- Host: GitHub
- URL: https://github.com/cesnet/ansible-role-remote-logging
- Owner: CESNET
- License: apache-2.0
- Created: 2023-07-14T12:51:29.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2026-01-26T18:51:03.000Z (9 days ago)
- Last Synced: 2026-01-27T06:35:50.840Z (9 days ago)
- Language: Jinja
- Size: 34.2 KB
- Stars: 0
- Watchers: 7
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ansible role cesnet.remote_logging
Ansible role for remote logging to a central server using syslog-ng.
The role installs syslog-ng on Debian system, and configures it to send logs to a remote server.
The default values of variables match settings for CESNET's central server, connecting over IPv6.
To connect to the logging server over IPv4, set:
`remote_logging_server_ip_version: 4`
You can configure extra templates by setting `remote_logging_extra_templates` variable, without .j2 suffix.
Pre-defined templates:
- `remote_logging_no_custom_template` Log to the destination without custom template()
--- **required** for _json templates below.
- `postgresql_json` configures PostgreSQL JSON log forwarding from `/var/log/postgresql/postgresql*.json`
- `nginx_plain` configures NGINX error and access logs in the _plain_ format from `/var/log/nginx/(access|error).log`
- `nginx_json` configures NGINX error and access logs in the _JSON_ format from `/var/log/nginx/(access.json|error.log)``