[OpenVPN home] [Date Prev] [Date Index] [Date Next]
[OpenVPN mailing lists] [Thread Prev] [Thread Index] [Thread Next]
Google
 
Web openvpn.net

Re: [Openvpn-users] Parsing Log files


  • Subject: Re: [Openvpn-users] Parsing Log files
  • From: Rainer Sokoll <R.Sokoll@xxxxxxxxxxxx>
  • Date: Tue, 5 Apr 2005 10:21:45 +0200

On Tue, Apr 05, 2005 at 08:48:28AM +0100, Sunny Gaurav Bharel wrote:

Hi,

> How do I parse log files so that I may know what user
> connected/disconnected at what time .
> 
> My ultimate goal is to be able to know for how long my
> users are connecting so I may keep a check.

By default, openvpn logs to syslog. If I were you, I would use syslog-ng
and have it logging into a RDBMS (mysql, for example). Then you can
write your own, personalized SQL statements to get all the information
you are interested in.

> I would also know how I can limit the size of the log
> so it does not fill up my HDD , at the same time, it
> is large enough to hold data for atleast 2-3 days so I
> may make usage reports by awk.

You need to rotate your logs. A good starting point is to read about
logrotate.

> Also suggest a verbose mode to use on server side.

Except for debugging purposes, I feel fine with level 3.

Rainer

____________________________________________
Openvpn-users mailing list
Openvpn-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/openvpn-users


Warning: require_once(../../../archive_common.php) [function.require-once]: failed to open stream: No such file or directory in /home/openvpn/domains/openvpn.net/public_html/archive/openvpn-users/2005-04/msg00047.html on line 202

Fatal error: require_once() [function.require]: Failed opening required '../../../archive_common.php' (include_path='/usr/local/lib/php') in /home/openvpn/domains/openvpn.net/public_html/archive/openvpn-users/2005-04/msg00047.html on line 202