Format date and time for linelog
I have to output the current date and time via linelog on a specific way. *DD/MM/YYY,HH:MM:SS* I've figured out all of the fields but the seconds one. There's no seconds expansion on the documentation: https://wiki.freeradius.org/config/run_time_variables 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? Regards.
On Sep 13, 2019, at 5:56 AM, R3DNano <r3dnano@gmail.com> wrote:
I have to output the current date and time via linelog on a specific way. *DD/MM/YYY,HH:MM:SS*
I've figured out all of the fields but the seconds one. There's no seconds expansion on the documentation: https://wiki.freeradius.org/config/run_time_variables
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.
participants (2)
-
Alan DeKok -
R3DNano