commit
f26a50c552
@ -6,9 +6,3 @@ Glider Labs Logspout with Logstash adapter
|
|||||||
|
|
||||||
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.
|
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.
|
|
||||||
|
|
||||||
|
@ -3,9 +3,10 @@ logspout:
|
|||||||
environment:
|
environment:
|
||||||
ROUTE_URIS: "${route_uri}"
|
ROUTE_URIS: "${route_uri}"
|
||||||
LOGSPOUT: 'ignore'
|
LOGSPOUT: 'ignore'
|
||||||
SYSLOG_HOSTNAME: "${envname}"
|
|
||||||
volumes:
|
volumes:
|
||||||
- '/var/run/docker.sock:/var/run/docker.sock'
|
- '/var/run/docker.sock:/var/run/docker.sock'
|
||||||
|
external_links:
|
||||||
|
- ${target_link}:${target_link_name}
|
||||||
labels:
|
labels:
|
||||||
io.rancher.scheduler.global: 'true'
|
io.rancher.scheduler.global: 'true'
|
||||||
io.rancher.container.hostname_override: container_name
|
io.rancher.container.hostname_override: container_name
|
||||||
|
@ -1,33 +1,32 @@
|
|||||||
.catalog:
|
.catalog:
|
||||||
name: Logspout
|
name: Logspout
|
||||||
version: 0.2.0-1
|
version: 0.2.0-rancher1
|
||||||
description: |
|
description: |
|
||||||
Logspout is a log router for Docker containers. This community template
|
Logspout is a log router for Docker containers.
|
||||||
allows you to log against the Rancher Environment rather than the hostname for
|
|
||||||
easier analysis.
|
|
||||||
questions:
|
questions:
|
||||||
- variable: "route_uri"
|
- variable: "route_uri"
|
||||||
label: "Logspout route for logs"
|
label: "Logspout route for logs"
|
||||||
type: "string"
|
type: "string"
|
||||||
required: true
|
required: true
|
||||||
default: "syslog://syslog.example.com:514"
|
default: "logstash://logstash:5000"
|
||||||
description: |
|
description: |
|
||||||
This will be the target where all logs are sent.
|
This will be the target where all logs are sent.
|
||||||
- variable: "envname"
|
By default it uses logstash and points to a linked service
|
||||||
label: "Environment"
|
logstash.
|
||||||
|
- variable: "target_link"
|
||||||
|
label: "Logging Target Link"
|
||||||
|
type: "service"
|
||||||
|
required: true
|
||||||
|
default: "logstash/logstash"
|
||||||
|
description: |
|
||||||
|
Name of the stack/service to send logs to.
|
||||||
|
- variable: "target_link_name"
|
||||||
|
label: "Link Name"
|
||||||
type: "string"
|
type: "string"
|
||||||
required: true
|
required: true
|
||||||
default: "Rancher:"
|
default: "logstash"
|
||||||
description: |
|
description: |
|
||||||
This is the environment name, which will be used as the Hostname
|
Alias link name
|
||||||
label in Syslog instead of the Host or Container name.
|
|
||||||
- variable: "format"
|
|
||||||
label: "Format"
|
|
||||||
type: "enum"
|
|
||||||
options:
|
|
||||||
- "rfc5424"
|
|
||||||
- "rfc3164"
|
|
||||||
required: true
|
|
||||||
default: "rfc5424"
|
|
||||||
description: |
|
description: |
|
||||||
The Syslog format to use. If not certain, use rfc5424
|
DNS name to send logs to. The DNS
|
||||||
|
Name should line up with the route uri.
|
||||||
|
14
templates/logspout/1/README.md
Normal file
14
templates/logspout/1/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/1/docker-compose.yml
Normal file
14
templates/logspout/1/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/1/rancher-compose.yml
Normal file
33
templates/logspout/1/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: "rfc5424"
|
||||||
|
description: |
|
||||||
|
The Syslog format to use. If not certain, use rfc5424
|
Loading…
x
Reference in New Issue
Block a user