$ docker run --name redis -d redis:alpine
$ docker run -d --name elasticsearch -p 9200:9200 blacktop/elasticsearch:5.5
$ docker run -d --name logstash --link elasticsearch --link redis blacktop/logstash:5.5 \
logstash -e 'input {
redis {
host => "redis"
data_type => "list"
db => 3
key => "bro"
codec => "json"
}
}
output {
elasticsearch {
hosts => "elasticsearch:9200"
index => "bro-%{+YYYY.MM.dd}"
}
}'
$ wget https://github.com/blacktop/docker-bro/raw/master/pcap/heartbleed.pcap
$ docker run --rm \
-v `pwd`:/pcap \
--link redis \
blacktop/bro:redis -r heartbleed.pcap local "Site::local_nets += { 192.168.11.0/24 }"
NOTE: To watch the redis ingest you can run the following
$ docker exec -it redis redis-cli monitor
=OR=
$ docker-compose -f docker-compose.redis.yml up