Skip to content

Instantly share code, notes, and snippets.

@ghostbar
Created March 26, 2015 22:57
Show Gist options
  • Save ghostbar/f7f2e82884631b083017 to your computer and use it in GitHub Desktop.
Save ghostbar/f7f2e82884631b083017 to your computer and use it in GitHub Desktop.
loggly.service
[Unit]
Description=Loggly Forwarder
[Service]
ExecStart=/bin/sh -c "journalctl -o short -f | awk '{ print \"\<34\>1\", $0; fflush(); }' | awk '{ print $0, \"[your-consumer-token-from-loggly@41058 tag='deis']\" }' | ncat --ssl logs-01.loggly.com 6514"
[Install]
WantedBy=multi-user.target
[X-Fleet]
Global=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment