[syslog-ng]help w/config script

Arthur Abrego aabrego@onebox.com
Wed, 24 Jan 2001 12:24:32 -0800


I am trying to compile the following script on a Solaris Machine running
Solaris 7...I'm using Syslog-ng 1.4.10....I keep getting an error message
that reads unexpected token on the options line...which I do not understand
since I just copied the 1st part of the script from the default script
included with Syslog-ng...

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

source s_sys { sun-streams ("/dev/log" door("/etc/.syslog_door")); internal();
};

source s_net { tcp (ip(116.214.36.59) port(514)); };

destination d_kern   { file("/var/log/syslog"); };
destination d_auth   { file("/var/log/syslog"); };
destination d_user   { file("/var/log/syslog"): };
destination d_daemon { file("/var/log/syslog"); };
destination d_cons   { file("/dev/console")   ; };
destination d_mesg   { file("/var/adm/messages"); };
destination d_cron   { file("/var/log/varlog"); };
destination d_local  { file("/var/log"); };
destination d_mlop   { usertty("operator"); };
destination d_mlrt   { usertty("root"); };
destination d_mlal   { usertty("*"); };
destination d_midget { tcp("216.141.36.59" port(514)); };

filter f_filter1   { level(emerg) or level(alert) or level(crit) or level(err)or

                     (level(debug) or level(warning) or level(info))
};

filter f_filter2   { level(emerg) or  level(alert) or level(warning)
                     or (level(err) or  level(crit)); };

filter f_filter3   { level(emerg) or  level(alert) or level(warning)
                     or (level(err) or  level(crit) or level(debug));
};

filter f_filter4   { level(alert); };
filter f_filter5   { level(emerg); };
filter f_filter6   { facility(kern) and level(notice); };
filter f_filter7   { facility(mail) and level(debug); };
filter f_filter8   { facility(user) and level(err); };
filter f_filter9   { facility(user) and level(alert); };

log { source(s_sys); filter(f_filter1); destination(d_kern); };
log { source(s_sys); filter(f_filter2); destination(d_auth); };
log { source(s_sys); filter(f_filter3); destination(d_daemon);};
log { source(s_sys); filter(f_filter4); destination(d_daemon);};
log { source(s_sys); filter(f_filter5); destination(d_daemon);};
log { source(s_sys); filter(f_filter6); destination(d_daemon);};
log { source(s_sys); filter(f_filter7); destination(d_daemon);};
log { source(s_sys); filter(f_filter8); destination(d_daemon);};
log { source(s_sys); filter(f_filter9); destination(d_daemon);};
log { source(s_sys); filter (DEFAULT); destination(d_midget); };




-- 
Arthur Abrego
aabrego@onebox.com - email
(512) 682-6934 x5113 - voicemail/fax



__________________________________________________
FREE voicemail, email, and fax...all in one place.
Sign Up Now! http://www.onebox.com