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