coreos/journal-2-logentries

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

Homepage:

Size: 22

Language: Go

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

journal-2-logentries

Ship systemd journal entires to logentries.com over SSL.

Usage
 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
Configuration

All configuration is done through env vars.

Note: 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

Building
NABLED=0 GOOS=linux go build -a -tags netgo -ldflags '-w' .
Docker
er build -t quay.io/<username>/journal-2-logentries .
er push quay.io/<username>/journal-2-logentries
Fleet integration
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

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.