[RADIATOR] Multiple accounting output formats

Vangelis Kyriakakis vkyriak at forthnet.gr
Mon Nov 7 12:19:38 UTC 2016


Hello Tuure,

     Thanks for this addition to Radiator.
     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?

        Regards
            Vangelis

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



More information about the radiator mailing list