Coder Social home page Coder Social logo

qiita-efk's Introduction

概要

docker-compose を用いて、下表・下図のような Elasticsearch + Fluentd + Kibana (EFK) 環境を構築する.
Elasticsearch, Kibana バージョンは 7.14 である.
なお、Fluentd を 2つ配置しているのは当方の都合である.

 

構成

No サービス ホスト側ポート コンテナ側ポート 備考
1 Nginx 21337 80 Fluentd のテストのために導入しているだけ.
No 2 の Fluentd(24224) へログを配送する.
2 Fluentd 24224 24224 受信したログを No 3 の Fluentd(34224)へ転送する
3 Fluentd 34224 34224 受信したログを stdout へ出力する.
Elasticsearch との連携はまだである.
最終的には Nginx のログを Elasticsearch に送り込む予定である.
4 Elasticsearch 29200 29200 ログ格納のためのデータストア.
日本語検索をするための kuromoji 導入あり
5 Kibana 29601 29601 Elasticsearch 閲覧

image.png

 

起動方法

$ docker-compose up -d
もしくは
$ docker-compose build --no-cache
$ docker-compose up -d

 

参考にした書籍およびサイト

書籍
nginx実践入門
「Docker/Kubernetes 実践コンテナ開発入門 山田 明憲」
データ分析基盤構築入門[Fluentd,Elasticsearch,Kibanaによるログ収集と可視化]
検索だけじゃない Elasticsearch 入門+
URL 一言
https://qiita.com/sanyamarseille/items/1c4c31547502791ecac6
https://www.elastic.co/guide/en/elastic-stack-get-started/current/get-started-docker.html
https://qiita.com/suzuki_y/items/6365799485fa3973b916
https://qiita.com/sugikeitter/items/f3b2c57bf8bbdc47a8bc
https://github.com/sugikeitter/elasticsearch-kibana-docker/blob/master/docker-compose.yml
https://gitya107.hatenablog.com/entry/2018/06/15/170334
http://ittoo.jugem.jp/?eid=737
https://qiita.com/kaibadash@github/items/9cfb532696dc8711e408 日本語検索を可能にする
https://qiita.com/mserizawa/items/8335d39cacb87f12b678 日本語検索を可能にする
https://github.com/deviantony/docker-elk ELK を構築するための docker-compose が公開されている
https://dev.classmethod.jp/articles/es-01/ index, document, type の説明が簡潔に RDMS に例えられていて良かった
http://www.tech-joy.work/article/a20180527115811.html /etc/elasticsearch/elasticsearch.yml の記述例と説明あり
https://qiita.com/Esfahan/items/3c07bfbb57c7098e9531 3台に Elasticsearch を導入した場合の手順あり

qiita-efk's People

Contributors

robozushi10 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.