Skip to content

Commit 67daf8d

Browse files
prithvipatil97openshift-cherrypick-robot
authored andcommitted
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 2986cad commit 67daf8d

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
@@ -251,13 +251,48 @@ metadata:
251251
name: instance
252252
namespace: openshift-logging
253253
spec:
254+
serviceAccount:
255+
name: <service_account_name>
256+
managementState: Managed
254257
outputs:
255-
- name: default-elasticsearch
258+
- name: audit-elasticsearch
259+
type: elasticsearch
260+
elasticsearch:
261+
url: https://elasticsearch:9200
262+
version: 6
263+
index: audit-write
264+
tls:
265+
ca:
266+
key: ca-bundle.crt
267+
secretName: collector
268+
certificate:
269+
key: tls.crt
270+
secretName: collector
271+
key:
272+
key: tls.key
273+
secretName: collector
274+
- name: app-elasticsearch
256275
type: elasticsearch
257276
elasticsearch:
258277
url: https://elasticsearch:9200
259278
version: 6
260-
index: <log_type>-write-{+yyyy.MM.dd}
279+
index: app-write
280+
tls:
281+
ca:
282+
key: ca-bundle.crt
283+
secretName: collector
284+
certificate:
285+
key: tls.crt
286+
secretName: collector
287+
key:
288+
key: tls.key
289+
secretName: collector
290+
- name: infra-elasticsearch
291+
type: elasticsearch
292+
elasticsearch:
293+
url: https://elasticsearch:9200
294+
version: 6
295+
index: infra-write
261296
tls:
262297
ca:
263298
key: ca-bundle.crt
@@ -269,18 +304,23 @@ spec:
269304
key: tls.key
270305
secretName: collector
271306
pipelines:
272-
- outputRefs:
273-
- default-elasticsearch
274-
- inputRefs:
307+
- name: app
308+
inputRefs:
275309
- application
310+
outputRefs:
311+
- app-elasticsearch
312+
- name: audit
313+
inputRefs:
314+
- audit
315+
outputRefs:
316+
- audit-elasticsearch
317+
- name: infra
318+
inputRefs:
276319
- infrastructure
320+
outputRefs:
321+
- infra-elasticsearch
277322
----
278323

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

286326
.v5.9 Forwarding to Red Hat Managed LokiStack

0 commit comments

Comments
 (0)