diff --git a/templates/filebeat/0/docker-compose.yml b/templates/filebeat/0/docker-compose.yml new file mode 100644 index 0000000..0b39222 --- /dev/null +++ b/templates/filebeat/0/docker-compose.yml @@ -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 diff --git a/templates/filebeat/0/rancher-compose.yml b/templates/filebeat/0/rancher-compose.yml new file mode 100644 index 0000000..b7f3ad1 --- /dev/null +++ b/templates/filebeat/0/rancher-compose.yml @@ -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 + diff --git a/templates/filebeat/1/docker-compose.yml b/templates/filebeat/1/docker-compose.yml new file mode 100644 index 0000000..f1da36d --- /dev/null +++ b/templates/filebeat/1/docker-compose.yml @@ -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 diff --git a/templates/filebeat/1/rancher-compose.yml b/templates/filebeat/1/rancher-compose.yml new file mode 100644 index 0000000..40b0480 --- /dev/null +++ b/templates/filebeat/1/rancher-compose.yml @@ -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 + diff --git a/templates/filebeat/2/docker-compose.yml b/templates/filebeat/2/docker-compose.yml new file mode 100644 index 0000000..c6809e4 --- /dev/null +++ b/templates/filebeat/2/docker-compose.yml @@ -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 diff --git a/templates/filebeat/2/rancher-compose.yml b/templates/filebeat/2/rancher-compose.yml new file mode 100644 index 0000000..c279ce6 --- /dev/null +++ b/templates/filebeat/2/rancher-compose.yml @@ -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 + diff --git a/templates/filebeat/catalogIcon-filebeat.svg b/templates/filebeat/catalogIcon-filebeat.svg new file mode 100644 index 0000000..ce5be11 --- /dev/null +++ b/templates/filebeat/catalogIcon-filebeat.svg @@ -0,0 +1,13 @@ + + + + + + icons-masterfilefinal + + + + + + + diff --git a/templates/filebeat/config.yml b/templates/filebeat/config.yml new file mode 100644 index 0000000..5096503 --- /dev/null +++ b/templates/filebeat/config.yml @@ -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