Skip to content
This repository was archived by the owner on Dec 14, 2022. It is now read-only.

Commit ad32165

Browse files
author
Chris Wiechmann
committed
Making Logstash location available as a parameter
1 parent 590dd55 commit ad32165

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

.env

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,10 @@ ADMIN_NODE_MANAGER=https://api-env:8090
3939
# This user is used by API-Builder to lookup APIs & User-Information in API-Manager.
4040
# Therefore it must be a user having "admin" role.
4141
API_MANAGER_USERNAME=apiadmin
42-
API_MANAGER_PASSWORD=changeme
42+
API_MANAGER_PASSWORD=changeme
43+
44+
45+
# ----------------------------------------------------------------------------------------------
46+
# This tells Filebeat where Logstash is running.
47+
# When using the default docker-compose.yml the default setting will work.
48+
#LOGSTASH=logstash:5044

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ services:
5757
environment:
5858
- setup.kibana.host=kibana:5601
5959
- output.elasticsearch.hosts=["elasticsearch1:9200"]
60+
- LOGSTASH=${LOGSTASH}
6061
ports:
6162
- 9000:9000
6263
volumes:

filebeat/filebeat.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ filebeat.inputs:
1919
logtype: trace
2020

2121
output.logstash:
22-
hosts: ["logstash:5044"]
22+
hosts: ["${LOGSTASH|logstash:5044}"]
2323

2424
processors:
2525
- timestamp:
@@ -30,7 +30,7 @@ setup.template.enabled: true
3030

3131
monitoring:
3232
enabled: true
33-
# Get the Cluster-ID with this query: GET /
33+
# Get the Cluster-ID (cluster_uuid) with this simple query: http://elasticsearch1:9200/
3434
cluster_uuid: <YOUR_ELASTICSEARCH-CLUSTER-UUID>
3535
elasticsearch:
36-
hosts: ["elasticsearch1:9200"]
36+
hosts: ["${ELASTIC_NODE|http://elasticsearch1:9200}"]

0 commit comments

Comments
 (0)