├── .gitignore
├── LICENSE.txt
├── README.md
└── images
├── 123373394.png
├── check.svg
└── error.svg
/.gitignore:
--------------------------------------------------------------------------------
1 | **/*.html
2 | .idea
--------------------------------------------------------------------------------
/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Apache License
2 | Version 2.0, January 2004
3 | http://www.apache.org/licenses/
4 |
5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6 |
7 | 1. Definitions.
8 |
9 | "License" shall mean the terms and conditions for use, reproduction,
10 | and distribution as defined by Sections 1 through 9 of this document.
11 |
12 | "Licensor" shall mean the copyright owner or entity authorized by
13 | the copyright owner that is granting the License.
14 |
15 | "Legal Entity" shall mean the union of the acting entity and all
16 | other entities that control, are controlled by, or are under common
17 | control with that entity. For the purposes of this definition,
18 | "control" means (i) the power, direct or indirect, to cause the
19 | direction or management of such entity, whether by contract or
20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the
21 | outstanding shares, or (iii) beneficial ownership of such entity.
22 |
23 | "You" (or "Your") shall mean an individual or Legal Entity
24 | exercising permissions granted by this License.
25 |
26 | "Source" form shall mean the preferred form for making modifications,
27 | including but not limited to software source code, documentation
28 | source, and configuration files.
29 |
30 | "Object" form shall mean any form resulting from mechanical
31 | transformation or translation of a Source form, including but
32 | not limited to compiled object code, generated documentation,
33 | and conversions to other media types.
34 |
35 | "Work" shall mean the work of authorship, whether in Source or
36 | Object form, made available under the License, as indicated by a
37 | copyright notice that is included in or attached to the work
38 | (an example is provided in the Appendix below).
39 |
40 | "Derivative Works" shall mean any work, whether in Source or Object
41 | form, that is based on (or derived from) the Work and for which the
42 | editorial revisions, annotations, elaborations, or other modifications
43 | represent, as a whole, an original work of authorship. For the purposes
44 | of this License, Derivative Works shall not include works that remain
45 | separable from, or merely link (or bind by name) to the interfaces of,
46 | the Work and Derivative Works thereof.
47 |
48 | "Contribution" shall mean any work of authorship, including
49 | the original version of the Work and any modifications or additions
50 | to that Work or Derivative Works thereof, that is intentionally
51 | submitted to Licensor for inclusion in the Work by the copyright owner
52 | or by an individual or Legal Entity authorized to submit on behalf of
53 | the copyright owner. For the purposes of this definition, "submitted"
54 | means any form of electronic, verbal, or written communication sent
55 | to the Licensor or its representatives, including but not limited to
56 | communication on electronic mailing lists, source code control systems,
57 | and issue tracking systems that are managed by, or on behalf of, the
58 | Licensor for the purpose of discussing and improving the Work, but
59 | excluding communication that is conspicuously marked or otherwise
60 | designated in writing by the copyright owner as "Not a Contribution."
61 |
62 | "Contributor" shall mean Licensor and any individual or Legal Entity
63 | on behalf of whom a Contribution has been received by Licensor and
64 | subsequently incorporated within the Work.
65 |
66 | 2. Grant of Copyright License. Subject to the terms and conditions of
67 | this License, each Contributor hereby grants to You a perpetual,
68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69 | copyright license to reproduce, prepare Derivative Works of,
70 | publicly display, publicly perform, sublicense, and distribute the
71 | Work and such Derivative Works in Source or Object form.
72 |
73 | 3. Grant of Patent License. Subject to the terms and conditions of
74 | this License, each Contributor hereby grants to You a perpetual,
75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76 | (except as stated in this section) patent license to make, have made,
77 | use, offer to sell, sell, import, and otherwise transfer the Work,
78 | where such license applies only to those patent claims licensable
79 | by such Contributor that are necessarily infringed by their
80 | Contribution(s) alone or by combination of their Contribution(s)
81 | with the Work to which such Contribution(s) was submitted. If You
82 | institute patent litigation against any entity (including a
83 | cross-claim or counterclaim in a lawsuit) alleging that the Work
84 | or a Contribution incorporated within the Work constitutes direct
85 | or contributory patent infringement, then any patent licenses
86 | granted to You under this License for that Work shall terminate
87 | as of the date such litigation is filed.
88 |
89 | 4. Redistribution. You may reproduce and distribute copies of the
90 | Work or Derivative Works thereof in any medium, with or without
91 | modifications, and in Source or Object form, provided that You
92 | meet the following conditions:
93 |
94 | (a) You must give any other recipients of the Work or
95 | Derivative Works a copy of this License; and
96 |
97 | (b) You must cause any modified files to carry prominent notices
98 | stating that You changed the files; and
99 |
100 | (c) You must retain, in the Source form of any Derivative Works
101 | that You distribute, all copyright, patent, trademark, and
102 | attribution notices from the Source form of the Work,
103 | excluding those notices that do not pertain to any part of
104 | the Derivative Works; and
105 |
106 | (d) If the Work includes a "NOTICE" text file as part of its
107 | distribution, then any Derivative Works that You distribute must
108 | include a readable copy of the attribution notices contained
109 | within such NOTICE file, excluding those notices that do not
110 | pertain to any part of the Derivative Works, in at least one
111 | of the following places: within a NOTICE text file distributed
112 | as part of the Derivative Works; within the Source form or
113 | documentation, if provided along with the Derivative Works; or,
114 | within a display generated by the Derivative Works, if and
115 | wherever such third-party notices normally appear. The contents
116 | of the NOTICE file are for informational purposes only and
117 | do not modify the License. You may add Your own attribution
118 | notices within Derivative Works that You distribute, alongside
119 | or as an addendum to the NOTICE text from the Work, provided
120 | that such additional attribution notices cannot be construed
121 | as modifying the License.
122 |
123 | You may add Your own copyright statement to Your modifications and
124 | may provide additional or different license terms and conditions
125 | for use, reproduction, or distribution of Your modifications, or
126 | for any such Derivative Works as a whole, provided Your use,
127 | reproduction, and distribution of the Work otherwise complies with
128 | the conditions stated in this License.
129 |
130 | 5. Submission of Contributions. Unless You explicitly state otherwise,
131 | any Contribution intentionally submitted for inclusion in the Work
132 | by You to the Licensor shall be under the terms and conditions of
133 | this License, without any additional terms or conditions.
134 | Notwithstanding the above, nothing herein shall supersede or modify
135 | the terms of any separate license agreement you may have executed
136 | with Licensor regarding such Contributions.
137 |
138 | 6. Trademarks. This License does not grant permission to use the trade
139 | names, trademarks, service marks, or product names of the Licensor,
140 | except as required for reasonable and customary use in describing the
141 | origin of the Work and reproducing the content of the NOTICE file.
142 |
143 | 7. Disclaimer of Warranty. Unless required by applicable law or
144 | agreed to in writing, Licensor provides the Work (and each
145 | Contributor provides its Contributions) on an "AS IS" BASIS,
146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147 | implied, including, without limitation, any warranties or conditions
148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149 | PARTICULAR PURPOSE. You are solely responsible for determining the
150 | appropriateness of using or redistributing the Work and assume any
151 | risks associated with Your exercise of permissions under this License.
152 |
153 | 8. Limitation of Liability. In no event and under no legal theory,
154 | whether in tort (including negligence), contract, or otherwise,
155 | unless required by applicable law (such as deliberate and grossly
156 | negligent acts) or agreed to in writing, shall any Contributor be
157 | liable to You for damages, including any direct, indirect, special,
158 | incidental, or consequential damages of any character arising as a
159 | result of this License or out of the use or inability to use the
160 | Work (including but not limited to damages for loss of goodwill,
161 | work stoppage, computer failure or malfunction, or any and all
162 | other commercial damages or losses), even if such Contributor
163 | has been advised of the possibility of such damages.
164 |
165 | 9. Accepting Warranty or Additional Liability. While redistributing
166 | the Work or Derivative Works thereof, You may choose to offer,
167 | and charge a fee for, acceptance of support, warranty, indemnity,
168 | or other liability obligations and/or rights consistent with this
169 | License. However, in accepting such obligations, You may act only
170 | on Your own behalf and on Your sole responsibility, not on behalf
171 | of any other Contributor, and only if You agree to indemnify,
172 | defend, and hold each Contributor harmless for any liability
173 | incurred by, or claims asserted against, such Contributor by reason
174 | of your accepting any such warranty or additional liability.
175 |
176 | END OF TERMS AND CONDITIONS
177 |
178 | APPENDIX: How to apply the Apache License to your work.
179 |
180 | To apply the Apache License to your work, attach the following
181 | boilerplate notice, with the fields enclosed by brackets "[]"
182 | replaced with your own identifying information. (Don't include
183 | the brackets!) The text should be enclosed in the appropriate
184 | comment syntax for the file format. We also recommend that a
185 | file or class name and description of purpose be included on the
186 | same "printed page" as the copyright notice for easier
187 | identification within third-party archives.
188 |
189 | Copyright [yyyy] [name of copyright owner]
190 |
191 | Licensed under the Apache License, Version 2.0 (the "License");
192 | you may not use this file except in compliance with the License.
193 | You may obtain a copy of the License at
194 |
195 | http://www.apache.org/licenses/LICENSE-2.0
196 |
197 | Unless required by applicable law or agreed to in writing, software
198 | distributed under the License is distributed on an "AS IS" BASIS,
199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200 | See the License for the specific language governing permissions and
201 | limitations under the License.
202 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Open Source Log Management Solutions
2 |
3 | ## Abstract
4 |
5 | Currently there are multiple open-source tools intended for collection, storage and representation of text-based logs. In order to make knowledgeable long-term decisions on monitoring solutions, engineers need to understand differences in feature set, hardware requirements and level of support of those tools.
6 |
7 | It is also crucial to understand inter-dependencies between log processing components. In order to design fine-tailored log management system, engineers need to be familiar with existing open-source logging components, their capabilities and operational requirements.
8 |
9 | The purpose of this research is to analyze differences between several well known Log Management solutions and present results in a structured way. Results of the investigation should help technical experts to pick an appropriate solution that meets specific requirements.
10 |
11 | It should be noted that only free Log Management solutions and their free features were reviewed. Study contains relevant parts that describe differences between tools of similar function.
12 |
13 | ## Log Management Systems
14 |
15 | Logs can be described as free-form comments, produced by the software during it's execution. In order to efficiently process and analyze them various open source tools have been created.
16 |
17 | Log Management system is a combination of such tools, with core responsibilities mentioned below:
18 |
19 | * capture of logs from applications (belongs to "Collection" functionality)
20 | * storage of log data (belongs to "Storage" functionality)
21 | * search/analysis of log data (belongs to "Representation" functionality)
22 |
23 | More detailed definition and use cases of Log Management Systems can be found in [Sematext Log Management guide](https://sematext.com/guides/log-management) and [Graylog Log Management guide](https://www.graylog.org/post/what-is-log-management-a-complete-logging-guide)
24 |
25 | ## Structure of the Research
26 |
27 | In order to visualize inter-dependencies between logging components we've created a compatibility map. Components are organized according to their function: collection, storage and representation.
28 |
29 | Dependencies graph shows that the most important choice to make is the proper storage service. This will define what collection and representation tools could be reliably integrated into the system.
30 |
31 | We define three component's stacks, clustered around storage services: Solr, Elasticsearch and Loki.
32 |
33 | Review of the stacks is followed by a description of individual logging components, grouped by it's responsibility: collection, storage or representation.
34 |
35 |
36 |
37 | ## Tools Compatibility Map
38 |
39 | This section represents inter-dependencies between most popular open-source components of logging tools.
40 |
41 | Tools are grouped by responsibility: collection, storage or representation.
42 |
43 | Outbound arrow represents dependency or ability to be integrated with some component. Multiple outbound arrows represent alternatives that could be used building Log Management System.
44 |
45 | For Instance, Fluentd can send collected logs to Elasticsearch, Grafana Loki or to Logstash for further processing and rerouting.
46 |
47 | Log Management System is expected to have one representation tool, one storage tool and at least one collection tool.
48 |
49 |
50 |
51 | 
52 |
53 | ## Stacks Overview
54 |
55 | Services that are responsible for logs collection and representation are usually dependent on specific logs storage. Therefore, it could be convenient to group them into solutions (stacks) differentiated by compatibility with certain logs storage:
56 |
57 | 1. Solr stack
58 | 2. Elastic stack
59 | 3. Grafana Loki stack
60 |
61 | ### Solr Stack
62 |
63 | Unfortunately opensource log representation solutions that are able to work with Solr have a set of critical drawbacks:
64 |
65 | 1. Banana has a low activity (~20 commits during last two years) of contributors, which means that it could be troubling to get new features and bug fixes (see [github cotributors chart](https://github.com/lucidworks/banana/graphs/contributors)).
66 | 2. Cloudera Hue is able to work with Solr only via it's sql interface, preventing users from utilizing full text search capabilities of the engine (see [Hue documentation](https://docs.gethue.com/user/querying/#apache-solr-sql))
67 |
68 | Solr is quite close to Elastic in terms of feature set (for open-source versions) and performance (see [Mustafa, 2016](https://www.researchgate.net/publication/311916747_An_Analysis_on_the_Comparison_of_the_Performance_and_Configuration_Features_of_Big_Data_Tools_Solr_and_Elasticsearch)), as both are based on Lucene.
69 |
70 | ### Elastic Stack
71 |
72 | Tooling in this stack is mostly represented by solutions from [Elastic](https://www.elastic.co/about/).
73 |
74 | Solutions from Elastic are well maintained and cover most of the log sources (see [Beats](https://github.com/elastic/beats) and [Logstash](https://www.elastic.co/guide/en/logstash/current/input-plugins.html)).
75 |
76 | Elasticsearch is a mature full-text search engine [widely adopted](https://db-engines.com/en/ranking) by the industry.
77 |
78 | ### Grafana Stack
79 |
80 |
81 | Grafana Loki is a relatively new product - first beta was released [Jun 4, 2019](https://github.com/grafana/loki/releases/tag/v0.1.0). Version 1.0.0 seen the light [Nov 20, 2019](https://github.com/grafana/loki/releases)
82 |
83 | Due to the novelty of the product there aren't lot of compatible logs collection tools. At the moment of writing (Dec 19, 2019) it's Fluentd and Promtail.
84 |
85 | There is also a [Docker driver](https://github.com/grafana/loki/blob/master/docs/clients/docker-driver/configuration.md) that is capable of routing logs directly to Loki instance.
86 |
87 | ### Stacks Summary
88 |
89 | Unfortunately the lack of high-quality representation tools renders Solr stack unfit for modern production ready systems.
90 |
91 | Grafana Stack is a new, promising player in the field of log-processing. It might be considered as a viable alternative to Elastic-based solutions.
92 |
93 | ## Storage Services Review
94 |
95 | This section contains descriptions of services that are responsible for storing/indexing logs.
96 |
97 | ### Elasticsearch
98 |
99 | Elasticsearch is a search engine based on the Lucene library. It provides a distributed, multitenant-capable full-text search engine with an HTTP web interface and schema-free JSON documents. Elasticsearch is developed in Java
100 |
101 | * [https://www.elastic.co/guide/index.html](https://www.elastic.co/guide/index.html)
102 | * [https://github.com/elastic/elasticsearch](https://github.com/elastic/elasticsearch)
103 | * [https://github.com/elastic/helm-charts/tree/master/elasticsearch](https://github.com/elastic/helm-charts/tree/master/elasticsearch)
104 |
105 | ### Solr
106 |
107 | Solr is the fast open source search platform built on Apache Lucene™ that provides scalable indexing and search, as well as faceting, hit highlighting and advanced analysis/tokenization capabilities. Solr and Lucene are managed by the [Apache Software Foundation](http://www.apache.org/)
108 |
109 | * [http://lucene.apache.org/solr/guide/](http://lucene.apache.org/solr/guide/)
110 | * [https://github.com/apache/lucene-solr](https://github.com/apache/lucene-solr)
111 | * [https://github.com/helm/charts/tree/master/incubator/solr](https://github.com/helm/charts/tree/master/incubator/solr)
112 |
113 | ### Grafana Loki
114 |
115 | Loki is a horizontally-scalable, highly-available, multi-tenant log aggregation system inspired by [Prometheus](https://prometheus.io/). It is designed to be very cost effective and easy to operate. It does not index the contents of the logs, but rather a set of labels for each log stream.
116 |
117 | Compared to other log aggregation systems, Loki:
118 |
119 | * does not do full text indexing on logs. By storing compressed, unstructured logs and only indexing metadata, Loki is simpler to operate and cheaper to run.
120 | * indexes and groups log streams using the same labels you’re already using with Prometheus, enabling you to seamlessly switch between metrics and logs using the same labels that you’re already using with Prometheus.
121 | * is an especially good fit for storing [Kubernetes](https://kubernetes.io/) Pod logs. Metadata such as Pod labels is automatically scraped and indexed.
122 | * has native support in Grafana (needs Grafana v6.0).
123 |
124 | * [https://github.com/grafana/loki/blob/master/README.md](https://github.com/grafana/loki/blob/master/README.md)
125 | * [https://github.com/grafana/loki/tree/master/docs](https://github.com/grafana/loki/tree/master/docs)
126 | * [https://github.com/grafana/loki/tree/master/production/helm](https://github.com/grafana/loki/tree/master/production/helm)
127 |
128 | ### Core Differences
129 |
130 | | | Elasticsearch | Solr | Grafana Loki |
131 | | ----------------------- | ------------------------------------ | ------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
132 | | Search Engine | [Lucene](https://lucene.apache.org/) | [Lucene](https://lucene.apache.org/) | [Loki](https://github.com/grafana/loki/blob/master/docs/overview/README.md) |
133 | | Orchestration | \- | Zookeeper | Consul |
134 | | Storage (Cluster Setup) | File System | File System | Index Storage: Amazon DynamoDB, Google BigTable, Apache Cassandra Blob Storage: Amazon DynamoDB, Google BigTable, Apache Cassandra, S3, Google Cloud Storage |
135 |
136 | ## Collection Services Review
137 |
138 | This section contains descriptions of services that are responsible for collecting, parsing and re-routing logs to logs storage.
139 |
140 | ### Logstash
141 |
142 | Logstash is part of the [Elastic Stack](https://www.elastic.co/products) along with Beats, Elasticsearch and Kibana. Logstash is a server-side data processing service that ingests data from a multitude of sources , transforms it, and then sends it one of the many destinations.
143 |
144 | Logstash has over 200+ plugins.
145 |
146 | * [https://www.elastic.co/guide/en/logstash/master/index.html](https://www.elastic.co/guide/en/logstash/master/index.html)
147 | * [https://github.com/elastic/logstash](https://github.com/elastic/logstash)
148 | * [https://github.com/elastic/helm-charts/tree/master/logstash](https://github.com/elastic/helm-charts/tree/master/logstash)
149 | * [https://www.elastic.co/guide/en/logstash/current/input-plugins.html](https://www.elastic.co/guide/en/logstash/current/input-plugins.html)
150 |
151 | ### Beats
152 |
153 | The Beats are lightweight data shippers, written in Go, that can be installed on servers to capture all sorts of operational data (logs, metrics, or network packet data). The Beats send the operational data to Elasticsearch, either directly or via Logstash.
154 |
155 | * [https://github.com/elastic/beats](https://github.com/elastic/beats)
156 | * [https://www.elastic.co/guide/en/beats/libbeat/current/beats-reference.html](https://www.elastic.co/guide/en/beats/libbeat/current/beats-reference.html)
157 | * [https://github.com/elastic/helm-charts/tree/master/filebeat](https://github.com/elastic/helm-charts/tree/master/filebeat)
158 |
159 | ### Fluentd
160 |
161 | Fluentd collects events from various data sources and writes them to files, RDBMS, NoSQL, IaaS, SaaS, Hadoop and so on. Fluentd helps you unify your logging infrastructure (Learn more about the [Unified Logging Layer](https://www.fluentd.org/blog/unified-logging-layer))
162 |
163 | * [https://docs.Fluentd.org](https://docs.fluentd.org)
164 | * [https://github.com/fluent/Fluentd](https://github.com/fluent/fluentd)
165 | * [https://www.Fluentd.org/datasources](https://www.fluentd.org/datasources)
166 | * [https://docs.Fluentd.org/input](https://docs.fluentd.org/input)
167 | * [https://github.com/helm/charts/tree/master/stable/Fluentd](https://github.com/helm/charts/tree/master/stable/fluentd)
168 |
169 | ### Promtail
170 |
171 | Promtail's mode of operation is to discover log files stored on disk and forward them associated with a set of labels to Loki. Promtail can do service discovery for Kubernetes pods running on the same node as Promtail, act as a container sidecar or a Docker logging driver, read logs from specified folders, and tail the systemd journal.
172 |
173 | * [https://grafana.com/docs/loki/latest/clients/promtail/](https://grafana.com/docs/loki/latest/clients/promtail/)
174 | * [https://github.com/grafana/loki/tree/master/production/helm/promtail](https://github.com/grafana/loki/tree/master/production/helm/promtail)
175 |
176 | ### Graylog
177 |
178 | * [http://docs.graylog.org/en/3.1/index.html](http://docs.graylog.org/en/3.1/index.html)
179 | * [https://github.com/Graylog2/graylog2-server](https://github.com/Graylog2/graylog2-server)
180 | * [https://github.com/helm/charts/tree/master/stable/graylog](https://github.com/helm/charts/tree/master/stable/graylog)
181 |
182 | Sources of collected data:
183 |
184 | * Syslog (TCP/UDP)
185 | * GELF (send from app)
186 | * Kafka as transport queue
187 | * RabbitMQ
188 | * Reading from files: Graylog Sidecar [https://docs.graylog.org/en/3.1/pages/sidecar.html#graylog-sidecar](https://docs.graylog.org/en/3.1/pages/sidecar.html#graylog-sidecar)
189 | * and other cases [https://docs.graylog.org/en/3.1/pages/sending\_data.html](https://docs.graylog.org/en/3.1/pages/sending_data.html)
190 |
191 | There is also evidence of using Fluentd as a source for Graylog (e.g., [https://blog.insiderattack.net/bunyan-json-logs-with-Fluentd-and-graylog-187a23b49540](https://blog.insiderattack.net/bunyan-json-logs-with-fluentd-and-graylog-187a23b49540), [https://www.devinitiate.com/managing-logs-with-graylog-Fluentd/](https://www.devinitiate.com/managing-logs-with-graylog-fluentd/))
192 |
193 | Finally, you can find binding of Fluentd and GELF Plugin (inspired by [https://blog.insiderattack.net/bunyan-json-logs-with-Fluentd-and-graylog-187a23b49540](https://blog.insiderattack.net/bunyan-json-logs-with-fluentd-and-graylog-187a23b49540)):
194 |
195 | * [https://github.com/emsearcy/fluent-plugin-gelf](https://github.com/emsearcy/fluent-plugin-gelf)
196 | * [https://github.com/deepal/fluent-plugin-gelf](https://github.com/deepal/fluent-plugin-gelf)
197 |
198 | ### Core Differences
199 |
200 | Below is a comparison of various open-source logs collectors. according to resource requirements, supported sources and downstream destinations.
201 |
202 | | | Logstash | Beats | Graylog | Fluentd | Promtail |
203 | | --------------------- | :---: | :---: | :---: | :---: | :---: |
204 | | Platform | Java | Go | Java | Ruby | Go |
205 | | Memory Consumption | high | low | high | medium | low |
206 | | Alerting |  |  |  |  |  |
207 | | Multiple Destinations |  |  |  |  |  |
208 |
209 | ### Log Sources Compatibility Map
210 |
211 | Most common sources of logs, grouped by producers:
212 |
213 | 1. Applications
214 | 1. Files
215 | 2. Events over TCP
216 | 3. Windows Eventlog
217 | 2. Linux OS packages/utilities
218 | 1. [Syslog over network](https://en.wikipedia.org/wiki/Syslog#Network_protocol)
219 | 2. [Journald](https://manpages.debian.org/stretch/systemd/systemd-journald.service.8.en.html)
220 | 3. Windows OS packages/utilities
221 | 1. Windows Eventlog
222 | 4. Streams
223 | 1. AMQP
224 | 2. Kafka
225 |
226 | | Log Sources | [Logstash](https://www.elastic.co/guide/en/logstash/current/input-plugins.html) | [Beats\*](https://github.com/elastic/beats) | [Graylog](https://docs.graylog.org/en/3.1/pages/sidecar.html) | [Fluentd](https://docs.fluentd.org/input) | [Promtail](https://grafana.com/docs/loki/latest/clients/promtail) |
227 | | ---------------------------- | :---: | :---: | :---: | :---: | :---: |
228 | | Files |  |  |  |  |  |
229 | | Unstructured events over TCP |  |  |  |  |  |
230 | | GELF over network |  |  |  |  |  |
231 | | Syslog over network |  |  |  |  |  |
232 | | Journald |  |  |  |  |  |
233 | | Windows Eventlog |  |  |  |  |  |
234 | | Kafka |  |  |  |  |  |
235 | | AMQP |  |  |  |  |  |
236 |
237 | \* - Beats is a set of tools, rather then a single application
238 |
239 | ## Representation Services Review
240 |
241 | This section shows a comparison of various user-facing solutions used as an interface for searching and visualizing logs.
242 |
243 | Solutions are compared according to these aspects: search syntax, visualization features, alerting and user management capabilities.
244 |
245 | ### Kibana
246 |
247 | Kibana is an open source frontend application that sits on top of the Elastic Stack, providing search and data visualization capabilities for data indexed in Elasticsearch. Commonly known as the charting tool for the Elastic Stack (previously referred to as the ELK Stack after Elasticsearch, Logstash, and Kibana), Kibana also acts as the user interface for monitoring, managing, and securing an Elastic Stack cluster — as well as the centralized hub for built-in solutions developed on the Elastic Stack.
248 |
249 | * [https://github.com/elastic/kibana](https://github.com/elastic/kibana)
250 |
251 | ### Grafana Explore (Logs)
252 |
253 | Grafana Explore allows you to dig deeper into your metrics and logs to find the cause.
254 |
255 | Grafana's new logging data source, Loki is tightly integrated into Explore and allows you to correlate metrics and logs by viewing them side-by-side.
256 |
257 | * [https://grafana.com/docs/features/explore/](https://grafana.com/docs/features/explore/)
258 | * [https://github.com/grafana/grafana](https://github.com/grafana/grafana)
259 |
260 | ### Graylog
261 |
262 | Detailed description of the Graylog representation aspect can be found by the links:
263 |
264 | * [https://docs.graylog.org/en/3.1/pages/queries.html](https://docs.graylog.org/en/3.1/pages/queries.html)
265 | * [https://docs.graylog.org/en/3.1/pages/dashboards.html](https://docs.graylog.org/en/3.1/pages/dashboards.html)
266 |
267 | ### General Features
268 |
269 | | | Kibana | Graylog | Grafana - Loki |
270 | | --------------------------------- | :---: | :---: | :---: |
271 | | Query Language | Kibana Query Language (close to Lucene syntax) | Close to Lucene syntax | [LogQL](https://github.com/grafana/loki/blob/master/docs/logql.md) |
272 | | Fuzzy Search |  (Levenshtein distance) |  (Damerau–Levenshtein distance) |  |
273 | | Regex Search |  |  |  |
274 | | Text Normalization |  |  |  |
275 | | Transform message at display time |  |  (Decorators) |  |
276 | | Dashboards |  |  |  |
277 | | Alerts |  ([Yelp/elastalert](https://github.com/Yelp/elastalert)) |  |  |
278 |
279 | ### AuthN/AuthZ
280 |
281 | | | Kibana* | Graylog | Grafana - Loki |
282 | | ----------------------- | :---: | :---: | :---: |
283 | | OAuth2 |  |  |  |
284 | | AD groups |  |  |  |
285 | | AD users |  |  |  |
286 |
287 | \* - setup without paid [X-Pack extension](https://www.elastic.co/guide/en/x-pack/current/xpack-introduction.html)
288 |
289 | ### Additional Representation Services
290 |
291 | This section lists services that provide limited feature set or have weak community support (based on github activity).
292 |
293 | ### Grafana Log CLI
294 |
295 | LogCLI allows users to run LogQL queries against a Loki server.
296 |
297 | * [https://github.com/grafana/loki/blob/master/docs/getting-started/logcli.md](https://github.com/grafana/loki/blob/master/docs/getting-started/logcli.md)
298 |
299 | ### Banana
300 |
301 | The Banana project was forked from [Kibana](https://github.com/elastic/kibana), and works with all kinds of time series (and non-time series) data stored in [Apache Solr](https://lucene.apache.org/solr/).
302 |
303 | * [https://github.com/lucidworks/banana](https://github.com/lucidworks/banana)
304 |
305 | ### Cloudera Hue
306 |
307 | Hue is a web-based interactive query editor that enables you to interact with data warehouses.
308 |
309 | * [https://docs.gethue.com/](https://docs.gethue.com/)
310 | * [https://github.com/cloudera/hue](https://github.com/cloudera/hue)
311 |
312 | ## Summary
313 |
314 | Various open-source log management component were reviewed. This work provides structured description of their responsibilities, features and (inter-)dependencies.
315 |
316 | Research is based on analysis of products' documentation. This work provides links to official vendors' web-sites and github, whenever it was necessary to support highlighted components' features.
317 |
318 | We hope that this work will help engineers to make educated decisions on Log Management System architecture, build efficient, versatile monitoring infrastructures.
319 |
320 | ## References
321 |
322 | \[Mustafa, 2016\] AKCA, Mustafa & Aydoğan, Tuncay & Ilkuçar, Muhammer. (2016). An Analysis on the Comparison of the Performance and Configuration Features of Big Data Tools Solr and Elasticsearch. International Journal of Intelligent Systems and Applications in Engineering. 4. 8-8. 10.18201/ijisae.271328.
323 |
324 | ## Authors
325 | Vitaliy Levashin, Mihail Klyuykov, Yuriy Chizhov
326 |
--------------------------------------------------------------------------------
/images/123373394.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/vlev/open-source-log-management-solutions/72840559c4fe8eafd5d748cf8ba0ffb416d60307/images/123373394.png
--------------------------------------------------------------------------------
/images/check.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/images/error.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------