An open API service indexing awesome lists of open source software.

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

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)``