logstash部署 Logstash 部署12345678910version: "3"services: logstash: image: logstash:7.8.0 container_name: logstash volumes: - ./logstash.yml:/usr/share/logstash/config/logstash.yml - ./conf.d/logstash.conf:/usr/share/logstash/pipeline/logstash.conf - /opt/dockercompose/logfile/umstransition:/umstransitionLogs network_mode: host # 网络模式 logstash.yml 12xpack.monitoring.elasticsearch.hosts: [ "http://172.16.100.92:9200","http://172.16.100.92:9201","http://172.16.100.92:9202" ]http.host: "0.0.0.0" logstash.conf 123456789101112131415161718# logstash.confinput { file { path => "/umstransitionLogs/*" type => "umstransitionLogs" start_position => "beginning" }} output { if [type] == "umstransitionLogs" { elasticsearch { hosts => [ "http://172.16.100.92:9200"] index => "umstransitionlogs-93-%{+YYYY.MM.dd}" } }} elasticsearch #elasticsearch #开发 logstash部署 https://zhaops-hub.github.io/2021/11/10/elasticsearch/logstash部署/ 作者 赵培胜 发布于 2021年11月10日 许可协议 kibana部署 上一篇 jenkins构建vue 下一篇