Hi, Two small things and then it works: src/log.c:85 need include of <string.h> so that memset is declared. src/log.c:89 tm.tm_isdst = daylight; There is no daylight variable but if tm_isdst is set negative, mktime will use the system to find out. If I define daylight to -1, it works. Two warnings: gcc -DHAVE_CONFIG_H -I. -I/usr/home/glz/work.d/syslog-ng-1.3.1/src -I. -O2 -Wall -I/usr/local/include/libol -D_GNU_SOURCE -c affile.c affile.c: In function `expand_macros': affile.c:381: warning: passing arg 2 of `c_vformat_length' from incompatible pointer type affile.c:383: warning: passing arg 4 of `c_vformat_write' from incompatible pointer type They are declared as va_list but are passed char *[MAX_MACRO_ARGS]. Cheers, GLZ --- Goran Lowkrantz Email : goran.lowkrantz@infologigruppen.se Infologigruppen Alfa AB Telephone: Nat 070-587 8782 Fax: Nat 070-615 8782 Box 202 Int +46 70-587 8782 Int +46 70-615 8782 941 25 Pitea, Sweden
On Thu, Nov 18, 1999 at 05:52:34PM +0100, Lowkrantz, Goran wrote:
Hi,
Two small things and then it works:
src/log.c:85 need include of <string.h> so that memset is declared. src/log.c:89 tm.tm_isdst = daylight; There is no daylight variable but if tm_isdst is set negative, mktime will use the system to find out. If I define daylight to -1, it works.
Two warnings: gcc -DHAVE_CONFIG_H -I. -I/usr/home/glz/work.d/syslog-ng-1.3.1/src -I. -O2 -Wall -I/usr/local/include/libol -D_GNU_SOURCE -c affile.c affile.c: In function `expand_macros': affile.c:381: warning: passing arg 2 of `c_vformat_length' from incompatible pointer type affile.c:383: warning: passing arg 4 of `c_vformat_write' from incompatible pointer type They are declared as va_list but are passed char *[MAX_MACRO_ARGS].
Thanks. I fixed this, should be available in the next version. -- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1 url: http://www.balabit.hu/pgpkey.txt
what was the syntax for the default statement again? Chris Scheller Network One Internet, inc. http://www.networkone.net/ System/Network Administration 1.888.GOT-NET1
On Thu, Nov 18, 1999 at 07:37:44PM -0800, Chris Scheller wrote:
what was the syntax for the default statement again?
log { source(src); filter(DEFAULT); destination(dst); }; It's not final, since you can only have one DEFAULT log statement, but may have several sources. -- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1 url: http://www.balabit.hu/pgpkey.txt
I am not sure if what i am seeing is a result of something i did or not. But, when i have a destination with the $DAY macro in it, the resulting log file comes out with the wrong date.(one day ahead) I have verified my system time and cmos clock time to be correct(i update both daily with ntpdate). Have i fubar'ed something here? Chris Scheller Network One Internet, inc. http://www.networkone.net/ System/Network Administration 1.888.GOT-NET1
participants (3)
-
Balazs Scheidler
-
Chris Scheller
-
Lowkrantz, Goran