aboutsummaryrefslogblamecommitdiffhomepage
path: root/templates/logrotate-postgresql-common.j2
blob: 06245b6477f9a96e872768f2264157711e46f885 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                                                         
{{ postgres_log_dir|default('/var/log/postgresql') }}/*.log
{
       daily
       rotate 60
       copytruncate
       delaycompress
       compress
       notifempty
       missingok
       su root root
{% if postgres_pgbadger_server is defined and postgres_pgbadger_server %}
       lastaction
          /root/scripts/pgBadger.sh
       endscript
{% endif -%}
}