Sign inSign up

edvisor/logspout-papertrail

By edvisor

•Updated about 10 years ago

Automated build for logspout papertrail.

Image
1

100K+

edvisor/logspout-papertrail repository overview

⁠Logspout Usage

⁠Papertrail (TLS)

Use logspout to stream your docker logs to Papertrail⁠.

$ docker run --name logspout-papertrail --restart=always -d \
    --volume=/var/run/docker.sock:/var/run/docker.sock \
    edvisor/logspout-papertrail \
    syslog+tls://<ENDPOINT>.papertrailapp.com:<PORT>

Note: Alternatively, you may use syslog+tcp:// for TCP and syslog:// for UDP

⁠ECS Container Definition
"containerDefinitions": [
  {
    "memory": 128,
    "cpu": 64,
    "essential": true,
    "mountPoints": [
      {
        "containerPath": "/var/run/docker.sock",
        "sourceVolume": "docker_sock",
        "readOnly": null
      }
    ],
    "name": "logspout-papertrail",
    "image": "edvisor/logspout-papertrail",
    "command": [
      "syslog+tls://<ENDPOINT>.papertrailapp.com:<PORT>"
    ],
  }
],
"volumes": [
  {
    "host": {
      "sourcePath": "/var/run/docker.sock"
    },
    "name": "docker_sock"
  }
]
⁠Loggly (JSON)

Use logspout to stream your docker logs to Loggly in JSON format.

$ docker run --name logspout-loggly --restart=always -d \
    --volume=/var/run/docker.sock:/tmp/docker.sock \
    -e 'LOGGLY_TOKEN=<token>' \
    -e 'LOGGLY_TAGS=<comma-delimited-list>' \
    -e 'FILTER_NAME=<wildcard-container-name>' \
    iamatypeofwalrus/logspout-loggly
⁠Loggly (Syslog)

Use logspout to stream your docker logs to Loggly via the Loggly syslog endpoint⁠.

$ docker run --name logspout-loggly --restart=always -d \
    --volume=/var/run/docker.sock:/var/run/docker.sock \
    -e SYSLOG_STRUCTURED_DATA="<Loggly API Key>@41058 tag=\"some tag name\"" \
    gliderlabs/logspout \
    syslog+tcp://logs-01.loggly.com:514

Tag summary

Content type

Image

Digest

Size

8.4 MB

Last updated

about 10 years ago

docker pull edvisor/logspout-papertrail