cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Logs...

yn_chang
Explorer
0 Kudos

Dear All,

On the EP DEV server, the developers sets the trace level to high to help them debug their codes. The files in the directory, <sap directory>\JC00\j2ee\cluster\server0 has grown to more than 20+GB in total size. Any role of thumb to delete these log files?

Is there any automated (configuration) way to continously delete the logs on a periodic basis? Thanks.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi YN

There is several possibilities to reduce the log amount.

1. Turn of archiving ..\j2ee\cluster\server0\log\archive:

<b>visual admin tool -> Server0 -> services -> Log Configurator -> Tab Properties -> ArchiveOldLogFiles OFF</b>

2. Reduce the size or the number of logs:

<b>visual admin tool -> Server0 -> Kernel -> LogManager -> DefaultTraceFileCount or DefaultTraceFileLimit</b>

Best regards

Michael

Former Member
0 Kudos

Hi Chang,

It depend's on your avilable disk space and importance of the log, like your developers needed to debug their codes. Once if they complete you may turn off high level trace, so that it won't generate huge log files.

When it comes to cleaning the logs, You can create task with transaction SLG1 and use variant with assigning variable selection criteria for "Creation date: from" and "Creation date: to". In selection variable choose "Dynamic date calculation" and then from list of avaiable options choose "Current date +/- ??? days". Try SLG2 t-code.

Regards,

Hari.

PS: Award point's if helpful.