-
-
Save jeffreysblake/3d2b345bbf883b522bb5e1877bde9968 to your computer and use it in GitHub Desktop.
loggly.service
This file contains hidden or 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
| [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