(RADIATOR) Multiple Accounting Logs

Jason Godsey radiator at corp.fidalgo.net
Sat Apr 17 10:43:56 CDT 2004


What I am looking for is behavior outlined below in the Handler.  I would like to have multiple accounting log files w/ different formats within the same handler (open, write to, and close 3 files for each accounting packet.)

In my tests, I can have multiple files detail.txt test1.txt test2.txt but only 1 shared format.

I have tried placing   AcctLogFileFormat %{User-Name}, and AcctLogFileName /tmp/test1.txt within AuthBy File, SQL as shown in http://www.open.com.au/archives/radiator/1999-08/msg00268.html.

The problem is: Sat Apr 17 08:19:43 2004: ERR: Unknown keyword 'AcctLogFileName' in /usr/local/etc/raddb/radius.cfg line 77

This happens in both AuthBy FILE and SQL.

Here is the behaviour I'd really like:

<Handler>
  AuthBy WorkingAuthBy
  AuthLog WorkingAuthLog
  ###log in default format##############
  AcctLogFileName /tmp/detail.txt
  ###log in this format#################
  AcctLogFileFormat %{User-Name}
  AcctLogFileName /tmp/test1.txt
  ###log in this format#################
  AcctLogFileFormat %{Framed-IP-Address}
  AcctLogFIleName /tmp/test2.txt
</Handler>

########################################################
                        OR
########################################################

<AcctLog FILE>
  Identifier default
  AcctLogFIleName /tmp/detail.txt
</AcctLog>
<AcctLog FILE>
  Identifier test2
  AcctLogFileFormat %{Framed-IP-Address}
  AcctLogFIleName /tmp/test2.txt
</AcctLog>
<AcctLog FILE>
  Identifier test1
  AcctLogFileFormat %{User-Name}
  AcctLogFIleName /tmp/test1.txt
</AcctLog>


<Handler>
  AuthBy WorkingAuthBy
  AuthLog WorkingAuthLog
  AcctLog default
  AcctLog test1
  AcctLog test2
</Handler>


Thank you,

Jason

--
Archive at http://www.open.com.au/archives/radiator/
Announcements on radiator-announce at open.com.au
To unsubscribe, email 'majordomo at open.com.au' with
'unsubscribe radiator' in the body of the message.


More information about the radiator mailing list