https://qiita.com/foursue/items/9add0ec18efacb2fc2d2
$ docker-compose up Pulling elasticsearch (elasticsearch:latest)... latest: Pulling from library/elasticsearch 723254a2c089: Pull complete abe15a44e12f: Pull complete 409a28e3cc3d: Pull complete a9511c68044a: Pull complete 9d1b16e30bc8: Pull complete 0fc5a09c9242: Pull complete d34976006493: Pull complete 3b70003f0c10: Pull complete c85e66a46c7c: Pull complete c1d6383769d6: Pull complete da8d73630b44: Pull complete 5f0e52287884: Pull complete 770995441948: Pull complete a5b2e358a5e0: Pull complete 7ab1d4a5e3eb: Pull complete Digest: sha256:04f7cfc825b2951f928be7eb74defa5ac8687c990ba70319dae1d6119488ae9e Status: Downloaded newer image for elasticsearch:latest Building fluentd Step 1/2 : FROM fluent/fluentd latest: Pulling from fluent/fluentd 128191993b8a: Pull complete 798d8c023ade: Pull complete 33d83201e418: Pull complete cdbd96353361: Pull complete 35fb34d19ba4: Pull complete 37dcdebc248b: Pull complete 6461dc5ba7a9: Pull complete Digest: sha256:803e2d9ae4765c390beeea39c2c9628379d8a6f1f99bb587e4332ca64e5d9408 Status: Downloaded newer image for fluent/fluentd:latest ---> 99cd7ccce8a8 Step 2/2 : RUN apk add --no-cache --update --virtual .build-deps build-base ruby-dev && gem install fluent-plugin-elasticsearch --no-document && gem sources --clear-all && apk del --purge .build-deps ---> Running in 28bd638c20e1 fetch http://dl-cdn.alpinelinux.org/alpine/v3.5/main/x86_64/APKINDEX.tar.gz fetch http://dl-cdn.alpinelinux.org/alpine/v3.5/main/x86_64/APKINDEX.tar.gz fetch http://dl-cdn.alpinelinux.org/alpine/v3.5/community/x86_64/APKINDEX.tar.gz fetch http://dl-cdn.alpinelinux.org/alpine/v3.5/community/x86_64/APKINDEX.tar.gz (1/21) Installing binutils-libs (2.27-r1) (2/21) Installing binutils (2.27-r1) (3/21) Installing isl (0.17.1-r0) (4/21) Installing libgomp (6.2.1-r1) (5/21) Installing libatomic (6.2.1-r1) (6/21) Installing pkgconf (1.0.2-r0) (7/21) Installing libgcc (6.2.1-r1) (8/21) Installing mpfr3 (3.1.5-r0) (9/21) Installing mpc1 (1.0.3-r0) (10/21) Installing libstdc++ (6.2.1-r1) (11/21) Installing gcc (6.2.1-r1) (12/21) Installing make (4.2.1-r0) (13/21) Installing musl-dev (1.1.15-r8) (14/21) Installing libc-dev (0.7-r1) (15/21) Installing fortify-headers (0.8-r0) (16/21) Installing g++ (6.2.1-r1) (17/21) Installing build-base (0.4-r1) (18/21) Installing libgmpxx (6.1.1-r0) (19/21) Installing gmp-dev (6.1.1-r0) (20/21) Installing ruby-dev (2.3.6-r0) (21/21) Installing .build-deps (0) Executing busybox-1.25.1-r1.trigger OK: 187 MiB in 46 packages Successfully installed serverengine-2.0.5 Building native extensions. This could take a while... Successfully installed strptime-0.2.3 Successfully installed dig_rb-1.0.1 Successfully installed fluentd-1.0.2 Successfully installed excon-0.60.0 Successfully installed multi_json-1.12.2 Successfully installed multipart-post-2.0.0 Successfully installed faraday-0.13.1 Successfully installed elasticsearch-transport-6.0.0 Successfully installed elasticsearch-api-6.0.0 Successfully installed elasticsearch-6.0.0 Successfully installed fluent-plugin-elasticsearch-2.4.1 12 gems installed *** Removed specs cache *** (1/21) Purging .build-deps (0) (2/21) Purging build-base (0.4-r1) (3/21) Purging make (4.2.1-r0) (4/21) Purging fortify-headers (0.8-r0) (5/21) Purging g++ (6.2.1-r1) (6/21) Purging gcc (6.2.1-r1) (7/21) Purging binutils (2.27-r1) (8/21) Purging libatomic (6.2.1-r1) (9/21) Purging libgomp (6.2.1-r1) (10/21) Purging libc-dev (0.7-r1) (11/21) Purging musl-dev (1.1.15-r8) (12/21) Purging ruby-dev (2.3.6-r0) (13/21) Purging gmp-dev (6.1.1-r0) (14/21) Purging libgmpxx (6.1.1-r0) (15/21) Purging binutils-libs (2.27-r1) (16/21) Purging isl (0.17.1-r0) (17/21) Purging pkgconf (1.0.2-r0) (18/21) Purging libstdc++ (6.2.1-r1) (19/21) Purging libgcc (6.2.1-r1) (20/21) Purging mpc1 (1.0.3-r0) (21/21) Purging mpfr3 (3.1.5-r0) Executing busybox-1.25.1-r1.trigger OK: 27 MiB in 25 packages Removing intermediate container 28bd638c20e1 ---> b27f74c416ad Successfully built b27f74c416ad Successfully tagged efk_fluentd:latest WARNING: Image for service fluentd was built because it did not already exist. To rebuild this image you must use `docker-compose build` or `docker-compose up --build`. Pulling kibana (kibana:latest)... latest: Pulling from library/kibana f49cf87b52c1: Pull complete 9e8acb2289dd: Pull complete d495c79e5bf4: Pull complete 81c8b3679622: Pull complete 2a4eff393768: Pull complete 5fa4e981b17d: Pull complete e23852241c5b: Pull complete 411a85463ec1: Pull complete 8206f115bd3e: Pull complete Creating efk_elasticsearch_1 ... done Status: Downloaded newer image for kibana:latest Creating efk_elasticsearch_1 ... Creating efk_fluentd_1 ... done Creating efk_kibana_1 ... done Attaching to efk_elasticsearch_1, efk_kibana_1, efk_fluentd_1 elasticsearch_1 | OpenJDK 64-Bit Server VM warning: # elasticsearch_1 | INFO: os::commit_memory(0x0000000085330000, 2060255232, 0) failed; error='Cannot allocate memory' (errno=12) elasticsearch_1 | # There is insufficient memory for the Java Runtime Environment to continue. elasticsearch_1 | # Native memory allocation (mmap) failed to map 2060255232 bytes for committing reserved memory. elasticsearch_1 | # An error report file with more information is saved as: elasticsearch_1 | # /tmp/hs_err_pid1.log efk_elasticsearch_1 exited with code 1
http://192.168.99.101:5601 を開く
うまく動いていない(Elasticsearch pluginがロードされていない)