Package: syslog-ng
Version: 3.1.3-3
Severity: wishlist

So I was frustrated for a while by why "/var/log/messages", etc., all had
a timestamp of a few months ago (which is when I last installed or 
reconfigured Syslog-NG on this host).  The attached file does work;  I'm
pretty sure the problem was that I had a whole page of "log(...)" statements
with no "source(...)" option and no "catchall" flag.

If the start-script can prove by static analysis that it's impossible
for any messages to match and be written to any destination,  it should
print a warning,  not just start silently.  In fact,  a "log(...)" 
statement with no "source(...)" option and no "catchall" flag should
probably trigger a warning.

-- System Information:
Debian Release: 6.0.1
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages syslog-ng depends on:
ii  libc6                   2.11.2-10        Embedded GNU C Library: Shared lib
ii  libcap2                 1:2.19-3         support for getting/setting POSIX.
ii  libdbi0                 0.8.2-3          Database Independent Abstraction L
ii  libevtlog0              0.2.8~1-2        Syslog event logger library
ii  libglib2.0-0            2.24.2-1         The GLib library of C routines
ii  libnet1                 1.1.4-2          library for the construction and h
ii  libpcre3                8.02-1.1         Perl 5 Compatible Regular Expressi
ii  libssl0.9.8             0.9.8o-4squeeze1 SSL shared libraries
ii  libwrap0                7.6.q-19         Wietse Venema's TCP wrappers libra
ii  lsb-base                3.2-23.2squeeze1 Linux Standard Base 3.2 init scrip
ii  zlib1g                  1:1.2.3.4.dfsg-3 compression library - runtime

Versions of packages syslog-ng recommends:
ii  logrotate                     3.7.8-6    Log rotation utility

Versions of packages syslog-ng suggests:
pn  libdbd-mysql                  <none>     (no description available)
pn  libdbd-pgsql                  <none>     (no description available)
pn  libdbd-sqlite3                <none>     (no description available)

-- Configuration Files:
/etc/syslog-ng/syslog-ng.conf changed:
@version: 3.1
options { long_hostnames(off); flush_lines(0); 
          use_dns(persist_only); use_fqdn(no);
          owner("root"); group("adm"); perm(0640); 
          bad_hostname("^gconfd$"); mark_freq(1500); 
          stats_freq(42000); stats_level(1);
          time_reopen(155); 
};
source s_src { unix-dgram("/dev/log"); internal();
             file("/proc/kmsg" program_override("kernel"));
                udp( port(514) );
};
destination d_auth { file("/var/log/auth.log"); };
destination d_syslog { file("/var/log/syslog"); };
destination d_msg { file("/var/log/messages"); };
destination d_rootcon { usertty("root"); };
destination d_ttyXcon { file("/dev/tty10"); };
filter f_dbg { level(debug); };
filter f_auth { facility(auth, authpriv) and not filter(f_debug); };
filter f_crit { level(crit .. emerg); };
filter f_error { level(err .. emerg); };
filter f_messages { level(info,notice,warn); };
filter f_nonmessages { not level(info,notice,warn); };
log { source(s_src); filter(f_crit); destination(d_rootcon); };
log { source(s_src); filter(f_auth); destination(d_auth); 
                                     destination(d_ttyXcon); flags(final); };
log { source(s_src); filter(f_nonmessages); destination(d_syslog); };
log { source(s_src); filter(f_messages); destination(d_msg); };


-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to