From 676aad7edcf9fce119717414bb41b54248de6a70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Petazzoni?= Date: Tue, 9 Feb 2016 23:39:30 +0000 Subject: [PATCH] Revert to Compose v1 for simplicity --- elk/docker-compose.yml | 102 ++++++++++++++++++++--------------------- 1 file changed, 51 insertions(+), 51 deletions(-) diff --git a/elk/docker-compose.yml b/elk/docker-compose.yml index b8a069d1..5e042179 100644 --- a/elk/docker-compose.yml +++ b/elk/docker-compose.yml @@ -1,56 +1,56 @@ -version: "2" +elasticsearch: + image: elasticsearch + # If you need to acces ES directly, just uncomment those lines. + #ports: + # - "9200:9200" + # - "9300:9300" -services: - - elasticsearch: - image: elasticsearch - # If you need to acces ES directly, just uncomment those lines. - #ports: - # - "9200:9200" - # - "9300:9300" - - logstash: - image: logstash - command: | - -e ' - input { - # Default port is 12201/udp - gelf { } - # This generates one test event per minute. - # It is great for debugging, but you might - # want to remove it in production. - heartbeat { } +logstash: + image: logstash + command: | + -e ' + input { + # Default port is 12201/udp + gelf { } + # This generates one test event per minute. + # It is great for debugging, but you might + # want to remove it in production. + heartbeat { } + } + # The following filter is a hack! + # The "de_dot" filter would be better, but it + # is not pre-installed with logstash by default. + filter { + ruby { + code => " + event.to_hash.keys.each { |k| event[ k.gsub('"'.'"','"'_'"') ] = event.remove(k) if k.include?'"'.'"' } + " } - # The following filter is a hack! - # The "de_dot" filter would be better, but it - # is not pre-installed with logstash by default. - filter { - ruby { - code => " - event.to_hash.keys.each { |k| event[ k.gsub('"'.'"','"'_'"') ] = event.remove(k) if k.include?'"'.'"' } - " - } + } + output { + elasticsearch { + hosts => ["elasticsearch:9200"] } - output { - elasticsearch { - hosts => ["elasticsearch:9200"] - } - # This will output every message on stdout. - # It is great when testing your setup, but in - # production, it will probably cause problems; - # either by filling up your disks, or worse, - # by creating logging loops! BEWARE! - stdout { - codec => rubydebug - } - }' - ports: - - 12201/udp + # This will output every message on stdout. + # It is great when testing your setup, but in + # production, it will probably cause problems; + # either by filling up your disks, or worse, + # by creating logging loops! BEWARE! + stdout { + codec => rubydebug + } + }' + ports: + - 12201/udp + links: + - elasticsearch - kibana: - image: kibana - ports: - - 5601 - environment: - ELASTICSEARCH_URL: http://elasticsearch:9200 +kibana: + image: kibana + ports: + - 5601 + links: + - elasticsearch + environment: + ELASTICSEARCH_URL: http://elasticsearch:9200