Skip to content

branic/cf_central_logging_rsyslog

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 

Repository files navigation

Centralized logging solution for CloudForms appliances using rsyslog only.

The included Ansible playbook can be used to configure centralized logging via rsyslog for CloudForms logs.

Requirements

You'll need a host with Ansible installed to run the playbook from.

This can be one of the CloudForms appliances or another host which has SSH access to all of the appliances to be configured.

http://docs.ansible.com/ansible/intro_installation.html#latest-release-via-yum provides documentation for installing Ansible.

The following commands may be helpful:

subscription-manager repos --enable=rhel-7-server-optional-rpms --enable=rhel-7-server-extras-rpms
rpm -ihv https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install ansible

You'll need a copy of the code from the ansible directory here.

Clone or download a zip of this project.

You'll need to add a disk to your central logging appliance.

The playbook expects a new disk to store the central logs on. It will create a file system on this disk under LVM control. Based upon the default size of the CFME log file system of 10 GB, the size of this disk can be estimated at 10 GB times the number of CloudForms appliances that will log to this central log host. You may want to add some extra for good measure and keep an eye on space consumption.

The playbook also configures logrotate with a default of 14 days which is the same as standard CloudForms logs. If the retention days are changed, the size of the disk should be sized accordingly.

Note that the logrotate configuration assumes that the central log host is a CloudForms appliance.

Usage

  • Review the ansible.cfg file and make updates if desired.
  • Update the hosts file with your CloudForms appliances as described therein.
  • Review and update the vars.yml file as necessary.
  • From the cf_central_logging_rsyslog/ansible directory, run the Ansible playbook:

ansible-playbook central_logging.yml

Use at your own risk.

About

Centralized Logging for CloudForms Logs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published