Mark Elkins wrote:

I want to put the contents of radius.log into a MySQL Database - in
**real time**.


ie - lines that read something like...
Fri Feb 25 18:50:37 2005 : Auth: Login OK: [EMAIL PROTECTED] (from
client adsl1 port 123456789)


How do I do this?



Easy. You need to write a script ie. PHP or Perl that tails the radius.log and inserts data into a database ie.


tail radius.log | perl someperlscript.pl

In someperlscript you simply do an infinite loop that reads from STDIN and inserts it into a proper SQL database.

Vladimir

- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to