Hey,
I was looking at the version 6.3.4 and I did a standard installation:
# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 10.04.3 LTS
Release: 10.04
Codename: lucid
# ./configure --prefix=/opt/rsyslog/rsyslog-6.3.4
# /var/tmp/rsyslog-6.3.4# /opt/rsyslog/rsyslog-6.3.4/sbin/rsyslogd -v
rsyslogd 6.3.4, compiled with:
FEATURE_REGEXP: Yes
FEATURE_LARGEFILE: No
GSSAPI Kerberos 5 support: No
FEATURE_DEBUG (debug build, slow code): No
32bit Atomic operations supported: Yes
64bit Atomic operations supported: No
Runtime Instrumentation (slow code): No
See http://www.rsyslog.com for more information.
Then some extra config:
# cat /etc/rsyslog.conf
# /etc/rsyslog.conf Configuration file for rsyslog.
#
# For more information see
# /usr/share/doc/rsyslog-doc/html/rsyslog_conf.html
#
# Default logging rules can be found in /etc/rsyslog.d/50-default.conf
#################
#### 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 root
$PrivDropToGroup root
#
# Include all config files in /etc/rsyslog.d/
#
$IncludeConfig /etc/rsyslog.d/*.conf
# cat /etc/rsyslog.d/10-local.conf
$template DynaFile,"/var/log/servers/system-%HOSTNAME%.log"
*.* -?DynaFile
:fromhost-ip, !isequal, "127.0.0.1" ~
# /opt/rsyslog/rsyslog-6.3.4/sbin/rsyslogd
rsyslogd: run failed with error -2207 (see rsyslog.h or try
http://www.rsyslog.com/e/2207 to learn what that number means)
I change the config:
# cat /etc/rsyslog.d/10-local.conf
$template DynaFile,"/var/log/servers/system-%HOSTNAME%.log"
*.* -?DynaFile
#:fromhost-ip, !isequal, "127.0.0.1" ~
Then, it will start the daemon. Is it a bug?
Regards,
Gerrit
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com