Skip to content

Ansible role to configure rsyslog on the server to send all logs to a central log server.

License

Notifications You must be signed in to change notification settings

flysen/ansible-remotesyslog

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

remotesyslog

Configures rsyslog on the server to send all logs to a central log server.

On a RHEL and derivate systems if SELinux is enforcing and a non standard port is used it configures SELinux to allow rsyslog usage of that port.

Role Variables

  • remotesyslog_host - The central log server hostname or ip. If an IPv6 ip enclose it in brackets.
  • remotesyslog_proto - The protocol on the receiving log server (tcp,udp,relp). Default tcp.
  • remotesyslog_port - The receiving port. Default 601.

Example Playbook

- hosts: servers
  vars_files:
    - site_vars/remotesyslog.yml

  roles:
     - glisha.remotesyslog

Where site_vars/remotesyslog.yml is defaults/main.yml modifed to your needs.

License

MIT

Author Information

Georgi Stanojevski GitHub project page

About

Ansible role to configure rsyslog on the server to send all logs to a central log server.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published