-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Kibana config always points its elasticsearch.hosts to a "logging" VM (…
- Loading branch information
Showing
9 changed files
with
92 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,4 +28,4 @@ | |
owner: root | ||
group: root | ||
mode: 0644 | ||
src: logrotate.conf.j2 | ||
src: logrotate.conf.j2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,48 @@ | ||
## Centralized logging setup | ||
|
||
For centralized logging Epiphany uses [OpenDistro for Elasticsearch](https://opendistro.github.io/for-elasticsearch/). In order to enable centralized logging, there is required to use `logging` role on feature mapping level - as of 0.5.0 this is a default configuration. | ||
For centralized logging Epiphany uses [OpenDistro for Elasticsearch](https://opendistro.github.io/for-elasticsearch/). | ||
In order to enable centralized logging, be sure that `count` property for `logging` feature is greater than 0 in your configuration manifest. | ||
|
||
```yaml | ||
kind: epiphany-cluster | ||
... | ||
specification: | ||
... | ||
components: | ||
kubernetes_master: | ||
count: 1 | ||
kubernetes_node: | ||
count: 0 | ||
... | ||
logging: | ||
count: 1 | ||
... | ||
``` | ||
|
||
### Default feature mapping for logging: | ||
```yaml | ||
... | ||
logging: | ||
- logging | ||
- kibana | ||
- node-exporter | ||
- filebeat | ||
- firewall | ||
... | ||
``` | ||
The `logging` role replaced `elasticsearch` role. This change was done to enable Elasticsearch usage also for data storage - not only for logs as it was till 0.5.0. | ||
|
||
The `logging` role replaced `elasticsearch` role in logging feature. This change was done to enable Elasticsearch usage for data storage - not only for logs as it was till 0.5.0. | ||
|
||
Default configuration of `logging` role is the same as [opendistro_for_elasticsearch](./DATABASES.md#how-to-start-working-with-opendistro-for-elasticsearch) which is used for logs storage. In order to modify centralized logging configuration adjust and use following defaults: | ||
Default configuration of `logging` and `opendistro_for_elasticsearch` roles is identical (./DATABASES.md#how-to-start-working-with-opendistro-for-elasticsearch). To modify configuration of centralized logging adjust and use the following defaults in your manifest: | ||
|
||
```yaml | ||
kind: configuration/logging | ||
title: Logging Config | ||
name: default | ||
specification: | ||
opendistro_version_redhat: "1.3.0" | ||
elasticsearch_oss_version_debian: "7.3.2" | ||
opendistro_version_debian: "1.3.0*" | ||
cluster_name: EpiphanyElastic | ||
clustered: True | ||
paths: | ||
data: /var/lib/elasticsearch | ||
repo: /var/lib/elasticsearch-snapshots | ||
logs: /var/log/elasticsearch | ||
``` | ||
``` |