Git Product home page Git Product logo

eventlog's Introduction

The EventLog library aims to be a replacement of the simple syslog() API
provided on UNIX systems. The major difference between EventLog and syslog
is that EventLog tries to add structure to messages.

Where you had a simple non-structrured string in syslog() you have a
combination of description and tag/value pairs.

EventLog provides an interface to build, format and output an event record.
The exact format and output method can be customized by the administrator
via a configuration file.

Installation
------------

Installing this library is quite straightforward as it does not depend on
anything but libc.

First grab your copy of the library. It is a tarball named
eventlog-x.x.x.x.tar.gz where x.x.x.x is the library revision.

tar xvfz eventlog-x.x.x.x.tar.gz
cd eventlog-x.x.x.x
./configure
make && make install

If you want to package the library or move the binaries to another system,
you can use the DESTDIR argument to 'make install' like this:

make DESTDIR=/tmp/staging install

which will use the /tmp/staging directory as root and copy all files beneath
as it were a real system.

Copyright
---------

EventLog is distributed under the terms of a BSD style license, for details
see the file COPYING.

eventlog's People

Contributors

bazsi avatar folti avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

eventlog's Issues

Release of eventlog

Is eventlog still a dependency for syslog-ng? Is there any official (current) release of eventlog?

Maybe I'm wrong, but the highest version of eventlog is 0.2.13 which is in this repo, but there are no release from this. Is there any plan to release eventlog?

Can't build dynamic library on Cygwin

Unfortunetly I am unable to use the version of syslog-ng included with cygwin as it lacks SQL support so i'm having to build from source on it. But when I compile EventLog 0.2.12, downloaded from https://my.balabit.com/downloads/eventlog/0.2/eventlog_0.2.12.tar.gz on Cygwin x64/Windows Server 2016 Core, the dynamic libraries are never made, only static libraries. And syslog-ng's make will fail if there are not dynamic libraries for EventLog.

configure

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.exe
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... .exe
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking build system type... x86_64-unknown-cygwin
checking host system type... x86_64-unknown-cygwin
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/x86_64-pc-cygwin/bin/ld.exe
checking if the linker (/usr/x86_64-pc-cygwin/bin/ld.exe) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 8192
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/x86_64-pc-cygwin/bin/ld.exe option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... file_magic ^x86 archive import|^x86 DLL
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -DDLL_EXPORT -DPIC
checking if gcc PIC flag -DDLL_EXPORT -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/x86_64-pc-cygwin/bin/ld.exe) supports shared libraries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for an ANSI C-conforming const... yes
checking for strdup... yes
checking for strerror... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating tests/Makefile
config.status: creating tgzbuild/Makefile
config.status: creating tgz2build/Makefile
config.status: creating eventlog.pc
config.status: creating eventlog.spec.bb
config.status: creating solbuild/Makefile
config.status: creating winbuild/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands

make

make  all-recursive
make[1]: Entering directory '/cygdrive/c/eventlog-0.2.12'
Making all in src
make[2]: Entering directory '/cygdrive/c/eventlog-0.2.12/src'
/bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..   -D_GNU_SOURCE  -g -O2 -Wall -MT evtrec.lo -MD -MP -MF .deps/evtrec.Tpo -c -o evtrec.lo evtrec.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -D_GNU_SOURCE -g -O2 -Wall -MT evtrec.lo -MD -MP -MF .deps/evtrec.Tpo -c evtrec.c  -DDLL_EXPORT -DPIC -o .libs/evtrec.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -D_GNU_SOURCE -g -O2 -Wall -MT evtrec.lo -MD -MP -MF .deps/evtrec.Tpo -c evtrec.c -o evtrec.o >/dev/null 2>&1
mv -f .deps/evtrec.Tpo .deps/evtrec.Plo
/bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..   -D_GNU_SOURCE  -g -O2 -Wall -MT evtfmt.lo -MD -MP -MF .deps/evtfmt.Tpo -c -o evtfmt.lo evtfmt.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -D_GNU_SOURCE -g -O2 -Wall -MT evtfmt.lo -MD -MP -MF .deps/evtfmt.Tpo -c evtfmt.c  -DDLL_EXPORT -DPIC -o .libs/evtfmt.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -D_GNU_SOURCE -g -O2 -Wall -MT evtfmt.lo -MD -MP -MF .deps/evtfmt.Tpo -c evtfmt.c -o evtfmt.o >/dev/null 2>&1
mv -f .deps/evtfmt.Tpo .deps/evtfmt.Plo
/bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..   -D_GNU_SOURCE  -g -O2 -Wall -MT evtout.lo -MD -MP -MF .deps/evtout.Tpo -c -o evtout.lo evtout.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -D_GNU_SOURCE -g -O2 -Wall -MT evtout.lo -MD -MP -MF .deps/evtout.Tpo -c evtout.c  -DDLL_EXPORT -DPIC -o .libs/evtout.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -D_GNU_SOURCE -g -O2 -Wall -MT evtout.lo -MD -MP -MF .deps/evtout.Tpo -c evtout.c -o evtout.o >/dev/null 2>&1
mv -f .deps/evtout.Tpo .deps/evtout.Plo
/bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..   -D_GNU_SOURCE  -g -O2 -Wall -MT evtstr.lo -MD -MP -MF .deps/evtstr.Tpo -c -o evtstr.lo evtstr.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -D_GNU_SOURCE -g -O2 -Wall -MT evtstr.lo -MD -MP -MF .deps/evtstr.Tpo -c evtstr.c  -DDLL_EXPORT -DPIC -o .libs/evtstr.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -D_GNU_SOURCE -g -O2 -Wall -MT evtstr.lo -MD -MP -MF .deps/evtstr.Tpo -c evtstr.c -o evtstr.o >/dev/null 2>&1
mv -f .deps/evtstr.Tpo .deps/evtstr.Plo
/bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..   -D_GNU_SOURCE  -g -O2 -Wall -MT evtctx.lo -MD -MP -MF .deps/evtctx.Tpo -c -o evtctx.lo evtctx.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -D_GNU_SOURCE -g -O2 -Wall -MT evtctx.lo -MD -MP -MF .deps/evtctx.Tpo -c evtctx.c  -DDLL_EXPORT -DPIC -o .libs/evtctx.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -D_GNU_SOURCE -g -O2 -Wall -MT evtctx.lo -MD -MP -MF .deps/evtctx.Tpo -c evtctx.c -o evtctx.o >/dev/null 2>&1
mv -f .deps/evtctx.Tpo .deps/evtctx.Plo
/bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..   -D_GNU_SOURCE  -g -O2 -Wall -MT evttags.lo -MD -MP -MF .deps/evttags.Tpo -c -o evttags.lo evttags.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -D_GNU_SOURCE -g -O2 -Wall -MT evttags.lo -MD -MP -MF .deps/evttags.Tpo -c evttags.c  -DDLL_EXPORT -DPIC -o .libs/evttags.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -D_GNU_SOURCE -g -O2 -Wall -MT evttags.lo -MD -MP -MF .deps/evttags.Tpo -c evttags.c -o evttags.o >/dev/null 2>&1
mv -f .deps/evttags.Tpo .deps/evttags.Plo
/bin/sh ../libtool --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..   -D_GNU_SOURCE  -g -O2 -Wall -MT evtsyslog.lo -MD -MP -MF .deps/evtsyslog.Tpo -c -o evtsyslog.lo evtsyslog.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -D_GNU_SOURCE -g -O2 -Wall -MT evtsyslog.lo -MD -MP -MF .deps/evtsyslog.Tpo -c evtsyslog.c  -DDLL_EXPORT -DPIC -o .libs/evtsyslog.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -D_GNU_SOURCE -g -O2 -Wall -MT evtsyslog.lo -MD -MP -MF .deps/evtsyslog.Tpo -c evtsyslog.c -o evtsyslog.o >/dev/null 2>&1
mv -f .deps/evtsyslog.Tpo .deps/evtsyslog.Plo
/bin/sh ../libtool --tag=CC   --mode=link gcc  -g -O2 -Wall   -o libevtlog.la -rpath /usr/local/lib evtrec.lo evtfmt.lo evtout.lo evtstr.lo evtctx.lo evttags.lo evtsyslog.lo  
libtool: link: warning: undefined symbols not allowed in x86_64-unknown-cygwin shared libraries
libtool: link: ar cru .libs/libevtlog.a  evtrec.o evtfmt.o evtout.o evtstr.o evtctx.o evttags.o evtsyslog.o
libtool: link: ranlib .libs/libevtlog.a
libtool: link: ( cd ".libs" && rm -f "libevtlog.la" && ln -s "../libevtlog.la" "libevtlog.la" )
make[2]: Leaving directory '/cygdrive/c/eventlog-0.2.12/src'
Making all in tests
make[2]: Entering directory '/cygdrive/c/eventlog-0.2.12/tests'
gcc -DHAVE_CONFIG_H -I. -I..  -I../src -D_GNU_SOURCE  -g -O2 -Wall -MT evtrec.o -MD -MP -MF .deps/evtrec.Tpo -c -o evtrec.o evtrec.c
mv -f .deps/evtrec.Tpo .deps/evtrec.Po
/bin/sh ../libtool --tag=CC   --mode=link gcc  -g -O2 -Wall   -o evtrec.exe evtrec.o ../src/libevtlog.la 
libtool: link: gcc -g -O2 -Wall -o .libs/evtrec.exe evtrec.o  ../src/.libs/libevtlog.a
gcc -DHAVE_CONFIG_H -I. -I..  -I../src -D_GNU_SOURCE  -g -O2 -Wall -MT evtfmt.o -MD -MP -MF .deps/evtfmt.Tpo -c -o evtfmt.o evtfmt.c
mv -f .deps/evtfmt.Tpo .deps/evtfmt.Po
/bin/sh ../libtool --tag=CC   --mode=link gcc  -g -O2 -Wall   -o evtfmt.exe evtfmt.o ../src/libevtlog.la 
libtool: link: gcc -g -O2 -Wall -o .libs/evtfmt.exe evtfmt.o  ../src/.libs/libevtlog.a
gcc -DHAVE_CONFIG_H -I. -I..  -I../src -D_GNU_SOURCE  -g -O2 -Wall -MT evtsyslog.o -MD -MP -MF .deps/evtsyslog.Tpo -c -o evtsyslog.o evtsyslog.c
mv -f .deps/evtsyslog.Tpo .deps/evtsyslog.Po
/bin/sh ../libtool --tag=CC   --mode=link gcc  -g -O2 -Wall   -o evtsyslog.exe evtsyslog.o ../src/libevtlog.la 
libtool: link: gcc -g -O2 -Wall -o .libs/evtsyslog.exe evtsyslog.o  ../src/.libs/libevtlog.a
gcc -DHAVE_CONFIG_H -I. -I..  -I../src -D_GNU_SOURCE -DEVENTLOG_SYSLOG_MACROS=1 -g -O2 -Wall -MT evtsyslog_macros-evtsyslog.o -MD -MP -MF .deps/evtsyslog_macros-evtsyslog.Tpo -c -o evtsyslog_macros-evtsyslog.o `test -f 'evtsyslog.c' || echo './'`evtsyslog.c
mv -f .deps/evtsyslog_macros-evtsyslog.Tpo .deps/evtsyslog_macros-evtsyslog.Po
/bin/sh ../libtool --tag=CC   --mode=link gcc -DEVENTLOG_SYSLOG_MACROS=1 -g -O2 -Wall   -o evtsyslog-macros.exe evtsyslog_macros-evtsyslog.o ../src/libevtlog.la 
libtool: link: gcc -DEVENTLOG_SYSLOG_MACROS=1 -g -O2 -Wall -o .libs/evtsyslog-macros.exe evtsyslog_macros-evtsyslog.o  ../src/.libs/libevtlog.a
make[2]: Leaving directory '/cygdrive/c/eventlog-0.2.12/tests'
Making all in solbuild
make[2]: Entering directory '/cygdrive/c/eventlog-0.2.12/solbuild'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/cygdrive/c/eventlog-0.2.12/solbuild'
Making all in tgzbuild
make[2]: Entering directory '/cygdrive/c/eventlog-0.2.12/tgzbuild'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/cygdrive/c/eventlog-0.2.12/tgzbuild'
Making all in tgz2build
make[2]: Entering directory '/cygdrive/c/eventlog-0.2.12/tgz2build'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/cygdrive/c/eventlog-0.2.12/tgz2build'
Making all in winbuild
make[2]: Entering directory '/cygdrive/c/eventlog-0.2.12/winbuild'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/cygdrive/c/eventlog-0.2.12/winbuild'
make[2]: Entering directory '/cygdrive/c/eventlog-0.2.12'
make[2]: Leaving directory '/cygdrive/c/eventlog-0.2.12'
make[1]: Leaving directory '/cygdrive/c/eventlog-0.2.12'

make install

Making install in src
make[1]: Entering directory '/cygdrive/c/eventlog-0.2.12/src'
make[2]: Entering directory '/cygdrive/c/eventlog-0.2.12/src'
test -z "/usr/local/lib" || /usr/bin/mkdir -p "/usr/local/lib"
 /bin/sh ../libtool   --mode=install /usr/bin/install -c  'libevtlog.la' '/usr/local/lib/libevtlog.la'
libtool: install: /usr/bin/install -c .libs/libevtlog.lai /usr/local/lib/libevtlog.la
libtool: install: /usr/bin/install -c .libs/libevtlog.a /usr/local/lib/libevtlog.a
libtool: install: chmod 644 /usr/local/lib/libevtlog.a
libtool: install: ranlib /usr/local/lib/libevtlog.a
----------------------------------------------------------------------
Libraries have been installed in:
   /usr/local/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-LLIBDIR' linker flag

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
test -z "/usr/local/include/eventlog" || /usr/bin/mkdir -p "/usr/local/include/eventlog"
 /usr/bin/install -c -m 644 'evtmaps.h' '/usr/local/include/eventlog/evtmaps.h'
 /usr/bin/install -c -m 644 'evtlog.h' '/usr/local/include/eventlog/evtlog.h'
make[2]: Leaving directory '/cygdrive/c/eventlog-0.2.12/src'
make[1]: Leaving directory '/cygdrive/c/eventlog-0.2.12/src'
Making install in tests
make[1]: Entering directory '/cygdrive/c/eventlog-0.2.12/tests'
make[2]: Entering directory '/cygdrive/c/eventlog-0.2.12/tests'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/cygdrive/c/eventlog-0.2.12/tests'
make[1]: Leaving directory '/cygdrive/c/eventlog-0.2.12/tests'
Making install in solbuild
make[1]: Entering directory '/cygdrive/c/eventlog-0.2.12/solbuild'
make[2]: Entering directory '/cygdrive/c/eventlog-0.2.12/solbuild'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/cygdrive/c/eventlog-0.2.12/solbuild'
make[1]: Leaving directory '/cygdrive/c/eventlog-0.2.12/solbuild'
Making install in tgzbuild
make[1]: Entering directory '/cygdrive/c/eventlog-0.2.12/tgzbuild'
make[2]: Entering directory '/cygdrive/c/eventlog-0.2.12/tgzbuild'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/cygdrive/c/eventlog-0.2.12/tgzbuild'
make[1]: Leaving directory '/cygdrive/c/eventlog-0.2.12/tgzbuild'
Making install in tgz2build
make[1]: Entering directory '/cygdrive/c/eventlog-0.2.12/tgz2build'
make[2]: Entering directory '/cygdrive/c/eventlog-0.2.12/tgz2build'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/cygdrive/c/eventlog-0.2.12/tgz2build'
make[1]: Leaving directory '/cygdrive/c/eventlog-0.2.12/tgz2build'
Making install in winbuild
make[1]: Entering directory '/cygdrive/c/eventlog-0.2.12/winbuild'
make[2]: Entering directory '/cygdrive/c/eventlog-0.2.12/winbuild'
make[2]: Nothing to be done for 'install-exec-am'.
make[2]: Nothing to be done for 'install-data-am'.
make[2]: Leaving directory '/cygdrive/c/eventlog-0.2.12/winbuild'
make[1]: Leaving directory '/cygdrive/c/eventlog-0.2.12/winbuild'
make[1]: Entering directory '/cygdrive/c/eventlog-0.2.12'
make[2]: Entering directory '/cygdrive/c/eventlog-0.2.12'
make[2]: Nothing to be done for 'install-exec-am'.
test -z "/usr/local/lib/pkgconfig" || /usr/bin/mkdir -p "/usr/local/lib/pkgconfig"
 /usr/bin/install -c -m 644 'eventlog.pc' '/usr/local/lib/pkgconfig/eventlog.pc'
make[2]: Leaving directory '/cygdrive/c/eventlog-0.2.12'
make[1]: Leaving directory '/cygdrive/c/eventlog-0.2.12'

/usr/local/lib

libevtlog.a
libevtlog.la
pkgconfig

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.