EFW Support

Support => Installation Support => Topic started by: TheEricHarris on Tuesday 21 April 2015, 01:25:23 pm



Title: OpenVPN Log Retention
Post by: TheEricHarris on Tuesday 21 April 2015, 01:25:23 pm
How do I have OpenVPN logs last longer than 7 days?



Title: Re: OpenVPN Log Retention
Post by: rossano on Thursday 01 October 2015, 09:03:18 pm
Hi Eric

I had the same problem and find your post without solution so I'm here to share my solution.

Changed the file /etc/logrotate.d/openvpn
From:
    rotate 7
To:
    rotate 180

In the place of 180 you put many days you want to keep your openvpn log.
The logs are in /var/log/archives/openvpn.

I make this change yesterday then is still in tests but I notice the add of one more file in /var/log/archives/openvpn since yesterday (7 to 8).

Rossano Fenner