docker pull logstash:7.4.1
mkdir /data/app/logstash \
mkdir /data/app/logstash/conf.d/
docker run -d --restart=always \
--log-driver json-file \
--log-opt max-size=100m \
--log-opt max-file=2 \
-p 9600:9600 \
--name mylogstash \
-v /data/app/logstash/conf.d/:/usr/share/logstash/conf.d/ \
logstash:7.4.1
-v /data/app/logstash/logstash.yml:/usr/share/logstash/config/logstash.yml \