Skip to content

GEFL sender is a tiny C tail like program that sends every new line of a specified file to a GELF server.

License

Notifications You must be signed in to change notification settings

evgeny-gridasov/gelf-sender

Repository files navigation

GELF-Sender is a tiny C cross platform (Linux/Windows) log sender.
==================================================================

Parameters:

 -h gelf_host      - hostname/ip of the remote GELF server
 -p gelf_port      - port of the remote server
 -f log_file       - path to the log file to send
 -t sleep_timeout  - sleep timeout in milliseceonds between reading from file
 -z my_hostname    - this server hostname
 -a facility       - log facility, for example, daemon or application name
 -v                - verbose logging



Building:
=========

Requires zlib and json-c. Run ./configure then make.


Cleanup:
========

make clean
rm -rf config.log config.status Makefile src/.deps src/Makefile


Cross-Compiling for Windows:
============================

Both zlib and json-c can be cross compiled from source using mingw64.
Install zlib and json-c binary libraries and includes to mingw64 system directories
and cross compile gelf-sender is as follows:
 
export ac_cv_func_realloc_0_nonnull=yes
export ac_cv_func_malloc_0_nonnull=yes

./configure --host=i686-w64-mingw32 --build=i686-linux
make

About

GEFL sender is a tiny C tail like program that sends every new line of a specified file to a GELF server.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published