Skip to content

Commit b79150b

Browse files
committed
Merge branch 'release/0.8.0'
2 parents c38a4cb + b4afcc1 commit b79150b

File tree

4 files changed

+45
-11
lines changed

4 files changed

+45
-11
lines changed

Dockerfile

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
FROM ubuntu:14.04
1+
FROM debian:jessie
22
MAINTAINER P. Barrett Little <barrett@barrettlittle.com>
33

4-
# Download latest package lists
5-
RUN apt-get update
6-
7-
# Install dependencies
8-
RUN DEBIAN_FRONTEND=noninteractive \
4+
# Download latest package lists & install dependencies
5+
RUN apt-get update && \
6+
DEBIAN_FRONTEND=noninteractive \
97
apt-get install -yq \
108
openjdk-7-jre-headless \
119
wget

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
NAME = pblittle/docker-logstash
2-
VERSION = 0.7.1
2+
VERSION = 0.8.0
33

44
# Set the LOGSTASH_CONFIG_URL env var to your logstash.conf file.
55
# We will use our basic config if the value is empty.

Procfile

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#
2+
# Usage Notes
3+
# -----------
4+
#
5+
# Install Go
6+
# sudo apt-get install golang
7+
#
8+
# Set GOPATH and PATH
9+
# mkdir $HOME/go
10+
# export GOPATH=$HOME/go
11+
# export PATH=$PATH:$GOPATH/bin
12+
#
13+
# Download the Go implementation of Foreman
14+
# go get github.com/mattn/goreman
15+
#
16+
# Start Logstash with a linked Elasticsearch container
17+
# goreman start
18+
#
19+
# Get your log on
20+
# http://<your_kibana_ip>:9292/index.html#/dashboard/file/logstash.json
21+
22+
# Build the Elasticsearch container you are linking to
23+
elasticsearch: docker run -d --name elasticsearch barnybug/elasticsearch:1.1.1
24+
25+
# Build the Logstash server and link to the new Elasticsearch container
26+
logstash: docker run -d --link elasticsearch:es -p 9292:9292 -p 9200:9200 pblittle/docker-logstash

README.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ If you prefer to build from source rather than use the [pblittle/docker-logstash
1010

1111
## Running Logstash
1212

13-
To run this logstash image, you have to first choose one of three Elasticsearch configuration options.
13+
### First, choose an Elasticsearch configuration
14+
15+
To run this logstash image, you have to first choose one of three Elasticsearch configurations.
1416

1517
* Use the embedded Elasticsearch server
1618
* Use a linked container running Elasticsearch
@@ -20,13 +22,21 @@ To run this logstash image, you have to first choose one of three Elasticsearch
2022

2123
To fetch and start a container running logstash and the embedded Elasticsearch server, simply execute:
2224

25+
$ docker run -d -p 9292:9292 -p 9200:9200 pblittle/docker-logstash
26+
27+
Or, if you are working from the project source directory:
28+
2329
$ make run
2430

2531
### Use a linked container running Elasticsearch
2632

2733
If you want to link to another container running elasticsearch rather than the embedded server, set the `ES_CONTAINER` environment variable to your existing elasticsearch container name.
2834

29-
$ export ES_CONTAINER=<your_es_container>
35+
$ docker run -d --link <your_es_container_name>:es -p 9292:9292 -p 9200:9200 pblittle/docker-logstash
36+
37+
Or, if you are working from the project source directory:
38+
39+
$ export ES_CONTAINER=<your_es_container_name>
3040
$ make run
3141

3242
In addition to the link, if you want your elasticsearch node's `bind_host` and `port` automatically detected, you will need to set the `ES_HOST` and `ES_PORT` placeholders in your `elasticsearch` definition in your logstash config file. For example:
@@ -42,8 +52,8 @@ In addition to the link, if you want your elasticsearch node's `bind_host` and `
4252

4353
If you are using an external elasticsearch server rather than an embedded or linked server, simply set the `ES_HOST` and `ES_PORT` environment variables.
4454

45-
$ export ES_HOST=<your_es_host>
46-
$ export ES_PORT=<your_es_port>
55+
$ export ES_HOST=<your_es_server_host>
56+
$ export ES_PORT=<your_es_server_port>
4757
$ make run
4858

4959
## Logstash configuration

0 commit comments

Comments
 (0)