Git Product home page Git Product logo

logstash-dockerfile's Introduction

Logstash Dockerfile

Logstash 1.4.1 (with Kibana 3)

Clone the repo

git clone https://github.com/klynch/logstash-dockerfile

Create OpenSSL certificates for secure communication with logstash-forwarder. The build will fail if no certs are present.

cd logstash-dockerfile && mkdir certs && cd certs

openssl genrsa -out logstash-ca.key 4096
openssl req -batch -new -x509 -days 3650 -key monitor-ca.key -out monitor-ca.crt
openssl req -new -nodes -keyout logstash.key -out logstash.csr -days 3650
openssl ca -days 3650 -cert logstash-ca.crt -keyfile monitor-ca.key -policy policy_anything -out logstash.crt -infiles logstash.csr

Generate an SSH key for root login. The build will fail if no certs are present.

ssh-keygen -N '' -f certs/logstash_rsa
chmod 600 certs/logstash_rsa.pub

Build

#Build the image
docker build -t klynch/logstash .

#Build the container
docker run -p 127.0.0.1::22 -p 5000:5000 -p 5043:5043 -p 9200:9200 -p 9292:9292 -d --name logstash klynch/logstash

Ports

  22 (ssh)
5000 (tcp)
5043 (lumberjack)
9292 (logstash ui)
9200 (elasticsearch)
9300 (elasticsearch)

Dockerfile parameters:

Number of elasticsearch workers:

  • LOGSTASH_DEFAULT_TYPE The default type for unmarked logs (default: "default")
  • WORKERS The number of logstash workers (default: 1)
  • ES_HOST The Elasticache host (default: localhost)
  • ES_PORT The Elasticache port (default: 9300)

Host configuration (Ubuntu):

  1. Copy host-conf/upstart/logstash.conf to /etc/init/logstash.conf

logstash-dockerfile's People

Contributors

denibertovic avatar klynch avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.