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>>
You misspelled the FACILITY macro, so there's a null filename. On Tue, Jan 27, 2004 at 06:52:52PM -0500, Andrews, Glenn J (Glenn) wrote:
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>> _______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html
-- Nate "E-mail - When it absolutely, positively has to get lost at the speed of light." - Jerry Vuoso.
participants (2)
-
Andrews, Glenn J (Glenn)
-
Nate Campi