Skip to content

Commit 5cd6111

Browse files
authored
Changes: Expose Logstash stats API port; Install Elastic Integration plugin if not bundled. (#1637)
1 parent 1ce552c commit 5cd6111

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/stack/_static/docker-compose-stack.yml.tmpl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,13 +170,14 @@ services:
170170
interval: 60s
171171
timeout: 50s
172172
retries: 5
173-
command: bash -c "bin/logstash-plugin install logstash-filter-elastic_integration && logstash -f /usr/share/logstash/pipeline/logstash.conf"
173+
command: bash -c 'if [[ ! $(bin/logstash-plugin list) == *"logstash-filter-elastic_integration"* ]]; then echo "Missing plugin logstash-filter-elastic_integration, installing now" && bin/logstash-plugin install logstash-filter-elastic_integration; fi && bin/logstash -f /usr/share/logstash/pipeline/logstash.conf'
174174
volumes:
175175
- "../certs/logstash:/usr/share/logstash/config/certs"
176176
- "../certs/elasticsearch/cert.pem:/usr/share/logstash/config/certs/elasticsearch.pem"
177177
- "./logstash.conf:/usr/share/logstash/pipeline/logstash.conf:ro"
178178
ports:
179179
- "127.0.0.1:5044:5044"
180+
- "127.0.0.1:9600:9600"
180181
environment:
181182
- xpack.monitoring.enabled=false
182183
- ELASTIC_USER=elastic

0 commit comments

Comments
 (0)