On Wed, 22 Jun 2022 15:58:35 +0200, David Sommerseth
<[email protected]> wrote:
>> But will journalctl work independently of the openvpn log option settings,
>> like
>> verbosity etc?
>> I have this now in the two instance conf files:
>>
>> log /etc/openvpn/log/openvpn.log
>> verb 4
>> mute 10
>>
>> and:
>>
>> log /etc/openvpn/log/ovpn_local.log
>> verb 4
>> mute 10
>
>No, it will not work independently. When the --log option is missing,
>all logging goes to stdout ("terminal") and that's the output the
>journald picks up. The --verb and --mute options will work as expected.
>
>I see you get a recommendation to remove '--suppress-timestamp'. That
>is only useful if you decide to use --log. If you let the journal do
>that job, it will already provide the timestamps for you. And if you
>also have rsyslog installed too, it will pick up journal events and put
>these log entries to the configured log files - which will include
>timestamps.
>
>Generally speaking, consider the --log option only to be useful on
>systems without a system logger available.
>
So if I simply remove the log entry in the conf file and restart openvpn
services I will get the log into Journalctl including timestamps?
This seems like a modification I could do remotely without risking the system
getting shut down?
I mean commenting out the log setting in the conf file...
--
Bo Berglund
Developer in Sweden
_______________________________________________
Openvpn-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-users