remove logstash error

master
paulGao 2022-05-26 11:33:47 +08:00
parent f4a0d31d8b
commit b2974bc2f9
2 changed files with 0 additions and 9 deletions

View File

@ -11,12 +11,4 @@ output {
hosts => "elasticsearch:9200" hosts => "elasticsearch:9200"
index => "application-%{+YYYY.MM.dd}" 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"
}
}
} }

View File

@ -72,7 +72,6 @@ services:
container_name: logstash container_name: logstash
volumes: volumes:
- ./config/logstash-springboot.conf:/usr/share/logstash/pipeline/logstash.conf #挂载logstash的配置文件 - ./config/logstash-springboot.conf:/usr/share/logstash/pipeline/logstash.conf #挂载logstash的配置文件
- ./config/lili_goods.json:/usr/share/logstash/templates/lili_goods.json
networks: networks:
- stack - stack
depends_on: ['elasticsearch'] depends_on: ['elasticsearch']