11 May
2001
11 May
'01
4:22 p.m.
On Fri, May 11, 2001 at 11:16:13AM -0400, Brian E. Seppanen wrote:
Can I do the following for a file destination? If I can why won't it work? The documentation leads me to believe it does. I've done something similar using the $PRIORITY macro to break out some messages into diferrent files. I want messages to log into a date specific directory.
destination messages { file("/var/log/$DATE/messages" create_dirs(yes) dir_perm(0640));};
The global config likewise specifies create_dirs(yes);
this should work, but you'd better use $YEAR-$MONTH-$DAY, $DATE contains spaces and is really meant to be used in file content templates. -- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1