Would this do?
cat /dev/null > my_log_file.log
On Fri, Nov 27, 2020 at 12:41 AM Yambu <hyambu@xxxxxxxxx> wrote:
HiHow can I safely remove the log file that is being used currently and zip it without interfering with the postgres server?We are running out of space on the server and the logs are eating a lot of space, we need to zip them without first stopping the server.regards