Hi,
We are using Krakend API Gateway Version 2.0.0. for logging we have developed a custom pipeline with the following configuration in the krakend_template .json
"github_com/optivainc/optiva-product-shared-krakend-telemetry": {
"logging": {
"level": "{{ env "LOG_LEVEL" }}",
"module": "[OPTIVA-OBP-RTS-APIGATEWAY]",
"skip_paths": ["/__health", "/healthz/readiness/appCrm", "/healthz/readiness/appCrmHome", "/healthz/readiness/esb", "/healthz/readiness/ocg", "/healthz/readiness/vra", "/healthz/readiness", "/healthz/readiness/auth", "/healthz/readiness/zammad" ],
"json": {
"disable_html_escape": false,
"data_key": "datakey",
"pretty_print": false
}
},
When we enable the "DEBUG" log we are getting these null characters in the logs, although API request and response is correct.
{"@timestamp":"
20******* ","ecs.version":"1.6.0","event.category":"web","event.duration":367449,"event.end":"
20******* ","event.kind":"event","event.module":"krakend","event.start":"2025
20******* [0K1
:58.490877759Z","event.type":"access","http.hostname":"*******","http.request.method":"GET","http.response.status_code":503,"log.level":"info","message":"GET /individual?id=15\u0026offset=0\u002 [0K6
limit=10","source.ip":"******","url.original":"/individual?id=15\u0026offset=0\u0026limit=10","user_agent.original":"PostmanRuntime/7.31.1"} [0K
{"@timestamp":"202***:58.513Z","ecs.version":"1.6.0","log.level":"debug","message":"[CORS]20******* 09:21:58 Handler: Actual request\ners added: missing origin\n\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u000 [0K0
\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000
Any out of the box configuration which could help to fix this issue or any other solution to fix this is appreciated,
Regards
Nitin Suryawanshi
Optiva Inc