Last active
May 3, 2018 17:31
-
-
Save tomchavakis/855b66115609b60f6600a11e53cf9c8c to your computer and use it in GitHub Desktop.
ELK : Elasticsearch (2-Nodes) - logstash - kibana Without XPack , image OSS:6.2.2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#http://elk-docker.readthedocs.io/#es-not-starting-max-map-count | |
#Change Virtual Memory | |
sudo sysctl -w vm.max_map_count=262144 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#- "./data:/usr/share/elasticsearch/data" | |
version: '2.2' | |
services: | |
elasticsearch: | |
image: "docker.elastic.co/elasticsearch/elasticsearch-oss:6.2.2" | |
container_name: elasticsearch | |
environment: | |
- cluster.name=docker-cluster | |
- bootstrap.memory_lock=true | |
- "ES_JAVA_OPTS=-Xms512m -Xmx512m" | |
ulimits: | |
memlock: | |
soft: -1 | |
hard: -1 | |
ports: | |
- "9200:9200" | |
- "9300:9300" | |
volumes: | |
- "./config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml" | |
networks: | |
- docker_elk | |
elasticsearch2: | |
image: "docker.elastic.co/elasticsearch/elasticsearch-oss:6.2.2" | |
container_name: elasticsearch2 | |
environment: | |
- cluster.name=docker-cluster | |
- bootstrap.memory_lock=true | |
- "ES_JAVA_OPTS=-Xms512m -Xmx512m" | |
- "discovery.zen.ping.unicast.hosts=elasticsearch" | |
ulimits: | |
memlock: | |
soft: -1 | |
hard: -1 | |
volumes: | |
- "./config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml" | |
networks: | |
- docker_elk | |
logstash: | |
image: "docker.elastic.co/logstash/logstash-oss:6.2.2" | |
container_name: logstash | |
volumes: | |
- ./logstash/logstash.conf:/usr/share/logstash/pipeline/logstash.conf | |
ports: | |
- "5000:5000" | |
environment: | |
LS_JAVA_OPTS: "-Xmx256m -Xms256m" | |
networks: | |
- docker_elk | |
depends_on: | |
- elasticsearch | |
kibana: | |
image: "docker.elastic.co/kibana/kibana-oss:6.2.2" | |
container_name: kibana | |
links: | |
- elasticsearch | |
ports: | |
- "5601:5601" | |
volumes: | |
- "./config/kibana.yml:/usr/share/kibana/config/kibana.yml" | |
depends_on: | |
- elasticsearch | |
networks: | |
- docker_elk | |
networks: | |
docker_elk: | |
driver: bridge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
network.host: 0.0.0.0 | |
#in case of not oss flavor enable the following lines | |
#xpack.security.enabled: false | |
#xpack.monitoring.enabled: false | |
#xpack.watcher.enabled: false | |
#xpack.graph.enabled: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server.name: kibana | |
server.host: "0.0.0.0" | |
elasticsearch.url: "http://elasticsearch:9200" | |
elasticsearch.requestTimeout: 500000 | |
#xpack.security.enabled: false | |
#xpack.monitoring.enabled: false | |
#xpack.graph.enabled: false | |
#xpack.reporting.enabled: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input { | |
tcp { | |
port => 5000 | |
} | |
} | |
## Add your filters / logstash plugins configuration here | |
output { | |
elasticsearch { | |
hosts => ['elasticsearch:9200'] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment