[RADIATOR] Radius::LogFormat::format_acctlog_json(@_); not logging Framed-IPv6-Address
Heikki Vatiainen
hvn at open.com.au
Fri Apr 12 15:59:48 UTC 2019
On 27/11/2018 18.14, Heikki Vatiainen wrote:
> On 26/11/2018 15.05, Peter Havekes wrote:
>
>> How can I log the IPv6 address in accounting in json format? The goodies
>> mention a custom log format, but how do I define a log format? Can
>> anyone provide a sample "CustomLogFormat.pm"?
>
> The example below is based on file names and examples in
> goodies/logformat.cfg.
Coming back to this: the recently release Radiator 4.23 has updated
support for json format logging in AcctLog FILE. See new parameters
OutputFormat and AcctLogOutputDef in the goodies/logformat.cfg and in
the reference manual:
https://open.com.au/radiator/ref/OutputFormat_AcctLogFILE.html
https://open.com.au/radiator/ref/AcctLogOutputDef_AcctLogFILE.html
In short: switching OutputFormat to json logs all attributes and if fine
tuning is needed, AcctLogOutputDef can do that.
Thanks,
Heikki
--
Heikki Vatiainen <hvn at open.com.au>
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. SQL, proxy, DBM, files, LDAP, TACACS+, PAM, Active Directory,
EAP, TLS, TTLS, PEAP, WiMAX, RSA, Vasco, Yubikey, HOTP, TOTP,
DIAMETER etc. Full source on Unix, Windows, MacOSX, Solaris, VMS, etc.
More information about the radiator
mailing list