Skip to content

Instantly share code, notes, and snippets.

@jchauncey
Last active August 29, 2015 14:15
Show Gist options
  • Save jchauncey/a45c2037fed09745fed3 to your computer and use it in GitHub Desktop.
Save jchauncey/a45c2037fed09745fed3 to your computer and use it in GitHub Desktop.
application logs to splunk with docker!
Getting application logs from a container to splunk
Application running in the container writes their logs to /var/log/service (placing any number of directories or files in this parent directory). This is conatiner is started with /var/log/service mounted to /var/log on the host system. We then have another container running splunk-forwarder which mounts /var/log into the container. Splunk forwarder is configured to send /var/log (recursing) to the splunk indexer in the correct data center (using consul).
More to come!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment