<div dir="ltr"><div><div><div><div><div><div><div>Good day guys<br><br></div> I am having an issue that I seem not be able to resolve thus far. <br><br></div> I am fairly new to syslog-ng and have setup a new syslog server. <br><br><br></div> We have managed to get most of our servers sending logs to the server without issues, however I am having trouble to get syslog-ng to create the directories and files with the correct ownership. <br><br></div> We have a seperate user and group which it needs to create directories with, however it keeps on creating directories and files as root user. <br><br><br></div>below is my current config : <br><br># First, set some global options.<br>options { chain_hostnames(off); flush_lines(0); use_dns(yes); use_fqdn(yes); owner("syslog"); group("syslog"); perm(0640); stats_freq(0); bad_hostname("^gconfd$"); log_fifo_size(10000); };<br><br>source inputs {<br> system();<br> internal();<br> unix-stream("/dev/log");<br> tcp(max_connections(50));<br> udp();<br>};<br><br><br>destination logpile {<br> file("/var/log/HOSTS/$HOST/$YEAR/$MONTH/$FACILITY.$YEAR$MONTH$DAY"<br> owner("syslog") group("syslog") perm(0660)<br> create_dirs(yes) dir_perm(0770)); };<br><br> log { source(inputs); destination(logpile); };<br><br><br><br><br><br></div>Can someone please assist me as any help would be appreciated. <br><br></div>Regard<br clear="all"><div><div><div><div><div><div><div><div><br>-- <br><div class="gmail_signature">I am a bomb technician...If you see me running, TRY TO KEEP UP!</div>
</div></div></div></div></div></div></div></div></div>