diff --git a/config/logstash-springboot.conf b/config/logstash-springboot.conf index 3050a34..4104d63 100644 --- a/config/logstash-springboot.conf +++ b/config/logstash-springboot.conf @@ -11,12 +11,4 @@ output { hosts => "elasticsearch:9200" index => "application-%{+YYYY.MM.dd}" } - if "lili_goods" in [tags] { - elasticsearch { - hosts => ["http://elasticsearch:9200"] - index => "lili_goods" - template => "/usr/share/logstash/templates/lili_goods.json" - template_name => "lili_goods" - } - } } \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index bf7b05a..e0c78e7 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -72,7 +72,6 @@ services: container_name: logstash volumes: - ./config/logstash-springboot.conf:/usr/share/logstash/pipeline/logstash.conf #挂载logstash的配置文件 - - ./config/lili_goods.json:/usr/share/logstash/templates/lili_goods.json networks: - stack depends_on: ['elasticsearch']