Discussion:
Location of freeradius log file
Deepak
2009-07-13 15:35:59 UTC
Permalink
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
==============================
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
A***@lboro.ac.uk
2009-07-13 15:46:41 UTC
Permalink
Hi,
Post by Deepak
Where do freeradius keep the log file?
on most of my systems its in /var/log/radius/

check where your package management put it - or if
you run eg slocate then you can do 'locate radius.log'


alan
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Nicolas Goutte
2009-07-13 16:01:46 UTC
Permalink
Post by 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
========
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"
Post by Deepak
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




-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
John Dennis
2009-07-13 16:25:53 UTC
Permalink
Post by 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
========
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 <***@redhat.com>

Looking to carve out IT costs?
www.redhat.com/carveoutcosts/
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Deepak
2009-07-14 06:38:38 UTC
Permalink
Post by John Dennis
Post by 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
========
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
$ 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.
--
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
==============================

-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
Loading...