[syslog-ng]syslog-ng filename expansion - 1.6.0rc3

James B. Davis syslog-ng@lists.balabit.hu
Wed, 08 Oct 2003 12:12:33 -0600


Hi,

I've tried in vain to get underscores in the filename expansion but all 
I get is the last variable.

For example:

destination hosts {
    
file("/var/log/hosts/$HOST/$YEAR/$MONTH/$DAY/$FACILITY-$YEAR-$MONTH-$DAY"
    owner(root) group(nms) perm(0640) dir_perm(0750) create_dirs(yes) );
};

Works but changing the "-" with "_" leaves me with files named "$DAY" 
rather than the whole string.
Using "." works ok but it is real messy when you need fqdn.

thx

jbd

-- 
James Davis
Lead Systems Administrator
Douglas County Government
Information Technology Department
100 Third Street, Castle Rock CO 80104 USA
cell 303.994.8881
fax 303.688.6908
direct 303.663.7654
http://www.douglas.co.us/
mailto:jdavis@douglas.co.us