On Sun, 21 Jan 2024 10:39:55 +0100, Bo Berglund <bo.bergl...@gmail.com> wrote:
>On Sun, 21 Jan 2024 03:21:40 +0000, tincantech via Openvpn-users ><openvpn-users@lists.sourceforge.net> wrote: > >>For posterity: >> >>Server log --verb 4: >> >><verbatim> >> >>2024-01-21 03:06:59 us=764987 10.1.101.36:33510 [tct.66.c.w10.dan] Peer >>Connection Initiated with [AF_INET]10.1.101.36:33510 > >This is very strange! > >I have long missed the timestamps in the ovpn log files, hence my earlier jump >at the discussion regarding client-connect and client-disconnect scripts making >it possible to: >- Create a separate logfile with only the client connect/disconnect >- Include the timestamp in that logfile <== Important info! > >In my logs a typical line taken at random reads: > >HakanUbu/83.166.213.132:65076 PUSH: Received control message: 'PUSH_REQUEST' > >Note: No idea about *WHEN* this happened, that has driven me crazy many times >when I had to figure out a problem. > >And I *am* using verb 4 in the server's config file. > >Is there a separate config setting I have missed to make sure the logfiles >contain the timestamp on each line? I have now added the command like this: log /etc/openvpn/log/ovpn_local.log #In order to add timestamps to log messages: machine-readable-output verb 4 But the result is disappointing: 1705839052.969032 1 217.213.75.168:15952 peer info: IV_GUI_VER=net.openvpn.connect.android_3.3.4-9290 The quote above shows the timestamp as: 2024-01-21 03:06:59 which is what I want. What can I do to get the timestamp in the same format as that? -- Bo Berglund Developer in Sweden _______________________________________________ Openvpn-users mailing list Openvpn-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-users