Skip to content

Instantly share code, notes, and snippets.

@jeffreysblake
Forked from ghostbar/loggly.service
Created August 5, 2024 09:54
Show Gist options
  • Select an option

  • Save jeffreysblake/3d2b345bbf883b522bb5e1877bde9968 to your computer and use it in GitHub Desktop.

Select an option

Save jeffreysblake/3d2b345bbf883b522bb5e1877bde9968 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