I'm trying to use the fully qualified domain name in my directory naming structure in a destination function. Here is what I have:
options {
dns_cache(yes); (tried without)
chain_hostnames(no); (tried yes as well)
keep_hostname(yes); (tried no as well)
long_hostnames(off); (tried on)
use_dns(yes); (tried without)
use_fqdn(yes);
};
Then in the destination I've tried:
destination network_log {
file("/var/log/syslog-ng/$HOST/$FACILITY.$YEAR$MONTH$DAY"
owner(root) group(root) perm(0600) dir_perm(0700) create_dirs(yes)
);
};
and
destination network_log {
file("/var/log/syslog-ng/$FULLHOST/$FACILITY.$YEAR$MONTH$DAY"
owner(root) group(root) perm(0600) dir_perm(0700) create_dirs(yes)
);
};
Neither seems to create a directory with the fqdn, I always end up with the short name. Am I missing something or does this just not work?
Thanks
Rob