[Gllug] netfilter logging
Alain Williams
addw at phcomp.co.uk
Sat Sep 17 00:17:00 UTC 2005
On Sat, Sep 17, 2005 at 12:11:16AM +0100, Tethys wrote:
>
> Alain Williams writes:
>
> >The syslog stuff is based on a 25 year old Unix model ... things have now
> >moved on, it needs to be redone completely.
>
> I'm not sure I agree with that. Things are certainly different now than
> they were 25 years ago, but not always for the better. In today's world,
> syslog would probably be implemented with XML or something else equally
> unsuited to the task.
I would expect to XML coming out of the M$ kernel/..., but I don't think
that Linus has the bad taste to do that :-)
> Syslog certainly has its problems, and they need addressing. But I'm just
> uncomfortable with this attitude that because something's been around for
> a while, it needs reimplementing completely from scratch, rather than just
> taking what you've already got and fixing the deficiencies.
One big gripe for me is that the log facility codes haven't changed in years, not many
use uucp any more ... this list (below) needs to be redone (completely or otherwise):
#define LOG_KERN (0<<3) /* kernel messages */
#define LOG_USER (1<<3) /* random user-level messages */
#define LOG_MAIL (2<<3) /* mail system */
#define LOG_DAEMON (3<<3) /* system daemons */
#define LOG_AUTH (4<<3) /* security/authorization messages */
#define LOG_SYSLOG (5<<3) /* messages generated internally by syslogd */
#define LOG_LPR (6<<3) /* line printer subsystem */
#define LOG_NEWS (7<<3) /* network news subsystem */
#define LOG_UUCP (8<<3) /* UUCP subsystem */
#define LOG_CRON (9<<3) /* clock daemon */
#define LOG_AUTHPRIV (10<<3) /* security/authorization messages (private) */
#define LOG_FTP (11<<3) /* ftp daemon */
/* other codes through 15 reserved for system use */
#define LOG_LOCAL0 (16<<3) /* reserved for local use */
#define LOG_LOCAL1 (17<<3) /* reserved for local use */
#define LOG_LOCAL2 (18<<3) /* reserved for local use */
#define LOG_LOCAL3 (19<<3) /* reserved for local use */
#define LOG_LOCAL4 (20<<3) /* reserved for local use */
#define LOG_LOCAL5 (21<<3) /* reserved for local use */
#define LOG_LOCAL6 (22<<3) /* reserved for local use */
#define LOG_LOCAL7 (23<<3) /* reserved for local use */
--
Alain Williams
Parliament Hill Computers Ltd.
Linux Consultant - Mail systems, Web sites, Networking, Programmer, IT Lecturer.
+44 (0) 787 668 0256 http://www.phcomp.co.uk/
#include <std_disclaimer.h>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20050917/0306beb4/attachment.pgp>
-------------- next part --------------
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list