I’ve set up a Pritunl VPN that has been running for about 2 weeks now. Out of curiosity, I decided to check how the logs are rotated but couldn’t find anything related to that in the docs.
It seems that my logs are rotating in some way, as I have the following files inside the /var/log directory:
- pritunl.log
- pritunl.log.1
- pritunl_journal.log
- pritunl_journal.log.1
- pritunl_journal.log.2
- pritunl_journal.log.3
- pritunl_journal.log.4
- pritunl_journal.log.5
My first thought was some logrotate script but, upon examining the /etc/logrotate.d directory, the only configured rotation that I found was for rotating mongodb logs.
/var/log/mongodb/*.log {
daily
missingok
rotate 60
compress
delaycompress
copytruncate
notifempty
}
How are the pritunl logs rotated? How can I tweak this log rotation?