Problem with logging detail-log to syslog
Hello, I want to log all the freeradius (v 1.1.3) logs to syslog (syslog-ng). I 've already added this to my syslog-ng.conf : filter f_radiusd { match (radiusd); }; destination radiuslogs { file(var/log/radiusd.log); }; log { source (src); filter(f_daemon); filter(f_radiusd); destination(radiuslogs);}; And I changed/added this in my radiusd.conf : logdir = syslog log_destination = syslog So far so good: when I restart syslog-ng and radiusd, radiusd is logging to /var/log/radiusd.log via syslog. But I also want to have the detail-logs, which are normaly in the raddact directory, working in syslog... Now I see this error in /var/log/radiusd.log : rlm_detail: Failed to create directory syslog/radacct: No such file or directory So the rlm_detail part doesn't understands the 'logdir = syslog' option in radiusd.conf I guess? How can I fix this? Thanks in advance Mark van Herpen - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: Problem with logging detail-log to syslog
Hi Mark, Wednesday, May 23, 2007, 2:47:10 PM, you wrote: logdir = syslog [...] rlm_detail: Failed to create directory syslog/radacct: No such file or directory LOGDIR means... log dir : regards, Claudiu Filip - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: Problem with logging detail-log to syslog
Claudiu, I know what logdir means :) But according to the Syslog_Howto from the wiki, http://wiki.freeradius.org/Syslog_HOWTO : Modify /etc/raddb/radiusd.conf: logdir = syslog log_destination = syslog Because of the logdir entry above, you must locate all references to ${logdir}, comment the line out and replace it with an absolute path. There must be better ways to do this, but it isn't immediatedly obvious. So, I didn't find out that logdir part myself. The wiki also mentions that I have to replace all ${logdir} values with an absolute path. But I don't want that, because syslog has to take care that part. Grtz, Mark van Herpen Claudiu Filip wrote: Hi Mark, Wednesday, May 23, 2007, 2:47:10 PM, you wrote: logdir = syslog [...] rlm_detail: Failed to create directory syslog/radacct: No such file or directory LOGDIR means... log dir : regards, Claudiu Filip - 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[2]: Problem with logging detail-log to syslog
Hi Mark, it seems that you forgot a line with radacctdir = ${logdir}/radacct if you have no line with radacctdir, then add one with the correct path. best regards, Claudiu Filip @: [EMAIL PROTECTED] Http://www.globtel.ro T:+40344880100 F:+40344880113 - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Re: Problem with logging detail-log to syslog
Claudiu, I've got that line in my config, with the exact same path.. Grtz, Mark - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html