Hi everyone!
I'm trying to get the client request headers logged in AEM CS dispatcher on a development environment for debugging purposes. For this, I've gone through the documentation form Adobe which states that the variable: DISP_LOG_LEVEL needs to be adjusted to "Debug" (it can also be changed to Trace1-8) but Adobe documentation states that max verbosity level is debug and trace is not supported) in global.vars config file of dispatcher module. With this change, I can see the response headers in httpderror log, however I cannot see the request.headers.
Is there a way to activate request.headers logged in AEM CS Dispatcher logs?
I've read this documentation:
https://experienceleague.adobe.com/en/docs/experience-manager-cloud-service/content/implementing/dev...
Views
Replies
Total Likes
Hi,
Typically, the request headers visible through the browser’s developer console are sufficient for most debugging needs. The next step I would recommend is to check your local dispatcher. By setting the log level to DEBUG, you’ll be able to see the headers, as shown below. Finally, you can adjust the log settings in the cloud environment to achieve the same result as in your local dispatcher. If this isn’t working for you, there may be an issue with your deployment. Could you confirm whether you’re seeing the "debug" statements in the log?
For the dispatcher local i run this command:
DISP_LOG_LEVEL=debug ./bin/docker_run.sh myDispatcherFolrderSrc host.docker.internal:4503 80
You can check here how to use a local dispatcher: https://experienceleague.adobe.com/en/docs/experience-manager-learn/cloud-service/local-development-...
Hope this helps
Views
Replies
Total Likes
Hi @Luis_Moreno_Deustua ,
We can see the request header in browser itself.
If we have doubt that our header(or custom header) is blocked(filtered) at dispatcher level, then we may cross verify if that header is present(allowed) at /clientheaders in dispatcher. In general there is need to add custom headers to /cleintheaders, however few generic headers are allowed by default.
Thanks
Views
Replies
Total Likes
Views
Likes
Replies