Hi,

On Mon, Feb 05, 2024 at 09:55:58AM +0100, Bo Berglund wrote:
> I really wonder why it uses this terrible illogical display with the day name
> first?
> 
> So how can I change it to use the ISO 8601 format?

Well.  There's --machine-readable-output, I think, and also

  https://community.openvpn.net/openvpn/ticket/719

which says that from 2.5.0 on, there should be POSIX timestamps.

How old is your OpenVPN?

Maybe it's a bit more convoluted ("depending on logging mode, format might
be different"), but a good test would be to run 

$ openvpn --show-gateway

which should print something like

2024-02-05 10:51:14 ROUTE_GATEWAY 193.149.48.190/255.255.255.192 IFACE=igb0 
HWADDR=3c:ec:ef:9e:4a:a4
2024-02-05 10:51:14 ROUTE6_GATEWAY 2001:608:4::1 IFACE=igb0

... with a nice and shiny ISO timestamp.

gert
-- 
"If was one thing all people took for granted, was conviction that if you 
 feed honest figures into a computer, honest figures come out. Never doubted 
 it myself till I met a computer with a sense of humor."
                             Robert A. Heinlein, The Moon is a Harsh Mistress

Gert Doering - Munich, Germany                             g...@greenie.muc.de

Attachment: signature.asc
Description: PGP signature

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

Reply via email to