Skip to content

Commit

Permalink
Create Logstash index pattern in docker-compose.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ninaspitfire committed Mar 8, 2017
1 parent e1e9b9c commit 08cde44
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,14 @@ services:
-pass changeme
depends_on: {kibana: {condition: service_healthy}}

create_logstash_index_pattern:
image: docker.elastic.co/beats/metricbeat:5.2.2
networks: ['stack']
command: >-
curl -XPUT http://elastic:changeme@elasticsearch:9200/.kibana/index-pattern/logstash-*
-d '{"title" : "logstash-*", "timeFieldName": "@timestamp"}'
depends_on: {kibana: {condition: service_healthy}}

set_default_index_pattern:
image: docker.elastic.co/beats/metricbeat:5.2.2
networks: ['stack']
Expand Down

0 comments on commit 08cde44

Please sign in to comment.