View Single Post
  #7  
Old 29th September 2011, 12:08
manjunath.nm89 manjunath.nm89 is offline
Junior Member
 
Join Date: Sep 2011
Posts: 4
Thanks: 0
Thanked 1 Time in 1 Post
Default

/etc/rsyslog.conf


Code:
#################
#### MODULES ####
#################

$ModLoad imuxsock # provides support for local system logging
$ModLoad imklog   # provides kernel logging support (previously done by rklogd)
#$ModLoad immark  # provides --MARK-- message capability

$KLogPath /proc/kmsg

# provides UDP syslog reception
#$ModLoad imudp
#$UDPServerRun 514

# provides TCP syslog reception
#$ModLoad imtcp
#$InputTCPServerRun 514


###########################
#### GLOBAL DIRECTIVES ####
###########################

#
# Use traditional timestamp format.
# To enable high precision timestamps, comment out the following line.
#
$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat

# Filter duplicated messages
$RepeatedMsgReduction on

#
# Set the default permissions for all log files.
#
$FileOwner syslog
$FileGroup adm
$FileCreateMode 0640

$DirCreateMode 0755
$Umask 0022
$PrivDropToUser syslog
$PrivDropToGroup syslog

#
# Include all config files in /etc/rsyslog.d/
#
$IncludeConfig /etc/rsyslog.d/*.conf

/etc/rsyslog.d/50-default.conf


Code:
auth,authpriv.*                 /mnt/log/auth.log
*.*;auth,authpriv.none          -/mnt/log/syslog
#cron.*                         /mnt/log/cron.log
daemon.*                        -/mnt/log/daemon.log
kern.*                          -/mnt/log/kern.log
lpr.*                           -/mnt/log/lpr.log
mail.*                          -/mnt/log/mail.log
user.*                          -/mnt/log/user.log

#
# Logging for the mail system.  Split it up so that
# it is easy to write scripts to parse these files.
#
mail.info                       -/mnt/log/mail.info
mail.warn                       -/mnt/log/mail.warn
mail.err                        /mnt/log/mail.err

# Logging for INN news system
#
news.crit                       /mnt/log/news/news.crit
news.err                        /mnt/log/news/news.err
news.notice                     -/mnt/log/news/news.notice

#
# Some `catch-all' logfiles.
#
*.=debug;\
        auth,authpriv.none;\
        news.none;mail.none     -/mnt/log/debug
*.=info;*.=notice;*.=warn;\
        auth,authpriv.none;\
        cron,daemon.none;\
        mail,news.none          -/mnt/log/messages
Reply With Quote