Goal
Quick post on creating a
Tail Log servlet for examining the logs on remote CQ instances; if you are debugging issues on a friend's CQ instance or QA, deploying this servlet could be helpful. Ootb, logs can be viewed by logging into felix console (http://localhost:4502/system/console/status-slinglogs) or doing a remote login (ssh) or
http://localhost:4502/bin/crxde/logs?tail=1000Demo |
Package Install |
Source CodeView error log : http://localhost:4502/bin/experience-aem/tail/log
View specific log (eg. access.log) : http://localhost:4502/bin/experience-aem/tail/log?log=access
Clear: Clears the current log view
Color Line Begin - First few characters of the line are colored (next fetch)
Start Line At - Cut out the first few characters of line, say timestamp (next fetch)
Line Min Length - Only the lines with length greater than entered number are returned (next fetch)
Line Max Length - Only the lines with length less than entered number are returned (next fetch)
Trim to Size - Cut the line to specified size (next fetch)
If Line Contains - Get line only if it contains the entered string (next fetch)
Not If Line Contains - Get line only if it does not contain entered string (next fetch)