Skip to content

Commit 290552d

Browse files
authored
filter_lua: Follow syntax change for YAML configuration (#1094)
`name` element should be needed to instantiate plugins. Signed-off-by: Hiroshi Hatake <hatake@calyptia.com>
1 parent 9d156a4 commit 290552d

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

pipeline/filters/lua.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -108,24 +108,24 @@ service:
108108

109109
pipeline:
110110
inputs:
111-
- random:
112-
tag: test
113-
samples: 10
111+
- name: random
112+
tag: test
113+
samples: 10
114114

115115
filters:
116-
- lua:
117-
match: "*"
118-
call: append_tag
119-
code: |
120-
function append_tag(tag, timestamp, record)
121-
new_record = record
122-
new_record["tag"] = tag
123-
return 1, timestamp, new_record
124-
end
116+
- name: lua
117+
match: "*"
118+
call: append_tag
119+
code: |
120+
function append_tag(tag, timestamp, record)
121+
new_record = record
122+
new_record["tag"] = tag
123+
return 1, timestamp, new_record
124+
end
125125
126126
outputs:
127-
- stdout:
128-
match: "*"
127+
- name: stdout
128+
match: "*"
129129
```
130130
131131
In classic mode:

0 commit comments

Comments
 (0)