Skip to content

Instantly share code, notes, and snippets.

@uzyexe
Last active August 29, 2015 14:02
Show Gist options
  • Save uzyexe/b422b742fe3c3be91287 to your computer and use it in GitHub Desktop.
Save uzyexe/b422b742fe3c3be91287 to your computer and use it in GitHub Desktop.
cloud-config.yml: Sending your CoreOS data to Logentries
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