Last active
August 29, 2015 14:02
-
-
Save uzyexe/b422b742fe3c3be91287 to your computer and use it in GitHub Desktop.
cloud-config.yml: 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
coreos: | |
units: | |
- name: logentries.service | |
command: start | |
content: | | |
[Unit] | |
Description=logentires.service | |
[Service] | |
Environment=ACCESS_TOKEN=YOUR_LOGENTRIES_ACCESS_TOKEN | |
ExecStart=/bin/sh -c 'journalctl -o short -f | sed \"s/^/${ACCESS_TOKEN} \\0/g\" | ncat data.logentries.com 10000' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment