log
{
source(s_mysrc);
destination(d_mydest);
};
#syslog-ng.conf ends
syslog-ng.conf (on
Server 192.168.18.7)
#syslog-ng.conf
options { long_hostnames(off);
sync(0); perm(0640); stats(3600); };
source
s_mysrc{
tcp(ip("192.168.18.7")
port(5140) keep-alive(yes));
};
destination d_mydest
{
file
("/var/log/hosts/$YEAR-$MONTH/$HOST/$FACILITY-$YEAR-$MONTH-$DAY"
owner(root) group(root) perm(0600) dir_perm(0700)
create_dirs(yes)
);
};
log
{
source(s_mysrc);
destination(d_mydest);
};
#syslog-ng.conf ends
When I start the service at client, I'm getting the following
error
Starting syslog servicesError opening
file for reading; filename='/some/file.log', error='Permission denied
(13)'
Error initializing source driver; source='s_mysrc'
startproc:
exit status of parent of /sbin/syslog-ng: 2
The file /some/file.log has -rw-rw-rw- permissions
When I modify the source driver to ...
file("/some/file.log" follow_freq(1));
I'm able to start the syslog service, but I don't see anything on the
server (192.162.18.7) at /var/log/hosts/2011-03/some-host/
Please help
Thanks and regards,
Hidayath
Saven
Technologies: A leader in technology driven business
solutions
---------------------------------------------------------------------------------------------------------------
#302,
3rd Floor, MyHome Sarovar Plaza, Hyderabad- 500 063, India
Off: +91 040
23237303/7304 ext 115
email:
hidayath.basha@saventech.com
| www.saventech.com
---------------------------------------------------------------------------------------------------------------