AEM Cloud request Log requestId | Community
Skip to main content
Level 2
November 7, 2023
Solved

AEM Cloud request Log requestId

  • November 7, 2023
  • 1 reply
  • 1018 views

Hi, 

aem request.log file includes a requestId. Please find example below.

 I would like to know if If there is a kind of global getter in AEM to get that requestId and use it in my own log statements in order to be able to identify what log messages belong to which request ?

30/Oct/2023:00:02:17 +0000 [4076] -> HEAD /libs/granite/security/currentuser.json HTTP/1.1 [cm-p43804-e183487-aem-publish-76466d7cb6-dzgms]

30/Oct/2023:00:02:17 +0000 [4076] <- 200 application/json 3ms [cm-p43804-e183487-aem-publish-76466d7cb6-dzgms]

 

Thanks a lot for your support in advance.

 

--

Volker

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by arunpatidar

Hi @vhochsteintef 
There is no OOTB request filter based on id but in local you can download and try rlog utility to filter logs

1 reply

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
November 7, 2023

Hi @vhochsteintef 
There is no OOTB request filter based on id but in local you can download and try rlog utility to filter logs

Arun Patidar
Level 2
November 27, 2023

HI Arun,
any way I can as a workaround create my "own" requestId, which I can access "everywhere" in code, in order to log it at least in my custom logs and be able to add it to outgoing http requests for tracing purposes ?

arunpatidar
Community Advisor
Community Advisor
November 27, 2023