-
Request for existing cases, user IDs, Portal navigation support and more
Log Deletion and Archiving
Log Deletion
Log Message Housekeeping
Introduction
This procedure is applicable for SAP Focused Run 2.0 SP00 and higher.
It describes how to perform or schedule housekeeping for log messages generated by the following SAP Focused Run components:
Component | Messages | Scenario ID for Report SISE_LOG_DELETE |
---|---|---|
Simple System Integration | SISE Log Messages for Technical System Configuration | MNGD_SYS_SRSM |
Agent Administration | SISE Log Messages for Host Configuration | MNGD_HOST_SRSM |
License Management | SISE Log Messages for License Management | LICENSE_MAINTENANCE |
To perform housekeeping on all the log entries for a specific scenario, the report SISE_LOG_DELETE can be used.
Report Parameters
SE38 Report SISE_LOG_DELETE accepts following parameters:
- Scenario ID: Enter a scenario ID from the above table. You can use the F4 Help functionality to find the possible values.
- Delete Logs older than (days): Specify the retention period. Value 200 means that all logs older than 200 days will be deleted, measured from the moment of report or job execution.
- We suggest that you delete log messages older than 200 days, or that you follow your company internal guidance on log message deletion.
- Processing Mode:
- Production Mode; will delete the logs
- Test Mode; will not delete the logs, but will count the number of logs that would be deleted in production mode
Manual Execution
- Start transaction SA38
- Run report SISE_LOG_DELETE
- Enter the report parameters
- Execute the report
Create Report Variant
For regular housekeeping, the report should be scheduled as a batch job.
Create one or more program variants in transaction SE38, as documented here.
- Start transaction SE38
- Select report SISE_LOG_DELETE
- At Sub-objects select Variants
- Press Change
On the next screen:
- Type the name for the Variant (here HOSTLOGS_60DAY)
- Press Create
The Edit Variants screen is opened.
Specify the 3 parameters based on the guidance given before.
Press Back (F3)
On the pop-up Save values? select Yes
Enter Description
Press Save
Schedule Batch Job
Once variants are created the report can be scheduled for batch execution via transaction SM36.
On the first screen, name the new job and choose the execution parameters by selecting Start condition.
A weekly execution is recommended.
Select Step, to specify the Name and the Variant of the ABAP program that must be executed.
In the ABAP program section set the Name to SISE_LOG_DELETE and select one of the previously created variants (e.g. HOSTLOGS_60DAY).
Save your changes to schedule the housekeeping report for execution.