Hello,
> On 14 Jun 2016, at 11:47, Tuure Vartiainen <[email protected]> wrote:
>
>> On 13 Jun 2016, at 18:13, <[email protected]>
>> <[email protected]> wrote:
>>
>> What I would like to achieve is the following: from a single handler
>> generate accounting logs to multiple files in multiple formats (e.g. 2 files
>> with the normal output, 1 with JSON output). Outputting to multiple files is
>> easy, but of course adding the formatting hook for JSON output causes both
>> files to be in that format.
>> Is there any way to achieve this in radiator? (It’s not a problem for
>> Authentication logs since you can just set a different log filename per e.g.
>> AuthBy, but this does not seem to be available for accounting logs).
>>
>
> unfortunately currently that’s not possible, all AcctLogFileNames use the
> same
> configured format.
>
> AuthLog could be companied with AcctLog which would allow to configure the
> described feature.
>
Following AcctLogs are now in Radiator v. 4.17 patches:
AcctLog FILE
AcctLog SYSLOG
AcctLog SQL
AcctLog EVENTLOG
AcctLogs work like AuthLogs and are run for Accounting-Requests which are
handled by a handler, e.g.:
<AcctLog FILE>
Identifier AcctLog-FILE
Filename %L/acct.log
# LogFormat defines a format AcctLog
#LogFormat
%l:%n:%{Acct-Session-Id}:%{Framed-IP-Address}:%{Calling-Station-Id}
</AcctLog>
<Handler ...>
...
AuthLog ...
AcctLog AcctLog-FILE
...
</Handler>
BR
--
Tuure Vartiainen <[email protected]>
Radiator: the most portable, flexible and configurable RADIUS server
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald,
Platypus, Freeside, TACACS+, PAM, external, Active Directory, EAP, TLS,
TTLS, PEAP, TNC, WiMAX, RSA, Vasco, Yubikey, MOTP, HOTP, TOTP,
DIAMETER etc. Full source on Unix, Windows, MacOSX, Solaris, VMS,
NetWare etc.
_______________________________________________
radiator mailing list
[email protected]
http://lists.open.com.au/mailman/listinfo/radiator