docker container for td-agent as service to receive syslog at :514/udp and storing to S3.
container image is based centos:8 .
Amazon Linux release 2 (Karoo) or later is recommended as docker-host.
and need Docker, docker-compose.
and edit as needed.
.env
is automatically referenced by docker-compose.
docker-compose build
docker-compose up -d
docker container exec -it `docker container ls -alq` /bin/bash
curl -X POST -d 'json={"json":"message2!!!"}' http://localhost:8888/debug.test
tail -f /var/log/td-agent/td-agent.log
this test needs rsyslog on docker-host.
sudo sh -c "echo local5.* @docker-hosts-ip:514 >> /etc/rsyslog.conf"
sudo service rsyslog restart
logger -p local5.info "I sent dummy syslog message"
please replace docker-hosts-ip
.
tail -f /tmp/buffer.*.log
notice: It can take up to an hour with default td-agent.conf.
docker-compose down