[syslog-ng] Duplicate Host paths for destination
William B Carlson
carls107 at msu.edu
Thu May 17 21:01:40 CEST 2007
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);
};
More information about the syslog-ng
mailing list