Tryag File Manager
Home
-
Turbo Force
Current Path :
/
proc
/
self
/
root
/
etc
/
syslog-ng
/
Upload File :
New :
File
Dir
//proc/self/root/etc/syslog-ng/syslog-ng.conf
# Local sources, filters and destinations are commented out # If you want to replace sysklogd simply uncomment the following # parts and disable sysklogd # General good-idea options. options { log_fifo_size(1000); log_msg_size(4096); use_dns(no); keep_hostname(yes); sync(0); long_hostnames(off); use_fqdn(no); create_dirs(yes); }; # Messages internal to syslog-ng source s_internal { internal(); }; # Standard Syslog Input & Kernel messages source s_local { file("/proc/kmsg" log_prefix("kernel: ")); unix-dgram("/dev/log"); }; # # Local filters # filter f_messages { level(info..emerg); }; filter f_secure { facility(authpriv); }; filter f_maillog { facility(mail); }; filter f_cron { facility(cron); }; filter f_emerg { level(emerg); }; filter f_spooler { level(crit..emerg) and facility(uucp, news); }; filter f_local7 { facility(local7); }; filter f_firewall { match('UDPWATCH'); }; filter f_outputdrop { match('IPTABLESOUTPUTDROPPED'); }; # # Local destinations # destination d_messages { file("/var/log/messages"); }; destination d_secure { file("/var/log/secure"); }; destination d_maillog { file("/var/log/maillog"); }; destination d_cron { file("/var/log/cron"); }; destination d_console { usertty("root"); }; destination d_spooler { file("/var/log/spooler"); }; destination d_bootlog { file("/var/log/boot.log"); }; destination d_syslognglog { file("/var/log/syslog-ng.log"); }; destination d_firewall { file("/var/log/iptables_udp.log"); }; destination d_outputdrop { file("/var/log/iptables_output_block.log"); }; # Remote Destinations destination d_transfer { udp("jax4ldpstats1a"); }; destination d_error { udp("jax4ldpstats1a"); }; # Remote Filters filter f_transfer { facility(local6); }; filter f_error { facility(local4); }; # Send apache logs off to the remote system. log { source(s_local); filter(f_transfer); destination(d_transfer); flags(final); }; log { source(s_local); filter(f_error); destination(d_error); flags(final); }; # # Local logs - order DOES matter ! # log { source(s_local); filter(f_emerg); destination(d_console); }; log { source(s_local); filter(f_secure); destination(d_secure); }; log { source(s_local); filter(f_maillog); destination(d_maillog); flags(final); }; log { source(s_local); filter(f_cron); destination(d_cron); flags(final); }; log { source(s_local); filter(f_spooler); destination(d_spooler); }; log { source(s_local); filter(f_local7); destination(d_bootlog); }; log { source(s_local); filter(f_firewall); destination(d_firewall); }; log { source(s_local); filter(f_outputdrop); destination(d_outputdrop); }; log { source(s_local); filter(f_messages); destination(d_messages); }; log { source(s_internal); destination(d_syslognglog); }; # TODO - Configuration for external operations syslog-ng # collecto# TODO - Configuration for external operations syslog-ng # collector. destination remote { udp("10.40.16.40"); }; log { source(s_local); filter(f_secure); destination(remote); flags(final); };