fluent-operator icon indicating copy to clipboard operation
fluent-operator copied to clipboard

LUA filter inline code support

Open chrono2002 opened this issue 11 months ago • 0 comments

Adds support for "code:" inline block in LUA namespace-wide filter. See: https://docs.fluentbit.io/manual/pipeline/filters/lua "code | Inline LUA code instead of loading from a path via script."

None
Usage:

apiVersion: fluentbit.fluent.io/v1alpha2
kind: Filter
metadata:
  labels:
    fluentbit.fluent.io/enabled: "true"
  name: test
spec:
  match: "*"
  filters:
  - lua:
      call: converter
      protectedMode: true 
      code: |
        function converter(tag, timestamp, record)
            return 0, 0, 0
        end

chrono2002 avatar Mar 06 '24 12:03 chrono2002