Add community logspout template
This commit is contained in:
parent
8c75921457
commit
b85c3e2220
14
templates/logspout/0/README.md
Normal file
14
templates/logspout/0/README.md
Normal 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.
|
||||
|
14
templates/logspout/0/docker-compose.yml
Normal file
14
templates/logspout/0/docker-compose.yml
Normal 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
|
33
templates/logspout/0/rancher-compose.yml
Normal file
33
templates/logspout/0/rancher-compose.yml
Normal 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
|
BIN
templates/logspout/catalogIcon-gliderlabs.png
Normal file
BIN
templates/logspout/catalogIcon-gliderlabs.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 19 KiB |
5
templates/logspout/config.yml
Normal file
5
templates/logspout/config.yml
Normal file
@ -0,0 +1,5 @@
|
||||
name: Logspout
|
||||
description: |
|
||||
Glider Labs Logspout with Logstash adapter with extra options
|
||||
version: 0.2.0-1
|
||||
category: Logging
|
Loading…
x
Reference in New Issue
Block a user