-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cloudwatch plugin reception of string log causes Fluent Bit to crash #210
Comments
The easiest way to reproduce may be to run fluent bit with the above config and send the following string payload with curl:
|
It looks like the crash is caused by a call to GetRecord() on the output_plugin's input which appears to contain encoded content from Fluent Bit's core. The scope of this problem is most likely all Fluent Bit Go plugins. Upon decoding to a character array string (
The panic due to incompatible type conversion is what we are seeing crash Fluent Bit.
There are several potential fixes to this problem:
|
We were seeing Node failures in our Fargate clusters while on |
Fluent Bit currently crashes if a simple string log is received by the cloudwatch go plugin. This shouldn't affect the normal use case of Firelens because Firelens usually receives input from the docker fluentd log driver which always outputs an object rather than a raw string.
Here is my Fluent Bit configuration:
Here is the input I send via HTTP request body to Fluent Bit:
Here is Fluent Bit's output:
The text was updated successfully, but these errors were encountered: