Hi Alexander, On 09/19/2013 04:57 PM, Alexander Hartmaier wrote: > Since quite some time I'm looking for a way to customize the accounting > log file format but the problem I'm having with it is that there seems > to be no way to log all key/value pairs contained in the accounting > packet without specifying each name. > The default format is nice to read but hard to search with e.g. ack or grep. > I've read that using pipe followed by a program as AcctLogFileName works > but passing data serialized one log per line to it would also be easier > for the program to parse the log and pass it on (e.g. JSON serialized).
We ran into the same problem and wrote a perl script which we pipe the Accounting Log to. It's attached. radiator config: AcctLogFileName | /usr/local/bin/radacclog.pl Regards Klara -- Karlsruher Institut für Technologie (KIT) Steinbuch Centre for Computing (SCC) Klara Mall Netze und Telekommunikation (NET) Hermann-von-Helmholtz-Platz 1 76344 Eggenstein-Leopoldshafen Telefon: +49 721 608-28630 Telefon: +49 721 608-48946 E-Mail: klara.m...@kit.edu Web: http://www.scc.kit.edu KIT - Universität des Landes Baden-Württemberg und nationales Forschungszentrum in der Helmholtz-Gemeinschaft
radacclog.pl
Description: Perl program
_______________________________________________ radiator mailing list radiator@open.com.au http://www.open.com.au/mailman/listinfo/radiator