You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-4Lines changed: 14 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,9 @@ If you prefer to build from source rather than use the [pblittle/docker-logstash
10
10
11
11
## Running Logstash
12
12
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.
14
16
15
17
* Use the embedded Elasticsearch server
16
18
* Use a linked container running Elasticsearch
@@ -20,13 +22,21 @@ To run this logstash image, you have to first choose one of three Elasticsearch
20
22
21
23
To fetch and start a container running logstash and the embedded Elasticsearch server, simply execute:
22
24
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
+
23
29
$ make run
24
30
25
31
### Use a linked container running Elasticsearch
26
32
27
33
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.
Or, if you are working from the project source directory:
38
+
39
+
$ export ES_CONTAINER=<your_es_container_name>
30
40
$ make run
31
41
32
42
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 `
42
52
43
53
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.
0 commit comments