Coder Social home page Coder Social logo

logstash-dockerfile's Introduction

Logstash Dockerfile

Logstash 1.3.3 (with Kibana 3)

Clone the repo

git clone https://github.com/denibertovic/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 req -x509 -batch -nodes -newkey rsa:2048 -keyout logstash-forwarder.key -out logstash-forwarder.crt

Build

docker build -t logstash .

Test it:

docker run -p 5043:5043 -p 514:514 -p 9200:9200 -p 9292:9292 -p 9300:9300 -i -t logstash
netcat localhost 514
    > test
    > test
    > CTRL+C
# You should see the messages show up on logstash

Specify an external Elasticsearch server

docker run -name logstash -e ES_HOST=1.2.3.4 -e ES_PORT=9300 -d -t logstash

Ports

514  (syslog)
5043 (lumberjack)
9292 (logstash ui)
9200 (elasticsearch)
9300 (elasticsearch)

Other Evironment Variables in Dockerfile:

What tag to use for lumberjack (logstash-forwarder):

ENV LUMBERJACK_TAG MYTAG

Number of elasticsearch workers:

ELASTICWORKERS 1

logstash-dockerfile's People

Contributors

denibertovic avatar

Watchers

 avatar  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.