<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.5730.13" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2>Hi, we are using SLES 11</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>We are trying to read a tailing file and send it to
the server</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>syslog-ng.conf (on client 192.168.18.10<SPAN
class=749532513-03032011> some-host</SPAN>)<BR><FONT face="Courier New"
size=3>#syslog-ng.conf<BR>options { long_hostnames(off); sync(1); perm(0640);
stats(3600); };</FONT></FONT></DIV>
<DIV><FONT face="Courier New"></FONT> </DIV>
<DIV><FONT face="Courier New">source
s_mysrc{<BR> file("/some/file.log" );<BR>};</FONT></DIV>
<DIV><FONT face="Courier New"></FONT> </DIV>
<DIV><FONT face="Courier New">destination d_mydest {<BR>
tcp("192.168.18.7" port(5140));<BR>};</FONT></DIV>
<DIV><FONT face="Courier New"></FONT> </DIV><FONT face=Arial size=2>
<DIV><BR><FONT face="Courier New" size=3>log
{<BR>
source(s_mysrc);<BR>
destination(d_mydest);<BR>};<BR>#syslog-ng.conf ends</FONT></DIV>
<DIV><FONT face="Courier New" size=3></FONT> </DIV>
<DIV><FONT face="Courier New" size=3></FONT> </DIV>
<DIV><FONT face="Courier New" size=3></FONT> </DIV>
<DIV><FONT face="Courier New" size=3><FONT face=Arial size=2>syslog-ng.conf (on
Server 192.168.18.7)<BR></FONT>#syslog-ng.conf<BR>options { long_hostnames(off);
sync(0); perm(0640); stats(3600); };</FONT></DIV>
<DIV><FONT face="Courier New" size=3></FONT> </DIV>
<DIV><FONT face="Courier New" size=3>source
s_mysrc{<BR> tcp(ip("192.168.18.7")
port(5140) keep-alive(yes));<BR>};</FONT></DIV>
<DIV><FONT face="Courier New" size=3></FONT> </DIV>
<DIV><FONT face="Courier New" size=3>destination d_mydest
{<BR> file
("/var/log/hosts/$YEAR-$MONTH/$HOST/$FACILITY-$YEAR-$MONTH-$DAY"<BR>
owner(root) group(root) perm(0600) dir_perm(0700)
create_dirs(yes)<BR>
);<BR>};</FONT></DIV>
<DIV><FONT face="Courier New" size=3></FONT> </DIV>
<DIV><FONT face="Courier New" size=3>log
{<BR>
source(s_mysrc);<BR>
destination(d_mydest);<BR>};<BR>#syslog-ng.conf ends</FONT></DIV>
<DIV> </DIV>
<DIV><BR>When I start the service at client, I'm getting the following
error<BR><FONT face="Courier New" size=3>Starting syslog servicesError opening
file for reading; filename='/some/file.log', error='Permission denied
(13)'<BR>Error initializing source driver; source='s_mysrc'<BR>startproc:
exit status of parent of /sbin/syslog-ng: 2</FONT></DIV>
<DIV> </DIV>
<DIV>The file /some/file.log has -rw-rw-rw- permissions</DIV>
<DIV> </DIV>
<DIV>When I modify the source driver to ...<BR><FONT face="Courier New"
size=3>file("/some/file.log" follow_freq(1));</FONT></DIV>
<DIV> </DIV>
<DIV>I'm able to start the syslog service, but I don't see anything on the
server <SPAN class=749532513-03032011>(192.162.18.7) </SPAN>at <FONT
face="Courier New" size=3>/var/log/hosts/2011-03/some-host/</FONT></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><BR>Please help</DIV>
<DIV></FONT> </DIV>
<DIV><FONT face=Arial color=#800080 size=2>Thanks and regards,</FONT></DIV>
<DIV><FONT face=Arial color=#800080
size=2><STRONG>Hidayath</STRONG></FONT></DIV>
<DIV><STRONG><FONT face=Arial color=#800080 size=2></FONT></STRONG> </DIV>
<DIV><FONT size=1><FONT face=Arial><FONT color=#800080><STRONG>Saven
Technologies</STRONG>: A leader in technology driven business
solutions<BR>---------------------------------------------------------------------------------------------------------------<BR>#302,
3rd Floor, MyHome Sarovar Plaza, Hyderabad- 500 063, India<BR>Off: +91 040
23237303/7304 ext 115 <BR>email:
<U>hidayath.basha</U></FONT></FONT></FONT><A
href="mailto:hidayath.basha@saventech.com"><FONT face=Arial color=#800080
size=1>@saventech.com</FONT></A><FONT face=Arial color=#800080 size=1>
| </FONT><A href="http://www.saventech.com/"><FONT face=Arial
color=#800080 size=1>www.saventech.com</FONT></A><FONT face=Arial color=#800080
size=1> </FONT></DIV>
<DIV><FONT face=Arial color=#800080 size=1>follow me: </FONT><A
href="http://twitter.com/hidayath26"><FONT face=Arial color=#800080
size=1>http://twitter.com/hidayath26</FONT></A></DIV>
<DIV><FONT face=Arial color=#800080
size=1>---------------------------------------------------------------------------------------------------------------</FONT></DIV>
<DIV> </DIV></BODY></HTML>