Customizing request.log and access.log files for CQ 5.6.1 | Community
Skip to main content
October 16, 2015
Solved

Customizing request.log and access.log files for CQ 5.6.1

  • October 16, 2015
  • 2 replies
  • 944 views

Hi,

Need help for customizing request.log and access.log files for CQ 5.6.1. I need to add Session ID attribute to the log files for some monitoring purpose. Read the documentation for CQ 5.6.1 and its mentioned that customizing these 2 files is possible. But didn't find any details or examples of how to achieve that. Can you please let me know about this?

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 Sham_HC

For this you need to configure RequestLoggerService &  not logger writer or reader.

http://sling.apache.org/documentation/development/client-request-logging.html#ClientRequestLogging-LogFormatSpecification.

2 replies

joerghoh
Adobe Employee
Adobe Employee
October 16, 2015

Hi,

what do you mean with session ID? Do you want to print the server-side session ID to the logfile? I don't think, that this is not easily possible, as it is not provided as variable in the logger (see the OSGI console for the list of supported data for logging. You likely need to extend the code, but note: AEM 5.6.1 still uses slf4j, while AEM 6.x uses logback as backend.

kind regards,
Jörg

Sham_HC
Sham_HCAccepted solution
Level 10
October 16, 2015

For this you need to configure RequestLoggerService &  not logger writer or reader.

http://sling.apache.org/documentation/development/client-request-logging.html#ClientRequestLogging-LogFormatSpecification.