First steps using liblognorm

Here you can find the first steps to use the pre-release of liblognorm.

(Please note that the used operating system was Fedora 13.)

At the moment there are two ways to install libognorm.
You can install everything you need from git (below you can find all commands you need) or you can download it as tarball at

libestr
libee
liblognorm

Please note if you install it with tarballs you have to to the same steps which are mentioned below, apart from

$ git clone git://git.adiscon.com/git/libestr.git
$ autoreconf -vfi

Installation
Open a terminal and switch to the folder where you want to install liblognorm. Below you find the necessary commands

$ git clone git://git.adiscon.com/git/libestr.git

switch to the new folder libestr

$ autoreconf -vfi
$ ./configure --libdir=/usr/lib --includedir=/usr/include
$ make
$ make install

leave that folder and repeat this step for libee

$ git clone git://git.adiscon.com/git/libee.git

switch to the new folder libee

$ autoreconf -vfi
$ ./configure --libdir=/usr/lib --includedir=/usr/include
$ make
$ make install

leave that folder and repeat this step again for liblognorm

$ git clone git://git.adiscon.com/git/liblognorm.git

switch to the new folder liblognorm

$ autoreconf -vfi
$ ./configure --libdir=/usr/lib --includedir=/usr/include
$ make
$ make install

That’s all you have to do.

For a first test we need two further things, a test log and the rulebase. Both can be downloaded at

http://blog.gerhards.net/2010/11/log-normalization-first-results.html

After downloading these examples you can use liblognorm. Go to /liblognorm/src and use the command below:

$ ./normalize -r /home/Test/messages.sampdb -ojson </home/Test/messages.log >/home/Test/temp

-r = path to the rulebase

-o = output format

Please have look at http://www.liblognorm.com/help/available-options-for-normalizer/ for all available options.

3 Responses to “First steps using liblognorm”

  1. elhoim says:

    When doing “autoreconf -vfi” for liblognorm, i get an error message “aclocal: couldn’t open directory `m4′: No such file or directory” which is resolved by creating the m4 directory.

    normalize listed in the example is actually normalizer.

    Besides those two tiny details, it is a kick ass project! Thanks for doing it.

  2. […] After downloading the mentioned items we have to install them. You can find a guide for installing liblestr, libee and liblognorm at http://www.liblognorm.com/help/first-steps-using-liblognorm/. […]

  3. […] rsyslog, we will install liblognorm, libee and libestr. They can be installed according to this guide. rsyslog can now be installed. We assume you have downloaded and extracted a tarball from the […]

Leave a Reply