Name: journal-2-logentries
Owner: CoreOS
Description: Ship systemd journal entries to logentries.com
Forked from: kelseyhightower/journal-2-logentries
Created: 2016-11-14 21:59:25.0
Updated: 2017-08-04 16:49:50.0
Pushed: 2016-11-15 20:01:24.0
Size: 22
Language: Go
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Ship systemd journal entires to logentries.com over SSL.
LOGENTRIES_TOKEN=<token> journal-2-logentries
docker run -d -e 'LOGENTRIES_TOKEN=<token>' -v /run/journald.sock:/run/journald.sock \
.io/kelseyhightower/journal-2-logentries
All configuration is done through env vars.
LOGENTRIES_JOURNAL_SOCKET
- The systemd-journal-gatewayd socket. /run/journald.sock
LOGENTRIES_URL
- The log entry url. api.logentries.com:20000
LOGENTRIES_TOKEN
- The logentries.com TCP token – See https://logentries.com/doc/input-tokenNote: Make sure that systemd-journal-gatewayd is actually listening on
/run/journald.sock
. This is not done by default on CoreOS – See
example cloud-config
NABLED=0 GOOS=linux go build -a -tags netgo -ldflags '-w' .
er build -t quay.io/<username>/journal-2-logentries .
er push quay.io/<username>/journal-2-logentries
ctl set /logentries.com/token <token>
Edit journal-2-logentries.service
t]
ription=Forward Systemd Journal to logentries.com
vice]
outStartSec=0
StartPre=-/usr/bin/docker kill journal-2-logentries
StartPre=-/usr/bin/docker rm journal-2-logentries
StartPre=/usr/bin/docker pull quay.io/kelseyhightower/journal-2-logentries
Start=/usr/bin/bash -c \
r/bin/docker run --name journal-2-logentries \
run/journald.sock:/run/journald.sock \
OGENTRIES_TOKEN=`etcdctl get /logentries.com/token` \
.io/kelseyhightower/journal-2-logentries"
leet]
al=true
tctl start journal-2-logentries.service