[syslog-ng]Newbie question

Vilmos Branyik syslog-ng@lists.balabit.hu
Fri, 7 Mar 2003 20:31:12 -0700


Hello,

I'm setting up syslog-ng for the first time. I used the Central Loghost
Mini-HOWTO.

I followed the instructions step by step but there are no local messages
being logged to the system. I haven't tried remote logging yet.

I have posted my config file below this message. If someone could point out
my error, I would appreciate it.

I'm using:

syslog-ng 1.4.15
RedHat 7.2

Thanks for any help you can give me.


Vilmos

***** Configuration file *****

options { sync (3);
          log_fifo_size (300);
          long_hostnames (off);
          use_dns (yes);
          use_fqdn (yes);
          keep_hostname (yes);
        };

source src { unix-stream("/dev/log"); internal(); };
source remote { tcp(ip("127.0.0.1") port(514) keep-alive(yes)); };

source src { unix-stream("/dev/log"); internal(); };

destination lpr { file("/var/log/lpr.log"); };
destination mail { file("/var/log/mail.log"); };

destination messages { file("/var/log/messages"); };

destination console_all { file("/dev/tty8"); };

filter f_lpr { facility(lpr); };
filter f_mail { facility(mail); };
filter f_messages { level(info.emerg) and not facility(mail,lpr); };
filter f_emergency { level(emerg); };

log { source(src); filter(f_lpr); destination(lpr); };
log { source(src); filter(f_mail); destination(maillog); };
log { source(src); filter(f_messages); destination(messages); };
log { source(src); filter(f_emergency); destination(console); };

destination hosts { file("/var/log/HOSTS/$HOST/$FACILITY" owner(root)
group(root) perm(0600) dir_perm(0700) create_dirs(yes)); };

log { source(remote); destination(hosts); };