Re: v4 - linelog taking 1 second to write to local file
Alan DeKok via Freeradius-Users <[email protected]> Sat, 4 Apr 2026 11:45:58 -0400
| Newsgroups | gmane.comp.freeradius.user |
|---|---|
| Message-ID | <[email protected]> |
On Apr 2, 2026, at 5:41 PM, James Wood via Freeradius-Users <[email protected]> wrote: > > I have the following config in radiusd.conf: > > log { > destination = file > file = ${logdir}/radius.log > } > > When configured with destination = file, it's taking 1 second to write to > the file exactly for any linelog configured output. If I change it to > syslog instead of file, it's instant. This results in a one-second delay in > the reply back to the client. There's some undocumented configuration flags which buffer the output. That allows batching log writes. I've documented the flags, and updated the code so that the default is to not buffer writes. That follows the principle of least surprise. Alan DeKok. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEIUl02elqcIsf1zM0v3SJ0h7dTTMFAmnRMjYACgkQv3SJ0h7d TTN10g/9FAP5m8zRUSfzDPxTX1g1dbC0au8vVtJGOPyCS4h9RrNsmRbGlL8BPwIy b5BuBIDgTZHknb0dGv9PvaAzwePvakOHZ6q4rYAH/pCNuW4qxDGzhJj8R2gltz1y 6BhbPa6vQm+GUarWbhTmT4TBaEouYNVq/F5eVpQQSqJC4PW+3XejZwUP3IL6Kwh9 4/n9cquQY19+/2jKZ9LTjSph5y+OLmA0Mizn6bRaAfnPPGJSqn1SzuzxrIlnDPY3 C4XcAOOK7HA6WSJnRvpEfO8pz3wilMTtrXNOhcbTpWsmrklEVFKxqH0EOtv++5Sw n+vO+/xfOjEQpqsHmk7FnzIQkwMW53wLDgUrCkTa5nspL3hb3nwb2XZeHj6UVsZL 5QfnbQadly5ARNA3N+p8vqZJHtTxpWDBUsYpr+pOFm9A93FvGclaJE+aS2+5o88n spREYPXoZMXWahBAM7SbwJnEnALRc07lT+XqBaILvbxavJiCCv/152kfvgE1kIed dZerhw8VRofQB/VuoXob8cbnrHrolEc8JAbqQL/ZDQV6mc5V4ZuJAjheB5WoY6eT UGEg/lwAJAN36fdl/yV8yx882dRieo3AAijzBQrP8HLVSNTi9g4EuT85tIDs35W2 /X23ktGKLxLwckJZG73Gk68LSraa1W7T0mhLRXK9Z5s0QDYqN5U= =zYFt -----END PGP SIGNATURE-----