On 07/13/2009 11:35 AM, Deepak wrote:
Hi,
I have following installed.
=============== OS: CentOS 5.3 freeradius 2.1.6 (rpm version) daloradius 0.9-8 mysql 5.0.45 ===============
When I try to check the radius log file from daloradius interface, it give me following error: ======== error reading log file:
looked for log file in /var/log/freeradius/radius.log and /usr/local/var/log/radius/radius.log but couldn't find it. if you know where your freeradius log file is located, set it's location in /zradius/rep-logs-radius.php ======== I tried to look for this file but couldn't locate it. There is no "freeradius" directory in "/var/log"
Where do freeradius keep the log file?
Thanks
The default log location as defined by the configure.in script is logdir='${localstatedir}/log/radius' On most systems localstatedir is /var thus the default log location is /var/log/radius. On rpm based systems this can be deduced by looking at the file list belonging to an rpm, for example: $ rpm -ql freeradius | grep log /etc/logrotate.d/radiusd /etc/raddb/modules/detail.log /etc/raddb/modules/linelog /etc/raddb/modules/logintime /etc/raddb/modules/sql_log /etc/raddb/modules/sqlcounter_expire_on_login /usr/lib/freeradius/rlm_acctlog-2.1.6.so /usr/lib/freeradius/rlm_acctlog.so /usr/lib/freeradius/rlm_linelog-2.1.6.so /usr/lib/freeradius/rlm_linelog.so /usr/lib/freeradius/rlm_logintime-2.1.6.so /usr/lib/freeradius/rlm_logintime.so /usr/lib/freeradius/rlm_sql_log-2.1.6.so /usr/lib/freeradius/rlm_sql_log.so /usr/share/man/man5/rlm_sql_log.5.gz /var/log/radius /var/log/radius/radacct /var/log/radius/radius.log /var/log/radius/radutmp here you can see the log directory is /var/log/radius. But there is another hint, the freeradius package included a logrotate file in /etc/logrotate.d/radiusd. logrotate is responsible for rotating log files and the /etc/logrotate.d/radiusd is the configuration file specific to the radiusd service. Looking at that config file will show you the path of every radius log file. -- John Dennis <jdennis@redhat.com> Looking to carve out IT costs? www.redhat.com/carveoutcosts/