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 <varti...@open.com.au> wrote:
>>
>>> On 13 Jun 2016, at 18:13, <l.m.c.haverko...@utwente.nl> 
>>> <l.m.c.haverko...@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

_______________________________________________
radiator mailing list
radiator@lists.open.com.au
http://lists.open.com.au/mailman/listinfo/radiator

Reply via email to