Public | Automated Build

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

Logstash

Logstash Dockerfile

This repository contains Dockerfile of Logstash for Docker's automated build published to the public Docker Hub Registry and Quay.io.

Base Docker Image

Usage

docker run -d --link elasticsearch:es -p 5042:5042 -v /logstash/config:/data/config:ro predicsis/logstash

Logstash, Elasticsearch and Kibana

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
  }
}

Bonus

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.

Docker Pull Command
Owner
predicsis
Source Repository

Comments (0)