openstack-ansible-rsyslog_s.../templates/os_aggregate_storage.j2
Ravi Kumar Boyapati efd7b21798 Add storage policy
Added storage policy so that deployers can override how to store the logs.
"per_host" stores logs in a sub-directory per host. "per_program" stores logs
in a single file per application which facilitates troubleshooting easy.

Change-Id: I5f71d61549f911ba8ead19e17ea481a4e0fc0262
2017-03-24 11:19:56 -04:00

18 lines
426 B
Django/Jinja

{% if rsyslog_server_storage_policy == "per_host" %}
{{ rsyslog_server_storage_directory }}/**/*.log
{% endif %}
{% if rsyslog_server_storage_policy == "per_program" %}
{{ rsyslog_server_storage_directory }}/*.log
{% endif %}
{
copytruncate
weekly
missingok
rotate {{ rsyslog_server_logrotation_window }}
compress
dateext
maxage 60
notifempty
nocreate
}