I've enabled "detail auth_log" and "detail reply_log" (it'd be great if there was a way to tie auths and replies together from the different log files somehow) and FreeRadius is creating new logs each day. I'm assuming that I'll need to take care of removing old logs on my own? Otherwise I'll be filling my disk up pretty quickly. Thanks, ~Matt
lowbassman@gmail.com wrote:
I've enabled "detail auth_log" and "detail reply_log" (it'd be great if there was a way to tie auths and replies together from the different log files somehow) and FreeRadius is creating new logs each day. I'm assuming that I'll need to take care of removing old logs on my own? Otherwise I'll be filling my disk up pretty quickly.
Yes. See logrotate, or any one of many log rotation tools. Alan DeKok.
On Thu, Jul 17, 2008 at 7:49 AM, Alan DeKok <aland@deployingradius.com> wrote:
lowbassman@gmail.com wrote:
I've enabled "detail auth_log" and "detail reply_log" (it'd be great if there was a way to tie auths and replies together from the different log files somehow) and FreeRadius is creating new logs each day. I'm assuming that I'll need to take care of removing old logs on my own? Otherwise I'll be filling my disk up pretty quickly.
Yes. See logrotate, or any one of many log rotation tools.
Right, I'm familiar with logrotate. The problem is that FreeRadius is rotating the logs already and I don't know of a way to get logrotate to just keep track of a set number of logfiles that it doesn't rotate itself. ie., "keep 10 logfiles only"
Matt Alexander wrote:
Right, I'm familiar with logrotate. The problem is that FreeRadius is rotating the logs already
No, you said that the server is "creating new logs every day". That means the detail filename has a date in it. (%Y, %m, etc.) If you don't want it to create a new file every day, then configure the filename to have a name that doesn't include the date.
and I don't know of a way to get logrotate to just keep track of a set number of logfiles that it doesn't rotate itself. ie., "keep 10 logfiles only"
$ ls -c | tail -n +11 Will sort files in the directory by creation time, and then chop off the first 10. What's left is the oldest ones, that you can deleted. Alan DeKok.
Gurus, For my Application, I have to build a central error file, which will be parsed by the HP Openview agents for monitoring. I'd like to write major errors raised by FR also into this file. It would be enough to have the DB errors in there. How can I configure FR, that these Messages are appended to this error file? Thank You. Regards Stefan
Am Mittwoch, 23. Juli 2008 13:57 schrieb Stefan A.:
Gurus,
For my Application, I have to build a central error file, which will be parsed by the HP Openview agents for monitoring. I'd like to write major errors raised by FR also into this file. It would be enough to have the DB errors in there. How can I configure FR, that these Messages are appended to this error file?
Thank You.
Regards Stefan
- List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
hi, I would say, that is no question of FR, but of your system logging. It would work great if you use syslogng. But if you have HPOV, why don't you queuery FR with SNMP? A new agent was just released and FR should have SNMP functionallity again, At least in the next release. -- Dr. Michael Schwartzkopff MultiNET Services GmbH Addresse: Bretonischer Ring 7; 85630 Grasbrunn; Germany Tel: +49 - 89 - 45 69 11 0 Fax: +49 - 89 - 45 69 11 21 mob: +49 - 174 - 343 28 75 mail: misch@multinet.de web: www.multinet.de Sitz der Gesellschaft: 85630 Grasbrunn Registergericht: Amtsgericht München HRB 114375 Geschäftsführer: Günter Jurgeneit, Hubert Martens --- PGP Fingerprint: F919 3919 FF12 ED5A 2801 DEA6 AA77 57A4 EDD8 979B Skype: misch42
participants (5)
-
Alan DeKok -
lowbassman@gmail.com -
Matt Alexander -
Michael Schwartzkopff -
Stefan A.