efd7b21798
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
18 lines
426 B
Django/Jinja
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
|
|
}
|