Fluentd, Kibana & Elasticsearch deprecation warning on web console in RHOCP4
Environment
- Red Hat OpenShift Container Platform (RHOCP)
- 4
- Red Hat OpenShift Logging (RHOL)
- 5
- Fluentd
- Elasticsearch
- Kibana
Issue
-
After upgrading the RHOL version to 5.9, There is a warning on RHOCP web console regarding the deprecation of
Fluentd,Kibana&Elasticsearch.
Resolution
Important note: Elasticsearch operator in OpenShift 4.16 is not supported for the Logging stack, and it is only supported for ServiceMesh, Tracing and Kiali. Refer to Missing the Red Hat Elasticsearch operator in OpenShift 4.16 for additional information.
The EFK stack is now deprecated in OpenShift 4, and it is recommended to migrate the LogStore from Elasticsearch to Loki, and switch the Collector from Fluentd to Vector. That is required if upgrading OpenShift to version 4.16. Refer to the following documents for the migration:
Note: As explained in does Red Hat support version drift between OpenShift Elasticsearch Operator and OpenShift Logging Operator starting from RHOL v5.9 in RHOCP 4: "The Logging 5.9 release does not contain an updated version of the OpenShift Elasticsearch Operator. Instances of OpenShift Elasticsearch operator from prior logging releases, remain supported until the EOL of the logging release".
Root Cause
These are warnings that Fluentd, Kibana & Elasticsearch are deprecated and will be removed in a future version.
Diagnostic Steps
Verify the logStore, collection and visualization fields defined in the ClusterLogging instance:
$ oc get cl instance -o yaml -n openshift-logging
[...]
spec:
collection:
type: fluentd --> fluentd is defined as Collector
logStore:
elasticsearch: --> elasticsearch is defined as Logstore
nodeCount: 1
redundancyPolicy: ZeroRedundancy
resources:
requests:
memory: 2Gi
retentionPolicy:
application:
maxAge: 1h
type: elasticsearch
managementState: Managed
visualization:
kibana: --> Kibana is used for Visualizer.
replicas: 1
type: kibana
[...]
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.