From syslog-ng@lists.balabit.hu Mon Aug 4 20:56:16 2003 From: syslog-ng@lists.balabit.hu (Weidner, Erich) Date: Mon, 4 Aug 2003 13:56:16 -0600 Subject: [syslog-ng]Redhat 7.2, syslog-ng 1.6 and logger, and no logging Message-ID: <9FFA124CE374D611A3040002A5FBC5258BDC17@cibermail4.ciber.com> This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C35AC2.76DC7320 Content-Type: text/plain I'm unable to get messages into /var/log/messages with logger. I've compiled and installed syslog-ng 1.6rc3, I've the following config. (modified the contrib/syslong-ng.conf.Redhat) config file. Relavent lies of it are: source s_sys { pipe ("proc/kmsg" log_prefix"kernel: ")); unix-dgram ("/dev/log"); internal(); }; filter f_fileter2 { level(info .. emerg) and not (facility(mail) or facility(authpriv) or facility(cron)); }; log { source(s_sys); filter(f_filter2); destination(d_mesg); }; I've tried the following: logger -p daemon.crit "Testing, Hello?" and various others such as user.crit user.warn, etc. Nothing. Syslog-ng does however log the fact that it starts and stops (at least after I edited the default filter to be (info .. emerg) instead of just (info) I also see a few entries for STATS: dropped 0. Help! -Erich ------_=_NextPart_001_01C35AC2.76DC7320 Content-Type: text/html Content-Transfer-Encoding: quoted-printable Redhat 7.2, syslog-ng 1.6 and logger, and no logging

I'm unable to get messages into /var/log/messages = with logger.

I've compiled and installed syslog-ng 1.6rc3,

I've the following config. (modified the = contrib/syslong-ng.conf.Redhat) config file.

Relavent lies of it are:

source s_sys { pipe ("proc/kmsg" = log_prefix"kernel: ")); unix-dgram ("/dev/log"); = internal(); };

filter f_fileter2 { level(info .. emerg) and not = (facility(mail) or facility(authpriv) or facility(cron)); };

log { source(s_sys); filter(f_filter2); = destination(d_mesg); };


I've tried the following: logger -p daemon.crit = "Testing, Hello?"
and various others such as user.crit user.warn, etc. = Nothing.
Syslog-ng does however log the fact that it starts = and stops (at least after I edited the default filter to be (info .. = emerg) instead of just (info)

I also see a few entries for STATS: dropped 0.

Help!

-Erich

------_=_NextPart_001_01C35AC2.76DC7320-- From syslog-ng@lists.balabit.hu Mon Aug 4 21:04:26 2003 From: syslog-ng@lists.balabit.hu (Hamilton Andrew) Date: Mon, 4 Aug 2003 16:04:26 -0400 Subject: [syslog-ng]Redhat 7.2, syslog-ng 1.6 and logger, and no loggi ng Message-ID: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C35AC3.9AF41A31 Content-Type: text/plain; charset="iso-8859-1" It may be a typo on the message but your filter line says f_fileter2 and your log line says f_filter2. Could this be your problem? Regards -----Original Message----- From: Weidner, Erich [mailto:eweidner@ciber.com] Sent: Monday, August 04, 2003 3:56 PM To: 'syslog-ng@lists.balabit.hu' Subject: [syslog-ng]Redhat 7.2, syslog-ng 1.6 and logger, and no logging I'm unable to get messages into /var/log/messages with logger. I've compiled and installed syslog-ng 1.6rc3, I've the following config. (modified the contrib/syslong-ng.conf.Redhat) config file. Relavent lies of it are: source s_sys { pipe ("proc/kmsg" log_prefix"kernel: ")); unix-dgram ("/dev/log"); internal(); }; filter f_fileter2 { level(info .. emerg) and not (facility(mail) or facility(authpriv) or facility(cron)); }; log { source(s_sys); filter(f_filter2); destination(d_mesg); }; I've tried the following: logger -p daemon.crit "Testing, Hello?" and various others such as user.crit user.warn, etc. Nothing. Syslog-ng does however log the fact that it starts and stops (at least after I edited the default filter to be (info .. emerg) instead of just (info) I also see a few entries for STATS: dropped 0. Help! -Erich ------_=_NextPart_001_01C35AC3.9AF41A31 Content-Type: text/html; charset="iso-8859-1" Redhat 7.2, syslog-ng 1.6 and logger, and no logging
It may be a typo on the message but your filter line says f_fileter2 and your log line says f_filter2.  Could this be your problem?
 
Regards
-----Original Message-----
From: Weidner, Erich [mailto:eweidner@ciber.com]
Sent: Monday, August 04, 2003 3:56 PM
To: 'syslog-ng@lists.balabit.hu'
Subject: [syslog-ng]Redhat 7.2, syslog-ng 1.6 and logger, and no logging

I'm unable to get messages into /var/log/messages with logger.

I've compiled and installed syslog-ng 1.6rc3,

I've the following config. (modified the contrib/syslong-ng.conf.Redhat) config file.

Relavent lies of it are:

source s_sys { pipe ("proc/kmsg" log_prefix"kernel: ")); unix-dgram ("/dev/log"); internal(); };

filter f_fileter2 { level(info .. emerg) and not (facility(mail) or facility(authpriv) or facility(cron)); };

log { source(s_sys); filter(f_filter2); destination(d_mesg); };


I've tried the following: logger -p daemon.crit "Testing, Hello?"
and various others such as user.crit user.warn, etc. Nothing.
Syslog-ng does however log the fact that it starts and stops (at least after I edited the default filter to be (info .. emerg) instead of just (info)

I also see a few entries for STATS: dropped 0.

Help!

-Erich

------_=_NextPart_001_01C35AC3.9AF41A31-- From syslog-ng@lists.balabit.hu Mon Aug 4 21:29:30 2003 From: syslog-ng@lists.balabit.hu (Weidner, Erich) Date: Mon, 4 Aug 2003 14:29:30 -0600 Subject: [syslog-ng]Redhat 7.2, syslog-ng 1.6 and logger, and no loggi ng Message-ID: <9FFA124CE374D611A3040002A5FBC5258BDC18@cibermail4.ciber.com> This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C35AC7.1BB8E640 Content-Type: text/plain; charset="iso-8859-1" Just a typo, I can't seem to paste into cxoffice running IE (outlook web ). But I'm getting farther. In spite of the fact that "which syslog-ng" returned /usr/local/sbin/syslog-ng" which when I executed with "-V" reported as version 6rc3, I just noticed the start stop entries in the log file was still version stamped 1.5(somthing). Somehow the redhat init script is calling the wrong one, but I deleted the old one from whereever else it was, then I found that it was failing to start due to looking for it's config file in /usr/local/etc/sysconfig-ng/ not in /etc/sysconfig-ng/ I found the switch for the configure file reconfigured and recompiled and now it's working! The man page indicates that w/o the -f param it looks in /etc/syslog-ng, but if that was the intent, shouldn't hte configure script be changed to actually reflect this? Anyway thanks for the help! -Erich -----Original Message----- From: Hamilton Andrew To: syslog-ng@lists.balabit.hu Sent: 8/4/03 2:04 PM Subject: RE: [syslog-ng]Redhat 7.2, syslog-ng 1.6 and logger, and no logging It may be a typo on the message but your filter line says f_fileter2 and your log line says f_filter2. Could this be your problem? Regards -----Original Message----- From: Weidner, Erich [mailto:eweidner@ciber.com] Sent: Monday, August 04, 2003 3:56 PM To: 'syslog-ng@lists.balabit.hu' Subject: [syslog-ng]Redhat 7.2, syslog-ng 1.6 and logger, and no logging I'm unable to get messages into /var/log/messages with logger. I've compiled and installed syslog-ng 1.6rc3, I've the following config. (modified the contrib/syslong-ng.conf.Redhat) config file. Relavent lies of it are: source s_sys { pipe ("proc/kmsg" log_prefix"kernel: ")); unix-dgram ("/dev/log"); internal(); }; filter f_fileter2 { level(info .. emerg) and not (facility(mail) or facility(authpriv) or facility(cron)); }; log { source(s_sys); filter(f_filter2); destination(d_mesg); }; I've tried the following: logger -p daemon.crit "Testing, Hello?" and various others such as user.crit user.warn, etc. Nothing. Syslog-ng does however log the fact that it starts and stops (at least after I edited the default filter to be (info .. emerg) instead of just (info) I also see a few entries for STATS: dropped 0. Help! -Erich ------_=_NextPart_001_01C35AC7.1BB8E640 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable RE: [syslog-ng]Redhat 7.2, syslog-ng 1.6 and logger, and no = logging

Just a typo, I can't seem to paste into cxoffice = running IE (outlook web <sigh>).

But I'm getting farther.

In spite of the fact that "which syslog-ng" = returned /usr/local/sbin/syslog-ng" which when I executed with = "-V" reported as version 6rc3, I just noticed the start stop = entries in the log file was still version stamped = 1.5(somthing).

Somehow the redhat init script is calling the wrong = one, but I deleted the old one from whereever else it was, then I found = that it was failing to start due to looking for it's config file in = /usr/local/etc/sysconfig-ng/ not in /etc/sysconfig-ng/  I found = the switch for the configure file reconfigured and recompiled and now = it's working!

The man page indicates that w/o the -f param it looks = in /etc/syslog-ng, but if that was the intent, shouldn't hte configure = script be changed to actually reflect this?

Anyway thanks for the help!

-Erich

-----Original Message-----
From: Hamilton Andrew
To: syslog-ng@lists.balabit.hu
Sent: 8/4/03 2:04 PM
Subject: RE: [syslog-ng]Redhat 7.2, syslog-ng 1.6 = and logger, and no logging

It may be a typo on the message but your filter line = says f_fileter2 and
your log line says f_filter2.  Could this be = your problem?
 
Regards

-----Original Message-----
From: Weidner, Erich [mailto:eweidner@ciber.com]=
Sent: Monday, August 04, 2003 3:56 PM
To: 'syslog-ng@lists.balabit.hu'
Subject: [syslog-ng]Redhat 7.2, syslog-ng 1.6 and = logger, and no logging



I'm unable to get messages into /var/log/messages = with logger.

I've compiled and installed syslog-ng 1.6rc3,

I've the following config. (modified the = contrib/syslong-ng.conf.Redhat)
config file.

Relavent lies of it are:

source s_sys { pipe ("proc/kmsg" = log_prefix"kernel: ")); unix-dgram
("/dev/log"); internal(); };

filter f_fileter2 { level(info .. emerg) and not = (facility(mail) or
facility(authpriv) or facility(cron)); };

log { source(s_sys); filter(f_filter2); = destination(d_mesg); };


I've tried the following: logger -p daemon.crit = "Testing, Hello?"
and various others such as user.crit user.warn, etc. = Nothing.
Syslog-ng does however log the fact that it starts = and stops (at least
after I edited the default filter to be (info .. = emerg) instead of just
(info)

I also see a few entries for STATS: dropped 0. =

Help!

-Erich

------_=_NextPart_001_01C35AC7.1BB8E640-- From syslog-ng@lists.balabit.hu Thu Aug 7 11:13:16 2003 From: syslog-ng@lists.balabit.hu (Clemson, Chris) Date: Thu, 7 Aug 2003 11:13:16 +0100 Subject: [syslog-ng]2 quick (i hope!) libol questions Message-ID: I'm just about to upgrade to syslog-ng to try and see if it stops the problem with dropping stats that we are having at the moment. in the docs it mentions that i need libol 0.3.x, which i am about to compile. however, searching on my system, i cant see any version of libol, even though v1.2 of syslog-ng seems to need 0.2.8. My questions are, what does libol actually do, and why wouldn't my machine already have a copy of it somewhere? thanks! chris -- The content of this e-mail is confidential, may contain privileged material and is intended solely for the recipient(s) named above. If you receive this in error, please notify Software AG immediately and delete this e-mail. Software AG (UK) Limited Registered in England & Wales 1310740 Registered Office: Hudson House, Hudson Way, Pride Park, Derby DE24 8HS From syslog-ng@lists.balabit.hu Thu Aug 7 11:19:27 2003 From: syslog-ng@lists.balabit.hu (Balazs Scheidler) Date: Thu, 7 Aug 2003 12:19:27 +0200 Subject: [syslog-ng]2 quick (i hope!) libol questions In-Reply-To: References: Message-ID: <20030807101927.GB29222@balabit.hu> On Thu, Aug 07, 2003 at 11:13:16AM +0100, Clemson, Chris wrote: > I'm just about to upgrade to syslog-ng to try and see if it stops the > problem with dropping stats that we are having at the moment. > > in the docs it mentions that i need libol 0.3.x, which i am about to > compile. > however, searching on my system, i cant see any version of libol, even > though v1.2 of syslog-ng seems to need 0.2.8. > > My questions are, what does libol actually do, and why wouldn't my machine > already have a copy of it somewhere? libol is compiled into syslog-ng statically (by default), therefore there's no shared lib in the system. -- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1 From syslog-ng@lists.balabit.hu Thu Aug 7 11:33:55 2003 From: syslog-ng@lists.balabit.hu (Clemson, Chris) Date: Thu, 7 Aug 2003 11:33:55 +0100 Subject: [syslog-ng]2 quick (i hope!) libol questions Message-ID: ah, ok, thanks! > -----Original Message----- > From: Balazs Scheidler [mailto:bazsi@balabit.hu] > Sent: 07 August 2003 11:19 > To: syslog-ng@lists.balabit.hu > Subject: Re: [syslog-ng]2 quick (i hope!) libol questions > > > On Thu, Aug 07, 2003 at 11:13:16AM +0100, Clemson, Chris wrote: > > I'm just about to upgrade to syslog-ng to try and see if it > stops the > > problem with dropping stats that we are having at the moment. > > > > in the docs it mentions that i need libol 0.3.x, which i am about to > > compile. > > however, searching on my system, i cant see any version of > libol, even > > though v1.2 of syslog-ng seems to need 0.2.8. > > > > My questions are, what does libol actually do, and why > wouldn't my machine > > already have a copy of it somewhere? > > libol is compiled into syslog-ng statically (by default), > therefore there's > no shared lib in the system. > > -- > Bazsi > PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD > 804E C82C 8EB1 > _______________________________________________ > syslog-ng maillist - syslog-ng@lists.balabit.hu > https://lists.balabit.hu/mailman/listinfo/syslog-ng > Frequently asked questions at http://www.campin.net/syslog-ng/faq.html > -- The content of this e-mail is confidential, may contain privileged material and is intended solely for the recipient(s) named above. If you receive this in error, please notify Software AG immediately and delete this e-mail. Software AG (UK) Limited Registered in England & Wales 1310740 Registered Office: Hudson House, Hudson Way, Pride Park, Derby DE24 8HS From syslog-ng@lists.balabit.hu Thu Aug 7 22:10:26 2003 From: syslog-ng@lists.balabit.hu (Chris Robertson) Date: Thu, 7 Aug 2003 14:10:26 -0700 Subject: [syslog-ng]Program destination never executes Message-ID: I hoping that someone can point out what I'm doing wrong here. I have the following configuration in my syslog-ng.conf file but the program referenced in d_mysql_prog is never executed (I've tried a simple version that just outputs to a file as well). Note the file gets all the messages properly and I've cut out the non-relevant sections of the config. source src { pipe("/proc/kmsg"); unix-stream("/dev/log"); internal(); }; source net { udp(ip("0.0.0.0") port(514)); }; destination d_file { file ("/tmp/syslog"); }; destination d_mysql_prog { program ("/root/syslog2.pl"); }; log { source(net);destination(d_mysql_prog); }; log { source(src);destination(d_mysql_prog); }; log { source(src);destination(d_file); }; log { source(net);destination(d_file); }; Thanks, Chris From syslog-ng@lists.balabit.hu Thu Aug 7 23:33:20 2003 From: syslog-ng@lists.balabit.hu (Nate Campi) Date: Thu, 7 Aug 2003 15:33:20 -0700 Subject: [syslog-ng]Program destination never executes In-Reply-To: References: Message-ID: <20030807223320.GG1336@campin.net> On Thu, Aug 07, 2003 at 02:10:26PM -0700, Chris Robertson wrote: > I hoping that someone can point out what I'm doing wrong here. I have the > following configuration in my syslog-ng.conf file but the program referenced > in d_mysql_prog is never executed (I've tried a simple version that just > outputs to a file as well). Note the file gets all the messages properly > and I've cut out the non-relevant sections of the config. I don't see anything wrong here, I'd make sure the script isn't just dying as soon as it starts. -- Nate Windows is the answer, but only if the question was 'what is the intellectual equivalent of being a galley slave?' From syslog-ng@lists.balabit.hu Fri Aug 8 00:40:35 2003 From: syslog-ng@lists.balabit.hu (Chris Robertson) Date: Thu, 7 Aug 2003 16:40:35 -0700 Subject: [syslog-ng]Program destination never executes Message-ID: Checked that, it works fine from the command line. :( Chris -----Original Message----- From: Nate Campi [mailto:nate@campin.net] Sent: Thursday, August 07, 2003 3:33 PM To: syslog-ng@lists.balabit.hu Subject: Re: [syslog-ng]Program destination never executes On Thu, Aug 07, 2003 at 02:10:26PM -0700, Chris Robertson wrote: > I hoping that someone can point out what I'm doing wrong here. I have the > following configuration in my syslog-ng.conf file but the program referenced > in d_mysql_prog is never executed (I've tried a simple version that just > outputs to a file as well). Note the file gets all the messages properly > and I've cut out the non-relevant sections of the config. I don't see anything wrong here, I'd make sure the script isn't just dying as soon as it starts. -- Nate Windows is the answer, but only if the question was 'what is the intellectual equivalent of being a galley slave?' _______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html From syslog-ng@lists.balabit.hu Fri Aug 8 01:01:51 2003 From: syslog-ng@lists.balabit.hu (Nate Campi) Date: Thu, 7 Aug 2003 17:01:51 -0700 Subject: [syslog-ng]Program destination never executes In-Reply-To: References: Message-ID: <20030808000151.GH1336@campin.net> On Thu, Aug 07, 2003 at 04:40:35PM -0700, Chris Robertson wrote: > Checked that, it works fine from the command line. :( Bummer. Couple thoughts: 1) Could be a permissions thing, do you start syslog-ng as a certain user that can't run the script? 2) Try to capture any output (if it does run): http://www.campin.net/syslog-ng/faq.html#capture_output -- Nate "If you give someone a program, you will frustrate them for a day; if you teach them how to program, you will frustrate them for a lifetime." From syslog-ng@lists.balabit.hu Fri Aug 8 12:17:42 2003 From: syslog-ng@lists.balabit.hu (Franky Van Liedekerke) Date: Fri, 8 Aug 2003 13:17:42 +0200 Subject: [syslog-ng]end of line character Message-ID: <20030808131742.000045db.liedekef@pandora.be> Hi all, I'm using syslog-ng for quite a while now, and I'm a happy user. However, there's one thing that I can't seem to be getting right: how to filter out messages ending on a specific word, e.g. I would like to ignore all messages that have the string "admin: $" in it (the dollar-sign indicating end-of-line). But the match expression doesn't seem to recognize this end-of-line character, so can anybody tell me how to achieve this? thanx already! Franky From syslog-ng@lists.balabit.hu Tue Aug 12 21:52:53 2003 From: syslog-ng@lists.balabit.hu (Richard E. Perlotto II) Date: Tue, 12 Aug 2003 13:52:53 -0700 Subject: [syslog-ng]IETF Syslog Draft In-Reply-To: <20030627125208.GB12568@balabit.hu> Message-ID: <015601c36113$b3cc4f10$b06a47ab@defcon> For those interested in where the standard is going: http://www.ietf.org/internet-drafts/draft-ietf-syslog-international-00.txt If you are interested in features and option, now is the time to speak up. Richard From syslog-ng@lists.balabit.hu Wed Aug 13 09:50:48 2003 From: syslog-ng@lists.balabit.hu (Roberto Re) Date: Wed, 13 Aug 2003 10:50:48 +0200 Subject: [syslog-ng]My syslog-ng time is somehow set to GMT ? References: Message-ID: <3F39FBE8.2040107@cu.mi.it> Hi All, my syslog-ng time is somehow set to GMT . I see the time off by 2 hours _*only*_ in the destination d_postgres* (with source s_tcp, s_udp) , in d_msg* destination (with source s_sys) the time is OK !?! I've installed a syslog-ng 1.6.0rc3 from src on a RH9 and i've interfaced it with a postgreSQL 7.3.2 ; I've set the crontab with "ntpdate -b time.ien.it" and it works ; I've configured the syslog-ng.conf with this options: ******************************************************************************** ############################################################################### options { sync (0); time_reopen (10); log_fifo_size (100); long_hostnames (on); use_dns (yes); use_fqdn (yes); create_dirs (yes); keep_hostname (yes); time_reap(12); gc_busy_threshold(768); use_time_recvd(0); }; ############################################################################### source s_sys { unix-stream ("/dev/log"); internal(); }; source s_udp { udp(); }; source s_tcp { tcp(); }; source s_local { internal(); }; ############################################################################### # destination d_files { file("/var/log/syslog-ng/$HOST/$FACILITY.$LEVEL" # template("$ISODATE $HOST $FACILITY $PRIORITY $PROCESS $MSG\n")); # }; destination d_msgs { file("/var/log/messages" template("$FULLDATE $HOST $FACILITY.$PRIORITY $MSG\n")); }; [...the output on file is OK with the local time] destination d_postgres { file("/var/spooldir/syslog2pgsql/fulllog.$YEAR.$MONTH.$DAY.$HOUR.$MIN.$SEC" template("INSERT INTO msg_table VALUES ('$FULLDATE','$FULLDATE','$HOST','$FACILITY', '$PRIORITY', '$MSG');\n") template_escape(yes) owner(postgres)); }; [... the output on DB is 2 hour WRONG :( ?? ] ********************************************************************************* Another think : if I set use_time_recvd(0) -> use_time_recvd(1) (???) the time in /var/log/messages becomes wrong to ????? Ciao and Thanks in Advance Roberto From syslog-ng@lists.balabit.hu Wed Aug 13 11:32:24 2003 From: syslog-ng@lists.balabit.hu (Clemson, Chris) Date: Wed, 13 Aug 2003 11:32:24 +0100 Subject: [syslog-ng]IETF Syslog Draft Message-ID: Interesting. There's also http://www.ietf.org/internet-drafts/draft-ietf-syslog-sign-11.txt for security stuff. I know it's dated May but did anyone see it? > For those interested in where the standard is going: > > http://www.ietf.org/internet-drafts/draft-ietf-syslog-internat > ional-00.txt > > If you are interested in features and option, now is the time to speak > up. > > > Richard -- The content of this e-mail is confidential, may contain privileged material and is intended solely for the recipient(s) named above. If you receive this in error, please notify Software AG immediately and delete this e-mail. Software AG (UK) Limited Registered in England & Wales 1310740 Registered Office: Hudson House, Hudson Way, Pride Park, Derby DE24 8HS From syslog-ng@lists.balabit.hu Wed Aug 13 16:36:13 2003 From: syslog-ng@lists.balabit.hu (Richard E. Perlotto II) Date: Wed, 13 Aug 2003 08:36:13 -0700 Subject: [syslog-ng]IETF Syslog Draft In-Reply-To: Message-ID: <006301c361b0$a4232190$a5465d42@defcon> Yes, and it is being set as a standard in parallel with the other = standards. It would be nice to see some of these features in syslog-ng. There is = also: draft-ietf-syslog-device-mib-04.txt draft-ietf-syslog-reliable-12.txt draft-ietf-syslog-syslog-12.txt I am part of the syslog IETF side committee and can help influence these = documents if anyone has any comments. Richard -----Original Message----- From: syslog-ng-admin@lists.balabit.hu = [mailto:syslog-ng-admin@lists.balabit.hu] On Behalf Of Clemson, Chris Sent: Wednesday, August 13, 2003 3:32 AM To: 'syslog-ng@lists.balabit.hu' Subject: RE: [syslog-ng]IETF Syslog Draft Interesting. There's also = http://www.ietf.org/internet-drafts/draft-ietf-syslog-sign-11.txt for = security stuff. I know it's dated May but did anyone see it? > For those interested in where the standard is going: >=20 > http://www.ietf.org/internet-drafts/draft-ietf-syslog-internat > ional-00.txt >=20 > If you are interested in features and option, now is the time to speak = > up. >=20 >=20 > Richard --=20 The content of this e-mail is confidential, may contain privileged = material and is intended solely for the recipient(s) named above. If you receive this in error, please notify Software AG immediately and = delete this e-mail. Software AG (UK) Limited Registered in England & Wales 1310740 Registered Office: Hudson House, Hudson Way, Pride Park, Derby DE24 8HS = _______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu = https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html From syslog-ng@lists.balabit.hu Wed Aug 13 19:48:26 2003 From: syslog-ng@lists.balabit.hu (Richard E. Perlotto II) Date: Wed, 13 Aug 2003 11:48:26 -0700 Subject: [syslog-ng]IETF Syslog Draft In-Reply-To: <006301c361b0$a4232190$a5465d42@defcon> Message-ID: <00b601c361cb$7ba82ba0$a5465d42@defcon> Oh, and if you want to more about the general effort see: http://www.ietf.org/html.charters/syslog-charter.html Richard -----Original Message----- From: syslog-ng-admin@lists.balabit.hu = [mailto:syslog-ng-admin@lists.balabit.hu] On Behalf Of Richard E. = Perlotto II Sent: Wednesday, August 13, 2003 8:36 AM To: syslog-ng@lists.balabit.hu Subject: RE: [syslog-ng]IETF Syslog Draft Yes, and it is being set as a standard in parallel with the other = standards. It would be nice to see some of these features in syslog-ng. There is also: draft-ietf-syslog-device-mib-04.txt draft-ietf-syslog-reliable-12.txt draft-ietf-syslog-syslog-12.txt I am part of the syslog IETF side committee and can help influence these = documents if anyone has any comments. Richard -----Original Message----- From: syslog-ng-admin@lists.balabit.hu = [mailto:syslog-ng-admin@lists.balabit.hu] On Behalf Of Clemson, Chris Sent: Wednesday, August 13, 2003 3:32 AM To: 'syslog-ng@lists.balabit.hu' Subject: RE: [syslog-ng]IETF Syslog Draft Interesting. There's also = http://www.ietf.org/internet-drafts/draft-ietf-syslog-sign-11.txt for = security stuff. I know it's dated May but did anyone see it? > For those interested in where the standard is going: >=20 > http://www.ietf.org/internet-drafts/draft-ietf-syslog-internat > ional-00.txt >=20 > If you are interested in features and option, now is the time to speak > up. >=20 >=20 > Richard --=20 The content of this e-mail is confidential, may contain privileged = material and is intended solely for the recipient(s) named above. If you receive this in error, please notify Software AG immediately and = delete this e-mail. Software AG (UK) Limited Registered in England & Wales 1310740 Registered Office: Hudson House, Hudson Way, Pride Park, Derby DE24 8HS = _______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu = https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html _______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu = https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html From syslog-ng@lists.balabit.hu Thu Aug 14 07:55:03 2003 From: syslog-ng@lists.balabit.hu (Rudolfs Osins) Date: Thu, 14 Aug 2003 09:55:03 +0300 Subject: [syslog-ng]syslog-ng-1.6.0rc3 crashes after some hours Message-ID: <200308140955.03161.secure@dc.lv> --Boundary-00=_HJzO/8kKr0FXPjP Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello everyone, I have the folloving problem: After some hours as daemon (~1 - 2h) syslog-ng crashes, leaving no info on what happened in the logs or elsewhere. I run the daemon with syslog-ng -u syslog-ng -g syslog-ng and the user and group exists in the system. The config file I use is attached. Compile options are following: libol-0.3.10 ./configure --prefix=/usr/local/opt/libol make syslog-ng-1.6.0rc3 ./configure --prefix=/usr/local/opt/syslog-ng --with-libol=/usr/src/libol-0.3.10 make make install The system is a celeron 1700Mhz with 128Mb ram and there are just 2 other proccesses beside syslog-ng - fcron and ntpd. Another question is: when I delete a logfile when syslog-ng is still running for the first time, syslog-ng recreates the file, when it recives a message thats destination is the deleted file, but when I delete the same file a second time, it's not being recreated. Is there a way to make syslog-ng recreate the file everytime ? And the last question is, when could the message encryption feature be implemented ? Btw. great work ! Syslog-ng is a really good product ! best regards, Rudolfs --Boundary-00=_HJzO/8kKr0FXPjP Content-Type: text/plain; charset="us-ascii"; name="syslog-ng.conf" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="syslog-ng.conf" # syslog-ng configuration file. # # # See syslog-ng(8) and syslog-ng.conf(5) for more information. # # n3on@dc.lv # ### Global options options { sync (0); time_reopen (10); time_reap (10); log_fifo_size (1000); long_hostnames (off); use_dns (no); use_fqdn (no); create_dirs (yes); keep_hostname (no); owner(syslog-ng); group(syslog-ng); }; ### Source drivers source src_kernel { pipe ("/proc/kmsg"); }; source src_syslog-ng { internal (); }; source src_local { unix-stream ("/dev/log"); }; ### Destination drivers destination dst_kernel { file ( "/var/log/localhost/$DAY.$MONTH.$YEAR/kernel.log" template("[$WEEKDAY $HOUR:$MIN:$SEC] $MESSAGE [$LEVEL]\n") template_escape(no) ); }; destination dst_syslog-ng { file ( "/var/log/localhost/$DAY.$MONTH.$YEAR/syslog-ng.log" template("[$WEEKDAY $HOUR:$MIN:$SEC] $MESSAGE [$LEVEL]\n") template_escape(no) ); }; destination dst_sshd { file ( "/var/log/localhost/$DAY.$MONTH.$YEAR/sshd.log" template("[$WEEKDAY $HOUR:$MIN:$SEC] $MESSAGE [$LEVEL]\n") template_escape(no) ); }; destination dst_fcron { file ( "/var/log/localhost/$DAY.$MONTH.$YEAR/fcron.log" template("[$WEEKDAY $HOUR:$MIN:$SEC] $MESSAGE [$LEVEL]\n") template_escape(no) ); }; destination dst_remain { file ( "/var/log/localhost/$DAY.$MONTH.$YEAR/remaining.log" template("[$WEEKDAY $HOUR:$MIN:$SEC] $MESSAGE [$LEVEL]\n") template_escape(no) ); }; destination dst_rpm-list { file ( "/var/log/localhost/$DAY.$MONTH.$YEAR/rpm-list.log" template("$MESSAGE\n") template_escape(no) ); }; destination dst_ntpd { file ( "/var/log/localhost/$DAY.$MONTH.$YEAR/ntpd.log" template("[$WEEKDAY $HOUR:$MIN:$SEC] $MESSAGE [$LEVEL]\n") template_escape(no) ); }; destination dst_scripts { file ( "/var/log/localhost/$DAY.$MONTH.$YEAR/scripts.log" template("[$WEEKDAY $HOUR:$MIN:$SEC] $MESSAGE [$LEVEL]\n") template_escape(no) ); }; destination dst_debug { file ( "/var/log/localhost/$DAY.$MONTH.$YEAR/debug.log" template("[$WEEKDAY $HOUR:$MIN:$SEC] $MESSAGE [$LEVEL - $FACILITY]\n") template_escape(no) ); }; destination dst_net { tcp ( "10.148.62.9" port(666) ); }; ### Filters filter fltr_sshd { program("sshd"); }; filter fltr_fcron { program("fcron"); }; filter fltr_syslog-ng { program("syslog-ng"); }; filter fltr_rpm-list { program("rpm"); }; filter fltr_ntpd { program("ntpd"); }; filter fltr_scripts { program("script"); }; filter fltr_remain { (not program("sshd")) and (not program("fcron")) and (not program("syslog-ng")) and (not program("rpm")) and (not program("script")) and (not program("ntpd"));}; ### Logs log { source(src_kernel); destination(dst_kernel); }; log { source(src_syslog-ng); source(src_local); filter(fltr_syslog-ng); destination(dst_syslog-ng); }; log { source(src_local); filter(fltr_sshd); destination(dst_sshd); }; log { source(src_local); filter(fltr_fcron); destination(dst_fcron); }; log { source(src_local); filter(fltr_rpm-list); destination(dst_rpm-list); }; log { source(src_local); filter(fltr_ntpd); destination(dst_ntpd); }; log { source(src_local); filter(fltr_scripts); destination(dst_scripts); }; log { source(src_local); filter(fltr_remain); destination(dst_remain); }; log { source(src_kernel); source(src_syslog-ng); source(src_local); destination(dst_debug); }; log { source(src_kernel); source(src_syslog-ng); source(src_local); destination(dst_net); }; --Boundary-00=_HJzO/8kKr0FXPjP-- From syslog-ng@lists.balabit.hu Thu Aug 14 16:16:27 2003 From: syslog-ng@lists.balabit.hu (Erik Ivanenko) Date: Thu, 14 Aug 2003 11:16:27 -0400 Subject: [syslog-ng]half open connections. Message-ID: <3F3BA7CB.269E11BC@utoronto.ca> This is a multi-part message in MIME format. --------------B0A297848382A7A843231143 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hello, I don't know if this has been implemented, but I think not yet... Our intended usage of syslog-ng is for remote devices to annunciate alarms as part of a building automation system as folows: When a remote devices detects an alarm in a building system, a message is issued to the host via a syslog-ng TCP connection. The syslog-ng daemon on the host uses a FIFO to pass the message to a waiting task to dump that message into a database and add further formatting to the message for delivery to our alarms terminals. My problem is that if the remote devices is powered off, a 1/2 open connected will result on the server, that necessitates a SIGHUP to remove (or the syslog-ng to be restarted.) Is there a version of syslog-ng that will test each connection at a timed interval and close if the remote device is not present? Thank you for a great piece of work! Cheers. --------------B0A297848382A7A843231143 Content-Type: text/x-vcard; charset=us-ascii; name="erik.ivanenko.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Erik Ivanenko Content-Disposition: attachment; filename="erik.ivanenko.vcf" begin:vcard n:Ivanenko;Erik tel;fax:416-978-6650 tel;work:416-978-1900 x-mozilla-html:FALSE adr:;;;;;; version:2.1 email;internet:erik.ivanenko@utoronto.ca fn:Erik Ivanenko end:vcard --------------B0A297848382A7A843231143-- From syslog-ng@lists.balabit.hu Thu Aug 14 16:17:23 2003 From: syslog-ng@lists.balabit.hu (Erik Ivanenko) Date: Thu, 14 Aug 2003 11:17:23 -0400 Subject: [syslog-ng]Behaviour on comm failure. Message-ID: <3F3BA803.8F053647@utoronto.ca> This is a multi-part message in MIME format. --------------0B0ACC2430ECD643DD5CC377 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Does syslog-ng guarantee delivery of messages when communcations to the logging host is lost? ie. are syslog-ng messages buffered until the communcations are re-established? Thank you! --------------0B0ACC2430ECD643DD5CC377 Content-Type: text/x-vcard; charset=us-ascii; name="erik.ivanenko.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Erik Ivanenko Content-Disposition: attachment; filename="erik.ivanenko.vcf" begin:vcard n:Ivanenko;Erik tel;fax:416-978-6650 tel;work:416-978-1900 x-mozilla-html:FALSE adr:;;;;;; version:2.1 email;internet:erik.ivanenko@utoronto.ca fn:Erik Ivanenko end:vcard --------------0B0ACC2430ECD643DD5CC377-- From syslog-ng@lists.balabit.hu Fri Aug 15 07:36:00 2003 From: syslog-ng@lists.balabit.hu (Rudolfs Osins) Date: Fri, 15 Aug 2003 09:36:00 +0300 Subject: [syslog-ng]syslog-ng-1.6.0rc3 crashes after some hours In-Reply-To: <200308140955.03161.secure@dc.lv> References: <200308140955.03161.secure@dc.lv> Message-ID: <200308150936.01063.secure@dc.lv> I'm replying to my own message :) I think I found the cause of the problem. Syslog-ng isn't crashing anymore, I removed the line: timereap (10); from the configuration. And I forgot to mention, that the there wasn't a computer that receives the log messages on the other end, so I got the following messages in logs. [Fri 00:00:04] syslog-ng[354]: Error connecting to remote host AF_INET(159.148.62.9:65535), reatte mpting in 10 seconds [err - syslog] Hope this helps someone else... Regards, Rudolfs On Thursday 14 August 2003 09:55, Rudolfs Osins wrote: > Hello everyone, > > I have the folloving problem: > > After some hours as daemon (~1 - 2h) syslog-ng crashes, leaving no info on > what happened in the logs or elsewhere. I run the daemon with > syslog-ng -u syslog-ng -g syslog-ng > and the user and group exists in the system. The config file I use is > attached. > Compile options are following: > > libol-0.3.10 > ./configure --prefix=/usr/local/opt/libol > make > > syslog-ng-1.6.0rc3 > ./configure --prefix=/usr/local/opt/syslog-ng > --with-libol=/usr/src/libol-0.3.10 > make > make install > > The system is a celeron 1700Mhz with 128Mb ram and there are just 2 other > proccesses beside syslog-ng - fcron and ntpd. > > Another question is: when I delete a logfile when syslog-ng is still > running for the first time, syslog-ng recreates the file, when it recives a > message thats destination is the deleted file, but when I delete the same > file a second time, it's not being recreated. Is there a way to make > syslog-ng recreate the file everytime ? > > And the last question is, when could the message encryption feature be > implemented ? > > Btw. great work ! Syslog-ng is a really good product ! > > best regards, > Rudolfs From syslog-ng@lists.balabit.hu Fri Aug 15 17:27:14 2003 From: syslog-ng@lists.balabit.hu (Roland Turner) Date: Fri, 15 Aug 2003 17:27:14 +0100 Subject: [syslog-ng]Reliable syslog and network outages Message-ID: <3F3D09E2.3010304@countersnipe.com> I'm trying to work out whether syslog-ng can deliver syslog messages reliably in the face of client reboots during network partitions. From reading the documentation, it is not clear where log_fifo stores its data (disk or memory) and therefore whether or not log entries on a remote syslog client that queue up during a partition of the network which seperates syslog client from loghost will remain queued if the syslog client host reboots. If my approach is unworkable, pointers or aid on how to solve the general problem another way would be greatly appreciated. Here are the details: 1. Several administered machines are located at diverse locations, generally where they are used primarily/entirely by local users. 2. Local users can ordinarily continue to do useful work even if they lose external network connectivity for a while; consequently HA network connectivity is not a user requirement. 3. The machines do not generally require direct intervention very often, so from an administration standpoint, 100% reachability is also not a requirement. 4. As a result of points 2 and 3, highly reliable connectivity is not available; outages of minutes or hours really do occur. 5. Pre-syslog-ng implementations of syslog using UDP will simply lose all log entries during the time that a network is partitioned. This is definitely not OK. 6. Syslog-ng appears to offer TCP-based delivery which certainly solves one issue; normal network paket loss is not an issue. 7. Syslog-ng appears to maintain an internal FIFO which, if sized large enough on a syslog relay host at the remote location(s), could collect all log information generated during a partition and then successfully deliver it when connectivity is restored. 8. If, however, syslog-ng's internal FIFO is memory-based then if the remote location's syslog relay host is rebooted during the network partition then all that it has accumulated and not yet transferred will be lost. (Similarly if the death of the TCP connection is treated as reason to give up, rather than continually retry.) 9. What information I have found on dealing with this appears to deal with loghost unreliability rather than network unreliability, and thus recommends providing HA through additional, redundant, loghosts. Setting aside the problems in reconcilliation of logs that this implies, it takes away the reason for having syslog deliver via IP directly (rather than, say, email) entirely. Does syslog-ng provide a means to deal with this problem? Does some other solution exist? Thanks in advance. - Raz From syslog-ng@lists.balabit.hu Fri Aug 15 18:42:12 2003 From: syslog-ng@lists.balabit.hu (Amodiovalerio Verde) Date: Fri, 15 Aug 2003 19:42:12 +0200 Subject: [syslog-ng]Reliable syslog and network outages References: <3F3D09E2.3010304@countersnipe.com> Message-ID: <000b01c36354$8f8756c0$51004701@ags.wan> Syslog-ng keep the undelievarable messages in internal queue ( memory ) (Naturally when you reboot your syslog-ng machine you lost all the queue) As far as there is some space in the queue...messages aren't lost and sended as soon as the receiver came back. When the queue is filled new messages will be lost. I've done extensive testing with syslog-ng, some own parsing engine and my-sql. I can assure that syslog-ng handles load of thousands of message for second ( i tried up to 15000 ), and the queue works really good when you've some program destinations that are slower than a burst of messages. Also if you have more destinations, syslog-ng doesn't wait for all the destinations became available to empty its queue, but keep in the queue only the messages for the unreachable destinations. That's works fine when you have some external parser that stores messages in a db. When the connection to the db is broken, parsers bloks on connection and doesn't read their stdin. That way syslog-ng queue the messages and it feeds them when the connection to the db is available again. Amodiovalerio Verde Security Project Manager ----- Original Message ----- From: "Roland Turner" To: Sent: Friday, August 15, 2003 6:27 PM Subject: [syslog-ng]Reliable syslog and network outages > I'm trying to work out whether syslog-ng can deliver syslog messages > reliably in the face of client reboots during network partitions. > > From reading the documentation, it is not clear where log_fifo stores > its data (disk or memory) and therefore whether or not log entries on a > remote syslog client that queue up during a partition of the network > which seperates syslog client from loghost will remain queued if the > syslog client host reboots. If my approach is unworkable, pointers or > aid on how to solve the general problem another way would be greatly > appreciated. > > Here are the details: > > 1. Several administered machines are located at diverse locations, > generally where they are used primarily/entirely by local users. > > 2. Local users can ordinarily continue to do useful work even if they > lose external network connectivity for a while; consequently HA network > connectivity is not a user requirement. > > 3. The machines do not generally require direct intervention very often, > so from an administration standpoint, 100% reachability is also not a > requirement. > > 4. As a result of points 2 and 3, highly reliable connectivity is not > available; outages of minutes or hours really do occur. > > 5. Pre-syslog-ng implementations of syslog using UDP will simply lose > all log entries during the time that a network is partitioned. This is > definitely not OK. > > 6. Syslog-ng appears to offer TCP-based delivery which certainly solves > one issue; normal network paket loss is not an issue. > > 7. Syslog-ng appears to maintain an internal FIFO which, if sized large > enough on a syslog relay host at the remote location(s), could collect > all log information generated during a partition and then successfully > deliver it when connectivity is restored. > > 8. If, however, syslog-ng's internal FIFO is memory-based then if the > remote location's syslog relay host is rebooted during the network > partition then all that it has accumulated and not yet transferred will > be lost. (Similarly if the death of the TCP connection is treated as > reason to give up, rather than continually retry.) > > 9. What information I have found on dealing with this appears to deal > with loghost unreliability rather than network unreliability, and thus > recommends providing HA through additional, redundant, loghosts. Setting > aside the problems in reconcilliation of logs that this implies, it > takes away the reason for having syslog deliver via IP directly (rather > than, say, email) entirely. > > Does syslog-ng provide a means to deal with this problem? Does some > other solution exist? > > Thanks in advance. > > - Raz > > > > _______________________________________________ > syslog-ng maillist - syslog-ng@lists.balabit.hu > https://lists.balabit.hu/mailman/listinfo/syslog-ng > Frequently asked questions at http://www.campin.net/syslog-ng/faq.html > From syslog-ng@lists.balabit.hu Mon Aug 18 10:19:20 2003 From: syslog-ng@lists.balabit.hu (Wang, Zhenyu Z) Date: Mon, 18 Aug 2003 17:19:20 +0800 Subject: [syslog-ng]src/tests/testall failed! Message-ID: <6E0C289723A0564F9A8279E236E8565F04B1C465@pdsmsx402.pd.intel.com> This is a multi-part message in MIME format. ------_=_NextPart_001_01C36569.CE321808 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable After I have successfully compiled syslog-ng-1.0.6rc3, I run src/tests/testall script but it failed. Config file is syslog-ng.conf.eval. source src { unix-stream("input"); }; =20 destination d1 { file("d1"); }; destination d2 { file("d2"); }; destination d3 { file("d3"); }; destination d4 { file("d4"); }; destination d5 { file("d5"); }; destination d6 { file("d6"); }; destination d7 { file("d7"); }; =20 filter f1 { facility(local0); }; filter f2 { facility(local1) and level(debug); }; filter f3 { facility(local2) and not level(debug); }; filter f4 { not (facility(local3) and level(debug)); }; filter f5 { facility(local4) or level(info); }; filter f6 { facility(local4) or not level(info); }; filter f7 { not (facility(local4) or level(info)); }; =20 log { source(src); filter(f1); destination(d1); }; log { source(src); filter(f2); destination(d2); }; log { source(src); filter(f3); destination(d3); }; log { source(src); filter(f4); destination(d4); }; log { source(src); filter(f5); destination(d5); }; log { source(src); filter(f6); destination(d6); }; log { source(src); filter(f7); destination(d7); }; =20 Error message is like: + rm 'd?' rm: cannot remove `d?': No such file or directory + ../syslog-ng -f syslog-ng.conf.eval -p syslog-ng.pid Warning: No source refers to internal messages, they'll go to /dev/null + logger -u input -p local0.debug 'msg: local0.debug' + logger -u input -p local1.debug 'msg: local1.debug' + logger -u input -p local1.info 'msg: local1.info' + logger -u input -p local2.debug 'msg: local2.debug' + logger -u input -p local2.info 'msg: local2.info' + logger -u input -p local3.debug 'msg: local3.debug' + logger -u input -p local4.info 'msg: local4.info' + logger -u input -p local6.info 'msg: local6.info' + logger -u input -p local4.debug 'msg: local4.debug' + logger -u input -p local6.info 'msg: local6.info' ++ cat syslog-ng.pid + pid=3D + kill -TERM ./test.eval: kill: : no such pid + sleep 2 + kill -TERM ./test.eval: kill: : no such pid + rm syslog-ng.pid ++ wc -l 'd?' wc: d?: No such file or directory + result=3D + rm 'd?' rm: cannot remove `d?': No such file or directory + '[' '' '!=3D' ' 1 d1 1 d2 1 d3 10 d4 6 d5 7 d6 5 d7 31 total' ']' + echo 'evaluation test failed' evaluation test failed + exit 1 =20 I appreciate somebody tell me why. I have also found some "?" files in the direcotory starting syslog-ng daemon. What can these "?" be used? =20 Zhen Not speaking for my employer -- all opinions are my own (and my fault) =20 ------_=_NextPart_001_01C36569.CE321808 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

After I have successfully compiled = syslog-ng-1.0.6rc3, I run src/tests/testall script but it failed.

Config file is syslog-ng.conf.eval.

source src { = unix-stream("input"); };

 

destination d1 { file("d1"); };

destination d2 { file("d2"); };

destination d3 { file("d3"); };

destination d4 { file("d4"); };

destination d5 { file("d5"); };

destination d6 { file("d6"); };

destination d7 { file("d7"); };

 

filter f1 { = facility(local0); };

filter f2 { = facility(local1) and level(debug); };

filter f3 { = facility(local2) and not level(debug); };

filter f4 { not = (facility(local3) and level(debug)); };

filter f5 { = facility(local4) or level(info); };

filter f6 { = facility(local4) or not level(info); };

filter f7 { not = (facility(local4) or level(info)); };

 

log { source(src); = filter(f1); destination(d1); };

log { source(src); = filter(f2); destination(d2); };

log { source(src); = filter(f3); destination(d3); };

log { source(src); = filter(f4); destination(d4); };

log { source(src); = filter(f5); destination(d5); };

log { source(src); = filter(f6); destination(d6); };

log { source(src); = filter(f7); destination(d7); };

 

Error message is like:

+ rm 'd?'

rm: cannot remove `d?': No = such file or directory

+ ../syslog-ng -f = syslog-ng.conf.eval -p syslog-ng.pid

Warning: No source refers = to internal messages, they'll go to /dev/null

+ logger -u input -p = local0.debug 'msg: local0.debug'

+ logger -u input -p = local1.debug 'msg: local1.debug'

+ logger -u input -p = local1.info 'msg: local1.info'

+ logger -u input -p = local2.debug 'msg: local2.debug'

+ logger -u input -p = local2.info 'msg: local2.info'

+ logger -u input -p = local3.debug 'msg: local3.debug'

+ logger -u input -p = local4.info 'msg: local4.info'

+ logger -u input -p = local6.info 'msg: local6.info'

+ logger -u input -p = local4.debug 'msg: local4.debug'

+ logger -u input -p = local6.info 'msg: local6.info'

++ cat = syslog-ng.pid

+ pid=3D

+ kill = -TERM

./test.eval: kill: : no = such pid

+ sleep 2

+ kill = -TERM

./test.eval: kill: : no = such pid

+ rm = syslog-ng.pid

++ wc -l = 'd?'

wc: d?: No such file or = directory

+ = result=3D

+ rm 'd?'

rm: cannot remove `d?': No = such file or directory

+ '[' '' '!=3D' '      1 d1

    &nbs= p; 1 d2

    &nbs= p; 1 d3

     10 = d4

    &nbs= p; 6 d5

    &nbs= p; 7 d6

    &nbs= p; 5 d7

     31 = total' ']'

+ echo 'evaluation test = failed'

evaluation test = failed

+ exit 1

 

I appreciate somebody tell me why. I have also found = some “?” files in the direcotory starting syslog-ng daemon.

What can these “?”  be = used?

 

Zhen

Not speaking for my employer -- all opinions are my own (and my = fault)

 

=00 ------_=_NextPart_001_01C36569.CE321808-- From syslog-ng@lists.balabit.hu Mon Aug 18 11:58:55 2003 From: syslog-ng@lists.balabit.hu (Roland Turner) Date: Mon, 18 Aug 2003 11:58:55 +0100 Subject: [syslog-ng]Reliable syslog and network outages In-Reply-To: <000b01c36354$8f8756c0$51004701@ags.wan> References: <3F3D09E2.3010304@countersnipe.com> <000b01c36354$8f8756c0$51004701@ags.wan> Message-ID: <3F40B16F.7000407@countersnipe.com> Amodiovalerio Verde wrote: > Syslog-ng keep the undelievarable messages in internal queue ( memory ) > > (Naturally when you reboot your syslog-ng machine you lost all the queue) This is pretty much what I feared. > I can assure that syslog-ng handles load of thousands of message for second > ( i tried up to 15000 ), and the queue works > really good when you've some program destinations that are slower than a > burst of messages. Ah, it sounds as though you've implemented the FIFO/buffer as a performance feature rather than as a high-availability one. Is there any straightforward way to build a relay out of syslog-ng that offers reliable[1] forwarding of syslog information? If not, would syslog-ng be interested in accepting a patch which added an option to make the FIFO buffer persistent? - Raz 1: Clearly, perfect reliability is impossible; if a machine containing queued logs is physically destroyed before it gets the opportunity to deliver its logs, then they really will be lost. I am interested in reliability with respect to a temporary loss of connectivity between syslog relay and syslog collector, and a reboot of the relay during that loss of connectivity. The degree of reliability that I have in mind is comparable to that which I would expect of a mail relay; I certainly wouldn't want it throwing data away because of a reboot, but I'd accept data loss caused by physical destruction of the machine. From syslog-ng@lists.balabit.hu Mon Aug 18 12:57:36 2003 From: syslog-ng@lists.balabit.hu (Amodiovalerio Verde) Date: Mon, 18 Aug 2003 13:57:36 +0200 Subject: [syslog-ng]Reliable syslog and network outages References: <3F3D09E2.3010304@countersnipe.com> <000b01c36354$8f8756c0$51004701@ags.wan> <3F40B16F.7000407@countersnipe.com> Message-ID: <00c701c3657f$ec5d3810$51004701@ags.wan> well, you could disable syslog-ng queue, and use a destination program. So....syslog-ng get a message and send it immediatly to destination. Now with syslog-ng queue disabled, is up to you to be sure to handle and catch that message. Your program try to send it to a remote machine, if it cannot, it append it to a file. As soon as the host came back, your program ( without blocking on stdin or you will lose new messages syslog-ng is feeding ) , reads that file and sends the messages to the log host Naturally on a reboot, your program will find a non empty file, so if the host is up, it will send all the messages. This could not work if you have to handle big loads of messages or peaks... Your problem could simply be slower than syslog-ng, and lost some messages, while doing something else. I never consider too much this problem, cause I use only UDP logging...and it's well known by committent that messages could be lost. But probably I have to do a policy change, so I had to use TCP, reliability, compression and some few things. If you're interested I let you know. Amodiovalerio Verde > > Ah, it sounds as though you've implemented the FIFO/buffer as a > performance feature rather than as a high-availability one. > > Is there any straightforward way to build a relay out of syslog-ng that > offers reliable[1] forwarding of syslog information? > > If not, would syslog-ng be interested in accepting a patch which added > an option to make the FIFO buffer persistent? > > - Raz > > > > 1: Clearly, perfect reliability is impossible; if a machine containing > queued logs is physically destroyed before it gets the opportunity to > deliver its logs, then they really will be lost. I am interested in > reliability with respect to a temporary loss of connectivity between > syslog relay and syslog collector, and a reboot of the relay during that > loss of connectivity. The degree of reliability that I have in mind is > comparable to that which I would expect of a mail relay; I certainly > wouldn't want it throwing data away because of a reboot, but I'd accept > data loss caused by physical destruction of the machine. > From syslog-ng@lists.balabit.hu Mon Aug 18 14:20:48 2003 From: syslog-ng@lists.balabit.hu (Balazs Scheidler) Date: Mon, 18 Aug 2003 15:20:48 +0200 Subject: [syslog-ng]src/tests/testall failed! In-Reply-To: <6E0C289723A0564F9A8279E236E8565F04B1C465@pdsmsx402.pd.intel.com> References: <6E0C289723A0564F9A8279E236E8565F04B1C465@pdsmsx402.pd.intel.com> Message-ID: <20030818132048.GA15133@balabit.hu> On Mon, Aug 18, 2003 at 05:19:20PM +0800, Wang, Zhenyu Z wrote: > After I have successfully compiled syslog-ng-1.0.6rc3, I run > src/tests/testall script but it failed. that script was written years ago and may not function correctly. -- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1 From syslog-ng@lists.balabit.hu Mon Aug 18 14:22:42 2003 From: syslog-ng@lists.balabit.hu (Balazs Scheidler) Date: Mon, 18 Aug 2003 15:22:42 +0200 Subject: [syslog-ng]Reliable syslog and network outages In-Reply-To: <3F3D09E2.3010304@countersnipe.com> References: <3F3D09E2.3010304@countersnipe.com> Message-ID: <20030818132242.GB15133@balabit.hu> On Fri, Aug 15, 2003 at 05:27:14PM +0100, Roland Turner wrote: > Does syslog-ng provide a means to deal with this problem? Does some > other solution exist? not yet, though disk buffering has been on my todo list for a while. -- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1 From syslog-ng@lists.balabit.hu Mon Aug 18 14:25:32 2003 From: syslog-ng@lists.balabit.hu (Balazs Scheidler) Date: Mon, 18 Aug 2003 15:25:32 +0200 Subject: [syslog-ng]Reliable syslog and network outages In-Reply-To: <3F40B16F.7000407@countersnipe.com> References: <3F3D09E2.3010304@countersnipe.com> <000b01c36354$8f8756c0$51004701@ags.wan> <3F40B16F.7000407@countersnipe.com> Message-ID: <20030818132532.GC15133@balabit.hu> On Mon, Aug 18, 2003 at 11:58:55AM +0100, Roland Turner wrote: > Amodiovalerio Verde wrote: > Is there any straightforward way to build a relay out of syslog-ng that > offers reliable[1] forwarding of syslog information? > > If not, would syslog-ng be interested in accepting a patch which added > an option to make the FIFO buffer persistent? We would definitely be interested in a such a thing, but please base your work on the syslog-ng 2 tree, as I want the next stable release based on that one. -- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1 From syslog-ng@lists.balabit.hu Mon Aug 18 16:16:16 2003 From: syslog-ng@lists.balabit.hu (Erik Ivanenko) Date: Mon, 18 Aug 2003 11:16:16 -0400 Subject: [syslog-ng]Power fail restart Message-ID: <3F40EDC0.6A9EE187@utoronto.ca> This is a multi-part message in MIME format. --------------8FF3BBC64BD0BD67404130F4 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I am running version 1.5.13. All but 2 of 60 remote devices FAILED to reconnect when the power returned in Ontario. The cental logging host did not go off-line, as it was on emergency power. I use the standard /etc/init.d/syslog-ng start scripts for the remote devices. They are all Linux machines. After issuing HUP to the central host, 9 of 60 connections are working. Running "snoop" shows that the remote daemons have stopped trying to connect. I thought that syslog-ng was supposed to reconnect after such events? Can anyone tell me what I can do to make these remote devices reconnect? Must I manually restart syslog-ng on each remote client? Thanks in advance... --------------8FF3BBC64BD0BD67404130F4 Content-Type: text/x-vcard; charset=us-ascii; name="erik.ivanenko.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Erik Ivanenko Content-Disposition: attachment; filename="erik.ivanenko.vcf" begin:vcard n:Ivanenko;Erik tel;fax:416-978-6650 tel;work:416-978-1900 x-mozilla-html:FALSE adr:;;;;;; version:2.1 email;internet:erik.ivanenko@utoronto.ca fn:Erik Ivanenko end:vcard --------------8FF3BBC64BD0BD67404130F4-- From syslog-ng@lists.balabit.hu Mon Aug 18 22:51:27 2003 From: syslog-ng@lists.balabit.hu (Florian Lindner) Date: Mon, 18 Aug 2003 23:51:27 +0200 Subject: [syslog-ng]Sending mail to root? Message-ID: <200308182351.27729.mailinglists@xgm.de> Hello, I try to define a destination which sends the log entry to root: destination d_mailroot { program("/usr/bin/mail -s '[syslog] Exception detected' root"); }; But this is not working. mail does not notice that it should close stdin and send the mail. I think something like a EOF or at least in single line with a dot. How can I accomplish sending the mail? Thanks, Florian From syslog-ng@lists.balabit.hu Mon Aug 18 23:02:50 2003 From: syslog-ng@lists.balabit.hu (Amodiovalerio Verde) Date: Tue, 19 Aug 2003 00:02:50 +0200 Subject: [syslog-ng]Sending mail to root? References: <200308182351.27729.mailinglists@xgm.de> Message-ID: <010c01c365d4$77f9af30$51004701@ags.wan> You simply cannot use a destination like that one. Remember that syslog-ng never stop feeding destinations, so there is never an EOF... What you can do is a script or a little program that read it's stdin and without waiting for an EOF, do something. I use some C program I've written to read stdin using a fgets() that return after # bytes or after an EOL. You have to use something like that using language you like. But never expect syslog-ng to close your destination stdin, cause it's not its behaviour. Amodiovalerio Verde ----- Original Message ----- From: "Florian Lindner" To: Sent: Monday, August 18, 2003 11:51 PM Subject: [syslog-ng]Sending mail to root? > Hello, > I try to define a destination which sends the log entry to root: > > destination d_mailroot { program("/usr/bin/mail -s '[syslog] Exception > detected' root"); }; > > But this is not working. mail does not notice that it should close stdin and > send the mail. I think something like a EOF or at least in single line with a > dot. > How can I accomplish sending the mail? > Thanks, > Florian > > _______________________________________________ > syslog-ng maillist - syslog-ng@lists.balabit.hu > https://lists.balabit.hu/mailman/listinfo/syslog-ng > Frequently asked questions at http://www.campin.net/syslog-ng/faq.html > From syslog-ng@lists.balabit.hu Mon Aug 18 23:20:43 2003 From: syslog-ng@lists.balabit.hu (Florian Lindner) Date: Tue, 19 Aug 2003 00:20:43 +0200 Subject: [syslog-ng]Sending mail to root? In-Reply-To: <010c01c365d4$77f9af30$51004701@ags.wan> References: <200308182351.27729.mailinglists@xgm.de> <010c01c365d4$77f9af30$51004701@ags.wan> Message-ID: <200308190020.44102.mailinglists@xgm.de> Am Dienstag, 19. August 2003 00:02 schrieb Amodiovalerio Verde: > You simply cannot use a destination like that one. > > Remember that syslog-ng never stop feeding destinations, so there is never > an EOF... > > What you can do is a script or a little program that read it's stdin and > without waiting for an EOF, do something. > > I use some C program I've written to read stdin using a fgets() that return > after # bytes or after an EOL. > > You have to use something like that using language you like. > > But never expect syslog-ng to close your destination stdin, cause it's not > its behaviour. Could you send this program to me? Wouldn't it be better to return after a linebreak? Thx, Florian From syslog-ng@lists.balabit.hu Mon Aug 18 23:29:51 2003 From: syslog-ng@lists.balabit.hu (Florian Lindner) Date: Tue, 19 Aug 2003 00:29:51 +0200 Subject: [syslog-ng]Sending mail to root? In-Reply-To: <200308190020.44102.mailinglists@xgm.de> References: <200308182351.27729.mailinglists@xgm.de> <010c01c365d4$77f9af30$51004701@ags.wan> <200308190020.44102.mailinglists@xgm.de> Message-ID: <200308190029.51305.mailinglists@xgm.de> Am Dienstag, 19. August 2003 00:20 schrieb Florian Lindner: > Am Dienstag, 19. August 2003 00:02 schrieb Amodiovalerio Verde: > > You simply cannot use a destination like that one. > > > > Remember that syslog-ng never stop feeding destinations, so there is > > never an EOF... > > > > What you can do is a script or a little program that read it's stdin and > > without waiting for an EOF, do something. > > > > I use some C program I've written to read stdin using a fgets() that > > return after # bytes or after an EOL. > > > > You have to use something like that using language you like. > > > > But never expect syslog-ng to close your destination stdin, cause it's > > not its behaviour. > > Could you send this program to me? Wouldn't it be better to return after a > linebreak? Sorry, didn't see you EOL. It would be nice if you would send me the source of this program? Thanks, Florian From syslog-ng@lists.balabit.hu Mon Aug 18 23:30:56 2003 From: syslog-ng@lists.balabit.hu (nate) Date: Mon, 18 Aug 2003 15:30:56 -0700 Subject: [syslog-ng]Sending mail to root? In-Reply-To: <200308190020.44102.mailinglists@xgm.de> References: <200308182351.27729.mailinglists@xgm.de> <010c01c365d4$77f9af30$51004701@ags.wan> <200308190020.44102.mailinglists@xgm.de> Message-ID: <20030818223056.GG1244@campin.net> On Tue, Aug 19, 2003 at 12:20:43AM +0200, Florian Lindner wrote: > Am Dienstag, 19. August 2003 00:02 schrieb Amodiovalerio Verde: > > > > I use some C program I've written to read stdin using a fgets() that return > > after # bytes or after an EOL. > > Could you send this program to me? Wouldn't it be better to return after a > linebreak? No need for custom C programs: http://www.campin.net/syslog-ng/faq.html#external_program or for shell use this: #!/bin/sh while read line; do echo $line | /usr/bin/mail -s "log alert" pager@example.dom done -- Nate "Classic: A book which people praise and don't read." - Following the Equator, Pudd'nhead Wilson's New Calendar - Samuel Clemens From syslog-ng@lists.balabit.hu Tue Aug 19 00:08:44 2003 From: syslog-ng@lists.balabit.hu (Amodiovalerio Verde) Date: Tue, 19 Aug 2003 01:08:44 +0200 Subject: [syslog-ng]Sending mail to root? References: <200308182351.27729.mailinglists@xgm.de> <010c01c365d4$77f9af30$51004701@ags.wan> <200308190020.44102.mailinglists@xgm.de> <20030818223056.GG1244@campin.net> Message-ID: <011c01c365dd$ac98f8f0$51004701@ags.wan> Well, with that script you will receive a mail for each line in stdin...that's a pain... if you write a custum script you could manage things better....like sending a mail with an alert and the number of times it repeated... I don't like to have my mailbox filled with the same message.... I'll post something in here as soon as I came back in office ( september )... I'm on holiday now. Amodiovalerio Verde ----- Original Message ----- From: "nate" To: Sent: Tuesday, August 19, 2003 12:30 AM Subject: Re: [syslog-ng]Sending mail to root? > On Tue, Aug 19, 2003 at 12:20:43AM +0200, Florian Lindner wrote: > > Am Dienstag, 19. August 2003 00:02 schrieb Amodiovalerio Verde: > > > > > > I use some C program I've written to read stdin using a fgets() that return > > > after # bytes or after an EOL. > > > > Could you send this program to me? Wouldn't it be better to return after a > > linebreak? > > No need for custom C programs: > > http://www.campin.net/syslog-ng/faq.html#external_program > > or for shell use this: > > #!/bin/sh > while read line; do > echo $line | /usr/bin/mail -s "log alert" pager@example.dom > done > > -- > Nate > > "Classic: A book which people praise and don't read." - Following the > Equator, Pudd'nhead Wilson's New Calendar - Samuel Clemens > > _______________________________________________ > syslog-ng maillist - syslog-ng@lists.balabit.hu > https://lists.balabit.hu/mailman/listinfo/syslog-ng > Frequently asked questions at http://www.campin.net/syslog-ng/faq.html > From syslog-ng@lists.balabit.hu Tue Aug 19 00:30:39 2003 From: syslog-ng@lists.balabit.hu (nate) Date: Mon, 18 Aug 2003 16:30:39 -0700 Subject: [syslog-ng]Sending mail to root? In-Reply-To: <011c01c365dd$ac98f8f0$51004701@ags.wan> References: <200308182351.27729.mailinglists@xgm.de> <010c01c365d4$77f9af30$51004701@ags.wan> <200308190020.44102.mailinglists@xgm.de> <20030818223056.GG1244@campin.net> <011c01c365dd$ac98f8f0$51004701@ags.wan> Message-ID: <20030818233039.GH1244@campin.net> On Tue, Aug 19, 2003 at 01:08:44AM +0200, Amodiovalerio Verde wrote: > Well, with that script you will receive a mail for each line in > stdin...that's a pain... You use syslog-ng's filtering to decide what to send to the script. It is an enourmous waste of time to make a script do filtering when syslog-ng already does that. If all you want is throtting, use swatch or a shell script like I documented at: http://www.campin.net/newlogcheck.html -- Nate "My suggestion for an Official Usenet Motto: 'If you have nothing to say, then come on in, this is the place for you, tell us all about it!'" - Fosseng, Hevard [quotation collector] From syslog-ng@lists.balabit.hu Tue Aug 19 06:32:55 2003 From: syslog-ng@lists.balabit.hu (Wang, Zhenyu Z) Date: Tue, 19 Aug 2003 13:32:55 +0800 Subject: [syslog-ng]src/tests/testall failed! Message-ID: <6E0C289723A0564F9A8279E236E8565F04B1C467@pdsmsx402.pd.intel.com> Can you tell me why the script does not work? On my RH7.3, syslog-ng.conf.Redhat is not working fine. source s_sys { pipe ("/proc/kmsg" log_prefix("kernel: ")); unix-stream ("/dev/log"); internal(); }; $syslog-ng Error opening file /proc/kmsg for reading (No such file or directory) Error initializing configuration, exiting. Is there something in system I should tune? zhen -----Original Message----- From: Balazs Scheidler [mailto:bazsi@balabit.hu]=20 Sent: Monday, August 18, 2003 9:21 PM To: syslog-ng@lists.balabit.hu Subject: Re: [syslog-ng]src/tests/testall failed! On Mon, Aug 18, 2003 at 05:19:20PM +0800, Wang, Zhenyu Z wrote: > After I have successfully compiled syslog-ng-1.0.6rc3, I run > src/tests/testall script but it failed. that script was written years ago and may not function correctly. --=20 Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1 _______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html From syslog-ng@lists.balabit.hu Tue Aug 19 10:41:10 2003 From: syslog-ng@lists.balabit.hu (Wang, Zhenyu Z) Date: Tue, 19 Aug 2003 17:41:10 +0800 Subject: [syslog-ng]Wild files Message-ID: <6E0C289723A0564F9A8279E236E8565F04B1C46D@pdsmsx402.pd.intel.com> Could you answer my question on wild files like '?' or '"'? It seems to contain the log message as well, while it failed to log message into dest like: destination d_message { file("/var/log/messages"); }; $syslog-ng -d -F binding fd 3, unixaddr: /dev/log io.c: Preparing fd 3 for reading syslog-ng version 1.6.0rc3 starting io.c: Preparing fd 4 for writing (then stopped) thanks zhen -----Original Message----- From: Balazs Scheidler [mailto:bazsi@balabit.hu]=20 Sent: Monday, August 18, 2003 9:21 PM To: syslog-ng@lists.balabit.hu Subject: Re: [syslog-ng]src/tests/testall failed! On Mon, Aug 18, 2003 at 05:19:20PM +0800, Wang, Zhenyu Z wrote: > After I have successfully compiled syslog-ng-1.0.6rc3, I run > src/tests/testall script but it failed. that script was written years ago and may not function correctly. --=20 Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1 _______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html From syslog-ng@lists.balabit.hu Tue Aug 19 13:20:19 2003 From: syslog-ng@lists.balabit.hu (Hamilton Andrew) Date: Tue, 19 Aug 2003 08:20:19 -0400 Subject: [syslog-ng]src/tests/testall failed! Message-ID: I have 8 Redhat 7.3 systems running syslog-ng with that very source statement, except I use unix-dgram, and it works fine. Have you stopped klogd? Are you chroot-ing? Why don't you post your entire config file? That may help us help you more. Regards, Drew -----Original Message----- From: Wang, Zhenyu Z [mailto:zhenyu.z.wang@intel.com] Sent: Tuesday, August 19, 2003 1:33 AM To: syslog-ng@lists.balabit.hu Subject: RE: [syslog-ng]src/tests/testall failed! Can you tell me why the script does not work? On my RH7.3, syslog-ng.conf.Redhat is not working fine. source s_sys { pipe ("/proc/kmsg" log_prefix("kernel: ")); unix-stream ("/dev/log"); internal(); }; $syslog-ng Error opening file /proc/kmsg for reading (No such file or directory) Error initializing configuration, exiting. Is there something in system I should tune? zhen -----Original Message----- From: Balazs Scheidler [mailto:bazsi@balabit.hu] Sent: Monday, August 18, 2003 9:21 PM To: syslog-ng@lists.balabit.hu Subject: Re: [syslog-ng]src/tests/testall failed! On Mon, Aug 18, 2003 at 05:19:20PM +0800, Wang, Zhenyu Z wrote: > After I have successfully compiled syslog-ng-1.0.6rc3, I run > src/tests/testall script but it failed. that script was written years ago and may not function correctly. -- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1 _______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html _______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html From syslog-ng@lists.balabit.hu Tue Aug 19 13:22:21 2003 From: syslog-ng@lists.balabit.hu (Hamilton Andrew) Date: Tue, 19 Aug 2003 08:22:21 -0400 Subject: [syslog-ng]Wild files Message-ID: Again, post your config file. I'm not sure what you are asking. Are you talking about wild cards in filenames? There are macros designed to help you use dynamic files. Regards, Drew -----Original Message----- From: Wang, Zhenyu Z [mailto:zhenyu.z.wang@intel.com] Sent: Tuesday, August 19, 2003 5:41 AM To: syslog-ng@lists.balabit.hu Subject: [syslog-ng]Wild files Could you answer my question on wild files like '?' or '"'? It seems to contain the log message as well, while it failed to log message into dest like: destination d_message { file("/var/log/messages"); }; $syslog-ng -d -F binding fd 3, unixaddr: /dev/log io.c: Preparing fd 3 for reading syslog-ng version 1.6.0rc3 starting io.c: Preparing fd 4 for writing (then stopped) thanks zhen -----Original Message----- From: Balazs Scheidler [mailto:bazsi@balabit.hu] Sent: Monday, August 18, 2003 9:21 PM To: syslog-ng@lists.balabit.hu Subject: Re: [syslog-ng]src/tests/testall failed! On Mon, Aug 18, 2003 at 05:19:20PM +0800, Wang, Zhenyu Z wrote: > After I have successfully compiled syslog-ng-1.0.6rc3, I run > src/tests/testall script but it failed. that script was written years ago and may not function correctly. -- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1 _______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html _______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html From syslog-ng@lists.balabit.hu Tue Aug 19 13:33:55 2003 From: syslog-ng@lists.balabit.hu (Florian Lindner) Date: Tue, 19 Aug 2003 14:33:55 +0200 Subject: [syslog-ng]Sending mail to root? In-Reply-To: <20030818223056.GG1244@campin.net> References: <200308182351.27729.mailinglists@xgm.de> <200308190020.44102.mailinglists@xgm.de> <20030818223056.GG1244@campin.net> Message-ID: <200308191433.55249.mailinglists@xgm.de> Am Dienstag, 19. August 2003 00:30 schrieb nate: > On Tue, Aug 19, 2003 at 12:20:43AM +0200, Florian Lindner wrote: > > Am Dienstag, 19. August 2003 00:02 schrieb Amodiovalerio Verde: > > > I use some C program I've written to read stdin using a fgets() that > > > return after # bytes or after an EOL. > > > > Could you send this program to me? Wouldn't it be better to return after > > a linebreak? > > No need for custom C programs: > > http://www.campin.net/syslog-ng/faq.html#external_program > > or for shell use this: > > #!/bin/sh > while read line; do > echo $line | /usr/bin/mail -s "log alert" pager@example.dom > done Thanks, it works so far. I get Email like that: <17>Aug 19 14:31:43 s_sys@bastet root: foo! What dies the <17> means? (The message was generated by logger with mail.alert) Thanks, Florian From syslog-ng@lists.balabit.hu Tue Aug 19 14:18:30 2003 From: syslog-ng@lists.balabit.hu (Harrie van Arragon) Date: Tue, 19 Aug 2003 15:18:30 +0200 Subject: [syslog-ng]Forwarding unchanged Syslog messages Message-ID: <200308191318.h7JDIUQ00739@mailgate5.cinetic.de> Is it possible to forward syslogmessages without modifing the Host and the messages. I thought "keep_hostname(yes)" would solve the problem, but it didn't. Normaly i use version 1.5.15 shipped with debian, but I tryed 1.5.26 too. I don't konw if its important, but our syslogserver has a load of 100% the whole day (not from syslog-ng). I tryed the following config: options { use_fqdn(yes); sync(0); use_dns(yes); chain_hostnames(yes); keep_hostname(yes); }; source net { tcp(); udp();}; destination pc1 { udp(192.168.1.1);}; destination pc2 { udp(192.168.1.2);}; destination pc3 { udp(192.168.1.3);}; log { source(net); destination(pc1);}; log { source(net); destination(pc2);}; log { source(net); destination(pc3);}; bye Harrie __________________________________________________________________________ Die sicherste Form der Kommunikation: E-Mails verschluesseln, Spam-Filter, Adressverifizierung, digitale Unterschrift: http://freemail.web.de From syslog-ng@lists.balabit.hu Tue Aug 19 14:22:20 2003 From: syslog-ng@lists.balabit.hu (Amodiovalerio Verde) Date: Tue, 19 Aug 2003 15:22:20 +0200 Subject: [syslog-ng]Sending mail to root? References: <200308182351.27729.mailinglists@xgm.de> <200308190020.44102.mailinglists@xgm.de> <20030818223056.GG1244@campin.net> <200308191433.55249.mailinglists@xgm.de> Message-ID: <001901c36654$eb581450$51004701@ags.wan> That's the priority code ie the combination as defined by RFC3164 of severity and facility... Every facility and severity have a numeric value starting from 0. The priority code is calculated as : Facility * 8 + Severity... So 17 is Facility = 2 (mail) and Severity = 1 (alert) You can look here for all codes : http://www.faqs.org/rfcs/rfc3164.html Amodiovalerio Verde ----- Original Message ----- From: "Florian Lindner" To: Sent: Tuesday, August 19, 2003 2:33 PM Subject: Re: [syslog-ng]Sending mail to root? > Thanks, it works so far. > I get Email like that: > > <17>Aug 19 14:31:43 s_sys@bastet root: foo! > > What dies the <17> means? > > (The message was generated by logger with mail.alert) > > Thanks, > Florian > From syslog-ng@lists.balabit.hu Tue Aug 19 14:36:19 2003 From: syslog-ng@lists.balabit.hu (Hamilton Andrew) Date: Tue, 19 Aug 2003 09:36:19 -0400 Subject: [syslog-ng]Forwarding unchanged Syslog messages Message-ID: The keep_hostname is a server option really. If you are receiving messages on that host than keep_hostname is what you are looking for. The server on the other end of your connection,ie 192.168.1.1 needs to be syslog-ng and have its keep_hostname option set to on. Turn chain_hostnames off as all this does is put each hostname that it has passed through on the hostname chain. You probably don't want that. Regards, Drew -----Original Message----- From: Harrie van Arragon [mailto:harrieva@web.de] Sent: Tuesday, August 19, 2003 9:19 AM To: syslog-ng@lists.balabit.hu Subject: [syslog-ng]Forwarding unchanged Syslog messages Is it possible to forward syslogmessages without modifing the Host and the messages. I thought "keep_hostname(yes)" would solve the problem, but it didn't. Normaly i use version 1.5.15 shipped with debian, but I tryed 1.5.26 too. I don't konw if its important, but our syslogserver has a load of 100% the whole day (not from syslog-ng). I tryed the following config: options { use_fqdn(yes); sync(0); use_dns(yes); chain_hostnames(yes); keep_hostname(yes); }; source net { tcp(); udp();}; destination pc1 { udp(192.168.1.1);}; destination pc2 { udp(192.168.1.2);}; destination pc3 { udp(192.168.1.3);}; log { source(net); destination(pc1);}; log { source(net); destination(pc2);}; log { source(net); destination(pc3);}; bye Harrie __________________________________________________________________________ Die sicherste Form der Kommunikation: E-Mails verschluesseln, Spam-Filter, Adressverifizierung, digitale Unterschrift: http://freemail.web.de _______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html From syslog-ng@lists.balabit.hu Tue Aug 19 15:08:12 2003 From: syslog-ng@lists.balabit.hu (Florian Lindner) Date: Tue, 19 Aug 2003 16:08:12 +0200 Subject: [syslog-ng]Sending mail to root? In-Reply-To: <001901c36654$eb581450$51004701@ags.wan> References: <200308182351.27729.mailinglists@xgm.de> <200308191433.55249.mailinglists@xgm.de> <001901c36654$eb581450$51004701@ags.wan> Message-ID: <200308191608.12795.mailinglists@xgm.de> Am Dienstag, 19. August 2003 15:22 schrieb Amodiovalerio Verde: > That's the priority code ie the combination as defined by RFC3164 of > severity and facility... > > Every facility and severity have a numeric value starting from 0. > > The priority code is calculated as : Facility * 8 + Severity... > > So 17 is Facility = 2 (mail) and Severity = 1 (alert) > > You can look here for all codes : http://www.faqs.org/rfcs/rfc3164.html Ok, thanks. Can I use the filename expansion macros described in http://www.balabit.com/products/syslog_ng/reference/x354.html in the program function? So I can give the mail a subject which contains facility und severity. Thx, Florian > ----- Original Message ----- > From: "Florian Lindner" > To: > Sent: Tuesday, August 19, 2003 2:33 PM > Subject: Re: [syslog-ng]Sending mail to root? > > > Thanks, it works so far. > > I get Email like that: > > > > <17>Aug 19 14:31:43 s_sys@bastet root: foo! > > > > What dies the <17> means? > > > > (The message was generated by logger with mail.alert) > > > > Thanks, > > Florian > > _______________________________________________ > syslog-ng maillist - syslog-ng@lists.balabit.hu > https://lists.balabit.hu/mailman/listinfo/syslog-ng > Frequently asked questions at http://www.campin.net/syslog-ng/faq.html From syslog-ng@lists.balabit.hu Tue Aug 19 16:25:58 2003 From: syslog-ng@lists.balabit.hu (Amodiovalerio Verde) Date: Tue, 19 Aug 2003 17:25:58 +0200 Subject: [syslog-ng]Sending mail to root? References: <200308182351.27729.mailinglists@xgm.de> <200308191433.55249.mailinglists@xgm.de> <001901c36654$eb581450$51004701@ags.wan> <200308191608.12795.mailinglists@xgm.de> Message-ID: <001501c36666$30e27270$51004701@ags.wan> i don't remeber if the program template is in 1.6 but i think there is a patch somewhere... that's why i suggested writing a mini-parser...that way you could format things better... btw ... search for the program template patch in the mailing list or try to see if it's already with syslog-ng 1.6... Amodiovalerio Verde ----- Original Message ----- From: "Florian Lindner" To: Sent: Tuesday, August 19, 2003 4:08 PM Subject: Re: [syslog-ng]Sending mail to root? > Am Dienstag, 19. August 2003 15:22 schrieb Amodiovalerio Verde: > > That's the priority code ie the combination as defined by RFC3164 of > > severity and facility... > > > > Every facility and severity have a numeric value starting from 0. > > > > The priority code is calculated as : Facility * 8 + Severity... > > > > So 17 is Facility = 2 (mail) and Severity = 1 (alert) > > > > You can look here for all codes : http://www.faqs.org/rfcs/rfc3164.html > > Ok, thanks. > > Can I use the filename expansion macros described in > http://www.balabit.com/products/syslog_ng/reference/x354.html in the program > function? So I can give the mail a subject which contains facility und > severity. > Thx, > Florian > > > > ----- Original Message ----- > > From: "Florian Lindner" > > To: > > Sent: Tuesday, August 19, 2003 2:33 PM > > Subject: Re: [syslog-ng]Sending mail to root? > > > > > Thanks, it works so far. > > > I get Email like that: > > > > > > <17>Aug 19 14:31:43 s_sys@bastet root: foo! > > > > > > What dies the <17> means? > > > > > > (The message was generated by logger with mail.alert) > > > > > > Thanks, > > > Florian > > > > _______________________________________________ > > syslog-ng maillist - syslog-ng@lists.balabit.hu > > https://lists.balabit.hu/mailman/listinfo/syslog-ng > > Frequently asked questions at http://www.campin.net/syslog-ng/faq.html > > _______________________________________________ > syslog-ng maillist - syslog-ng@lists.balabit.hu > https://lists.balabit.hu/mailman/listinfo/syslog-ng > Frequently asked questions at http://www.campin.net/syslog-ng/faq.html From syslog-ng@lists.balabit.hu Tue Aug 19 21:22:18 2003 From: syslog-ng@lists.balabit.hu (Achim Gsell) Date: Tue, 19 Aug 2003 22:22:18 +0200 Subject: [syslog-ng]Sending mail to root? In-Reply-To: <001501c36666$30e27270$51004701@ags.wan> References: <200308182351.27729.mailinglists@xgm.de> <200308191608.12795.mailinglists@xgm.de> <001501c36666$30e27270$51004701@ags.wan> Message-ID: <200308192222.18960.achim@cybercity.ch> On Tuesday 19 August 2003 17:25, Amodiovalerio Verde wrote: > i don't remeber if the program template is in 1.6 but i think there is a > patch somewhere... > > that's why i suggested writing a mini-parser...that way you could format > things better... > > btw ... search for the program template patch in the mailing list or try to > see if it's already with syslog-ng 1.6... It is! In version 1.6rc{1,2,3} you can use templates for all destinations types. Achim From syslog-ng@lists.balabit.hu Tue Aug 19 23:56:18 2003 From: syslog-ng@lists.balabit.hu (Florian Lindner) Date: Wed, 20 Aug 2003 00:56:18 +0200 Subject: [syslog-ng]Sending mail to root? In-Reply-To: <200308192222.18960.achim@cybercity.ch> References: <200308182351.27729.mailinglists@xgm.de> <001501c36666$30e27270$51004701@ags.wan> <200308192222.18960.achim@cybercity.ch> Message-ID: <200308200056.18301.mailinglists@xgm.de> Am Dienstag, 19. August 2003 22:22 schrieb Achim Gsell: > On Tuesday 19 August 2003 17:25, Amodiovalerio Verde wrote: > > i don't remeber if the program template is in 1.6 but i think there is a > > patch somewhere... > > > > that's why i suggested writing a mini-parser...that way you could format > > things better... > > > > btw ... search for the program template patch in the mailing list or try > > to see if it's already with syslog-ng 1.6... > > It is! In version 1.6rc{1,2,3} you can use templates for all destinations > types. How does it work? I've set up a destination: destination d_mailroot { program("/root/bin/sendline.sh '[syslog exception] Level: $LEVEL, Facility: $FACILITY'"); }; But mails subject is like that: "syslog exception] Level: $LEVEL, Facility: $FACILITY" The macros are not expanded. I'm using 1.6 rc3 Thanks, Florian From syslog-ng@lists.balabit.hu Wed Aug 20 02:57:21 2003 From: syslog-ng@lists.balabit.hu (Wang, Zhenyu Z) Date: Wed, 20 Aug 2003 09:57:21 +0800 Subject: [syslog-ng]src/tests/testall failed! Message-ID: <6E0C289723A0564F9A8279E236E8565F04B1C470@pdsmsx402.pd.intel.com> I use the config file in contrib directory named syslog-ng.conf.Redhat. --begin-- options { sync (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 { pipe ("/proc/kmsg" log_prefix("kernel: ")); unix-stream ("/dev/log"); internal(); }; 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"); }; destination d_spol { file("/var/log/spooler"); }; destination d_boot { file("/var/log/boot.log"); }; destination d_cron { file("/var/log/cron"); }; destination d_mlal { usertty("*"); }; filter f_filter1 { facility(kern); }; filter f_filter2 { level(info) and not (facility(mail) or facility(authpriv) or facility(cron)); }; filter f_filter3 { facility(authpriv); }; filter f_filter4 { facility(mail); }; filter f_filter5 { level(emerg); }; filter f_filter6 { facility(uucp) or (facility(news) and level(crit)); }; filter f_filter7 { facility(local7); }; filter f_filter8 { facility(cron); }; #log { source(s_sys); filter(f_filter1); destination(d_cons); }; log { source(s_sys); filter(f_filter2); destination(d_mesg); }; log { source(s_sys); filter(f_filter3); destination(d_auth); }; log { source(s_sys); filter(f_filter4); destination(d_mail); }; log { source(s_sys); filter(f_filter5); destination(d_mlal); }; log { source(s_sys); filter(f_filter6); destination(d_spol); }; log { source(s_sys); filter(f_filter7); destination(d_boot); }; log { source(s_sys); filter(f_filter8); destination(d_cron); }; --end-- syslogd & klogd are stopped. But syslog-ng failed to start. #service syslog status syslogd is stopped klogd is stopped #syslog-ng Error opening file /proc/kmsg for reading (No such file or directory) Error initializing configuration, exiting. Then I try to forget about kernel logging first. I use another simple configuration for test. --begin-- # Simple syslog-ng.conf file. options { use_fqdn(no); sync(0); }; source s_sys { unix-stream("/dev/log"); internal(); }; destination d_security { file("/var/log/security"); }; destination d_messages { file("/var/log/messages"); }; destination d_console { usertty("root"); }; filter f_authpriv { facility(auth, authpriv); }; filter f_messages { level(info .. emerg) and not facility(auth, authpriv); }; filter f_emergency { level(emerg); }; log { source(s_sys); filter(f_authpriv); destination(d_security); }; log { source(s_sys); filter(f_messages); destination(d_messages); }; log { source(s_sys); filter(f_emergency); destination(d_console); }; --end-- syslog-ng seems to start this time. But I find a file named '?' in the=20 syslog-ng starting directory,it contains the exact logging messages. #syslog-ng #ls ? bin doc etc ... #logger -p local0.info "test test" #cat ? Aug 20 09:43:20 s_sys@power syslog-ng[351]: syslog-ng version 1.6.0rc3 starting Aug 20 09:43:20 s_sys@power syslog-ng[351]: syslog-ng version 1.6.0rc3 starting Aug 20 09:44:00 s_sys@power CROND[358]: (mailman) CMD (/usr/bin/python -S /var/mailman/cron/qrunner) Aug 20 09:44:00 s_sys@power CROND[358]: (mailman) CMD (/usr/bin/python -S /var/mailman/cron/qrunner) Aug 20 09:44:38 s_sys@power root: test test Aug 20 09:44:38 s_sys@power root: test test # The result is same by replace unix-stream with unix-dgram in source directive. The debug output is like: #syslog-ng -d -F io.c: listening on fd 3 syslog-ng version 1.6.0rc3 starting io.c: Preparing fd 4 for reading Read EOF on fd 4. Marking fd 4 for closing. Closing fd 4. io.c: Preparing fd 4 for reading Read EOF on fd 4. Marking fd 4 for closing. Closing fd 4. io.c: Preparing fd 4 for reading io.c: Preparing fd 5 for writing Read EOF on fd 4. Marking fd 4 for closing. Closing fd 4. io.c: Preparing fd 4 for reading Read EOF on fd 4. Marking fd 4 for closing. Closing fd 4. ... best regards zhen -----Original Message----- From: Hamilton Andrew [mailto:Andrew.Hamilton@afccc.af.mil]=20 Sent: Tuesday, August 19, 2003 8:20 PM To: syslog-ng@lists.balabit.hu Subject: RE: [syslog-ng]src/tests/testall failed! I have 8 Redhat 7.3 systems running syslog-ng with that very source statement, except I use unix-dgram, and it works fine. Have you stopped klogd? Are you chroot-ing? Why don't you post your entire config file? That may help us help you more. Regards, Drew -----Original Message----- From: Wang, Zhenyu Z [mailto:zhenyu.z.wang@intel.com] Sent: Tuesday, August 19, 2003 1:33 AM To: syslog-ng@lists.balabit.hu Subject: RE: [syslog-ng]src/tests/testall failed! Can you tell me why the script does not work? On my RH7.3, syslog-ng.conf.Redhat is not working fine. source s_sys { pipe ("/proc/kmsg" log_prefix("kernel: ")); unix-stream ("/dev/log"); internal(); }; $syslog-ng Error opening file /proc/kmsg for reading (No such file or directory) Error initializing configuration, exiting. Is there something in system I should tune? zhen -----Original Message----- From: Balazs Scheidler [mailto:bazsi@balabit.hu]=20 Sent: Monday, August 18, 2003 9:21 PM To: syslog-ng@lists.balabit.hu Subject: Re: [syslog-ng]src/tests/testall failed! On Mon, Aug 18, 2003 at 05:19:20PM +0800, Wang, Zhenyu Z wrote: > After I have successfully compiled syslog-ng-1.0.6rc3, I run > src/tests/testall script but it failed. that script was written years ago and may not function correctly. --=20 Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1 _______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html _______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html _______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html From syslog-ng@lists.balabit.hu Wed Aug 20 20:40:05 2003 From: syslog-ng@lists.balabit.hu (Achim Gsell) Date: Wed, 20 Aug 2003 21:40:05 +0200 Subject: [syslog-ng]Sending mail to root? In-Reply-To: <200308200056.18301.mailinglists@xgm.de> References: <200308182351.27729.mailinglists@xgm.de> <200308192222.18960.achim@cybercity.ch> <200308200056.18301.mailinglists@xgm.de> Message-ID: <200308202140.05873.achim@cybercity.ch> On Wednesday 20 August 2003 00:56, Florian Lindner wrote: > Am Dienstag, 19. August 2003 22:22 schrieb Achim Gsell: > > On Tuesday 19 August 2003 17:25, Amodiovalerio Verde wrote: > > > i don't remeber if the program template is in 1.6 but i think there is > > > a patch somewhere... > > > > > > that's why i suggested writing a mini-parser...that way you could > > > format things better... > > > > > > btw ... search for the program template patch in the mailing list or > > > try to see if it's already with syslog-ng 1.6... > > > > It is! In version 1.6rc{1,2,3} you can use templates for all destinations > > types. > > How does it work? > > I've set up a destination: > > destination d_mailroot { program("/root/bin/sendline.sh '[syslog exception] > Level: $LEVEL, Facility: $FACILITY'"); }; > > But mails subject is like that: "syslog exception] Level: $LEVEL, Facility: > $FACILITY" > The macros are not expanded. > I'm using 1.6 rc3 Try something like the definition below and read the manual! destination d_mailroot { program("/root/bin/sendline.sh" template("$DATE $HOST [$FACILITY.$LEVEL] $MSG\n") template_escape(no) ); }; Achim From syslog-ng@lists.balabit.hu Thu Aug 21 00:00:29 2003 From: syslog-ng@lists.balabit.hu (Florian Lindner) Date: Thu, 21 Aug 2003 01:00:29 +0200 Subject: [syslog-ng]Sending mail to root? In-Reply-To: <200308202140.05873.achim@cybercity.ch> References: <200308182351.27729.mailinglists@xgm.de> <200308200056.18301.mailinglists@xgm.de> <200308202140.05873.achim@cybercity.ch> Message-ID: <200308210100.29897.mailinglists@xgm.de> Am Mittwoch, 20. August 2003 21:40 schrieb Achim Gsell: > On Wednesday 20 August 2003 00:56, Florian Lindner wrote: > > Am Dienstag, 19. August 2003 22:22 schrieb Achim Gsell: > > > On Tuesday 19 August 2003 17:25, Amodiovalerio Verde wrote: > > > > i don't remeber if the program template is in 1.6 but i think there > > > > is a patch somewhere... > > > > > > > > that's why i suggested writing a mini-parser...that way you could > > > > format things better... > > > > > > > > btw ... search for the program template patch in the mailing list or > > > > try to see if it's already with syslog-ng 1.6... > > > > > > It is! In version 1.6rc{1,2,3} you can use templates for all > > > destinations types. > > > > How does it work? > > > > I've set up a destination: > > > > destination d_mailroot { program("/root/bin/sendline.sh '[syslog > > exception] Level: $LEVEL, Facility: $FACILITY'"); }; > > > > But mails subject is like that: "syslog exception] Level: $LEVEL, > > Facility: $FACILITY" > > The macros are not expanded. > > I'm using 1.6 rc3 > > Try something like the definition below and read the manual! > > destination d_mailroot { > program("/root/bin/sendline.sh" > template("$DATE $HOST [$FACILITY.$LEVEL] $MSG\n") > template_escape(no) > ); > }; Which manual? In http://www.balabit.com/products/syslog_ng/reference/book1.html I've found nothing about templates. I really would like to understand templates. (right now I don't for example what is template_escape?) Thanks, Florian From syslog-ng@lists.balabit.hu Thu Aug 21 17:18:35 2003 From: syslog-ng@lists.balabit.hu (Balazs Scheidler) Date: Thu, 21 Aug 2003 18:18:35 +0200 Subject: [syslog-ng]Power fail restart In-Reply-To: <3F40EDC0.6A9EE187@utoronto.ca> References: <3F40EDC0.6A9EE187@utoronto.ca> Message-ID: <20030821161834.GA19639@balabit.hu> On Mon, Aug 18, 2003 at 11:16:16AM -0400, Erik Ivanenko wrote: > > > I am running version 1.5.13. All but 2 of 60 remote devices FAILED to > reconnect when the power returned in Ontario. The cental logging host > did not go off-line, as it was on emergency power. > > I use the standard /etc/init.d/syslog-ng start scripts for the remote > devices. They are all Linux machines. After issuing HUP to the central > host, 9 of 60 connections are working. > > Running "snoop" shows that the remote daemons have stopped trying to > connect. I thought that syslog-ng was supposed to reconnect after such > events? > > Can anyone tell me what I can do to make these remote devices reconnect? > Must I manually restart syslog-ng on each remote client? not necessarily, though they were such bugs fixed during 1.5.x, I think you should upgrade to 1.6.0rc3 which is more stable. -- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1 From syslog-ng@lists.balabit.hu Thu Aug 21 20:13:38 2003 From: syslog-ng@lists.balabit.hu (Achim Gsell) Date: Thu, 21 Aug 2003 21:13:38 +0200 Subject: [syslog-ng]Sending mail to root? In-Reply-To: <200308210100.29897.mailinglists@xgm.de> References: <200308182351.27729.mailinglists@xgm.de> <200308202140.05873.achim@cybercity.ch> <200308210100.29897.mailinglists@xgm.de> Message-ID: <200308212113.39206.achim@cybercity.ch> On Thursday 21 August 2003 01:00, Florian Lindner wrote: > Which manual? > In http://www.balabit.com/products/syslog_ng/reference/book1.html I've > found nothing about templates. > > I really would like to understand templates. (right now I don't for example > what is template_escape?) The manual is part of the source distribution (doc/sgml/syslog-ng.ps). Download it from http://www.balabit.com/downloads/syslog-ng/1.6/src/syslog-ng-1.6.0rc3.tar.gz or a mirror site. Achim From syslog-ng@lists.balabit.hu Fri Aug 22 08:01:14 2003 From: syslog-ng@lists.balabit.hu (Wang, Zhenyu Z) Date: Fri, 22 Aug 2003 15:01:14 +0800 Subject: [syslog-ng]syslog-ng failed on Coosbay server,succeeded on Langley Message-ID: <6E0C289723A0564F9A8279E236E8565F04B1C478@pdsmsx402.pd.intel.com> After receiving your answer, I have tried a lot of configuration ways to make my syslog-ng to run on Coosbay server. But it failed at last. Then I compile and install syslog-ng-1.6rc3 on Langley server with RH7.3. Put sample config file into use. Everything seems so fine. I am now happy with syslog-ng. I am not sure about the difference between Coosbay and Langley. But syslog-ng does have some problems running on coosbay server. I don't know why. thanks zhen -----Original Message----- From: Hamilton Andrew [mailto:Andrew.Hamilton@afccc.af.mil]=20 Sent: Tuesday, August 19, 2003 8:20 PM To: syslog-ng@lists.balabit.hu Subject: RE: [syslog-ng]src/tests/testall failed! I have 8 Redhat 7.3 systems running syslog-ng with that very source statement, except I use unix-dgram, and it works fine. Have you stopped klogd? Are you chroot-ing? Why don't you post your entire config file? That may help us help you more. Regards, Drew -----Original Message----- From: Wang, Zhenyu Z [mailto:zhenyu.z.wang@intel.com] Sent: Tuesday, August 19, 2003 1:33 AM To: syslog-ng@lists.balabit.hu Subject: RE: [syslog-ng]src/tests/testall failed! Can you tell me why the script does not work? On my RH7.3, syslog-ng.conf.Redhat is not working fine. source s_sys { pipe ("/proc/kmsg" log_prefix("kernel: ")); unix-stream ("/dev/log"); internal(); }; $syslog-ng Error opening file /proc/kmsg for reading (No such file or directory) Error initializing configuration, exiting. Is there something in system I should tune? zhen -----Original Message----- From: Balazs Scheidler [mailto:bazsi@balabit.hu]=20 Sent: Monday, August 18, 2003 9:21 PM To: syslog-ng@lists.balabit.hu Subject: Re: [syslog-ng]src/tests/testall failed! On Mon, Aug 18, 2003 at 05:19:20PM +0800, Wang, Zhenyu Z wrote: > After I have successfully compiled syslog-ng-1.0.6rc3, I run > src/tests/testall script but it failed. that script was written years ago and may not function correctly. --=20 Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1 _______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html _______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html _______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html From syslog-ng@lists.balabit.hu Mon Aug 25 19:43:06 2003 From: syslog-ng@lists.balabit.hu (William Pope) Date: Mon, 25 Aug 2003 14:43:06 -0400 Subject: [syslog-ng]$DAY in Message-ID: <004301c36b38$bbf63000$020b010a@bubba> This is a multi-part message in MIME format. ------=_NextPart_000_0044_01C36B17.34E49000 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable I recently upgraded syslog-ng from version 1.4.17 to 1.6.0rc3. After = the upgrade, the system logs do not include the DAY when sent to the = following destination. =20 destination hosts { = file("/var/adm/logs/$HOST/$YEAR/$MONTH/$DAY_$FACILITY"); }; I get logs like /var/logs/HOST/2003/08/kern.log instead of /var/logs/HOST/2003/08/25_kern.log like I did with version 1.4.17. The = day and the underscore are missing. I am using the same conf file as = 1.4.17. =20 Any help would be greatly appreciated! I am sure I am missing something stupid. =20 Thank you, =20 Will =20 ------------------------------------------------------------------- This is a PRIVATE message, intended for the designated recipient(s) only = and may contain privileged or confidential information. If you have = received this message in error, please notify me immediately, delete the = original, and destroy any paper copies. Any other use of the email by you is prohibited. NOTE: Regardless of content, this e-mail shall not operate to bind the sender to any order or other contract unless pursuant to explicit = written agreement or government initiative expressly permitting the use of = e-mail for such purpose. =20 ------=_NextPart_000_0044_01C36B17.34E49000 Content-Type: text/html; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Message
I = recently upgraded=20 syslog-ng from version 1.4.17 to 1.6.0rc3.  After the upgrade, the = system=20 logs do not include the DAY when sent to the following=20 destination.
 
destination hosts {=20 file("/var/adm/logs/$HOST/$YEAR/$MONTH/$DAY_$FACILITY");=20 };
I get=20 logs like /var/logs/HOST/2003/08/kern.log instead of=20 /var/logs/HOST/2003/08/25_kern.log like I did with version = 1.4.17. =20 The day and the underscore are missing.  I am using the same conf = file as=20 1.4.17.
 
Any help=20 would be greatly appreciated!  I am sure I am missing something=20 stupid.
 
Thank=20 you,
 
Will
 
----------------------------------------------------------------= ---
This is a PRIVATE message, = intended for=20 the designated recipient(s) only and may contain privileged or = confidential=20 information.  If you have received this message in error, please = notify me=20 immediately, delete the original, and destroy any paper copies.  = Any other=20 use of the email by you is prohibited.
NOTE: Regardless of content, = this=20 e-mail shall not operate to bind the sender to any order or other = contract=20 unless pursuant to explicit written agreement or government initiative = expressly=20 permitting the use of e-mail for such purpose.
 
------=_NextPart_000_0044_01C36B17.34E49000-- From syslog-ng@lists.balabit.hu Mon Aug 25 22:03:32 2003 From: syslog-ng@lists.balabit.hu (Matt Miller) Date: Mon, 25 Aug 2003 17:03:32 -0400 Subject: [syslog-ng]newbie linux/syslog-ng server question... Message-ID: <3F4A79A4.8060702@duke.edu> When running syslog-ng on linux, do I still need to run klogd... or does syslog-ng replace syslogd and klogd? matt -- Matt Miller IT Infrastructure Team Duke University - Fuqua School of Business From syslog-ng@lists.balabit.hu Mon Aug 25 22:08:23 2003 From: syslog-ng@lists.balabit.hu (=?iso-8859-1?Q?J=E9r=F4me_Fenal?=) Date: Mon, 25 Aug 2003 23:08:23 +0200 Subject: [syslog-ng]$DAY in Message-ID: This is a multi-part message in MIME format. ------_=_NextPart_001_01C36B4D.05097E43 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable It seems that syslog-ng thinks you're looking for $DAY_ and not $DAY. Try to replace the underscore by a dot, or RTFM to see if syslog-ng = supports specifying variables that way : ${DAY}. Regards, J. -----Original Message----- From: William Pope [mailto:pope.william@epa.gov] Sent: Mon 8/25/2003 20:43 To: syslog-ng@lists.balabit.hu Cc:=09 Subject: [syslog-ng]$DAY in I recently upgraded syslog-ng from version 1.4.17 to 1.6.0rc3. After the upgrade, the system logs do not include the DAY when sent to the following destination. =20 destination hosts { file("/var/adm/logs/$HOST/$YEAR/$MONTH/$DAY_$FACILITY"); }; I get logs like /var/logs/HOST/2003/08/kern.log instead of /var/logs/HOST/2003/08/25_kern.log like I did with version 1.4.17. The day and the underscore are missing. I am using the same conf file as 1.4.17. =20 Any help would be greatly appreciated! I am sure I am missing something stupid. =20 Thank you, =20 Will =20 ------------------------------------------------------------------- This is a PRIVATE message, intended for the designated recipient(s) only and may contain privileged or confidential information. If you have received this message in error, please notify me immediately, delete the original, and destroy any paper copies. Any other use of the email by you is prohibited. NOTE: Regardless of content, this e-mail shall not operate to bind the sender to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose. =20 This e-mail and any attachment is for authorised use by the intended = recipient(s) only. It may contain proprietary material, confidential = information and/or be subject to legal privilege. It should not be = copied, disclosed to, retained or used by, any other party. If you are = not an intended recipient then please promptly delete this e-mail and = any attachment and all copies and inform the sender. Thank you. ------_=_NextPart_001_01C36B4D.05097E43 Content-Type: application/ms-tnef; name="winmail.dat" Content-Transfer-Encoding: base64 eJ8+Iq8BAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAEIgAcAGAAAAElQTS5NaWNy b3NvZnQgTWFpbC5Ob3RlADEIASCAAwAOAAAA0wcIABkAFwAQAAIAAQAlAQENgAQAAgAAAAIAAgAB BIABABcAAABSRTogW3N5c2xvZy1uZ10kREFZIGluAEUHAQWAAwAOAAAA0wcIABkAFwAIABcAAQAy AQEJgAEAIQAAADE4MkI2MDVFQUUAN0IwNEQ5NzIwMzNFRjFFRjVBMTJDADMHAQOQBgAYDQAAPQAA AEAABzCgelAWTmvDAUAACDCgelAWTmvDAQMA9w8BAAAAAwD0DwMAAAAeAAQOAQAAAAEAAAAAAAAA HgADDgEAAAABAAAAAAAAAB4AAg4BAAAAAQAAAAAAAAACAQkQAQAAAJUGAACRBgAAZwsAAExaRnWu 9NBFAwAKAHJjcGcxMjXiMgNDdGV4BUEBAwH3/wqAAqQD5AcTAoAP8wBQBFY/CFUHshElDlEDAQIA Y2jhCsBzZXQyBgAGwxEl9jMERhO3MBIsETMI7wn3tjsYHw4wNREiDGBjAFAzCwkBZDM2FlALpiBJ 0wVAFBBlbQQgdBPgHQGEeXMXsGctbmcdcVULgGsEIHkIYCcYICB5F7BvawuAHlACEAXAJCBEQVlf IABwZCDsbm8FQCASLgqiCoQKgMhUcnkdcG8gGCALUe5jHzAdgB8wdSCABJAE8IsFsB8wYiIgYSBk IMCELCAFsVJURk0iMg0dISAGkB3Jc3VwcLMXwQQgc3AFkAaQeR+SPnYKwAcwAmAHkR2Dd2ElIiA6 IABceyAhXH2RITtSZWcLEXMsIUpWSiE7IUQtLKJPBRBnDwuAB0AF0AeQc2FnZSssoyFERgNhOgyC IFeFAxBsBzBtIFBvJuDcIFsAwAMQIkA6JnAm4BYuA/AvY0AigGEuZ3hvdl0hRAZgAjAu5E0xAiAg OC8OMDMwMDDkMyAB0Do0FTAhtDBwKy7zHddAL3BzJqAuYsMHQAGgaXQuaAxwIVOMQ2Mu5DHldWJq BZD1MnVbHdddIBIlYAuQIVPuSSJhIsACMGwiICZQCcB+YQEAIJAd2ANSJ3AjYWmBMvExLjQuMTci MgE80DYuMHJjMy7+IBDAAYAEkCFEIvM65CRg/yLyHdEOsC+gHgEEICQwIKO9C4BjCkABACLjOWJ3 IwD/A6AUEAIwIjIi8SFEAhAvYP5vA/AeQQEANbAtMURAAiDHITU3ZUQZIGhvNbEDMIcAAEMkAxBl KCIvJ4ESLzsQbS9AUi8kSAhPU1RIcFlFQVLBSHBNT05USEhwICIAJEZBQ0lMSVTQWSIpOwMwfRkw IVnfOiAt0AVAQFMvcGsfMEej50gzSJMzci8wMyBMkASgvi4eATmRQAE7ECRwZiFEd0zPTdQOMF9O N0xzOiBkvmkgkAPwHYA8TT3xVEL2vmQogSByIv0KwB8wbQQB7x+RPfE6IC+RdVZyP5QvkLsfMAWg biWAR0IgYHMhRDNTdUTbQW4iICMAbHDrKGAIYGwgkGIfMAnBHaA9OqFhJmA6QQcwDrBkIf9WxSZA HyFW41ZFHRADcBQg/R6BZyFENbAmUFJwRMxUAP0AcGse0iqVN2UvQkTbLKP/Y29kf2WPZklgRgQA JWAEIAEkEFBSSVZBVEX/VjAtlCRgC4AOsCNBIJAf0v8i8kQRLRBEYTsxXFJfkDJR6ChzKSRwbjqg IUQgcl8AwCIgWCEBkAuAIFxAaf52R1Et0E8hBcBYIlJwMlH/BzE5kR/RAMBEg1bBJYAe4f1GUGE8 UCFEOkJtsDsxHnG3BCBo1TmRIASQA2ByJGB/C1BPABQQIKInEWjBJWBt/weAUmBckTqgJGABACfg DrD/QtgFsC0UJGAgckQSA2BUsv8iIAqwJuBuUmthNdA+AVqR/yDAIwAFwFcwHzBPQCLjHUC/MDEj 0SFEcFJn0VxAbx6A5zYxCYAhNU5PaKAosCok/yfhBCB5gW0SMlE/gmfRLeD9egNzE+AvYCCjL9E7 AHVS/yJQNjBU5F8FaZJqESJQd3L/BbCBQgWxeORtEjsAOCAjIf19E3AIcCZAAHBCkw7AC1D3DeA2 QCFEdwUQAkBCMS3A/wnRB4BCgQWxMaEEkYZTC4D/NkBcgXFxhJIYIAQQOqF30f9WQAJAV1Z5QXW1 JYB+dR/S/yZAE9CD0iZwFBBEzCFLfjn/IHJ3ch2gAZAT0Ic0BCAf0vxhdR2AdhEUECCQeUIj4f8i 8mlnay9WsgVAbNwv0AiB/wGQIhFvkQZxdnJuf2+FIGL+LwWxW3EmQDfzIjJt4S1Rf22XkvR+4Fsj ILJbcXgTZN908QQAQTCLwVTxbyRgGCD/bUJuFHlBW1F04YGzePMKsf50kuNwNFYCILIDkZFfQpH3 QiJzNXtBbQUwOqF1F42//47KoyN/EXgUIGNvRD+UgSPXU9NgxSt/DUbTIAqFCoDeKqlvqn+rj6yf KqiFjZT/ottHQh1hOwAAgIkCOzFSo/82QFXzlXsgcaiFaWdecCfg3zqhafZ5SYBBbbFkhCADIP8F sZXSngAiMkIQPCEi8Wwj96jBVgI7EGSIYnvBcBo6M/9xeHn0cpZzLKiFP6kDgS3BDaaBTB4QDeBh Q01H36j/vv/AD8EfrT59wyDDYAAAAEAAOQBDfgkFTWvDAQMAJgAAAAAAAwA2AAAAAAAeAD0AAQAA AAUAAABSRTogAAAAAAIBRwABAAAANwAAAGM9Tkw7YT0gO3A9R1JPVVAtTUFJTDtsPUZSLVBBUi1N QjAxLTAzMDgyNTIxMDgyM1otNjA2MAAAHgBJAAEAAAATAAAAW3N5c2xvZy1uZ10kREFZIGluAABA AE4AANnXuDhrwwEeAFoAAQAAAA0AAABXaWxsaWFtIFBvcGUAAAAAAgFbAAEAAAA/AAAAAAAAAIEr H6S+oxAZnW4A3QEPVAIAAAAAV2lsbGlhbSBQb3BlAFNNVFAAcG9wZS53aWxsaWFtQGVwYS5nb3YA AAIBXAABAAAAGgAAAFNNVFA6UE9QRS5XSUxMSUFNQEVQQS5HT1YAAAAeAF0AAQAAAA0AAABXaWxs aWFtIFBvcGUAAAAAAgFeAAEAAAA/AAAAAAAAAIErH6S+oxAZnW4A3QEPVAIAAAAAV2lsbGlhbSBQ b3BlAFNNVFAAcG9wZS53aWxsaWFtQGVwYS5nb3YAAAIBXwABAAAAGgAAAFNNVFA6UE9QRS5XSUxM SUFNQEVQQS5HT1YAAAAeAGYAAQAAAAUAAABTTVRQAAAAAB4AZwABAAAAFQAAAHBvcGUud2lsbGlh bUBlcGEuZ292AAAAAB4AaAABAAAABQAAAFNNVFAAAAAAHgBpAAEAAAAVAAAAcG9wZS53aWxsaWFt QGVwYS5nb3YAAAAAHgBwAAEAAAATAAAAW3N5c2xvZy1uZ10kREFZIGluAAACAXEAAQAAABsAAAAB w2s42dPV2BWGA4dOFr6UVeIcyr76AAT5OBkAHgB0AAEAAAAbAAAAc3lzbG9nLW5nQGxpc3RzLmJh bGFiaXQuaHUAAB4AGgwBAAAADQAAAErpcvRtZSBGZW5hbAAAAAAeAB0OAQAAABMAAABbc3lzbG9n LW5nXSREQVkgaW4AAB4ANRABAAAARwAAADxGQTc5NTlBNDhCNzU0RTQ1OUU2QkZEODhCMDFGNDZC RUFFMEQ2NEBmci1wYXItbWIwMS5mcmEuZ3JvdXAuY21nLmNvbT4AAB4ARxABAAAADwAAAG1lc3Nh Z2UvcmZjODIyAAALAPIQAQAAAAsA9hAAAAAAAwDeP69vAAADAPE/CQQAAB4A+D8BAAAADQAAAErp cvRtZSBGZW5hbAAAAAACAfk/AQAAAEwAAAAAAAAA3KdAyMBCEBq0uQgAKy/hggEAAAAAAAAAL089 R1JPVVAtTUFJTC9PVT1BRy1GUkEvQ049UkVDSVBJRU5UUy9DTj1KRkVOQUwAHgD6PwEAAAAVAAAA U3lzdGVtIEFkbWluaXN0cmF0b3IAAAAAAgH7PwEAAAAeAAAAAAAAANynQMjAQhAatLkIACsv4YIB AAAAAAAAAC4AAAADAP0/5AQAAAMAGUAAAAAAAwAaQAAAAAADAB1AAAAAAAMAHkAAAAAAHgAwQAEA AAAHAAAASkZFTkFMAAAeADFAAQAAAAcAAABKRkVOQUwAAB4AMkABAAAAFQAAAHBvcGUud2lsbGlh bUBlcGEuZ292AAAAAB4AM0ABAAAAFQAAAHBvcGUud2lsbGlhbUBlcGEuZ292AAAAAB4AOEABAAAA BwAAAEpGRU5BTAAAHgA5QAEAAAACAAAALgAAAAsAKQAAAAAACwAjAAAAAAADAAYQRIlyYQMABxBA BgAAAwAQEAAAAAADABEQAQAAAB4ACBABAAAAZQAAAElUU0VFTVNUSEFUU1lTTE9HLU5HVEhJTktT WU9VUkVMT09LSU5HRk9SJERBWUFORE5PVCREQVlUUllUT1JFUExBQ0VUSEVVTkRFUlNDT1JFQllB RE9ULE9SUlRGTVRPU0VFSUYAAAAAAgF/AAEAAABHAAAAPEZBNzk1OUE0OEI3NTRFNDU5RTZCRkQ4 OEIwMUY0NkJFQUUwRDY0QGZyLXBhci1tYjAxLmZyYS5ncm91cC5jbWcuY29tPgAAHgDzEAEAAAAd AAAAUkUlM0EgW3N5c2xvZy1uZ10kREFZIGluLkVNTAAAAAALAB8OAABnXcqR ------_=_NextPart_001_01C36B4D.05097E43-- From syslog-ng@lists.balabit.hu Mon Aug 25 22:09:11 2003 From: syslog-ng@lists.balabit.hu (seth vidal) Date: 25 Aug 2003 17:09:11 -0400 Subject: [syslog-ng]newbie linux/syslog-ng server question... In-Reply-To: <3F4A79A4.8060702@duke.edu> References: <3F4A79A4.8060702@duke.edu> Message-ID: <1061845751.26027.36.camel@opus.phy.duke.edu> On Mon, 2003-08-25 at 17:03, Matt Miller wrote: > When running syslog-ng on linux, do I still need to run klogd... or does > syslog-ng replace syslogd and klogd? Hi matt, You have to setup a certain source pipe("/proc/kmsg") then you don't need klogd. also if you need syslog-ng packages for the distro additions on campus ask on the internal lists. I've got rpms for 7.3 and 9 duke addons. -sv From syslog-ng@lists.balabit.hu Tue Aug 26 20:40:34 2003 From: syslog-ng@lists.balabit.hu (Matt Scifo) Date: 26 Aug 2003 12:40:34 -0700 Subject: [syslog-ng]template_escape character not valid for oracle Message-ID: <1061926834.23729.59.camel@localhost> Hello I just started using syslog-ng with an oracle database as my destination. I have discovered that Oracle does not accept a backslash as an escape character (I thought backslash was a standard). The following query does not work in Oracle... INSERT INTO messages (ID, TIMESTAMP, HOST ,FACILITY, PRIORITY, TAG, PROGRAM, MESSAGE) VALUES ('', to_date('2003-08-26 11:51:00', 'yyyy-mm-dd hh24:mi:ss'), 'host1', 'local0', 'warning', '84', '1', 'STOP: \'edrasmu\' message') It will only accept a single quote for escaping a single quote... INSERT INTO messages (ID, TIMESTAMP, HOST ,FACILITY, PRIORITY, TAG, PROGRAM, MESSAGE) VALUES ('', to_date('2003-08-26 11:51:00', 'yyyy-mm-dd hh24:mi:ss'), 'host1', 'local0', 'warning', '84', '1', 'STOP: ''edrasmu'' message') How hard would it be to change the escape character that syslog-ng is looking for, or even better, make a template_escape(string) option which accepts a custom escape string? Where is the code that handles the escaping of characters located in the source? Matt Scifo mscifo@o1.com From syslog-ng@lists.balabit.hu Wed Aug 27 12:42:10 2003 From: syslog-ng@lists.balabit.hu (Balazs Scheidler) Date: Wed, 27 Aug 2003 13:42:10 +0200 Subject: [syslog-ng]template_escape character not valid for oracle In-Reply-To: <1061926834.23729.59.camel@localhost> References: <1061926834.23729.59.camel@localhost> Message-ID: <20030827114209.GC11883@balabit.hu> On Tue, Aug 26, 2003 at 12:40:34PM -0700, Matt Scifo wrote: > Hello > > I just started using syslog-ng with an oracle database as my > destination. I have discovered that Oracle does not accept a backslash > as an escape character (I thought backslash was a standard). > > The following query does not work in Oracle... > > INSERT INTO messages (ID, TIMESTAMP, HOST ,FACILITY, PRIORITY, TAG, > PROGRAM, MESSAGE) VALUES ('', to_date('2003-08-26 11:51:00', 'yyyy-mm-dd > hh24:mi:ss'), 'host1', 'local0', 'warning', '84', '1', 'STOP: > \'edrasmu\' message') > > It will only accept a single quote for escaping a single quote... > > INSERT INTO messages (ID, TIMESTAMP, HOST ,FACILITY, PRIORITY, TAG, > PROGRAM, MESSAGE) VALUES ('', to_date('2003-08-26 11:51:00', 'yyyy-mm-dd > hh24:mi:ss'), 'host1', 'local0', 'warning', '84', '1', 'STOP: > ''edrasmu'' message') > > How hard would it be to change the escape character that syslog-ng is > looking for, or even better, make a template_escape(string) option which > accepts a custom escape string? Where is the code that handles the > escaping of characters located in the source? you are looking for macros.c, append_string function, currently the escaping via '\' is absolutely wired in. -- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1 From syslog-ng@lists.balabit.hu Wed Aug 27 17:24:55 2003 From: syslog-ng@lists.balabit.hu (Matt Scifo) Date: 27 Aug 2003 09:24:55 -0700 Subject: [syslog-ng]template_escape character not valid for oracle In-Reply-To: <20030827114209.GC11883@balabit.hu> References: <1061926834.23729.59.camel@localhost> <20030827114209.GC11883@balabit.hu> Message-ID: <1062001495.23728.65.camel@localhost> Thanks. I found it. On Wed, 2003-08-27 at 04:42, Balazs Scheidler wrote: > On Tue, Aug 26, 2003 at 12:40:34PM -0700, Matt Scifo wrote: > > Hello > > > > I just started using syslog-ng with an oracle database as my > > destination. I have discovered that Oracle does not accept a backslash > > as an escape character (I thought backslash was a standard). > > > > The following query does not work in Oracle... > > > > INSERT INTO messages (ID, TIMESTAMP, HOST ,FACILITY, PRIORITY, TAG, > > PROGRAM, MESSAGE) VALUES ('', to_date('2003-08-26 11:51:00', 'yyyy-mm-dd > > hh24:mi:ss'), 'host1', 'local0', 'warning', '84', '1', 'STOP: > > \'edrasmu\' message') > > > > It will only accept a single quote for escaping a single quote... > > > > INSERT INTO messages (ID, TIMESTAMP, HOST ,FACILITY, PRIORITY, TAG, > > PROGRAM, MESSAGE) VALUES ('', to_date('2003-08-26 11:51:00', 'yyyy-mm-dd > > hh24:mi:ss'), 'host1', 'local0', 'warning', '84', '1', 'STOP: > > ''edrasmu'' message') > > > > How hard would it be to change the escape character that syslog-ng is > > looking for, or even better, make a template_escape(string) option which > > accepts a custom escape string? Where is the code that handles the > > escaping of characters located in the source? > > you are looking for macros.c, append_string function, currently the escaping > via '\' is absolutely wired in. From syslog-ng@lists.balabit.hu Sat Aug 2 14:19:35 2003 From: syslog-ng@lists.balabit.hu (Ravi shetkar) Date: Sat, 2 Aug 2003 06:19:35 -0700 (PDT) Subject: [syslog-ng]new member Message-ID: <20030802131935.55965.qmail@web41709.mail.yahoo.com> --0-907542157-1059830375=:54805 Content-Type: text/plain; charset=us-ascii Hi My name is Shetkar Ravi and AS i am new to syslog-ng I am interested to become a new syslog-ng member to learn more about syslog-ng. I am currently working on logging server project. I searched the web and found lot of good things and recommendations about the syslog-ng and decided install and test in my solaris/HP/Aix environment. I down loaded libol-0.3.9 and syslog-ng-1.6.0rc3 and installed and compiled on solaris 8 server. I added /etc/syslog-ng/syslog-ng.conf file and modified the /etc/init.d/syslog file, but when try to start the syslog-ng (/etc/init.d/syslog start) it giving me following error on the console.. io.c: bind_inet_socket() bind failed 0.0.0.0:514 Address already in use Need your help and suggestion for syslog-ng configuration...to make it work on my syslog -ng centralize logging server. Do i need to install syslog-ng on all the clients also or the default syslog will work.? and then what will be the syslog.conf file on clients. Follwing are my configuration files.. /etc/syslog-ng/syslog-ng.conf file.. # more syslog-ng.conf # # Syslog-ng example configuration file for Solaris # #use_fqdn() add FQDN instead of short hostname #use_dns() use DNS (may cause DOS) #sync() number of lines buffered before written to file #log_fifo_size() number of lines fitting to the output queue # #options { use_fqdn(no); # keep_hostname(yes); # use_dns(no); # long_hostnames(off); # sync(0); # log_fifo_size(1000); }; options { sync(0); keep_hostname(yes); chain_hostnames(no); log_fifo_size(30000); }; source s_local { sun-streams("/dev/log" door("/etc/.syslog_door")); internal(); }; source s_net_udp { udp(); }; destination d_local { file("/logs/messages"); }; log { source(s_local); source(s_net_udp); destination(d_local); }; # # local and network sources # # + will accept udp/tcp connections on port 514 from any host # + keepalive option is for tcp only and will keep connection open # when the SIGHUP signal is seen # #source s_stream { sun-streams("/dev/log" door("/etc/.syslog_door"); }; #source local { sun-streams("/dev/log" door("/etc/.syslog_door")); internal();}; #source network { udp(); tcp(); }; #source s_tcp { tcp(ip(127.0.0.1) port(19990) max-connections(10)); }; #Source s_udp { udp(); }; # # standard destinations for local standard system messages # destination authlog { file("/var/log/auth.log"); }; destination syslog { file("/var/log/syslog"); }; destination kern { file("/var/log/kern.log"); }; destination maillog { file("/var/log/maillog"); }; # # special log destinations for our remote hosts # (pixlog, switchlog) and for our IP Filter firewall (ipflog) # #destination ipflog { file("/var/log/ipf.log"); }; #destination pixlog { file("/var/log/pix.log"); }; #destination switchlog { file("/var/log/switch.log"); }; # # Some log files used to catch remaining messages # destination debug { file("/var/log/debug"); }; destination messages { file("/var/log/messages"); }; # # console destination # destination console { file("/dev/sysmsg"); }; # # filters for standard local system messages which come # in on non-local facilities # filter f_authpriv { facility(auth) ; }; filter f_syslog { not facility(auth) and not facility(mail); }; filter f_kern { facility(kern); }; filter f_mail { facility(mail); }; # # filters for IPFilter and the Cisco equipment # #filter f_ipf { facility(local0); }; #filter f_pix { facility(local4); }; #filter f_switch { facility(local6, local7); }; # # catch the rest # filter f_debug { not facility(kern, auth, mail, local6, local7, local4, local0); }; filter f_messages { level(info .. warn) and not facility(auth, mail, local0, local4 , local6, local7); }; # # filters for various emergency level messages # filter f_emergency { level(emerg); }; # # log emergency level messages out to console # log { source(local); filter(f_emergency); destination(console); }; # # log messages from local machine # log { source(local); filter(f_authpriv); destination(authlog); }; log { source(local); filter(f_syslog); destination(syslog); }; log { source(local); filter(f_kern); destination(kern); }; log { source(local); filter(f_mail); destination(maillog); }; # # log IP Filter messages to the ipf.log # #log { source(local); filter(f_ipf); destination(ipflog); }; # # log switch and pix messages # #log { source(network); filter(f_pix); destination(pixlog); }; #log { source(network); filter(f_switch); destination(switchlog); }; # # catch the rest of the messages # log { source(local); source(network); filter(f_debug); destination(debug); }; log { source(local); source(network); filter(f_messages); destination(messages); }; # # Automatic sorting of host messages by $HOST and $YEAR$MONTH$DAY # # + will automatically create a directory structure for all messages # sorted first by host, then by date, then by facility. # + with use_dns(no) we will have files based on ip address not hostname # destination hosts { file("/var/log/HOSTS/$HOST/$YEAR$MONTH$DAY/$FACILITY" owner(roo t) group(root) perm(0600) dir_perm(0700) create_dirs(yes)); }; # # logs all incoming messages from network source to the sorted # destination # log { source(network); destination(hosts); }; My /etc/init.d/syslog file is # more syslog #!/sbin/sh # # script to start syslog-ng on boot up for a Solaris machine. # This script replaces /etc/init.d/syslog on a Solaris machine. # case "$1" in 'start') if [ -f /etc/syslog-ng.conf -a -f /usr/local/sbin/syslog-ng ]; then echo 'syslog-ng service starting.' # # Before syslogd starts, save any messages from previous # crash dumps so that messages appear in chronological order. # /usr/bin/savecore -m if [ -r /etc/dumpadm.conf ]; then . /etc/dumpadm.conf [ "x$DUMPADM_DEVICE" != xswap ] && \ /usr/bin/savecore -m -f $DUMPADM_DEVICE fi if [ ! -f /var/adm/messages ]; then /usr/bin/cp /dev/null /var/adm/messages /usr/bin/chmod 0644 /var/adm/messages fi /usr/local/sbin/syslog-ng >/dev/msglog 2>&1 & fi ;; 'stop') echo 'syslog-ng service stopping.' if [ -f /var/run/syslog-ng.pid ]; then syspid=`/usr/bin/cat /var/run/syslog-ng.pid` [ "$syspid" -gt 0 ] && kill -15 $syspid fi ;; *) echo "Usage: $0 { start | stop }" exit 1 ;; esac my daemon is in /usr/loca/sbin/syslog-ng thanks for your help. Shetkar Ravi Unix systel Administrator. WebMD rshetkar@webmd.net rshetkar88@yahoo.com --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software --0-907542157-1059830375=:54805 Content-Type: text/html; charset=us-ascii
Hi
 
My name is Shetkar Ravi and AS i am new to syslog-ng I am interested  to become a new syslog-ng member to learn more about syslog-ng.
I am currently working on logging server project. I searched the web and found lot of good things and recommendations about the syslog-ng and decided install and test in my solaris/HP/Aix environment.
 
I down loaded libol-0.3.9  and syslog-ng-1.6.0rc3 and installed and compiled on solaris 8 server.
 
I added /etc/syslog-ng/syslog-ng.conf  file and modified the /etc/init.d/syslog file, but when try to start the syslog-ng (/etc/init.d/syslog start) it giving me following error on the console..
 
io.c: bind_inet_socket() bind failed 0.0.0.0:514 Address already in use
 
Need your help and suggestion for syslog-ng configuration...to make it work on my syslog -ng centralize logging server.
 
Do i need to install syslog-ng on all the clients also or the default syslog will work.?
and then what will be the syslog.conf file on clients.
 
 
Follwing are my configuration files..
 
/etc/syslog-ng/syslog-ng.conf    file..
# more syslog-ng.conf
#
# Syslog-ng example configuration file for Solaris
#
#use_fqdn()             add FQDN instead of short hostname
#use_dns()              use DNS (may cause DOS)
#sync()                 number of lines buffered before written to file
#log_fifo_size()        number of lines fitting to the output queue
#
#options { use_fqdn(no);               
#          keep_hostname(yes);         
#          use_dns(no);        
#          long_hostnames(off);                
#          sync(0);            
#          log_fifo_size(1000); };
options { sync(0); keep_hostname(yes); chain_hostnames(no);
log_fifo_size(30000); };
source s_local { sun-streams("/dev/log" door("/etc/.syslog_door"));
internal(); };
source s_net_udp { udp(); };
destination d_local { file("/logs/messages"); };
log { source(s_local); source(s_net_udp); destination(d_local); };
#
# local and network sources
#
# + will accept udp/tcp connections on port 514 from any host
# + keepalive option is for tcp only and will keep connection open
#     when the SIGHUP signal is seen
#
#source s_stream { sun-streams("/dev/log" door("/etc/.syslog_door"); };
#source local { sun-streams("/dev/log" door("/etc/.syslog_door")); internal();};
#source network { udp(); tcp(); };
#source s_tcp { tcp(ip(127.0.0.1) port(19990) max-connections(10)); };
#Source s_udp { udp(); };
#
# standard destinations for local standard system messages
#
destination authlog { file("/var/log/auth.log"); };
destination syslog { file("/var/log/syslog"); };
destination kern { file("/var/log/kern.log"); };
destination maillog { file("/var/log/maillog"); };
#
# special log destinations for our remote hosts
# (pixlog, switchlog) and for our IP Filter firewall (ipflog)
#
#destination ipflog { file("/var/log/ipf.log"); };
#destination pixlog { file("/var/log/pix.log"); };
#destination switchlog { file("/var/log/switch.log"); };
#
# Some log files used to catch remaining messages
#
destination debug { file("/var/log/debug"); };
destination messages { file("/var/log/messages"); };
#
# console destination
#
destination console { file("/dev/sysmsg"); };
#
# filters for standard local system messages which come
# in on non-local facilities
#
filter f_authpriv { facility(auth) ; };
filter f_syslog { not facility(auth) and not facility(mail); };
filter f_kern { facility(kern); };
filter f_mail { facility(mail); };
#
# filters for IPFilter and the Cisco equipment
#
#filter f_ipf { facility(local0); };
#filter f_pix { facility(local4); };
#filter f_switch { facility(local6, local7); };
#
# catch the rest
#
filter f_debug { not facility(kern, auth, mail, local6, local7, local4, local0); };
filter f_messages { level(info .. warn) and not facility(auth, mail, local0, local4
, local6, local7); };
#
# filters for various emergency level messages
#
filter f_emergency { level(emerg); };
#
# log emergency level messages out to console
#
log { source(local); filter(f_emergency); destination(console); };
#
# log messages from local machine
#
log { source(local); filter(f_authpriv); destination(authlog); };
log { source(local); filter(f_syslog); destination(syslog); };
log { source(local); filter(f_kern); destination(kern); };
log { source(local); filter(f_mail); destination(maillog); };
#
# log IP Filter messages to the ipf.log
#
#log { source(local); filter(f_ipf); destination(ipflog); };
#
# log switch and pix messages
#
#log { source(network); filter(f_pix); destination(pixlog); };
#log { source(network); filter(f_switch); destination(switchlog); };
#
# catch the rest of the messages
#
log { source(local); source(network); filter(f_debug); destination(debug); };
log { source(local); source(network); filter(f_messages); destination(messages); };
#
# Automatic sorting of host messages by $HOST and $YEAR$MONTH$DAY
#
# + will automatically create a directory structure for all messages
#   sorted first by host, then by date, then by facility.
# + with use_dns(no) we will have files based on ip address not hostname
#
destination hosts { file("/var/log/HOSTS/$HOST/$YEAR$MONTH$DAY/$FACILITY" owner(roo
t) group(root) perm(0600) dir_perm(0700) create_dirs(yes)); };
#
# logs all incoming messages from network source to the sorted
# destination
#
log { source(network); destination(hosts); };
 
 
 
My /etc/init.d/syslog  file is

# more syslog
#!/sbin/sh
#
# script to start syslog-ng on boot up for a Solaris machine. 
# This script replaces /etc/init.d/syslog on a Solaris machine.
#
case "$1" in
'start')
        if [ -f /etc/syslog-ng.conf -a -f /usr/local/sbin/syslog-ng ];
then
                echo 'syslog-ng service starting.'
                #
                # Before syslogd starts, save any messages from previous
                # crash dumps so that messages appear in chronological order.
                #
                /usr/bin/savecore -m
                if [ -r /etc/dumpadm.conf ]; then
                        . /etc/dumpadm.conf
                        [ "x$DUMPADM_DEVICE" != xswap ] && \
                            /usr/bin/savecore -m -f $DUMPADM_DEVICE
                fi
                if [ ! -f /var/adm/messages ]; then
                        /usr/bin/cp /dev/null /var/adm/messages
                        /usr/bin/chmod 0644 /var/adm/messages
                fi
                /usr/local/sbin/syslog-ng >/dev/msglog 2>&1 &
        fi
        ;;
'stop')
        echo 'syslog-ng service stopping.'
        if [ -f /var/run/syslog-ng.pid ]; then
                syspid=`/usr/bin/cat /var/run/syslog-ng.pid`
                [ "$syspid" -gt 0 ] && kill -15 $syspid
        fi
        ;;
*)
        echo "Usage: $0 { start | stop }"
        exit 1
        ;;
esac
 
 
my daemon is in /usr/loca/sbin/syslog-ng
 
thanks for your help.
 
 
Shetkar Ravi
Unix systel Administrator.
WebMD
 


Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software --0-907542157-1059830375=:54805-- From syslog-ng@lists.balabit.hu Tue Aug 19 10:17:06 2003 From: syslog-ng@lists.balabit.hu (syslog-ng@lists.balabit.hu) Date: Tue, 19 Aug 2003 11:17:06 +0200 Subject: [syslog-ng]Forwarding unchanged Syslog messages Message-ID: <3F41EB12.1050206@lgs.com> Is it possible to forward syslogmessages without modifing the Host and the messages. I thought "keep_hostname(yes)" would solve the problem, but it didn't. Normaly i use version 1.5.15 shipped with debian, but I tryed 1.5.26 too. I don't konw if its important, but our syslogserver has a load of 100% the whole day (not from syslog-ng). I tryed the following config: options { use_fqdn(yes); sync(0); use_dns(yes); chain_hostnames(yes); keep_hostname(yes); }; source net { tcp(); udp();}; destination pc1 { udp(192.168.1.1);}; destination pc2 { udp(192.168.1.2);}; destination pc3 { udp(192.168.1.3);}; log { source(net); destination(pc1);}; log { source(net); destination(pc2);}; log { source(net); destination(pc3);}; bye Harrie From syslog-ng@lists.balabit.hu Fri Aug 22 19:33:55 2003 From: syslog-ng@lists.balabit.hu (Shah, Sanjay T [FI]) Date: Fri, 22 Aug 2003 14:33:55 -0400 Subject: [syslog-ng]Any one ported syslog-ng for IRIX system Message-ID: <1FD06269A7D4D611851800080261511A049600EB@exchny57.ny.ssmb.com> Has any one ported syslog-ng for IRIX system? Can you please provide some info on source ? Thanks sanjay=20 From syslog-ng@lists.balabit.hu Thu Aug 28 09:23:27 2003 From: syslog-ng@lists.balabit.hu (TIM MOORE) Date: Thu, 28 Aug 2003 04:23:27 -0400 Subject: [syslog-ng]Re: syslog-ng digest, Vol 1 #1031 - 10 msgs (Vacation) Message-ID: FYI: I will be out on vacation from 8/28 until 9/8. Please contact the = NOC if you need immediate assistance. Thanks, Tim Moore From syslog-ng@lists.balabit.hu Thu Aug 28 09:26:33 2003 From: syslog-ng@lists.balabit.hu (TIM MOORE) Date: Thu, 28 Aug 2003 04:26:33 -0400 Subject: [syslog-ng]Re: syslog-ng digest, Vol 1 #1032 - 9 msgs (Vacation) Message-ID: FYI: I will be out on vacation from 8/28 until 9/8. Please contact the = NOC if you need immediate assistance. Thanks, Tim Moore From syslog-ng@lists.balabit.hu Thu Aug 28 11:36:27 2003 From: syslog-ng@lists.balabit.hu (Rule, Ted) Date: Thu, 28 Aug 2003 11:36:27 +0100 Subject: [syslog-ng]last message repeated? Message-ID: <7EE401CB7BDD6541BE2EB68CC917596D5937BC@fttvgpsexch2-nas.flextech.co.uk> Dear old syslogd has explicit code to save a copy of the last message recei= ved, and compare it with the current message ( less the timestamp field and it o= nly saves 256 bytes of message(?) ), so as to throttle out such floods. It's fairly basic= , however, as it imposes no time restriction on the history buffer, so duplicate messa= ges hours apart don't cause separate messages to be logged. As far as I'm aware, syslog-ng has never had this feature, but I agree it would be highly desirable to add to future releases. On the face of it, the basic functionality provided in syslogd shouldn't be difficult thing to cod= e. however, the tricky bells&whistles feature would be to add a separate messa= ge=20 history/throttle/cache(?)/aging(?) for each source IP so that a server could correctly spot multiple copies of the same message within a given tim= eframe even if intervening messages were from a different source. =20 Ted -----Original Message----- From: Chuck Berg @FLEXTECH =20 Sent: Wednesday 02 July 2003 21:53 To: syslog-ng@lists.balabit.hu Subject: [syslog-ng]last message repeated? =20 Is there a particular reason why syslog-ng doesn't generate "last message repeated x times" messages? It's very unfortunate to have the disk on my log server fill up because of one machine flooding the logs. For example, Solaris will send one "WARNING: /tmp: File system full, swap space limit exceeded" message for every write() that fails for that reason. It's easy to get tens of thousands of these per second. _______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html ***************************************************************************= ********************* This E-mail message, including any attachments, is intended only for the pe= rson or entity to which it is addressed, and may contain confidential informatio= n. If you are not the intended recipient, any review, retransmission, disclosu= re, copying, modification or other use of this E-mail message or attachments is strictly forbidden. If you have received this E-mail message in error, please contact the autho= r and delete the message and any attachments from your computer. You are also advised that the views and opinions expressed in this E-mail message and any attachments are the author's own, and may not reflect the v= iews and opinions of FLEXTECH Television Limited. ***************************************************************************= ********************* From syslog-ng@lists.balabit.hu Thu Aug 28 13:14:37 2003 From: syslog-ng@lists.balabit.hu (Paul Jasa) Date: Thu, 28 Aug 2003 08:14:37 -0400 Subject: [syslog-ng]Forwarding unchanged Syslog messages Message-ID: <7E43058117985342A83CC0EFEAF66351026F1F33@MIA-CL01.utg.uvn.net> I have the exact same issue with syslog-ng. I run Red Hat 7.3. Despite = the claims that the syslog message can be forwarded without being = modified, syslog-ng STILL modifies it. The modified syslog message = has the original IP address AND the server's IP address in chain format, = which is no good. I want to keep the message UNtouched when it gets = forwarded. If anyone has the answer to this question I would very much appreciate = it. The MAIN reason why I installed syslog-ng was due to the claim that = it could forward without changing the message, but so far it just looks = like a claim. pj =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=20 Paul Jasa=20 Network Engineer=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=20 -----Original Message----- From: Harrie.van.Arragon@steinmuehlen-brot.de [mailto:Harrie.van.Arragon@steinmuehlen-brot.de] Sent: Tuesday, August 19, 2003 05:17 AM To: syslog-ng@lists.balabit.hu Subject: [syslog-ng]Forwarding unchanged Syslog messages Is it possible to forward syslogmessages without modifing the Host and the messages. I thought "keep_hostname(yes)" would solve the problem, but it didn't. Normaly i use version 1.5.15 shipped with debian, but I tryed 1.5.26 = too. I don't konw if its important, but our syslogserver has a load of 100% the whole day (not from syslog-ng). I tryed the following config: options { use_fqdn(yes); sync(0); use_dns(yes); chain_hostnames(yes); keep_hostname(yes); }; source net { tcp(); udp();}; destination pc1 { udp(192.168.1.1);}; destination pc2 { udp(192.168.1.2);}; destination pc3 { udp(192.168.1.3);}; log { source(net); destination(pc1);}; log { source(net); destination(pc2);}; log { source(net); destination(pc3);}; bye Harrie _______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html From syslog-ng@lists.balabit.hu Thu Aug 28 15:11:25 2003 From: syslog-ng@lists.balabit.hu (Marc Spitzer) Date: Thu, 28 Aug 2003 10:11:25 -0400 Subject: [syslog-ng]syslog-ng and IPSEC does anyone have any experiences eit the combination? Message-ID: <3F4E0D8D.D2B5E55B@morganstanley.com> I am doing some logging infrastructure research and I am looking into syslog-ng and IPSEC, does any experience with this setup? Thanks marc -- NOTICE: If received in error, please destroy and notify sender. Sender does not waive confidentiality or privilege, and use is prohibited. From syslog-ng@lists.balabit.hu Thu Aug 28 16:23:24 2003 From: syslog-ng@lists.balabit.hu (Richard E. Perlotto II) Date: Thu, 28 Aug 2003 08:23:24 -0700 Subject: [syslog-ng]Log TCP In-Reply-To: <05a501c34811$b50feeb0$6501a8c0@cr830163a> Message-ID: <00e201c36d78$536029a0$a5465d42@defcon> This is a multi-part message in MIME format. ------=_NextPart_000_00E3_01C36D3D.A70151A0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Standard networking devices do not syslog on TCP ports. Richard -----Original Message----- From: syslog-ng-admin@lists.balabit.hu [mailto:syslog-ng-admin@lists.balabit.hu] On Behalf Of Darrell Sent: Friday, July 11, 2003 6:06 PM To: syslog-ng@lists.balabit.hu Subject: [syslog-ng]Log TCP I'm new to Linux and we've decided to setup syslog-ng 1.4.17 on Redhat 8 at work. I'm trying to centralize the logs using TCP for all of our Cisco routers, Nortel firewalls and switches. I need to know what lines to enter and where to enter them in my syslog-ng.conf file. Any help would be greatly appreciated. ----------------------------------- Darrell IT Support ------=_NextPart_000_00E3_01C36D3D.A70151A0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Message
Standard networking devices do not syslog on TCP=20 ports.
 
 
Richard
-----Original Message-----
From:=20 syslog-ng-admin@lists.balabit.hu = [mailto:syslog-ng-admin@lists.balabit.hu]=20 On Behalf Of Darrell
Sent: Friday, July 11, 2003 6:06 = PM
To: syslog-ng@lists.balabit.hu
Subject: = [syslog-ng]Log=20 TCP

I'm new to Linux and we've decided to = setup=20 syslog-ng 1.4.17 on Redhat 8 at work. I'm trying to = centralize the=20 logs using TCP for all of our Cisco routers, Nortel firewalls and=20 switches.  I need to know what lines to enter and where to enter = them in=20 my syslog-ng.conf file.  Any help would be greatly=20 appreciated.
 
-----------------------------------
Darrell
IT = Support
------=_NextPart_000_00E3_01C36D3D.A70151A0-- From syslog-ng@lists.balabit.hu Thu Aug 28 16:52:27 2003 From: syslog-ng@lists.balabit.hu (Naman Latif) Date: Thu, 28 Aug 2003 08:52:27 -0700 Subject: [syslog-ng]syslog-ng and logrotate Message-ID: <83B3FCAD284096489C9967C54B33B6B301D3A848@sigma.inamed.com> Have you tried the "copytruncate" option in logrotate.conf ? I am using it without any problems on Solaris8. ++++++++++++++++++++ copytruncate Truncate the original log file in place after creating a copy, instead of moving the old log file and option- ally creating a new one, It can be used when some pro- gram can not be told to close its logfile and thus might continue writing (appending) to the previous log file forever. Note that there is a very small time slice between copying the file and truncating it, so some logging data might be lost. When this option is used, the create option will have no effect, as the old log file stays in place. +++++++++++++++++++++++ Regards \\ Naman > My pb : > before the log rotate, all is good. After logrotate,=20 > syslog-ng don't write in=20 > the remote file. From syslog-ng@lists.balabit.hu Thu Aug 28 20:45:34 2003 From: syslog-ng@lists.balabit.hu (Jens Gutzeit) Date: Thu, 28 Aug 2003 21:45:34 +0200 Subject: [syslog-ng]Syslog-ng on NetBSD In-Reply-To: References: Message-ID: <200308282145.34051.jens@freebsdforum.de> On Saturday 28 June 2003 23:38, Axel Gerster wrote: > afstreams.c:37: stropts.h: No such file or directory > afstreams.c:38: sys/strlog.h: No such file or directory Your system misses some header files from your libc. I don't know NETBSD, but theres probably a libc devel package which you need to install first. Jens From syslog-ng@lists.balabit.hu Fri Aug 29 01:01:51 2003 From: syslog-ng@lists.balabit.hu (Atif Ghaffar) Date: Fri, 29 Aug 2003 02:01:51 +0200 Subject: [syslog-ng]logging to file and remote host Message-ID: <3F4E97EF.90909@developer.ch> hi all, I am not yet a syslog-ng user. I would like to know if it is possible to do what I want with standard syslogd and if not then with syslog-ng On HP-UX 11.00 I want to log messages to a file and to remote host. Is that possible with syslogd? I tried something like mail.* /var/adm/syslog/mail.log and it works I tried mail.* @LOGHOST and it works If I put both lines then only one is used. How can I log to a file and also to LOGHOST? If it is not possible with syslog and is possible with syslog-ng, then please let me know so I can continue the reading of the manuals. best regards and thanks Atif Ghaffar From syslog-ng@lists.balabit.hu Fri Aug 29 01:15:54 2003 From: syslog-ng@lists.balabit.hu (Harry Hoffman) Date: Thu, 28 Aug 2003 20:15:54 -0400 Subject: [syslog-ng]logging to file and remote host In-Reply-To: <3F4E97EF.90909@developer.ch> References: <3F4E97EF.90909@developer.ch> Message-ID: <1062116154.fd775ef36addd@secure.ip-solutions.net> Hi Atif, Not sure on HP-UX but I can confirm that this works on Solaris and Linux. I do something like: mail.* /var/log/maillog *.warn @loghost HTH, Harry Quoting Atif Ghaffar : *> hi all, *> *> I am not yet a syslog-ng user. I would like to know if it is possible to *> do what I want with standard syslogd and if not then with syslog-ng *> *> On HP-UX 11.00 *> *> I want to log messages to a file and to remote host. *> Is that possible with syslogd? *> *> I tried something like *> mail.* /var/adm/syslog/mail.log *> *> and it works *> *> I tried *> *> mail.* @LOGHOST *> *> and it works *> *> If I put both lines then only one is used. *> *> How can I log to a file and also to LOGHOST? *> *> If it is not possible with syslog and is possible with syslog-ng, then *> please let me know so I can continue the reading of the manuals. *> *> best regards and thanks *> *> Atif Ghaffar *> *> *> _______________________________________________ *> syslog-ng maillist - syslog-ng@lists.balabit.hu *> https://lists.balabit.hu/mailman/listinfo/syslog-ng *> Frequently asked questions at http://www.campin.net/syslog-ng/faq.html *> *> -- Harry Hoffman hhoffman@ip-solutions.net STANDARD DISCLAIMER: ********************************************** *This universe shipped by weight, not volume.* *Some expansion may have occured in shipping.* ********************************************** ------------------------------------------------- This mail sent through IpSolutions: http://www.ip-solutions.net/ From syslog-ng@lists.balabit.hu Fri Aug 29 01:48:38 2003 From: syslog-ng@lists.balabit.hu (Atif Ghaffar) Date: Fri, 29 Aug 2003 02:48:38 +0200 Subject: [syslog-ng]logging to file and remote host In-Reply-To: <1062116154.fd775ef36addd@secure.ip-solutions.net> References: <3F4E97EF.90909@developer.ch> <1062116154.fd775ef36addd@secure.ip-solutions.net> Message-ID: <3F4EA2E6.5010508@developer.ch> Harry Hoffman wrote: > Hi Atif, > > Not sure on HP-UX but I can confirm that this works on Solaris and Linux. > I do something like: > mail.* /var/log/maillog > *.warn @loghost Hi Harry, Thanks for the quick reply, You are sending two entries to different destinations. Can you do: mail.* /var/log/maillog mail.* @loghost What we are trying to do is log everything localy as well as remotely. So if the remote server is down, the logs are localy present and if the server is compromised and the logs are deleted, there is still trace on syslog. best regards From syslog-ng@lists.balabit.hu Fri Aug 29 02:27:19 2003 From: syslog-ng@lists.balabit.hu (Harry Hoffman) Date: Thu, 28 Aug 2003 21:27:19 -0400 Subject: [syslog-ng]logging to file and remote host In-Reply-To: <3F4EA2E6.5010508@developer.ch> References: <3F4E97EF.90909@developer.ch> <1062116154.fd775ef36addd@secure.ip-solutions.net> <3F4EA2E6.5010508@developer.ch> Message-ID: <1062120439.b30be45ce1e5c@secure.ip-solutions.net> Hi Atif, Ok, right. Sorry about that. I can't test the Uni setup right now but this quick test on my home linux network seems to work (I don't have a Solaris box right now): /etc/syslog.conf ... mail.* /var/log/maillog mail.* @192.168.1.3 # From test host # Cause it's not running a remote syslog server tcpdump -x -X -vvv dst host 192.168.1.3 logger -p mail.info TEST MESSAGE If I cat /var/log/maillog I see the "TEST MESSAGE" text. Also I can see the packets going to 192.168.1.3 HTH, Harry PS-> I don't know about you guys but for us that was alot of logging which is why we tuned down what we were sending across the wire. Also, if making sure that you have logs on both the client and server than you may wish to use TCP transport (which would require syslog-ng on the client). Quoting Atif Ghaffar : *> Harry Hoffman wrote: *> *> > Hi Atif, *> > *> > Not sure on HP-UX but I can confirm that this works on Solaris and Linux. *> > I do something like: *> > mail.* /var/log/maillog *> > *.warn @loghost *> *> *> Hi Harry, *> *> Thanks for the quick reply, *> *> You are sending two entries to different destinations. *> *> Can you do: *> mail.* /var/log/maillog *> mail.* @loghost *> *> *> What we are trying to do is log everything localy as well as remotely. *> So if the remote server is down, the logs are localy present and *> if the server is compromised and the logs are deleted, there is still *> trace on syslog. *> *> best regards *> *> *> *> _______________________________________________ *> syslog-ng maillist - syslog-ng@lists.balabit.hu *> https://lists.balabit.hu/mailman/listinfo/syslog-ng *> Frequently asked questions at http://www.campin.net/syslog-ng/faq.html *> *> -- Harry Hoffman hhoffman@ip-solutions.net STANDARD DISCLAIMER: ********************************************** *This universe shipped by weight, not volume.* *Some expansion may have occured in shipping.* ********************************************** ------------------------------------------------- This mail sent through IpSolutions: http://www.ip-solutions.net/ From syslog-ng@lists.balabit.hu Fri Aug 29 02:29:26 2003 From: syslog-ng@lists.balabit.hu (TIM MOORE) Date: Thu, 28 Aug 2003 21:29:26 -0400 Subject: [syslog-ng]Re: syslog-ng digest, Vol 1 #1033 - 15 msgs (Vacation) Message-ID: FYI: I will be out on vacation from 8/28 until 9/8. Please contact the = NOC if you need immediate assistance. Thanks, Tim Moore From syslog-ng@lists.balabit.hu Thu Aug 28 15:09:00 2003 From: syslog-ng@lists.balabit.hu (William Rhodes) Date: Thu, 28 Aug 2003 09:09:00 -0500 Subject: [syslog-ng]syslog-ng and logrotate Message-ID: <0296816EB287BC489812FB4F652A6C190142B395@houemail2.calpine.com> Had the same problem and found that syslog-ng has a problem with the kill -HUP that logrotate uses. I replaced that command with /etc/rc.d/init.d/syslog-ng reload and all works fine with no problems. William -----Original Message----- From: yannick.haguenier@tuxfamily.org [mailto:yannick.haguenier@tuxfamily.org] Sent: Thursday, July 10, 2003 3:57 AM To: syslog-ng@lists.balabit.hu Subject: [syslog-ng]syslog-ng and logrotate Hy, i have squid + syslog-ng 1.0.6.rc1 Syslog-ng look squid/access.log, and write log file (with date format) on a remote server (tcp). On squid there is a logrotate at 6 am. My pb : before the log rotate, all is good. After logrotate, syslog-ng don't write in the remote file. The last line appear in this file was create at 6am. The process run on the both server, and i have no error. If i run syslog-ng restart, syslog-ng write the ligne in remote file . the next error appear after the next logrotate. Does anyone know why this is happening? thanks _______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html From syslog-ng@lists.balabit.hu Fri Aug 29 02:28:19 2003 From: syslog-ng@lists.balabit.hu (Leonard Mills) Date: Fri, 29 Aug 2003 01:28:19 +0000 Subject: [syslog-ng]logging to file and remote host In-Reply-To: Your message of "Fri, 29 Aug 2003 02:48:38 +0200." <3F4EA2E6.5010508@developer.ch> Message-ID: <200308290128.h7T1SJW03377@soda-pop.corpnet.sel.sony.com> Atif, On systems with non-broken syslogd you can even do more. This works just fine on my BSDi servers: *.err;kern.debug;auth.notice;mail.crit /dev/console *.notice;kern.debug;auth.info;mail.crit /var/log/messages mail.debug /var/log/maillog cron.info /var/log/cron local0.debug /var/log/proxynet local7.debug /var/log/ciscolog *.notice;auth.debug root *.emerg * kern.debug;auth.info @160.33.83.4 mail.crit @160.33.83.4 local0.crit @160.33.83.4 local7.debug @160.33.83.4 Note kern.debug going to three places and local7.debug going to two in the same way (approximately) as you are using. Len