Add community logspout template

This commit is contained in:
sshipway 2016-03-04 03:34:25 +00:00
parent 8c75921457
commit b85c3e2220
5 changed files with 66 additions and 0 deletions

View File

@ -0,0 +1,14 @@
# Add Logspout Stack
Glider Labs Logspout with Logstash adapter
### Info:
For any services launched from the Rancher UI to use Logspout, please make sure to disable the '-t' [tty] option in the Advanced Options of the service definition.
### Community Version
This version adds the Environment option, where you can specify the name of the Environment.
All Syslogs will then be sent with this as the Source Hostname rather than the hostname of
the Docker Host on which the container is running.

View File

@ -0,0 +1,14 @@
logspout:
restart: always
environment:
ROUTE_URIS: "${route_uri}"
LOGSPOUT: 'ignore'
SYSLOG_HOSTNAME: "${envname}"
volumes:
- '/var/run/docker.sock:/var/run/docker.sock'
labels:
io.rancher.scheduler.global: 'true'
io.rancher.container.hostname_override: container_name
tty: true
image: rancher/logspout-logstash:v0.2.0
stdin_open: true

View File

@ -0,0 +1,33 @@
.catalog:
name: Logspout
version: 0.2.0-1
description: |
Logspout is a log router for Docker containers. This community template
allows you to log against the Rancher Environment rather than the hostname for
easier analysis.
questions:
- variable: "route_uri"
label: "Logspout route for logs"
type: "string"
required: true
default: "syslog://syslog.example.com:514"
description: |
This will be the target where all logs are sent.
- variable: "envname"
label: "Environment"
type: "string"
required: true
default: "Rancher:"
description: |
This is the environment name, which will be used as the Hostname
label in Syslog instead of the Host or Container name.
- variable: "format"
label: "Format"
type: "enum"
options:
- "rfc5424"
- "rfc3164"
required: true
default: ""
description: |
The Syslog format to use. If not certain, use rfc5424

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

View File

@ -0,0 +1,5 @@
name: Logspout
description: |
Glider Labs Logspout with Logstash adapter with extra options
version: 0.2.0-1
category: Logging