Skip to content

Commit

Permalink
Removal of Logstash component (#2880)
Browse files Browse the repository at this point in the history
  • Loading branch information
cicharka authored Jan 17, 2022
1 parent 4aebb3e commit 2badf6f
Show file tree
Hide file tree
Showing 17 changed files with 2 additions and 141 deletions.
9 changes: 0 additions & 9 deletions ansible/playbooks/logstash.yml

This file was deleted.

4 changes: 0 additions & 4 deletions ansible/playbooks/roles/logstash/defaults/main.yml

This file was deleted.

This file was deleted.

33 changes: 0 additions & 33 deletions ansible/playbooks/roles/logstash/tasks/main.yml

This file was deleted.

2 changes: 0 additions & 2 deletions ansible/playbooks/roles/preflight/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ unsupported_roles:
- elasticsearch
- kibana
- filebeat
- logstash
- prometheus
- grafana
- node_exporter
Expand Down Expand Up @@ -80,7 +79,6 @@ unsupported_roles:
- elasticsearch
- kibana
- filebeat
- logstash
- prometheus
- grafana
- node_exporter
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ libxcb # for grafana
libXcursor # for grafana
libXt # for grafana
logrotate
logstash-oss-7.12.0
net-tools
nfs-utils
nmap-ncat
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ libxcb # for grafana
libXcursor # for grafana
libXt # for grafana
logrotate
logstash-oss-7.12.0
net-tools
nfs-utils
nmap-ncat
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ libxcb # for grafana
libXcursor # for grafana
libXt # for grafana
logrotate
logstash-oss-7.12.0
net-tools
nfs-utils
nmap-ncat
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ libdpkg-perl

libfontconfig1
logrotate
logstash-oss 1:7.12.0
netcat
net-tools
nfs-common
Expand Down
1 change: 1 addition & 0 deletions docs/changelogs/CHANGELOG-2.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
### Removed

- [#2834](https://github.com/epiphany-platform/epiphany/issues/2834) - Removal of Hashicorp Vault component
- [#2833](https://github.com/epiphany-platform/epiphany/issues/2833) - Removal of Logstash component
- [#2836](https://github.com/epiphany-platform/epiphany/issues/2836) - Removal of Istio component
- [#2837](https://github.com/epiphany-platform/epiphany/issues/2837) - Removal of Apache Ignite component

Expand Down
1 change: 0 additions & 1 deletion docs/home/COMPONENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ Note that versions are default versions and can be changed in certain cases thro
| Opendistro for Elasticsearch Kibana | 1.13.1 | https://opendistro.github.io/for-elasticsearch-docs/docs/kibana/ | [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0) |
| Filebeat | 7.9.2 | https://github.com/elastic/beats | [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0) |
| Filebeat Helm Chart | 7.9.2 | https://github.com/elastic/helm-charts | [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0) |
| Logstash OSS | 7.12.0 | https://github.com/elastic/logstash | [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0) |
| Prometheus | 2.31.1 | https://github.com/prometheus/prometheus | [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0) |
| Grafana | 8.3.2 | https://github.com/grafana/grafana | [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0) |
| Node Exporter | 1.3.1 | https://github.com/prometheus/node_exporter | [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0) |
Expand Down
4 changes: 1 addition & 3 deletions docs/home/DEPRECATION-NOTE.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,9 @@ Apache Ignite is prone to 1.x log4j issue.
Removed: Epiphany 2.0
Issue: [2837](https://github.com/epiphany-platform/epiphany/issues/2837)

The list of components to be deprecated:

- Logstash

The functionality that the Logstash is serving in Epiphany - exporting csv can right now be achieved using the Open Distro for Elasticsearch plugin. The Logstash in this version is prone to log4j issue and this is also the reason why should be removed.

Planed removal: Epiphany 2.0
Removed: Epiphany 2.0
Issue: [2833](https://github.com/epiphany-platform/epiphany/issues/2833)
2 changes: 0 additions & 2 deletions docs/home/HOWTO.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@
- [How to set up PostgreSQL audit logging](./howto/DATABASES.md#how-to-set-up-postgresql-audit-logging)
- [How to start working with OpenDistro for Elasticsearch](./howto/DATABASES.md#how-to-start-working-with-opendistro-for-elasticsearch)
- [How to manage Opendistro for Elasticsearch data](./howto/LOGGING.md#how-to-manage-opendistro-for-elasticsearch-data)
- [How to export Elasticsearch data to csv format](./howto/LOGGING.md#how-to-export-elasticsearch-data-to-csv-format)

- [Backup and Recovery](./howto/BACKUP.md)
- [Epiphany backup and restore](./howto/BACKUP.md#epiphany-backup-and-restore)
Expand All @@ -111,7 +110,6 @@

- [Centralized Logging](./howto/LOGGING.md)
- [Centralized logging setup](./howto/LOGGING.md#centralized-logging-setup)
- [How to export Elasticsearch data to csv format](./howto/LOGGING.md#how-to-export-elasticsearch-data-to-csv-format)
- [How to add multiline support for Filebeat logs](./howto/LOGGING.md#how-to-add-multiline-support-for-filebeat-logs)
- [How to deploy Filebeat as Daemonset in K8s](./howto/LOGGING.md#how-to-deploy-filebeat-as-daemonset-in-k8s)

Expand Down
50 changes: 0 additions & 50 deletions docs/home/howto/LOGGING.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ logging:
...
```

> Optional feature (role) available for logging: **logstash**
> more details here: [link](https://github.com/epiphany-platform/epiphany/blob/develop/docs/home/howto/LOGGING.md#how-to-export-elasticsearch-data-to-csv-format)
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.

Expand Down Expand Up @@ -223,53 +220,6 @@ Check more details about the plugin and how to export reports in the
You can easily check enabled default plugins for Kibana using the following command on the logging machine:
`./bin/kibana-plugin list` in Kibana directory.

## How to export Elasticsearch data to CSV format

Since v0.8 Epiphany provides the possibility to export data from Elasticsearch to CSV using Logstash *(logstash-oss)* along
with *logstash-input-elasticsearch* and *logstash-output-csv* plugins.

To install Logstash in your cluster add **logstash** to feature mapping for *logging, opendistro_for_elasticsearch* or *
elasticsearch* group.

---
**NOTE**

To check plugin versions following command can be used

```shell
/usr/share/logstash/bin/logstash-plugin list --verbose
```

---

Epiphany provides a basic configuration file `(logstash-export.conf.template)` as template for your data export. This
file has to be modified according to your Elasticsearch configuration and data you want to export.

---
**NOTE**

Exporting data is not automated. It has to be invoked manually. Logstash daemon is disabled by default after
installation.

---

Run Logstash to export data:
`/usr/share/logstash/bin/logstash -f /etc/logstash/logstash-export.conf`

More details about configuration
of [input](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-elasticsearch.html)
and [output](https://www.elastic.co/guide/en/logstash/current/plugins-outputs-csv.html) plugins.

---
**NOTE**

At the moment input plugin doesn't officially support skipping certificate validation for secure connection to
Elasticsearch. For non-production environment you can easily disable it by adding new line:

`ssl_options[:verify] = false` right after other ssl_options definitions in file:

`/usr/share/logstash/vendor/bundle/jruby/2.5.0/gems/logstash-input-elasticsearch-*/lib/logstash/inputs/elasticsearch.rb`

---

## How to add multiline support for Filebeat logs
Expand Down
2 changes: 0 additions & 2 deletions schema/common/defaults/configuration/feature-mapping.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ specification:
enabled: true
- name: filebeat
enabled: true
- name: logstash
enabled: true
- name: prometheus
enabled: true
- name: grafana
Expand Down
4 changes: 0 additions & 4 deletions schema/common/defaults/configuration/logstash.yml

This file was deleted.

4 changes: 0 additions & 4 deletions schema/common/validation/configuration/logstash.yml

This file was deleted.

0 comments on commit 2badf6f

Please sign in to comment.