FreeRADIUS WikiMain Page | About | Help | FAQ | Special pages | Log in

Printable version | Disclaimers | Privacy policy

Syslog HOWTO

From FreeRADIUS Wiki

Contents

Syslog HOWTO (1.1.4)

For the example we will be using local1 as the facility.

We will discuss the different priorities with regard to the types of messages that are produced.

Keep in mind that the file locations may be different for your distribution.

The process to get FreeRADIUS to start using syslog is fairly straight forward. The basic steps are:

  1. Modify /etc/syslog.conf
  2. Restart the syslog daemon
  3. Modify /etc/raddb/radiusd.conf
  4. Start radius with the -l syslog and -g <facility>


Modify /etc/syslog.conf:

#Radius logging choices - Commented lines are not required. ;)

# .=notice will log only authentication messages (L_AUTH)
#local1.=notice                     /var/log/radius/radius-notice.log
# .=err will log only module errors for radius
#local1.=err                         /var/log/radius/radius-errors.log
# .* will log all messages in the same log file
local1.*                                /var/log/radius/radius.log

Restart the syslog daemon:

On the distro we use it is - services restart sysklogd
RedHat - service syslog restart
Ubuntu - ?


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.


Start radius with the -l syslog and -g <facility>:
Putting these options in the startup script is different for each distribution.
Ours is in /etc/sysconf/options/radiusd
Redhat - ?
Ubuntu - ?


Syslog Priorities:

There are 8 different priorities for syslog - 
debug,info, notice, warning, err, crit, alert, emerg.
debug - ?
info - ?
notice - authentication messages
warning - ?
err - radius errors
crit - ?
alert - ?
emerg - ?

Retrieved from "http://wiki.freeradius.org/Syslog_HOWTO"

This page has been accessed 14,476 times. This page was last modified on 15 April 2007, at 01:31.


Find

Browse
Main Page
Community portal
Current events
Recent changes
Random page
Help
Edit
View source
Editing help
This page
Discuss this page
New section
Printable version
Context
Page history
What links here
Related changes
My pages
Log in / create account
Special pages
New pages
File list
Statistics
More…