INSTALLATION

2

PREREQUISITES

The build system expects a standard C environment. Ensure the following tools are present:

  • gcc (or a compatible C compiler)
  • pthreads (POSIX threads)
  • make
  • ncurses (required to build the hiveparser example)

BUILD INSTRUCTIONS

Clone the repository and compile the framework. The default make target produces the static library, the shared library, and the pkg-config definition file.

git clone https://github.com/Basliel25/trafilo
cd trafilo
make

INSTALLATION

Install the library system-wide. The default installation path is /usr/local. The build system honors the DESTDIR and PREFIX variables.

sudo make install

EXAMPLES

Build the examples to verify the installation. The hiveparser.c example produces an ncurses dashboard that tracks per-service event rates.

make examples
./build/examples/hiveparser &
cd dummyDameon && docker compose up

The docker compose command starts a dummy daemon that transmits UDP logs. Trafilo parses, aggregates, and renders the data. Send a q character to terminate the process cleanly.