You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When writing out structured log data using the GelfFormatter, periodically the field _content_length is output with a value of: "_content_length": Infinity. This is invalid JSON and causes an error when parsing from external logging tools such as FluentD
SUMMARY
When writing out structured log data using the
GelfFormatter
, periodically the field_content_length
is output with a value of:"_content_length": Infinity
. This is invalid JSON and causes an error when parsing from external logging tools such as FluentDISSUE TYPE
STACKSTORM VERSION
OS / ENVIRONMENT / INSTALL METHOD
STEPS TO REPRODUCE
Configure GELF logging as described here: https://stackstorm.com/2017/08/22/stackstorm-centralized-logging-graylog/
Monitor the
/var/log/st2/st2stream.gelf.log
and periodically lines will be written out with"_content_length": Infinity"
EXPECTED RESULTS
Valid JSON be written to these files so that it can be parsed from an external tool
ANALYSIS
The only place in the code where i can find
content_length
being set to Infinity is here: /~https://github.com/StackStorm/st2/blob/master/st2common/st2common/middleware/logging.py#L102The text was updated successfully, but these errors were encountered: