TOSIT-IO / tdp-collection-prerequisites

Ansible collection with TDP prerequisites
Apache License 2.0
3 stars 10 forks source link

Move PostgreSQL log from "data_directory/log" to "/var/log/postgresql" #22

Closed rpignolet closed 1 year ago

rpignolet commented 2 years ago

From https://github.com/TOSIT-IO/tdp-collection-prerequisites/pull/13#issuecomment-1228731004.

By default, server logs are stored in data_directory/log, it is possible to move them to /var/log/postgresql, by setting log_directory = '/var/log/postgresql' in postgresql.conf and creating the directory.