kzk / docker-compose-efk

Collect Container Logs with EFK (Elasticsearch + Fluentd + Kibana) via Docker Fluentd Logging Driver
191 stars 118 forks source link

Elasticsearch container shuts down #13

Open siddharthsethi11 opened 4 years ago

siddharthsethi11 commented 4 years ago

The elastic search container shuts down after the startup. Please find the logs below: [tibco@ip-172-31-26-149 elk]$ docker logs bbf392f5c980 [2020-03-07T17:41:29,618][INFO ][o.e.n.Node ] [] initializing ... [2020-03-07T17:41:29,778][INFO ][o.e.e.NodeEnvironment ] [mgOsXBI] using [1] data paths, mounts [[/ (rootfs)]], net usable_space [9.7gb], net total_space [9.9gb], spins? [unknown], types [rootfs] [2020-03-07T17:41:29,779][INFO ][o.e.e.NodeEnvironment ] [mgOsXBI] heap size [1.9gb], compressed ordinary object pointers [true] [2020-03-07T17:41:29,783][INFO ][o.e.n.Node ] node name [mgOsXBI] derived from node ID [mgOsXBIIQgqCDC5p7LPLXw]; set [node.name] to override [2020-03-07T17:41:29,784][INFO ][o.e.n.Node ] version[5.3.0], pid[1], build[3adb13b/2017-03-23T03:31:50.652Z], OS[Linux/3.10.0-327.22.2.el7.x86_64/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/1.8.0_92-internal/25.92-b14] [2020-03-07T17:41:33,001][INFO ][o.e.p.PluginsService ] [mgOsXBI] loaded module [aggs-matrix-stats] [2020-03-07T17:41:33,001][INFO ][o.e.p.PluginsService ] [mgOsXBI] loaded module [ingest-common] [2020-03-07T17:41:33,001][INFO ][o.e.p.PluginsService ] [mgOsXBI] loaded module [lang-expression] [2020-03-07T17:41:33,001][INFO ][o.e.p.PluginsService ] [mgOsXBI] loaded module [lang-groovy] [2020-03-07T17:41:33,001][INFO ][o.e.p.PluginsService ] [mgOsXBI] loaded module [lang-mustache] [2020-03-07T17:41:33,001][INFO ][o.e.p.PluginsService ] [mgOsXBI] loaded module [lang-painless] [2020-03-07T17:41:33,001][INFO ][o.e.p.PluginsService ] [mgOsXBI] loaded module [percolator] [2020-03-07T17:41:33,001][INFO ][o.e.p.PluginsService ] [mgOsXBI] loaded module [reindex] [2020-03-07T17:41:33,002][INFO ][o.e.p.PluginsService ] [mgOsXBI] loaded module [transport-netty3] [2020-03-07T17:41:33,002][INFO ][o.e.p.PluginsService ] [mgOsXBI] loaded module [transport-netty4] [2020-03-07T17:41:33,003][INFO ][o.e.p.PluginsService ] [mgOsXBI] loaded plugin [x-pack] [2020-03-07T17:41:39,234][INFO ][o.e.n.Node ] initialized [2020-03-07T17:41:39,235][INFO ][o.e.n.Node ] [mgOsXBI] starting ... [2020-03-07T17:41:39,640][WARN ][i.n.u.i.MacAddressUtil ] Failed to find a usable hardware address from the network interfaces; using random bytes: 32:da:97:cc:92:5e:fc:25 [2020-03-07T17:41:39,847][INFO ][o.e.t.TransportService ] [mgOsXBI] publish_address {172.20.0.2:9300}, bound_addresses {0.0.0.0:9300} [2020-03-07T17:41:39,876][INFO ][o.e.b.BootstrapChecks ] [mgOsXBI] bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks ERROR: bootstrap checks failed max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144] [2020-03-07T17:41:39,924][INFO ][o.e.n.Node ] [mgOsXBI] stopping ... [2020-03-07T17:41:40,115][INFO ][o.e.n.Node ] [mgOsXBI] stopped [2020-03-07T17:41:40,115][INFO ][o.e.n.Node ] [mgOsXBI] closing ... [2020-03-07T17:41:40,134][INFO ][o.e.n.Node ] [mgOsXBI] closed [tibco@ip-172-31-26-149 elk]$

13rac1 commented 4 years ago

https://github.com/docker-library/elasticsearch/issues/111#issuecomment-268511769

set max_map_count value (Linux)

sudo sysctl -w vm.max_map_count=262144