From 3d8f3a9133b8d842f09290db1419d4cdafad4f45 Mon Sep 17 00:00:00 2001 From: Jonathan Short Date: Thu, 3 Mar 2016 11:33:50 -0500 Subject: [PATCH] - update base alpine image from 3.2 -> 3.3 - move ModLoad of tcp/udp input to beginning of conf file - load udp prior to tcp. avoids segfault (for unknown reason), but verified container now propery accepts both tcp and udp without segfault and forwards both to loggly --- Dockerfile | 2 +- rsyslog.conf | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index c065477..b0c8fab 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,7 @@ # ################################################################# -FROM alpine:3.2 +FROM alpine:3.3 MAINTAINER Jonathan Short RUN apk add --update rsyslog rsyslog-tls && rm -rf /var/cache/apk/* diff --git a/rsyslog.conf b/rsyslog.conf index 3301180..b8f445c 100644 --- a/rsyslog.conf +++ b/rsyslog.conf @@ -1,6 +1,8 @@ # Input modules $ModLoad immark.so # provide --MARK-- message capability $ModLoad imuxsock.so # provide local system logging (e.g. via logger command) +$ModLoad imudp # provides UDP syslog reception +$ModLoad imtcp # provides TCP syslog reception # Output modules $ModLoad omstdout.so # provide messages to stdout @@ -29,9 +31,7 @@ $ActionSendStreamDriverPermittedPeer *.loggly.com *.* @@logs-01.loggly.com:6514;LogglyFormat # TCP Syslog Server -$ModLoad imtcp # provides TCP syslog reception $InputTCPServerRun 514 # start a TCP syslog server at standard port 514 # UDP Syslog Server -$ModLoad imudp # provides UDP syslog reception $UDPServerRun 514 # start a UDP syslog server at standard port 514