How to modify the log file format thats missing the number in brackets at the front
Hi, In my version2 freeradius server I had radius.log output of the format (192239) Sun Mar 26 00:01:58 2023 : Auth: Login incorrect (No Auth-Type found: rejecting the user via Post-Auth-Type = Reject): With my version 3 server I have the following format Sun Mar 26 00:01:58 2023 : Auth: Login incorrect (No Auth-Type found: rejecting the user via Post-Auth-Type = Reject): Its the same but the number in brackets has been removed Is there a way of reintroducing the number in brackets into my version 3 radius.log file? What does this number mean? We have some legacy software that uses the number you see Regards Geoffrey
On Dec 3, 2024, at 9:47 AM, Geoffrey Francis via Freeradius-Users <freeradius-users@lists.freeradius.org> wrote:
In my version2 freeradius server I had radius.log output of the format
(192239) Sun Mar 26 00:01:58 2023 : Auth: Login incorrect (No Auth-Type found: rejecting the user via Post-Auth-Type = Reject):
With my version 3 server I have the following format
Sun Mar 26 00:01:58 2023 : Auth: Login incorrect (No Auth-Type found: rejecting the user via Post-Auth-Type = Reject):
Its the same but the number in brackets has been removed
Sort of. What I see is: Tue Dec 3 10:07:35 2024 : Auth: (0) Login incorrect (No Auth-Type found: rejecting the user via Post-Auth-Type = Reject): [bob] (from client localhost port 0) The number (0) here is the request number.
Is there a way of reintroducing the number in brackets into my version 3 radius.log file?
I see it printed out as above. Which version are you running? Please use the most recent one available. There isn't much point in upgrading from v2 to a 5 year-old version of v3.
What does this number mean?
It's a number which is unique to each request. It doesn't mean anything, but it's just a way to track that all of the log messages for one request.
We have some legacy software that uses the number you see
Upgrading from one major version to another results in some behavior changes. :( Alan DeKok.
On 03/12/2024 15:08, Alan DeKok wrote:
On Dec 3, 2024, at 9:47 AM, Geoffrey Francis via Freeradius-Users <freeradius-users@lists.freeradius.org> wrote:
We have some legacy software that uses the number you see
Upgrading from one major version to another results in some behavior changes. :(
One option could be to send it to syslog rather than writing to a file, then use rsyslog (or similar) to modify the format before writing it or sending it elsewhere. -- Matthew
participants (3)
-
Alan DeKok -
Geoffrey Francis -
Matthew Newton