OpenVPN log rotate

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

OpenVPN log rotate

Emiliano Tortorella
Hi,

I would like to keep the OpenVPN's logs at least 6 months back. I've checked on the web interface but I didn't find any way. In this moment it's saving only 6 days back. Could you give me some hint on how to solve that?

Thanks!
Emiliano
--

Emiliano Tortorella | ipWorkers Servicio Técnico

www.ipworkers.com | 25 de Mayo 741 Of.504 | Montevideo | Uruguay
Tel: (+598) 2902-9843 | Cel: (+598) 91493769    

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Efw-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/efw-user
Reply | Threaded
Open this post in threaded view
|

Re: OpenVPN log rotate

Zola-3
Hi,

Yes you can, but only via console/ssh/(or via winscp).

edit openvpnconfig(nano /var/efw/openvpn/settings) and add following line:
OPENVPN_LOG_ROTATE=30

this keep log file for 30 days.

restart openvpn service.
you can check if take effect: view /etc/logrotate.d/openvpn  it should be rotate 30

Zola

2013/8/27 Emiliano Tortorella <[hidden email]>
Hi,

I would like to keep the OpenVPN's logs at least 6 months back. I've checked on the web interface but I didn't find any way. In this moment it's saving only 6 days back. Could you give me some hint on how to solve that?

Thanks!
Emiliano
--

Emiliano Tortorella | ipWorkers Servicio Técnico

www.ipworkers.com | 25 de Mayo 741 Of.504 | Montevideo | Uruguay
Tel: <a href="tel:%28%2B598%29%202902-9843" value="+59829029843" target="_blank">(+598) 2902-9843 | Cel: <a href="tel:%28%2B598%29%2091493769" value="+59891493769" target="_blank">(+598) 91493769    

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Efw-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/efw-user



------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Efw-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/efw-user
Reply | Threaded
Open this post in threaded view
|

Re: OpenVPN log rotate

Emiliano Tortorella
Thanks Zola, I'm going to try it.

Regards!

Emiliano Tortorella | ipWorkers Servicio Técnico

www.ipworkers.com | 25 de Mayo 741 Of.504 | Montevideo | Uruguay
Tel: (+598) 2902-9843 | Cel: (+598) 91493769
El 27/08/13 19:34, Zola escribió:
Hi,

Yes you can, but only via console/ssh/(or via winscp).

edit openvpnconfig(nano /var/efw/openvpn/settings) and add following line:
OPENVPN_LOG_ROTATE=30

this keep log file for 30 days.

restart openvpn service.
you can check if take effect: view /etc/logrotate.d/openvpn  it should be rotate 30

Zola

2013/8/27 Emiliano Tortorella <[hidden email]>
Hi,

I would like to keep the OpenVPN's logs at least 6 months back. I've checked on the web interface but I didn't find any way. In this moment it's saving only 6 days back. Could you give me some hint on how to solve that?

Thanks!
Emiliano
--

Emiliano Tortorella | ipWorkers Servicio Técnico

www.ipworkers.com | 25 de Mayo 741 Of.504 | Montevideo | Uruguay
Tel: <a moz-do-not-send="true" href="tel:%28%2B598%29%202902-9843" value="+59829029843" target="_blank">(+598) 2902-9843 | Cel: <a moz-do-not-send="true" href="tel:%28%2B598%29%2091493769" value="+59891493769" target="_blank">(+598) 91493769    

------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Efw-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/efw-user




------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk


_______________________________________________
Efw-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/efw-user


------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Efw-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/efw-user