JSON logger always shows a content length of 9 bytes #80544
Labels
bug
Fixes for quality problems that affect the customer experience
Feature:Logging
Team:Core
Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc
Kibana version: 7.10
Describe the bug:
When JSON logging is enabled, every single 'response' object shows a content length of 9 bytes.
Example:
Note the end of the line:
However, when viewing that response in my browser's dev tools, it shows a content-length header of 134.
Steps to reproduce:
logging.json: true
andlogging.verbose: true
in your kibana.yml and start KibanaExpected behavior: The JSON logs should reflect the actual content length of the response.
Any additional context:
Looking at some older GitHub issues that happen to include JSON log output, it appears this bug has been present since at least as far back as 6.x.
It appears that these 'response' objects are not logged at all using the new platform logger's
json
layout, e.g., they will not show up in the target file if you use this config:however, they will still show in the console output:
The text was updated successfully, but these errors were encountered: