Skip to content

Purging Logs and Trace Files

Set up a schedule for purging log and trace files. You can also purge them immediately, on demand.

Context

Server logs are archived after seven days and purged. The archive is kept for up to 23 days, and then deleted. If you set purge settings, they will purge data from either the technical logs or the archived logs, depending on the setting you choose. For example, if you choose "Keep for last 2 Weeks", the data is automatically deleted from the technical log when it is archived after seven days, and deleted from the archived log after seven days.

Server logs are purged when the database reaches the size (threshold) you specify, or at the frequency you specify. For example, the following deploy option sets the threshold to 80, so server logs are purged when the database is 80% full:

-Dcom.sap.mobile.platform.server.threshold.logpurge.threshold=80

The following deploy option sets the purge frequency to 600 seconds:

-Dcom.sap.mobile.platform.server.threshold.logpurge.freq=600

Procedure

  1. In Mobile Services cockpit, select Settings > Log Settings.

    You can see the existing components, log level details, and event log information.

  2. Under Purge Settings

    1. Select the number of days (1–30) to keep server error logs.
    2. Select the number of days (1–30) to keep server success logs.
    3. Select the number of days (1–30) to keep client error logs.
    4. Select the number of days (1–30) to keep client success logs.
    5. Select the number of days (1–30) to keep error trace logs.
    6. Select the number of days (1–30) to keep success trace logs.
  3. To immediately delete all log and trace files from the database, click Purge Now.

Last update: August 12, 2020