diff --git a/templates/logspout/0/README.md b/templates/logspout/0/README.md new file mode 100644 index 0000000..c985949 --- /dev/null +++ b/templates/logspout/0/README.md @@ -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. + diff --git a/templates/logspout/0/docker-compose.yml b/templates/logspout/0/docker-compose.yml new file mode 100644 index 0000000..f6005e9 --- /dev/null +++ b/templates/logspout/0/docker-compose.yml @@ -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 diff --git a/templates/logspout/0/rancher-compose.yml b/templates/logspout/0/rancher-compose.yml new file mode 100644 index 0000000..f4e0ad4 --- /dev/null +++ b/templates/logspout/0/rancher-compose.yml @@ -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 diff --git a/templates/logspout/catalogIcon-gliderlabs.png b/templates/logspout/catalogIcon-gliderlabs.png new file mode 100644 index 0000000..5858302 Binary files /dev/null and b/templates/logspout/catalogIcon-gliderlabs.png differ diff --git a/templates/logspout/config.yml b/templates/logspout/config.yml new file mode 100644 index 0000000..d066319 --- /dev/null +++ b/templates/logspout/config.yml @@ -0,0 +1,5 @@ +name: Logspout +description: | + Glider Labs Logspout with Logstash adapter with extra options +version: 0.2.0-1 +category: Logging