It's container with syslog-ng and some custom configs.
- docker
- docker-compose
- straight hands
git clone https://github.com/alive-corpse/es-syslog-ng.git
cd es-syslog-ng
echo "HOSTUID=$(id -u)" > .env
echo "HOSTGID=$(id -g)" >> .env
docker-compose up -d
- You can check some examples in directory configs/conf.d with postfix *.conf_example and make new custom *.conf files.
- You can check offitial documentation here.
- After editing config files inside configs directory, you should reload syslog-ng by executing scripts/reload (it also can be runned from container as from host).
- UDP 514
- TCP 601
In the logs directory obliviously. Also you should use /logs path in your config files.
Also logs can be compressed and cleaned by included scripts, that handle this processes every 2 hours. You should just place file with name '.clean' and content like this:
clean=30
into one of subdirectories of logs directory and all of log files in this directory and it's subdirectories will be deleted if them older than 30 days and compressed with bzip2 if them are older than 7 days. Be carefull with it - all the .clean files will be handled in order of they will be found.
Youre welcome to evgeniy.shumilov@gmail.com