summaryrefslogtreecommitdiffstats
path: root/fluent-bit/packaging/testing/smoke/container/fluent-bit.yaml
blob: 69167e0b4bfe03965977a71f28ffd69f520f1e34 (plain)
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
---
# Translated according to https://github.com/fluent/fluent-bit/pull/4621
service:
    http_server: "on"
    Health_Check: "on"
    log_level: debug

pipeline:
    inputs:
        - name: random
          tag: test
          samples: 10

    filters:
        - name: lua
          match: test
          call: append_tag
          code: |
              function append_tag(tag, timestamp, record)
                 new_record = record
                 new_record["tag"] = tag
                 return 1, timestamp, new_record
              end

        - name: expect
          match: test
          key_exists: tag
          key_val_eq: tag test
          action: exit

    outputs:
        - name: stdout
          match: test