Re: radius.log rotate?
Guy, That would be a really neat feature for us, too. If you're considering implementing it, I have a feature request: it would be great if there was also the option to have a complete logfile containing all realms, in addition to the broken-out files. This would allow for easier debugging (i.e. if you suspect a user is mistyping their realm and don't want to have to tail 5 files to check). Thanks, Alex At 5:47 PM -0700 13/02/2004, Guy Fraser wrote: The reason I am considering this feature, is that some people have asked for it and I work for an ISP that administrates other smaller ISP's. I have been asked in the past to give access to people in affialiated ISP's, but they only want to see traffic for their realm. A log file named like : %L/%{Realm}/%Y%m%d.log That translates to: /path/to/logdir/SomeISP.com/20040213.log Would make it possible to do, and files would be renamed on the fly. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: radius.log rotate?
Anson Rinesmith wrote: Does the radius.log file rotate when it gets large? If not, has anyone written a script to do this? Thanks, Anson I have been meaning to look into having the log file dynamically named. I made a patch for Cistron Radius that dynamically named. Example: /var/log/radius/%Y%b%d.log Today's file is : /var/log/radius/2004Feb13.log I will look at this issue, and try to get the patch into CVS. Hopfully the patch will make it into CVS before v1.0. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
RE: radius.log rotate?
I found that for now the easiest way for me is to edit newsyslog.conf (FreeBSD 4.6) and add that file in there. Works pretty well so far. -Original Message- From: [EMAIL PROTECTED] [mailto:freeradius- [EMAIL PROTECTED] On Behalf Of Guy Fraser Sent: Friday, February 13, 2004 11:33 AM To: [EMAIL PROTECTED] Subject: Re: radius.log rotate? Anson Rinesmith wrote: Does the radius.log file rotate when it gets large? If not, has anyone written a script to do this? Thanks, Anson I have been meaning to look into having the log file dynamically named. I made a patch for Cistron Radius that dynamically named. Example: /var/log/radius/%Y%b%d.log Today's file is : /var/log/radius/2004Feb13.log I will look at this issue, and try to get the patch into CVS. Hopfully the patch will make it into CVS before v1.0. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: radius.log rotate?
Anson Rinesmith wrote: I found that for now the easiest way for me is to edit newsyslog.conf (FreeBSD 4.6) and add that file in there. Works pretty well so far. Absolutely. After spending a while reading the code in CVS, I have determined it will take a bit of work to have dynamically named log files. In order to make it work consistantly with the rest of FreeRadius I am considering a rlm_log feature. This rlm_log feature would be similar to rlm_detail in naming convention, but one significant difference. Some information will not have a radius request associated with it, so it will have to have a system log, where that type of data will be located. The reason I am considering this feature, is that some people have asked for it and I work for an ISP that administrates other smaller ISP's. I have been asked in the past to give access to people in affialiated ISP's, but they only want to see traffic for their realm. A log file named like : %L/%{Realm}/%Y%m%d.log That translates to: /path/to/logdir/SomeISP.com/20040213.log Would make it possible to do, and files would be renamed on the fly. Well, it's Friday night and I'm an hour past going home time, so I'll get back to this on Tuesday {Monday is a holiday :-)}. - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html