Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.

Downloading AEM logs without accessing the filesystem via System Diagnosis Page Download shows empty file

Avatar

Level 2

I tried login with Admin credentials and tried to download logs from below URL,

 

System Diagnosis Page Download a system status ZIP export from the system diagnosis page: https://localhost:4502/libs/granite/operations/content/diagnosis.html (select Download Status ZIP).

 

but the size of logs file is showing more than 100mb but the downloaded file is empty and error while opening the granite_status.zip file, Please let me know if there anyway to download logs 

11 Replies

Avatar

Community Advisor

Hi @maryani 

 

If you have access to system/console you can also download logs as zip from the below path

http://localhost:4502/system/console/status-slinglogs

 

sherinregi_0-1694533701793.png

 

 

Also on the diagnosis page can you try checking the thread dump alone and see if that is working 

 

 

 

Avatar

Level 2

If I dont have access to system/console, I tried On Diagnosis page , empty file is getting downloaded. Any thoughts on it?

Avatar

Community Advisor

@maryani  from what you have posted initially the zip is corrupted or it doesn't have any content. the 100mb which was showing on the dashboard is the size same for the downloaded zip also ?

can you confirm if the download was successful on the browser pane

Avatar

Level 2

on the dashboard it is showing 100MB but the downloaded file from the browser is just 900 KB, even after downloading the file, the file does'nt open up

Avatar

Community Advisor

@maryani 

 

Can you please validate across multiple 6.5 servers? 

I am using AEM Cloud SDK. Download of log files is no longer available there.


Aanchal Sikka

Avatar

Community Advisor

@maryani 

Can you  look for the below line in error.log files and see if you are getting any error.

GET /libs/settings/granite/operations/diagnosis/granite_status.zip

 

When I tested I could see one indexing/traversing issue on one of our servers, so wanted to check that as well in your case.

 

Avatar

Level 2

Yeah looks like it is same for me traversing

GET /libs/settings/granite/operations/diagnosis/granite_status.zip HTTP/1.1]

 

 

What can we do here?

Avatar

Community Advisor

@aanchal-sikka  @arunpatidar  @EstebanBustamante @Mahedi_Sabuj 

Any thoughts here . I tried on a vanilla instance the log zip size as 2mb and was able to download the same,

but looks like when the size is more below exception is thrown.

 

sherinregi_0-1694602648544.png

 

This being one of the OOTB features what is actually getting queried here and any indexing possibility 

 

Avatar

Community Advisor

Hello @sherinregi 

 

We should be able to capture the logs and create index.

Steps to capture query logs are here: https://aemtreasury.wordpress.com/2015/11/13/how-to-enable-logging-of-aem-query/

 

Also, we should raise a support ticket to inform Adobe about the same. 

 

@maryani 

- Which AEM version are you using ?

- Can you possible use system console for logs? Or use ftp tool to download logs from server? Authors generally don't access logs. Its for tech team.


Aanchal Sikka

Avatar

Community Advisor

Hello @maryani 

 

For local AEM instance:

- you can access all logs from crx-quickstart/logs folder

 

For AEM server:

 

Sling > Log Support

- Go to http://localhost:4503/system/console/slinglog Or Sling > Log Support

- Click any of the links, here the links will open like http://localhost:4503/system/console/slinglog/tailer.txt?tail=10000&grep=*&name=%2Flogs%2Ferror.log . You can modify:

  • tail value to get recent logs
  • grep value to get lines with specific text

 

aanchalsikka_0-1694579586121.png

 

Status > Log files

This one @sherinregi  has already explained


Aanchal Sikka

Avatar

Administrator

@maryani Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.



Kautuk Sahni