In corporate organisations, for security purposes, it is common to have AEM administrator rights and OS level rights (especially file system access rights) separated to different individuals.
In this case the AEM administrator needs to request the OS administrator to send him the log files. This might be problematic when it comes to urgent issues that require quick investigations.
AEM provides 2 ways to access the logs without the need of special rights. You only need to have access rights to the AEM Web Console or the administrative tools section of AEM. Here a the 2 options:
AEM Web Console Log Files Page
Browse/export them directly from the AEM Web Console Log Files page: http://localhost:4502/system/console/status-slinglogs
The page displays each AEM log files one after the other as text.
You can download the log files using one of the 4 download buttons displayed on the top-right.
System Diagnosis Page
Download a system status ZIP export from the system diagnosis page: http://localhost:4502/libs/granite/operations/content/diagnosis.html (select “Download Status ZIP”)
The ZIP downloaded will contain many configuration and status files including a folder with all the log files of AEM.