add filebeat for rancher catalog for fast deployment

This commit is contained in:
Eason 2018-02-06 23:48:43 +08:00
parent 9a282a101d
commit be3a12a603
8 changed files with 216 additions and 0 deletions

View File

@ -0,0 +1,22 @@
version: '2'
services:
filebeat:
image: eason02/filebeat-alpine:5.3.1
container_name: filebeat-alpine-5.3.1
restart: always
labels:
io.rancher.container.pull_image: always
environment:
- env=${ENV}
- logstash=${LOGSTASH}
- project=${PROJECT}
network_mode: host
volumes:
- /var/lib/filebeat/:/filebeat/data
- ${APPLOG_PATH}:/home/user/
- ${NGINXLOG_PATH}:/var/log/nginx/
logging:
driver: json-file
options:
max-file: '5'
max-size: 10m

View File

@ -0,0 +1,43 @@
version: '2'
catalog:
name: "filebeat-alpine"
version: "5.3.1"
description: "Catalog's rancher-compose"
minimun_rancher_version: v1.0.1
maximun_rancher_version: v1.6.12
upgrade_from: "1.0.0"
questions:
- variable: "ENV"
label: "Environment Name"
description: "Environment to distinguish data source"
default: "QA"
required: true
type: "enum"
options:
- QA
- PP
- INT
- PROD
- variable: "PROJECT"
label: "Project Name"
description: "Indicated log of which project"
required: true
type: "string"
- variable: "LOGSTASH"
label: "Logstash Host"
description: "Specific Logstash Instance Running Host for log receiving"
required: true
type: "string"
- variable: "APPLOG_PATH"
label: "Application Log Path"
description: "For alignment, put your log into below path: ${HOME_PATH}/App1/logs/xxx.log, assume your HOME_PATH=/home/user, then set Application log Path as /home/user/."
required: true
default: "/home/user/"
type: "string"
- variable: "NGINXLOG_PATH"
label: "Nginx Log Path"
description: "Default it as /var/log/nginx/"
default: "/var/log/nginx/"
type: "string"
required: true

View File

@ -0,0 +1,22 @@
version: '2'
services:
filebeat:
image: eason02/filebeat-alpine:5.6.3
container_name: filebeat-alpine-5.6.3
restart: always
labels:
io.rancher.container.pull_image: always
environment:
- env=${ENV}
- logstash=${LOGSTASH}
- project=${PROJECT}
network_mode: host
volumes:
- /var/lib/filebeat/:/filebeat/data
- ${APPLOG_PATH}:/home/user/
- ${NGINXLOG_PATH}:/var/log/nginx/
logging:
driver: json-file
options:
max-file: '5'
max-size: 10m

View File

@ -0,0 +1,43 @@
version: '2'
catalog:
name: "filebeat-alpine"
version: "5.6.3"
description: "Catalog's rancher-compose"
minimun_rancher_version: v1.0.1
maximun_rancher_version: v1.6.12
upgrade_from: "1.0.0"
questions:
- variable: "ENV"
label: "Environment Name"
description: "Environment to distinguish data source"
default: "QA"
required: true
type: "enum"
options:
- QA
- PP
- INT
- PROD
- variable: "PROJECT"
label: "Project Name"
description: "Indicated log of which project"
required: true
type: "string"
- variable: "LOGSTASH"
label: "Logstash Host"
description: "Specific Logstash Instance Running Host for log receiving"
required: true
type: "string"
- variable: "APPLOG_PATH"
label: "Application Log Path"
description: "For alignment, put your log into below path: ${HOME_PATH}/App1/logs/xxx.log, assume your HOME_PATH=/home/user, then set Application log Path as /home/user/."
required: true
default: "/home/user/"
type: "string"
- variable: "NGINXLOG_PATH"
label: "Nginx Log Path"
description: "Default it as /var/log/nginx/"
default: "/var/log/nginx/"
type: "string"
required: true

View File

@ -0,0 +1,22 @@
version: '2'
services:
filebeat:
image: eason02/filebeat-alpine:6.1.1
container_name: filebeat-alpine-6.1.1
restart: always
labels:
io.rancher.container.pull_image: always
environment:
- env=${ENV}
- logstash=${LOGSTASH}
- project=${PROJECT}
network_mode: host
volumes:
- /var/lib/filebeat/:/filebeat/data
- ${APPLOG_PATH}:/home/user/
- ${NGINXLOG_PATH}:/var/log/nginx/
logging:
driver: json-file
options:
max-file: '5'
max-size: 10m

View File

@ -0,0 +1,43 @@
version: '2'
catalog:
name: "filebeat-alpine"
version: "6.1.1"
description: "Catalog's rancher-compose"
minimun_rancher_version: v1.0.1
maximun_rancher_version: v1.6.12
upgrade_from: "1.0.0"
questions:
- variable: "ENV"
label: "Environment Name"
description: "Environment to distinguish data source"
default: "QA"
required: true
type: "enum"
options:
- QA
- PP
- INT
- PROD
- variable: "PROJECT"
label: "Project Name"
description: "Indicated log of which project"
required: true
type: "string"
- variable: "LOGSTASH"
label: "Logstash Host"
description: "Specific Logstash Instance Running Host for log receiving"
required: true
type: "string"
- variable: "APPLOG_PATH"
label: "Application Log Path"
description: "For alignment, put your log into below path: ${HOME_PATH}/App1/logs/xxx.log, assume your HOME_PATH=/home/user, then set Application log Path as /home/user/."
required: true
default: "/home/user/"
type: "string"
- variable: "NGINXLOG_PATH"
label: "Nginx Log Path"
description: "Default it as /var/log/nginx/"
default: "/var/log/nginx/"
type: "string"
required: true

View File

@ -0,0 +1,13 @@
<?xml version="1.0"?>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 79.37 79.37">
<defs>
<style>.cls-1{isolation:isolate;}.cls-2{fill:#40beb0;}.cls-2,.cls-3{fill-rule:evenodd;}.cls-3{fill:#09a5de;mix-blend-mode:multiply;}</style>
</defs>
<title>icons-masterfilefinal</title>
<g class="cls-1">
<g id="Layer_1">
<path class="cls-2" d="M43.87,15.27H20a2.39,2.39,0,0,0-2.39,2.39V63A2.39,2.39,0,0,0,20,65.41h38.2A2.39,2.39,0,0,0,60.58,63V32Z"/>
<path class="cls-3" d="M43.87,15.27V29.6A2.39,2.39,0,0,0,46.26,32H60.58Z"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 574 B

View File

@ -0,0 +1,8 @@
name: Filebeat-Alpine
description: Log Shipper to logstash
version: 6.1.1
category: Shipper
maintainer: eason.lau02@hotmail.com
license: MIT
projectURL: https://github.com/easonlau02/filebeat-alpine