[syslog-ng] create_dirs in 1.3.15

Balazs Scheidler bazsi@balabit.hu
Fri, 18 Feb 2000 09:28:52 +0100


On Thu, Feb 17, 2000 at 03:24:16PM -0800, Chris Scheller wrote:
> I can't seem to get create_dirs to work. When i add it to my options and
> add a destination such as
> destination test { file("/var/log/syslog-ng/$HOST/$FACILITY"); };
> not only does it not create the directories or the files, but syslog-ng
> stops logging everything all together. Any thoughts? did i miss something
> in the conf? 

you'll need to enable the create_dirs option either per destination, or a
global basis like this:

destination test { file("/var/log/syslog-ng/$HOST/$FACILITY" create_dirs(yes)); };

I'll check why it stops logging.

-- 
Bazsi
PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1
     url: http://www.balabit.hu/pgpkey.txt