summaryrefslogtreecommitdiffstats
path: root/fluent-bit/packaging/testing/smoke/container/fluent-bit.yaml
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 02:57:58 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 02:57:58 +0000
commitbe1c7e50e1e8809ea56f2c9d472eccd8ffd73a97 (patch)
tree9754ff1ca740f6346cf8483ec915d4054bc5da2d /fluent-bit/packaging/testing/smoke/container/fluent-bit.yaml
parentInitial commit. (diff)
downloadnetdata-upstream.tar.xz
netdata-upstream.zip
Adding upstream version 1.44.3.upstream/1.44.3upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'fluent-bit/packaging/testing/smoke/container/fluent-bit.yaml')
-rw-r--r--fluent-bit/packaging/testing/smoke/container/fluent-bit.yaml33
1 files changed, 33 insertions, 0 deletions
diff --git a/fluent-bit/packaging/testing/smoke/container/fluent-bit.yaml b/fluent-bit/packaging/testing/smoke/container/fluent-bit.yaml
new file mode 100644
index 00000000..69167e0b
--- /dev/null
+++ b/fluent-bit/packaging/testing/smoke/container/fluent-bit.yaml
@@ -0,0 +1,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