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:
251
251
name: instance
252
252
namespace: openshift-logging
253
253
spec:
254
+ serviceAccount:
255
+ name: <service_account_name>
256
+ managementState: Managed
254
257
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
256
275
type: elasticsearch
257
276
elasticsearch:
258
277
url: https://elasticsearch:9200
259
278
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
261
296
tls:
262
297
ca:
263
298
key: ca-bundle.crt
@@ -269,18 +304,23 @@ spec:
269
304
key: tls.key
270
305
secretName: collector
271
306
pipelines:
272
- - outputRefs:
273
- - default-elasticsearch
274
- - inputRefs:
307
+ - name: app
308
+ inputRefs:
275
309
- application
310
+ outputRefs:
311
+ - app-elasticsearch
312
+ - name: audit
313
+ inputRefs:
314
+ - audit
315
+ outputRefs:
316
+ - audit-elasticsearch
317
+ - name: infra
318
+ inputRefs:
276
319
- infrastructure
320
+ outputRefs:
321
+ - infra-elasticsearch
277
322
----
278
323
279
- [NOTE]
280
- ====
281
- In this example, application logs are written to the `application-write` alias/index instead of `app-write`.
282
- ====
283
-
284
324
== Red Hat Managed LokiStack
285
325
286
326
.v5.9 Forwarding to Red Hat Managed LokiStack
You can’t perform that action at this time.
0 commit comments