Skip to content

Commit b3b3c13

Browse files
author
tony
committed
Updated logstash configuration. The elasticsearch output is now directly connected to the elasticsearch container.
1 parent 827c97a commit b3b3c13

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

README.md

+3-6
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ Based on the official images:
2020
2. Install [Docker-compose](http://docs.docker.com/compose/install/).
2121
3. Clone this repository
2222

23-
## Configuration
24-
25-
In order for Logstash to work, you'll need to replace the *MY_IP_ADDRESS* keywork with the IP address of your network interface in the logstash.conf configuration file.
26-
2723
## SELinux
2824

2925
On distributions which have SELinux enabled out-of-the-box you will need to either re-context the files or set SELinux into Permissive mode in order for docker-elk to start properly.
@@ -141,7 +137,7 @@ Then, you'll need to map your configuration file inside the container in the `do
141137
```yml
142138
elasticsearch:
143139
build: elasticsearch/
144-
command: elasticsearch -Des.network.host=0.0.0.0
140+
command: elasticsearch -Des.network.host=_non_loopback_
145141
ports:
146142
- "9200:9200"
147143
volumes:
@@ -153,7 +149,7 @@ You can also specify the options you want to override directly in the command fi
153149
```yml
154150
elasticsearch:
155151
build: elasticsearch/
156-
command: elasticsearch -Des.network.host=0.0.0.0 -Des.cluster.name: my-cluster
152+
command: elasticsearch -Des.network.host=_non_loopback_ -Des.cluster.name: my-cluster
157153
ports:
158154
- "9200:9200"
159155
```
@@ -167,6 +163,7 @@ In order to persist Elasticsearch data, you'll have to mount a volume on your Do
167163
```yml
168164
elasticsearch:
169165
build: elasticsearch/
166+
command: elasticsearch -Des.network.host=_non_loopback_
170167
ports:
171168
- "9200:9200"
172169
volumes:

logstash/config/logstash.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ input {
88

99
output {
1010
elasticsearch {
11-
hosts => "MY_IP_ADDRESS:9200"
11+
hosts => "elasticsearch:9200"
1212
}
1313
}

0 commit comments

Comments
 (0)