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); Any help greatly appreciated. Brian Seppanen Charter Communications seppy@chartermi.net Advanced Services Engineer 906-228-4226 ext 23 Therefore, since brevity is the soul of wit and tediousness the limbs and outward flourishes, I will be brief. - Polonius
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
participants (2)
-
Balazs Scheidler
-
Brian E. Seppanen