(RADIATOR) Multiple Accounting Logs

Stefan Riegelnik sriegelnik at netway.at
Sun Apr 18 17:29:01 CDT 2004


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Perhaps

# Pipe to my-log-prog
AcctLogFileName |/usr/local/bin/my-log-prog

helps and a small perl-scripts writes in different log-files in the
desired format.

HTH,
Stefan

Thus spake Hugh Irvine on 19.04 06:15:
> 
> Hello Jason -
> 
> It is not possible to do what you describe.
> 
> The only thing I can suggest is proxying to different instances of 
> Radiator and writing different formats in each one.
> 
> regards
> 
> Hugh
> 
> 
> On 18 Apr 2004, at 01:43, Jason Godsey wrote:
> 
> >
> >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.
> >
> >
> 
> NB: have you included a copy of your configuration file (no secrets),
> together with a trace 4 debug showing what is happening?
> 
> -- 
> Radiator: the most portable, flexible and configurable RADIUS server
> anywhere. Available on *NIX, *BSD, Windows, MacOS X.
> -
> Nets: internetwork inventory and management - graphical, extensible,
> flexible with hardware, software, platform and database independence.
> -
> CATool: Private Certificate Authority for Unix and Unix-like systems.
> 
> --
> 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.
> 

- -- 
Stefan Riegelnik               sriegelnik at netway.at
Non esistono uomini cattivi - dice l'orso -
se sono cucinati bene.     Stefano Benni
Phone: +43 1 9009 4643    Mobile: +43 6991 388 4643
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQFAgwEtTItIMi1CpmERApv9AKCy6ODE5V6xkmwnU84eaRpMRRUuoQCgtP1M
EchWlcKdqQu31WGyJngZ3JU=
=yPRf
-----END PGP SIGNATURE-----

--
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