Hi!
This puzzels me: This is my tcprecieve config file for rsyslog v4 on
ubuntu:
-----8<-----
$ModLoad imtcp
$InputTCPServerRun 514
# some dynamic templates
$template DYNlocal1,"/var/log/remote/%HOSTNAME%/local1.log"
# log remote local1 to dynamic diretory
if $fromhost-ip != '127.0.0.1' and \
$syslogfacility-text == 'local1' \
then -?DYNlocal1
----->8-----
I created /var/log/remote with sufficient privileges.
Unfortunately this doesn't work. rsyslog crates a folder named after the
remote host (myhostname) and creates the file local1.log (again:
sufficient permissions: syslog:syslog 640). But it doesn't write to that
file, but logs the error:
-----8<-----
Could not open dynamic file '/var/log/remote/myhostname/local1.log' -
discarding message
----->8-----
As you might guess my question is: Why isn't rsyslog able to open a file
it is able to create? Any help or hint is really appreciated.
--
kind regards, Henry
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com