Duplicate Host paths for destination
Running syslog-ng 1.6.12 on Fedora 6 (2.6.20-1.2933.fc6) I'm running into a weird problem that I can't seem to figure out. When my logs from syslog-ng write out the $FULLHOST path seems to repeat itself by nesting another level. So instead of getting what I want: /var/log/syslog-ng/server.msu.edu I get: /var/log/syslog-ng/server.msu.edu/server.msu.edu Not sure what is going on here, I've included my configuration which is pretty simple. Thanks for any assistance to this, I'm sure I overlooked something so very simple. Ben Carlson options { sync (20); log_fifo_size (1000); perm (0600); dir_perm (0755); check_hostname (yes); keep_hostname (yes); use_fqdn (yes); use_dns (yes); dns_cache (yes); dns_cache_size (1000); dns_cache_expire (43200); }; source s_internal { internal(); }; source s_network { tcp(max-connections(5000)); udp(); }; destination d_internal { file( "/var/log/syslog-ng/syslog-ng.log" owner(daemon) group(bin) perm(0600) dir_perm(0755) create_dirs(yes) ); }; destination d_general { file( "/var/log/syslog-ng/$FULLHOST/$FACILITY.$YEAR-$MONTH-$DAY.log" owner(daemon) group(bin) perm(0600) dir_perm(0755) create_dirs(yes) ); }; log { source(s_internal); destination(d_internal); flags(final); }; log { source(s_network); destination(d_general); };
On Thu, 2007-05-17 at 15:01 -0400, William B Carlson wrote:
Running syslog-ng 1.6.12 on Fedora 6 (2.6.20-1.2933.fc6)
I'm running into a weird problem that I can't seem to figure out. When my logs from syslog-ng write out the $FULLHOST path seems to repeat itself by nesting another level.
So instead of getting what I want: /var/log/syslog-ng/server.msu.edu
I get: /var/log/syslog-ng/server.msu.edu/server.msu.edu
Not sure what is going on here, I've included my configuration which is pretty simple.
Thanks for any assistance to this, I'm sure I overlooked something so very simple.
Ben Carlson
options {
sync (20); log_fifo_size (1000); perm (0600); dir_perm (0755); check_hostname (yes); keep_hostname (yes); use_fqdn (yes); use_dns (yes); dns_cache (yes); dns_cache_size (1000); dns_cache_expire (43200);
};
use chain_hostnames(no) -- Bazsi
participants (2)
-
Balazs Scheidler
-
William B Carlson