On 03/07/17 14:50, SaAtomic wrote:
> Hello,
> 
> I'm trying to find a way to have OpenVPN log to the stdout AND a
> logfile. I wouldn't want to use additional software such as `tee` for this.
> 
> With --log or --log-append, no stdout is printed. --syslog doesn't help
> here either.
> 
> I assume it would be possible with --daemon and a custom program, that
> prints to stdout and saves to a file.
> 
> Is there a way to have OpenVPN print to stdout and a log file?
# openvpn --log /var/log/my-openvpn.log

and then:

# tail -f /var/log/my-openvpn.log


Except of that, no OpenVPN itself can only log to a single instance,
which can file, syslog or stdout.  It is not possible to combine them in
the OpenVPN configuration file.


-- 
kind regards,

David Sommerseth
OpenVPN Technologies, Inc


Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Openvpn-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-users

Reply via email to