๐Ÿ“ฆ sorend / fluentd-k8s

๐Ÿ“„ demo-multiline.yaml ยท 34 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34---
apiVersion: v1
kind: Namespace
metadata:
  name: demo-multiline
  annotations:
    fluentd/include: "true"
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
  name: fluentd-logging-demo
  namespace: demo-multiline
  labels:
    name: fluentd-logging-demo
spec:
  selector:
    matchLabels:
      name: fluentd-logging-demo
  template:
    metadata:
      labels:
        name: fluentd-logging-demo
      annotations:
        fluentd/multiline: "true"
    spec:
      containers:
      - name: busybox
        image: busybox
        command:
          - /bin/sh
          - -c
          - while sleep 5; do echo -e "$(date +'%Y-%m-%d %H:%M:%S%z') -- still logging...\nthis is the second line\nand the third line"; done