commit:支持app的纯后台服务

This commit is contained in:
Jerry
2020-10-29 18:54:21 +08:00
parent 96fddccc47
commit dd555d8bb1
656 changed files with 46519 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
ARG LOGSTASH_VER
FROM logstash:${LOGSTASH_VER}

View File

@@ -0,0 +1,2 @@
http.host: "0.0.0.0"
xpack.monitoring.elasticsearch.hosts: [ "http://elasticsearch:9200" ]

View File

@@ -0,0 +1,6 @@
# This file is where you define your pipelines. You can define multiple.
# For more information on multiple pipelines, see the documentation:
# https://www.elastic.co/guide/en/logstash/current/multiple-pipelines.html
- pipeline.id: main
path.config: "/usr/share/logstash/pipeline"

View File

@@ -0,0 +1,15 @@
input {
kafka {
bootstrap_servers => "kafka:9093"
topics => "zz-log-topic"
codec => plain
}
}
# 监听
output {
elasticsearch {
hosts => ["http://elasticsearch:9200"]
index => "logstash-%{+YYYY-MM}"
}
}