Skip to content

Instantly share code, notes, and snippets.

@philip-loggly
philip-loggly / Loggly rsyslog on EC2 boot
Last active April 22, 2017 18:05
An init.d script that automatically configures rsyslog logging to Loggly
#!/bin/sh
#
# This script automatically configures rsyslog for Loggly. This script requires that the
# your Customer Token is passed in via EC2 user-data, on its own line, as follows:
#
# LOGGLY_AUTH=<your auth token>
#
# For example, if your Customer Token is 727bae3d-750c-4e44-96ed-ad83230208bb, then pass
#
# LOGGLY_AUTH=727bae3d-750c-4e44-96ed-ad83230208bb