Location of freeradius log file
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 -- ============================== Registered Linux User #460714 Currently Using Fedora 10, CentOS 5.3 ==============================
Am 13.07.2009 um 17:35 schrieb Deepak:
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?
If you do not find, check your radiusd.conf The property is named "log_file"
Thanks
-- ============================== Registered Linux User #460714 Currently Using Fedora 10, CentOS 5.3 ============================== - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Nicolas Goutte extragroup GmbH - Karlsruhe Waldstr. 49 76133 Karlsruhe Germany Geschäftsführer: Stephan Mönninghoff, Hans Martin Kern, Tilman Haerdle Registergericht: Amtsgericht Münster / HRB: 5624 Steuer Nr.: 337/5903/0421 / UstID: DE 204607841
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/
On Tue, Jul 14, 2009 at 12:25 AM, John Dennis<jdennis@redhat.com> wrote:
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/ - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Thanks! found it in /var/log/radius -- ============================== Registered Linux User #460714 Currently Using Fedora 10, CentOS 5.3 ==============================
participants (4)
-
A.L.M.Buxey@lboro.ac.uk -
Deepak -
John Dennis -
Nicolas Goutte