Files
febbweiss.github.io/docker/docker_log_centralizer/index.html
2017-05-04 10:21:47 +02:00

314 lines
9.6 KiB
HTML

<!DOCTYPE html>
<!--[if IE 8]><html class="no-js lt-ie9" lang="en" > <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang="en" > <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Docker log centralizer - Febbweiss</title>
<link rel="shortcut icon" href="../../img/favicon.ico">
<link href='https://fonts.googleapis.com/css?family=Lato:400,700|Roboto+Slab:400,700|Inconsolata:400,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="../../css/theme.css" type="text/css" />
<link rel="stylesheet" href="../../css/theme_extra.css" type="text/css" />
<link rel="stylesheet" href="../../css/highlight.css">
<link href="../../extra/css/extra.css" rel="stylesheet">
<link href="../../extra/css/sis.css" rel="stylesheet">
<script>
// Current page data
var mkdocs_page_name = "Docker log centralizer";
var mkdocs_page_input_path = "docker/docker_log_centralizer.md";
var mkdocs_page_url = "/docker/docker_log_centralizer/";
</script>
<script src="../../js/jquery-2.1.1.min.js"></script>
<script src="../../js/modernizr-2.8.3.min.js"></script>
<script type="text/javascript" src="../../js/highlight.pack.js"></script>
<script src="../../js/theme.js"></script>
<script src="../../extra/js/pacman.js"></script>
<script src="../../extra/js/pyramid.js"></script>
<script src="../../extra/js/sis.js"></script>
<script src="../../extra/js/yahtzee.js"></script>
</head>
<body class="wy-body-for-nav" role="document">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side stickynav">
<div class="wy-side-nav-search">
<a href="../.." class="icon icon-home"> Febbweiss</a>
<div role="search">
<form id ="rtd-search-form" class="wy-form" action="../../search.html" method="get">
<input type="text" name="q" placeholder="Search docs" />
</form>
</div>
</div>
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
<ul class="current">
<li>
<li class="toctree-l1 ">
<a class="" href="../..">Home</a>
</li>
<li>
<li>
<ul class="subnav">
<li><span>Development</span></li>
<li class="toctree-l1 ">
<a class="" href="../../development/cloudbudget/">Cloudbudget</a>
</li>
<li class="toctree-l1 ">
<a class="" href="../../development/cloudbudget_angularjs/">Cloudbudget angularjs</a>
</li>
<li class="toctree-l1 ">
<a class="" href="../../development/filebrowser_durandal_widget/">Filebrowser durandal widget</a>
</li>
<li class="toctree-l1 ">
<a class="" href="../../development/project_deployer/">Project deployer</a>
</li>
<li class="toctree-l1 ">
<a class="" href="../../development/springboot_react_webpack/">Springboot react webpack</a>
</li>
</ul>
<li>
<li>
<ul class="subnav">
<li><span>Docker</span></li>
<li class="toctree-l1 ">
<a class="" href="../docker_apache_log_generator/">Docker apache log generator</a>
</li>
<li class="toctree-l1 ">
<a class="" href="../docker_gocd/">Docker gocd</a>
</li>
<li class="toctree-l1 current">
<a class="current" href="./">Docker log centralizer</a>
<ul>
<li class="toctree-l3"><a href="#docker-log-centralizer">Docker log centralizer</a></li>
<li><a class="toctree-l4" href="#embedded-containers">Embedded containers</a></li>
<li><a class="toctree-l4" href="#how-it-works">How it works</a></li>
<li><a class="toctree-l4" href="#tools-access">Tools access</a></li>
</ul>
</li>
</ul>
<li>
<li>
<ul class="subnav">
<li><span>Games</span></li>
<li class="toctree-l1 ">
<a class="" href="../../games/Space_invaders_stories/">Space invaders stories</a>
</li>
<li class="toctree-l1 ">
<a class="" href="../../games/pacman/">Pacman</a>
</li>
<li class="toctree-l1 ">
<a class="" href="../../games/pyramid/">Pyramid</a>
</li>
<li class="toctree-l1 ">
<a class="" href="../../games/yahtzee/">Yahtzee</a>
</li>
</ul>
<li>
</ul>
</div>
&nbsp;
</nav>
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
<nav class="wy-nav-top" role="navigation" aria-label="top navigation">
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="../..">Febbweiss</a>
</nav>
<div class="wy-nav-content">
<div class="rst-content">
<div role="navigation" aria-label="breadcrumbs navigation">
<ul class="wy-breadcrumbs">
<li><a href="../..">Docs</a> &raquo;</li>
<li>Docker &raquo;</li>
<li>Docker log centralizer</li>
<li class="wy-breadcrumbs-aside">
<a href="https://github.com/febbweiss/" class="icon icon-github"> Edit on GitHub</a>
</li>
</ul>
<hr/>
</div>
<div role="main">
<div class="section">
<h1 id="docker-log-centralizer">Docker log centralizer</h1>
<p>This a end-to-end log centralizer powered by the ELK stask.</p>
<h2 id="embedded-containers">Embedded containers</h2>
<ol>
<li><a href="https://www.elastic.co/products/beats/filebeat">Filebeat</a> - An agent to poll logs</li>
<li><a href="https://github.com/elastic/logstash-forwarder">Logstash-Forwarder</a> - An other agent to poll logs</li>
<li><a href="https://www.elastic.co/products/logstash">Logstash</a> - The collector / analyzer / parser solution</li>
<li><a href="http://kafka.apache.org">Kafka</a> - The queueing solution for logs</li>
<li><a href="https://zookeeper.apache.org/">ZooKeeper</a> - The cluster on which Kafka is running</li>
<li><a href="https://www.elastic.co/products/elasticsearch">ElasticSearch</a> - The indexing engine</li>
<li><a href="https://www.elastic.co/products/kibana">Kibana</a> - The visualization / dashboard tool for ElasticSearch</li>
<li><a href="https://github.com/yahoo/kafka-manager">Kafka Manager</a> - The Kafka cluster web manager</li>
<li><a href="https://github.com/Febbweiss/docker-apache-log-generator">Apache log generator</a> - A container generating fake apache logs</li>
<li><a href="https://hub.docker.com/r/davidmccormick/random_log_generator">Random log generator</a> - A container genrating text logs (Star Wars quotes)</li>
</ol>
<h2 id="how-it-works">How it works</h2>
<p>There are 2 agent types :</p>
<ul>
<li>Filebeat</li>
<li>Logstash-Forward</li>
</ul>
<p>These agents push logs (from the apache and random generators) to a Logstasth shipper filling a Kafka queue (one type of log for one topic).
A Logstash indexer polls the Kafka topics indexing logs into a ElasticSearch.</p>
<p>A short schema :</p>
<pre><code>Agent -&gt; Logstach shipper -&gt; Kafka &lt;- Logstash indexer -&gt; ElasticSearch
</code></pre>
<h2 id="tools-access">Tools access</h2>
<p>Kibana is available at http://localhost:5601.
Kafka Manager is available at http://localhost:9000</p>
<p><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/github-fork-ribbon-css/0.2.0/gh-fork-ribbon.min.css" />
<!--[if lt IE 9]>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/github-fork-ribbon-css/0.2.0/gh-fork-ribbon.ie.min.css" />
<![endif]-->
<a class="github-fork-ribbon" href="https://github.com/Febbweiss/docker-log-centralizer" target="_blank" title="Fork me on GitHub">Fork me on GitHub</a></p>
</div>
</div>
<footer>
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
<a href="../../games/Space_invaders_stories/" class="btn btn-neutral float-right" title="Space invaders stories">Next <span class="icon icon-circle-arrow-right"></span></a>
<a href="../docker_gocd/" class="btn btn-neutral" title="Docker gocd"><span class="icon icon-circle-arrow-left"></span> Previous</a>
</div>
<hr/>
<div role="contentinfo">
<!-- Copyright etc -->
</div>
Built with <a href="http://www.mkdocs.org">MkDocs</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.
</footer>
</div>
</div>
</section>
</div>
<div class="rst-versions" role="note" style="cursor: pointer">
<span class="rst-current-version" data-toggle="rst-current-version">
<a href="https://github.com/febbweiss/" class="icon icon-github" style="float: left; color: #fcfcfc"> GitHub</a>
<span><a href="../docker_gocd/" style="color: #fcfcfc;">&laquo; Previous</a></span>
<span style="margin-left: 15px"><a href="../../games/Space_invaders_stories/" style="color: #fcfcfc">Next &raquo;</a></span>
</span>
</div>
</body>
</html>