This repository contains Dockerfile of Logstash for Docker's automated build published to the public Docker Hub Registry and Quay.io.
docker run -d --link elasticsearch:es -p 5042:5042 -v /logstash/config:/data/config:ro predicsis/logstash
docker run -d --name elasticsearch -v <data-dir>:/data quay.io/predicsis/elasticsearch /elasticsearch/bin/elasticsearch -Des.config=/data/elasticsearch.yml
docker run -d --name logstash --link elasticsearch:es -p 5042:5042 -v <logstash_config_dir>:/logstash/config:ro quay.io/predicsis/logstash
docker run -d --name kibana -p 80:5601 --link elasticsearch:es quay.io/predicsis/kibana:4.0.1
Sample logstash.conf:
input {
# Add your inputs here
}
filter {
# Add your filters here
}
output {
elasticsearch {
host => es
protocol => http
}
}
Add redis as a broker:
docker run -d --name redis -p 6379:6379 redis
logstash.conf:
input {
redis {
host => "redis"
key => "logstash"
data_type => "list"
# type => MY_TYPE
}
}
And then link redis when you start the logstash container: --link redis:redis or replace redis in the configuration file by the appropriate IP address.
See Elasticsearch or Kibana Docker image for more information.
Content type
Image
Digest
sha256:52aa85872…
Size
228.6 MB
Last updated
almost 11 years ago
docker pull predicsis/logstash