-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4539125
commit 4ddc4e7
Showing
4 changed files
with
56 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
$template LogglyFormat,"<%pri%>%protocol-version% %timestamp:::date-rfc3339% %HOSTNAME% %app-name% %procid% %msgid% [TOKEN@41058 tag=\"TAG\"] %msg%\n" | ||
|
||
*.* @@logs-01.loggly.com:514;LogglyFormat | ||
|
||
$ModLoad imudp | ||
$UDPServerRun 514 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
################################################################# | ||
# | ||
# ## . | ||
# ## ## ## == | ||
# ## ## ## ## === | ||
# /""""""""""""""""\___/ === | ||
# ~~~ {~~ ~~~~ ~~~ ~~~~ ~~ ~ / ===- ~~~ | ||
# \______ o __/ | ||
# \ \ __/ | ||
# \____\______/ | ||
# | ||
################################################################# | ||
|
||
FROM ubuntu:trusty | ||
MAINTAINER Jonathan Short <[email protected]> | ||
|
||
RUN apt-get update | ||
RUN apt-get -y dist-upgrade | ||
|
||
ADD run.sh /tmp/run.sh | ||
ADD 50-default.conf /etc/rsyslog.d/50-default.conf | ||
|
||
EXPOSE 514 | ||
|
||
CMD ["/tmp/run.sh"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
loggly-docker | ||
============= | ||
|
||
Docker container for loggly (via syslog) | ||
Docker container for loggly (via rsyslog) | ||
|
||
Usage: | ||
|
||
docker run -e TOKEN=<Loggly Customer Token> -e TAG=<Tag Describing Source> sendgridlabs/loggly-docker | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
if [ -z "$TOKEN" ]; then | ||
echo "Missing \$TOKEN" | ||
exit 1 | ||
fi | ||
|
||
if [ -z "$TAG" ]; then | ||
echo "Missing \$TAG" | ||
exit 1 | ||
fi | ||
|
||
sed -i "s/TOKEN/$TOKEN/" /etc/rsyslog.d/50-default.conf | ||
sed -i "s/TAG/$TAG/" /etc/rsyslog.d/50-default.conf | ||
|
||
exec /usr/sbin/rsyslogd -n | ||
|