Format date and time for linelog

Alan DeKok aland at
Fri Sep 13 14:49:25 CEST 2019

> On Sep 13, 2019, at 5:56 AM, R3DNano <r3dnano at> wrote:
> I have to output the current date and time via linelog on a specific way.
> I've figured out all of the fields but the seconds one.
> There's no seconds expansion on the documentation:
> I was wondering if there's any alternative way, since I've seen there's a
> %S variable that outputs almost what I want: Except, it uses dash instead
> of forward slash for date separation and that it outputs both date and time
> separated by a space, while I have to use a comma between those two, since
> they are going on different fields.
> Is there a way to manipulate (substitute) characters? or a better way of
> achieving this?

  You can use %e, but you need to download v3.0.x for that.  We're looking into releasing 3.0.20 real soon.

  Alan DeKok.

More information about the Freeradius-Users mailing list