[syslog-ng] file permissions

Andrews, Glenn J (Glenn) syslog-ng@lists.balabit.hu
Tue, 27 Jan 2004 18:52:52 -0500


	Now for some reason I am getting these messages in /var/log/syslog
Jan 27 18:31:34 ma106068-nm01 syslog-ng[2603]: Cannot open file /var/log/HOSTS/10.140.20.12/20040127/ for writing (Is a directory)

I have deleted the entire tree from HOSTS on down and killed and
restarted syslog-ng.   But I still get this error.


This is my destination line in syslog-ng.conf
destination hosts { file("/var/log/HOSTS/$HOST/$YEAR$MONTH$DAY/$FACILTY" owner(root) group(root) perm(0600) dir_perm(0700) create_dirs(yes)); }; 

and options...

options { sync (0);
          perm (0644);
          time_reopen (10);
          log_fifo_size (1000);
          long_hostnames (off);
          use_dns (no);
          use_fqdn (no);
          create_dirs (no);
          keep_hostname (no);
        };

Glenn Andrews
N.E. Premise Operations
Data / Voice Networking Services
gjandrews@lucent.com <<mailto:gjandrews@lucent.com>>