Skip to content

Commit d26b3dd

Browse files
v6.0 Forwarding to Red Hat Managed Elasticsearch is broken
- v6.0 Forwarding to Red Hat Managed Elasticsearch is broken - Here is the documentation link: https://docs.openshift.com/container-platform/4.16/observability/logging/logging-6.0/log6x-upgrading-to-6.html#red-hat-managed-elasticsearch - Here entire example for `v6.0 Forwarding to Red Hat Managed Elasticsearch` is wrongly mentioned. - For correct format kindly refer to KCS: https://access.redhat.com/solutions/7105074 - We need to correct this configuration in the documentation as well. - Here is the updated `ClusterLogForwarder` configuration: ~~~ apiVersion: observability.openshift.io/v1 kind: ClusterLogForwarder metadata: name: collector namespace: openshift-logging spec: serviceAccount: name: <service_account_name> managementState: Managed outputs: - name: audit-elasticsearch type: elasticsearch elasticsearch: url: https://elasticsearch:9200 version: 6 index: audit-write tls: ca: key: ca-bundle.crt secretName: collector certificate: key: tls.crt secretName: collector key: key: tls.key secretName: collector - name: app-elasticsearch type: elasticsearch elasticsearch: url: https://elasticsearch:9200 version: 6 index: app-write tls: ca: key: ca-bundle.crt secretName: collector certificate: key: tls.crt secretName: collector key: key: tls.key secretName: collector - name: infra-elasticsearch type: elasticsearch elasticsearch: url: https://elasticsearch:9200 version: 6 index: infra-write tls: ca: key: ca-bundle.crt secretName: collector certificate: key: tls.crt secretName: collector key: key: tls.key secretName: collector pipelines: - name: app inputRefs: - application outputRefs: - app-elasticsearch - name: audit inputRefs: - audit outputRefs: - audit-elasticsearch - name: infra inputRefs: - infrastructure outputRefs: - infra-elasticsearch ~~~
1 parent c1df89a commit d26b3dd

File tree

1 file changed

+50
-10
lines changed

1 file changed

+50
-10
lines changed

observability/logging/logging-6.0/log6x-upgrading-to-6.adoc

Lines changed: 50 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -250,13 +250,48 @@ metadata:
250250
name: instance
251251
namespace: openshift-logging
252252
spec:
253+
serviceAccount:
254+
name: <service_account_name>
255+
managementState: Managed
253256
outputs:
254-
- name: default-elasticsearch
257+
- name: audit-elasticsearch
258+
type: elasticsearch
259+
elasticsearch:
260+
url: https://elasticsearch:9200
261+
version: 6
262+
index: audit-write
263+
tls:
264+
ca:
265+
key: ca-bundle.crt
266+
secretName: collector
267+
certificate:
268+
key: tls.crt
269+
secretName: collector
270+
key:
271+
key: tls.key
272+
secretName: collector
273+
- name: app-elasticsearch
255274
type: elasticsearch
256275
elasticsearch:
257276
url: https://elasticsearch:9200
258277
version: 6
259-
index: <log_type>-write-{+yyyy.MM.dd}
278+
index: app-write
279+
tls:
280+
ca:
281+
key: ca-bundle.crt
282+
secretName: collector
283+
certificate:
284+
key: tls.crt
285+
secretName: collector
286+
key:
287+
key: tls.key
288+
secretName: collector
289+
- name: infra-elasticsearch
290+
type: elasticsearch
291+
elasticsearch:
292+
url: https://elasticsearch:9200
293+
version: 6
294+
index: infra-write
260295
tls:
261296
ca:
262297
key: ca-bundle.crt
@@ -268,18 +303,23 @@ spec:
268303
key: tls.key
269304
secretName: collector
270305
pipelines:
271-
- outputRefs:
272-
- default-elasticsearch
273-
- inputRefs:
306+
- name: app
307+
inputRefs:
274308
- application
309+
outputRefs:
310+
- app-elasticsearch
311+
- name: audit
312+
inputRefs:
313+
- audit
314+
outputRefs:
315+
- audit-elasticsearch
316+
- name: infra
317+
inputRefs:
275318
- infrastructure
319+
outputRefs:
320+
- infra-elasticsearch
276321
----
277322

278-
[NOTE]
279-
====
280-
In this example, application logs are written to the `application-write` alias/index instead of `app-write`.
281-
====
282-
283323
== Red Hat Managed LokiStack
284324

285325
.v5.9 Forwarding to Red Hat Managed LokiStack

0 commit comments

Comments
 (0)