File tree Expand file tree Collapse file tree 1 file changed +50
-10
lines changed
observability/logging/logging-6.0 Expand file tree Collapse file tree 1 file changed +50
-10
lines changed Original file line number Diff line number Diff line change @@ -251,13 +251,48 @@ metadata:
251251 name: instance
252252 namespace: openshift-logging
253253spec:
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
You can’t perform that action at this time.
0 commit comments