|
|
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 |