Changes

Jump to: navigation, search

Centralized logging in swarm

759 bytes added, 19:58, 12 September 2018
ElasticSearch
{{note|Az elasticsearch image elég nagy, 1 Giga körül van, így fontos, hogy legyen elég lemezterület az összes node-on. A base image CentOS 7.5 }}
 
 
 
<pre>
docker service create \
--detach=false \
--name elasticsearch \
--network elk \
--mount "type=volume,src=192.168.42.1/home/adam/Projects/DockerCourse/persistentstore/elasticsearch/config/\
,dst=/usr/share/elasticsearch/config,volume-driver=nfs" \
--mount "type=volume,src=192.168.42.1/home/adam/Projects/DockerCourse/persistentstore/elasticsearch/data/\
,dst=/usr/share/elasticsearch/data,volume-driver=nfs" \
-e "discovery.type=single-node" \
docker.elastic.co/elasticsearch/elasticsearch:6.4.0
</pre>
<pre>
# docker service ps elasticsearch
ID NAME IMAGE NODE
phgs0as5w612 elasticsearch.1 docker.elastic.co/elasticsearch/elasticsearch:6.4.0 mg2
</pre>
==Logstash==

Navigation menu