Page 1 of 1

Where are the logs for OpenVPN stored?

Posted: Tue Jan 13, 2009 9:47 am
by tep47
I'd like to know where the logs (if any) are stored for OpenVPN on the hda server. I want to see information about who is connecting from where. Thanks.

Re: Where are the logs for OpenVPN stored?

Posted: Tue Jan 13, 2009 1:19 pm
by cpg
i think it puts info messages in two places:

Code: Select all

/var/log/openvpn-status.log
and

Code: Select all

/var/log/messages
not exactly who and from where, but if you find a place where it's clean (or a script/program/tool to show it), it would be good to incorporate that to show it in the setup area!

Re: Where are the logs for OpenVPN stored?

Posted: Tue Jan 13, 2009 8:07 pm
by tep47
Thanks for the hints cpg. I found this command worked reasonably well to figure out who authenticated when, and from where:
cat /var/log/messages | grep vpn | grep authentication | grep Username

There might be a more savvy way to do it using regular expressions, but that worked for me. Also, I'm not sure if that catches any authentication failures.