@version:3.2 # syslog-ng configuration file. # # This should behave pretty much like the original syslog on RedHat. But # it could be configured a lot smarter. # # See syslog-ng(8) and syslog-ng.conf(5) for more information. # #define syslog and portlog path. @define portlog "/var/log/portlog" @define syslog "/var/log/syslog" options { flush_lines (0); time_reopen (10); log_fifo_size (1000); long_hostnames (off); use_dns (no); use_fqdn (no); create_dirs (no); keep_hostname (yes); }; source s_sys { file ("/proc/kmsg" program_override("kernel: ")); unix-stream ("/dev/log"); internal(); # udp(ip(0.0.0.0) port(514)); }; #For SmartCS START source s_smartcs { udp(ip(0.0.0.0) port(514)); }; #For SmartCS END destination d_cons { file("/dev/console"); }; destination d_mesg { file("/var/log/messages"); }; destination d_auth { file("/var/log/secure"); }; destination d_mail { file("/var/log/maillog" flush_lines(10)); }; destination d_spol { file("/var/log/spooler"); }; destination d_boot { file("/var/log/boot.log"); }; destination d_cron { file("/var/log/cron"); }; destination d_kern { file("/var/log/kern"); }; destination d_mlal { usertty("*"); }; #For smartcs START destination d_smartcs1p { file("`portlog`/$HOST_FROM-tty1-port.log"); }; destination d_smartcs2p { file("`portlog`/$HOST_FROM-tty2-port.log"); }; destination d_smartcs3p { file("`portlog`/$HOST_FROM-tty3-port.log"); }; destination d_smartcs4p { file("`portlog`/$HOST_FROM-tty4-port.log"); }; destination d_smartcs5p { file("`portlog`/$HOST_FROM-tty5-port.log"); }; destination d_smartcs6p { file("`portlog`/$HOST_FROM-tty6-port.log"); }; destination d_smartcs7p { file("`portlog`/$HOST_FROM-tty7-port.log"); }; destination d_smartcs8p { file("`portlog`/$HOST_FROM-tty8-port.log"); }; destination d_smartcs9p { file("`portlog`/$HOST_FROM-tty9-port.log"); }; destination d_smartcs10p { file("`portlog`/$HOST_FROM-tty10-port.log"); }; destination d_smartcs11p { file("`portlog`/$HOST_FROM-tty11-port.log"); }; destination d_smartcs12p { file("`portlog`/$HOST_FROM-tty12-port.log"); }; destination d_smartcs13p { file("`portlog`/$HOST_FROM-tty13-port.log"); }; destination d_smartcs14p { file("`portlog`/$HOST_FROM-tty14-port.log"); }; destination d_smartcs15p { file("`portlog`/$HOST_FROM-tty15-port.log"); }; destination d_smartcs16p { file("`portlog`/$HOST_FROM-tty16-port.log"); }; destination d_smartcs17p { file("`portlog`/$HOST_FROM-tty17-port.log"); }; destination d_smartcs18p { file("`portlog`/$HOST_FROM-tty18-port.log"); }; destination d_smartcs19p { file("`portlog`/$HOST_FROM-tty19-port.log"); }; destination d_smartcs20p { file("`portlog`/$HOST_FROM-tty20-port.log"); }; destination d_smartcs21p { file("`portlog`/$HOST_FROM-tty21-port.log"); }; destination d_smartcs22p { file("`portlog`/$HOST_FROM-tty22-port.log"); }; destination d_smartcs23p { file("`portlog`/$HOST_FROM-tty23-port.log"); }; destination d_smartcs24p { file("`portlog`/$HOST_FROM-tty24-port.log"); }; destination d_smartcs25p { file("`portlog`/$HOST_FROM-tty25-port.log"); }; destination d_smartcs26p { file("`portlog`/$HOST_FROM-tty26-port.log"); }; destination d_smartcs27p { file("`portlog`/$HOST_FROM-tty27-port.log"); }; destination d_smartcs28p { file("`portlog`/$HOST_FROM-tty28-port.log"); }; destination d_smartcs29p { file("`portlog`/$HOST_FROM-tty29-port.log"); }; destination d_smartcs30p { file("`portlog`/$HOST_FROM-tty30-port.log"); }; destination d_smartcs31p { file("`portlog`/$HOST_FROM-tty31-port.log"); }; destination d_smartcs32p { file("`portlog`/$HOST_FROM-tty32-port.log"); }; destination d_smartcs33p { file("`portlog`/$HOST_FROM-tty33-port.log"); }; destination d_smartcs34p { file("`portlog`/$HOST_FROM-tty34-port.log"); }; destination d_smartcs35p { file("`portlog`/$HOST_FROM-tty35-port.log"); }; destination d_smartcs36p { file("`portlog`/$HOST_FROM-tty36-port.log"); }; destination d_smartcs37p { file("`portlog`/$HOST_FROM-tty37-port.log"); }; destination d_smartcs38p { file("`portlog`/$HOST_FROM-tty38-port.log"); }; destination d_smartcs39p { file("`portlog`/$HOST_FROM-tty39-port.log"); }; destination d_smartcs40p { file("`portlog`/$HOST_FROM-tty40-port.log"); }; destination d_smartcs41p { file("`portlog`/$HOST_FROM-tty41-port.log"); }; destination d_smartcs42p { file("`portlog`/$HOST_FROM-tty42-port.log"); }; destination d_smartcs43p { file("`portlog`/$HOST_FROM-tty43-port.log"); }; destination d_smartcs44p { file("`portlog`/$HOST_FROM-tty44-port.log"); }; destination d_smartcs45p { file("`portlog`/$HOST_FROM-tty45-port.log"); }; destination d_smartcs46p { file("`portlog`/$HOST_FROM-tty46-port.log"); }; destination d_smartcs47p { file("`portlog`/$HOST_FROM-tty47-port.log"); }; destination d_smartcs48p { file("`portlog`/$HOST_FROM-tty48-port.log"); }; destination d_smartcs { file("`syslog`/$HOST_FROM-sys.log" template("$DATE <$PRIORITY> $MSG\n")); }; #For smartcs END filter f_kernel { facility(kern); }; filter f_default { level(info..emerg) and not (facility(mail) or facility(authpriv) or facility(cron)); }; filter f_auth { facility(authpriv); }; filter f_mail { facility(mail); }; filter f_emergency { level(emerg); }; filter f_news { facility(uucp) or (facility(news) and level(crit..emerg)); }; filter f_boot { facility(local7); }; filter f_cron { facility(cron); }; #For smartcs START filter f_portlog { facility(local0); }; filter f_syslog { not facility(local0); }; filter f_tty1 { message("TTY01"); }; filter f_tty2 { message("TTY02"); }; filter f_tty3 { message("TTY03"); }; filter f_tty4 { message("TTY04"); }; filter f_tty5 { message("TTY05"); }; filter f_tty6 { message("TTY06"); }; filter f_tty7 { message("TTY07"); }; filter f_tty8 { message("TTY08"); }; filter f_tty9 { message("TTY09"); }; filter f_tty10 { message("TTY10"); }; filter f_tty11 { message("TTY11"); }; filter f_tty12 { message("TTY12"); }; filter f_tty13 { message("TTY13"); }; filter f_tty14 { message("TTY14"); }; filter f_tty15 { message("TTY15"); }; filter f_tty16 { message("TTY16"); }; filter f_tty17 { message("TTY17"); }; filter f_tty18 { message("TTY18"); }; filter f_tty19 { message("TTY19"); }; filter f_tty20 { message("TTY20"); }; filter f_tty21 { message("TTY21"); }; filter f_tty22 { message("TTY22"); }; filter f_tty23 { message("TTY23"); }; filter f_tty24 { message("TTY24"); }; filter f_tty25 { message("TTY25"); }; filter f_tty26 { message("TTY26"); }; filter f_tty27 { message("TTY27"); }; filter f_tty28 { message("TTY28"); }; filter f_tty29 { message("TTY29"); }; filter f_tty30 { message("TTY30"); }; filter f_tty31 { message("TTY31"); }; filter f_tty32 { message("TTY32"); }; filter f_tty33 { message("TTY33"); }; filter f_tty34 { message("TTY34"); }; filter f_tty35 { message("TTY35"); }; filter f_tty36 { message("TTY36"); }; filter f_tty37 { message("TTY37"); }; filter f_tty38 { message("TTY38"); }; filter f_tty39 { message("TTY39"); }; filter f_tty40 { message("TTY40"); }; filter f_tty41 { message("TTY41"); }; filter f_tty42 { message("TTY42"); }; filter f_tty43 { message("TTY43"); }; filter f_tty44 { message("TTY44"); }; filter f_tty45 { message("TTY45"); }; filter f_tty46 { message("TTY46"); }; filter f_tty47 { message("TTY47"); }; filter f_tty48 { message("TTY48"); }; #For smartcs END #log { source(s_sys); filter(f_kernel); destination(d_cons); }; log { source(s_sys); filter(f_kernel); destination(d_kern); }; log { source(s_sys); filter(f_default); destination(d_mesg); }; log { source(s_sys); filter(f_auth); destination(d_auth); }; log { source(s_sys); filter(f_mail); destination(d_mail); }; log { source(s_sys); filter(f_emergency); destination(d_mlal); }; log { source(s_sys); filter(f_news); destination(d_spol); }; log { source(s_sys); filter(f_boot); destination(d_boot); }; log { source(s_sys); filter(f_cron); destination(d_cron); }; #For smartcs START log { source(s_smartcs); filter(f_portlog); filter(f_tty1); destination(d_smartcs1p); }; log { source(s_smartcs); filter(f_portlog); filter(f_tty2); destination(d_smartcs2p); }; log { source(s_smartcs); filter(f_portlog); filter(f_tty3); destination(d_smartcs3p); }; log { source(s_smartcs); filter(f_portlog); filter(f_tty4); destination(d_smartcs4p); }; log { source(s_smartcs); filter(f_portlog); filter(f_tty5); destination(d_smartcs5p); }; log { source(s_smartcs); filter(f_portlog); filter(f_tty6); destination(d_smartcs6p); }; log { source(s_smartcs); filter(f_portlog); filter(f_tty7); destination(d_smartcs7p); }; log { source(s_smartcs); filter(f_portlog); filter(f_tty8); destination(d_smartcs8p); }; log { source(s_smartcs); filter(f_portlog); filter(f_tty9); destination(d_smartcs9p); }; log { source(s_smartcs); filter(f_portlog); filter(f_tty10); destination(d_smartcs10p); }; log { source(s_smartcs); filter(f_portlog); filter(f_tty11); destination(d_smartcs11p); }; log { source(s_smartcs); filter(f_portlog); filter(f_tty12); destination(d_smartcs12p); }; log { source(s_smartcs); filter(f_portlog); filter(f_tty13); destination(d_smartcs13p); }; log { source(s_smartcs); filter(f_portlog); filter(f_tty14); destination(d_smartcs14p); }; log { source(s_smartcs); filter(f_portlog); filter(f_tty15); destination(d_smartcs15p); }; log { source(s_smartcs); filter(f_portlog); filter(f_tty16); destination(d_smartcs16p); }; log { source(s_smartcs); filter(f_portlog); filter(f_tty17); destination(d_smartcs17p); }; log { source(s_smartcs); filter(f_portlog); filter(f_tty18); destination(d_smartcs18p); }; log { source(s_smartcs); filter(f_portlog); filter(f_tty19); destination(d_smartcs19p); }; log { source(s_smartcs); filter(f_portlog); filter(f_tty20); destination(d_smartcs20p); }; log { source(s_smartcs); filter(f_portlog); filter(f_tty21); destination(d_smartcs21p); }; log { source(s_smartcs); filter(f_portlog); filter(f_tty22); destination(d_smartcs22p); }; log { source(s_smartcs); filter(f_portlog); filter(f_tty23); destination(d_smartcs23p); }; log { source(s_smartcs); filter(f_portlog); filter(f_tty24); destination(d_smartcs24p); }; log { source(s_smartcs); filter(f_portlog); filter(f_tty25); destination(d_smartcs25p); }; log { source(s_smartcs); filter(f_portlog); filter(f_tty26); destination(d_smartcs26p); }; log { source(s_smartcs); filter(f_portlog); filter(f_tty27); destination(d_smartcs27p); }; log { source(s_smartcs); filter(f_portlog); filter(f_tty28); destination(d_smartcs28p); }; log { source(s_smartcs); filter(f_portlog); filter(f_tty29); destination(d_smartcs29p); }; log { source(s_smartcs); filter(f_portlog); filter(f_tty30); destination(d_smartcs30p); }; log { source(s_smartcs); filter(f_portlog); filter(f_tty31); destination(d_smartcs31p); }; log { source(s_smartcs); filter(f_portlog); filter(f_tty32); destination(d_smartcs32p); }; log { source(s_smartcs); filter(f_portlog); filter(f_tty33); destination(d_smartcs33p); }; log { source(s_smartcs); filter(f_portlog); filter(f_tty34); destination(d_smartcs34p); }; log { source(s_smartcs); filter(f_portlog); filter(f_tty35); destination(d_smartcs35p); }; log { source(s_smartcs); filter(f_portlog); filter(f_tty36); destination(d_smartcs36p); }; log { source(s_smartcs); filter(f_portlog); filter(f_tty37); destination(d_smartcs37p); }; log { source(s_smartcs); filter(f_portlog); filter(f_tty38); destination(d_smartcs38p); }; log { source(s_smartcs); filter(f_portlog); filter(f_tty39); destination(d_smartcs39p); }; log { source(s_smartcs); filter(f_portlog); filter(f_tty40); destination(d_smartcs40p); }; log { source(s_smartcs); filter(f_portlog); filter(f_tty41); destination(d_smartcs41p); }; log { source(s_smartcs); filter(f_portlog); filter(f_tty42); destination(d_smartcs42p); }; log { source(s_smartcs); filter(f_portlog); filter(f_tty43); destination(d_smartcs43p); }; log { source(s_smartcs); filter(f_portlog); filter(f_tty44); destination(d_smartcs44p); }; log { source(s_smartcs); filter(f_portlog); filter(f_tty45); destination(d_smartcs45p); }; log { source(s_smartcs); filter(f_portlog); filter(f_tty46); destination(d_smartcs46p); }; log { source(s_smartcs); filter(f_portlog); filter(f_tty47); destination(d_smartcs47p); }; log { source(s_smartcs); filter(f_portlog); filter(f_tty48); destination(d_smartcs48p); }; log { source(s_smartcs); filter(f_syslog); destination(d_smartcs); }; #For smartcs END # vim:ft=syslog-ng:ai:si:ts=4:sw=4:et: