<div dir="ltr"><div><div><div>Hi,<br>After updating to syslog-ng 3.2, I'm no longer getting any logs. It reports some destinations as unused:<br><br>May 23 17:09:16 borg syslog-ng[27957]: Reaping unused destination files; template='/var/log/firewalls/$YEAR/$MONTH/$DAY/$HOST.log'<br>
May 23 17:09:16 borg syslog-ng[27957]: Reaping unused destination files; template='/var/log/troncal/$YEAR/$MONTH/$DAY/$SOURCEIP.log'<br>May 23 17:09:16 borg syslog-ng[27957]: Reaping unused destination files; template='/var/log/remote/$HOST/$YEAR/$MONTH/$DAY/$PROGRAM/$FACILITY'<br>
<br>But I have no clue why, as this configuration was working on another system (I'm pretty sure it was an older version, but I can't tell which exactly)<br><br>My config is as follows:<br><br>options {<br> time_reopen (10);<br>
long_hostnames (off);<br> use_dns (no);<br> use_fqdn (no);<br> create_dirs (yes);<br> keep_hostname (yes);<br><br> sync (5000);<br> time_reap(5);<br> log_fifo_size (536870912);<br> stats_freq(60);<br>
flush_lines(500);<br> flush_timeout(10000);<br>};<br><br>source remote_tcp { tcp(port(514) keep-alive(no)); };<br><br>source remote_default { udp(ip(192.168.1.1) port(514)); };<br>source remote_servers { udp(ip(192.168.1.2) port(514)); };<br>
source firewalls { udp(port(1515)); };<br>source troncal { udp(ip(192.168.1.3) port(514)); };<br><br><br>destination hosts { file("/var/log/remote/$HOST/$YEAR/$MONTH/$DAY/$PROGRAM/$FACILITY" owner(root)<br> group(root) perm(0644) dir_perm(0755) create_dirs(yes)); };<br>
<br>destination firewalls { file("/var/log/firewalls/$YEAR/$MONTH/$DAY/$HOST.log" owner(root)<br> group(root) perm(0644) dir_perm(0755) create_dirs(yes)); };<br><br>destination troncal { file("/var/log/troncal/$YEAR/$MONTH/$DAY/$SOURCEIP.log" owner(root)<br>
group(root) perm(0644) dir_perm(0755) create_dirs(yes)); };<br><br><br>log { source(remote_default); source(remote_servers); destination(hosts); };<br>log { source(firewalls); destination(firewalls); };<br>log { source(troncal); destination(troncal); };<br>
<br>Anyone can help me out?<br><br>Thank you!</div></div></div><div><div><div><div><div><div><div>-- <br>Jordi<br>
</div></div></div></div></div></div></div></div>