-
-
Save markstos/0e24dc0e7bdd0c3474d78261f5cae783 to your computer and use it in GitHub Desktop.
systemd: Sending your CoreOS data to Logentries
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
[Unit] | |
Description=journald-to-logentries.service | |
# Install the nmap package to get the `ncat` dependency. | |
# If you want to forward just a specific unit, add `-u your-unit.service` after `journalctl` | |
[Service] | |
Environment=ACCESS_TOKEN=YOUR_LOGENTRIES_ACCESS_TOKEN | |
ExecStart=/bin/sh -c 'journalctl -f | sed \"s/^/${ACCESS_TOKEN} \\0/g\" | ncat --ssl data.logentries.com 443' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment