[RADIATOR] Multiple accounting output formats

Tuure Vartiainen vartiait at open.com.au
Mon Nov 7 15:08:55 UTC 2016


Hello Vangelis,

> On 7 Nov 2016, at 14.19, Vangelis Kyriakakis <vkyriak at forthnet.gr> wrote:
> 
>     Thanks for this addition to Radiator.

You’re wellcome!

>     Can the new AcctLog mechanism be used together with the
> AcctLogFileName/AcctLogFileFormat configuration commands, or the use of
> the former prevents the use of the latter?
> 

Yes, both can be used at the same time, accounting is first written to AcctLogFileName 
and after AuthBy(s) AcctLog(s) are run.

> 
> On 7/11/2016 10:55 πμ, Tuure Vartiainen wrote:
>> Hello,
>> 
>>> On 14 Jun 2016, at 11:47, Tuure Vartiainen <vartiait at open.com.au> wrote:
>>> 
>>>> On 13 Jun 2016, at 18:13, <l.m.c.haverkotte at utwente.nl> <l.m.c.haverkotte at utwente.nl> 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 <vartiait at open.com.au>

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.



More information about the radiator mailing list