Skip to content

Commit

Permalink
- update base alpine image from 3.2 -> 3.3
Browse files Browse the repository at this point in the history
 - 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
  • Loading branch information
jonathan-short committed Mar 3, 2016
1 parent 6d2bf84 commit 3d8f3a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#
#################################################################

FROM alpine:3.2
FROM alpine:3.3
MAINTAINER Jonathan Short <[email protected]>

RUN apk add --update rsyslog rsyslog-tls && rm -rf /var/cache/apk/*
Expand Down
4 changes: 2 additions & 2 deletions rsyslog.conf
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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

0 comments on commit 3d8f3a9

Please sign in to comment.