Bug Report
Describe the bug
I'm using a WASM filter which does nothing than returning the logs. I'm using the dummy input with a rate 25 to test. The overhead is significant:
Wasm filter disabled:

Wasm filter enabled:

I believe this is because the WASM filter gets recreated for every line, instead of reusing it.
To Reproduce
- Rubular link if applicable:
- Example log message if applicable:
{"log":"YOUR LOG MESSAGE HERE","stream":"stdout","time":"2018-06-11T14:37:30.681701731Z"}
- Steps to reproduce the problem:
Expected behavior
Screenshots
Your Environment
- Version used: 2.0
- Configuration:
- Environment name and version (e.g. Kubernetes? What version?):
- Server type and version:
- Operating System and version:
- Filters and plugins: custom wasm filter
Additional context
Bug Report
Describe the bug
I'm using a WASM filter which does nothing than returning the logs. I'm using the
dummyinput with a rate 25 to test. The overhead is significant:Wasm filter disabled:

Wasm filter enabled:

I believe this is because the WASM filter gets recreated for every line, instead of reusing it.
To Reproduce
Expected behavior
Screenshots
Your Environment
Additional context