[rsyslog-notify] Forum Thread: ?Use a symbolic link to reference the SYSLOG messages file - (Mode 'post')
noreply at adiscon.com
noreply at adiscon.com
Thu Apr 3 16:53:35 CEST 2014
User: TomG
Forumlink: http://kb.monitorware.com/viewtopic.php?p=24478#p24478
Message:
----------
I would like to be able to use a symbolic link to locate the syslog message
file (e.g. to be able to find the daily or weekly logfile)
Then I can run a cron right after midnight to repoint "today". (I might
want to do this weekly to be practical, but I just want to get it running
to start with.)
To test, I can copy
cp /var/log/syslog_data/daily/2014-04-03/messages.log /var/log/today
And I am in business! However if I:
ln -s /var/log/syslog_data/daily/2014-04-03/messages.log /var/log/today
It is broken.
I have tried all the chown/chmod variations I can think of:
[root at admin-eq-loghost syslog_data]# ls -al
/var/log/syslog_data/daily/2014-04-03/messages.log
-rw-rw-rw- 1 root logadmin 1747246 Apr 3 10:50
/var/log/syslog_data/daily/2014-04-03/messages.log
Is there something I need to do to convince the php to follow the symbolic
link?
I think the web server is OK:
<Directory /var/log>
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Thanks.
More information about the rsyslog-notify
mailing list