ansible-role-rsyslog
所属分类:DevOps
开发工具:Shell
文件大小:0KB
下载次数:0
上传日期:2023-11-09 11:04:59
上 传 者:
sh-1993
说明: 安装和配置rsyslog服务器或客户端,并为服务器安装logrotate。
(Installs and configures rsyslog server or client and logrotate for the server too.)
文件列表:
.travis.yml (1778, 2023-11-09)
LICENSE (1095, 2023-11-09)
defaults/ (0, 2023-11-09)
defaults/main.yml (1232, 2023-11-09)
handlers/ (0, 2023-11-09)
handlers/main.yml (181, 2023-11-09)
meta/ (0, 2023-11-09)
meta/main.yml (2186, 2023-11-09)
tasks/ (0, 2023-11-09)
tasks/main.yml (1184, 2023-11-09)
templates/ (0, 2023-11-09)
templates/central_syslog.conf.j2 (1713, 2023-11-09)
templates/remote_logrotate.j2 (455, 2023-11-09)
templates/secondary_syslog.conf.j2 (344, 2023-11-09)
tests/ (0, 2023-11-09)
tests/devel-centos7/ (0, 2023-11-09)
tests/devel-centos7/Dockerfile (2130, 2023-11-09)
tests/inventory (402, 2023-11-09)
tests/stable-centos7/ (0, 2023-11-09)
tests/stable-centos7/Dockerfile (978, 2023-11-09)
tests/test-in-docker-image.sh (4364, 2023-11-09)
tests/test.yml (586, 2023-11-09)
vars/ (0, 2023-11-09)
vars/main.yml (124, 2023-11-09)
[![Build Status](https://travis-ci.org/CSCfi/ansible-role-rsyslog.svg)](https://travis-ci.org/CSCfi/ansible-role-rsyslog)
ansible-role-rsyslog
=========
- Assumes rsyslog is installed and configured to include /etc/rsyslog.d/\*.conf
- Installs a config file into /etc/rsyslog.d
- Restarts rsyslog if that file changed.
- If listener is set true then setup UDP and TCP listeners on port 514
- Create a directory to store logs
- Configure logrotate to rotate the logs
Requirements
------------
The listener conditional syntax is rsyslog7 specific. It uses "stop" instead of &~
It is possible to install rsyslog7 on EL6, but it's not there by default.
Role Variables
--------------
For shipping over UDP:
central_log_host: "@Address.To.Loghost"
For shipping over TCP:
central_log_host: "@@Address.To.Loghost"
For listening:
- central_log_listener: False
- central_logs_directory: "/var/log/remote/servers"
- central_logs_retention_days: 30
- central_log_by_function: False
Setting log_by_function to True will store logs not in %hostname% but per function instead.
For extra settings:
central_log_extra_settings:
- "$MainMsgQueueType LinkedList"
- "$MainMsgQueueHighWatermark 400000"
- "$MainMsgQueueHighWatermark 100000"
- "$MainMsgQueueDequeueBatchSize 10000"
- "$MainMsgQueueSaveOnShutdown on"
- "$MainMsgQueueWorkerThreads 8"
- "$ActionQueueWorkerThreads 8"
- "$ActionQueueSize 1000000"
- "$ActionQueueDequeueBatchSize 500000"
- "$ActionQueueType LinkedList"
There is also option to setup secondary log host for forwarding. See defauls/main.yml for params.
Dependencies
------------
Example Playbook
----------------
License
-------
MIT
Author Information
------------------
近期下载者:
相关文件:
收藏者: