You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Paolo Asperti e91455f8e1
fix: missing env default values
3 months ago
.drone.yml initial import 3 months ago
Dockerfile fix: missing env default values 3 months ago
LICENSE initial import 3 months ago
README.md added testing hint 3 months ago
run.sh fix #1 3 months ago

README.md

docker-syslog-forwarder

Build Status

This container accepts syslog streams on port 514/tcp and 514/udp and forwards everything to a remote syslog server in RFC5424 format.

No encryption support at the moment.

build

docker build . -t docker.asperti.com/paspo/syslog-forwarder

environment

Variable Default Description
TARGET_HOST 127.0.0.1 target server IP/hostname
TARGET_PROTO tcp tcp or udp
TARGET_PORT 514 target server syslog port

run

docker run -d --name syslog-forwarder \
  -p 514:514/tcp -p 514:514/udp \
  -e "TARGET_HOST=192.168.1.33" \
  docker.asperti.com/paspo/syslog-forwarder

docker-compose

version: "3"
services:

  syslog-forwarder:
    image: docker.asperti.com/paspo/syslog-forwarder
    restart: always
    ports:
      - "514:514/tcp"
      - "514:514/udp"
    environment:
      - TARGET_HOST=192.168.1.33
      - TARGET_PROTO=tcp
      - TARGET_PORT=1514

testing

If you need a log source for testing, you can use the logger command:

logger --server my.logserver.com --tcp --rfc3164 --priority 3 --port 514 "ciao"