[This is pre-release documentation and subject to change in future releases. This topic's current status is: Milestone-Ready]

Topic Last Modified: 2010-04-09

Device Update service automatically creates log files that record device update activity. As part of your organization’s data management strategy, you may want to periodically purge the log files to free up disk space. You can also configure a time of day when Device Update service will automatically delete log files that are older than the number of days you configured the service to keep log files (by default, log files more than 10 days old).

Some settings, including the time of day that Device Update service automatically deletes expired log files, cannot be modified using Communications Server Control Panel. Instead, you must use Communications Server Management Shell. To specify the time of day to delete expired log files, use the New-CsDeviceUpdateConfiguration cmdlet with the –LogCleanUpTimeOfDay parameter. For details, see Communications Server Management Shell Help.

If you want, you can change these settings according to your organization’s requirements. If you do not want Device Update service to purge log files automatically, you can purge them manually, as needed. Log settings can be changed globally or per site.

Purging files permanently removes them from the file system. After you purge a file, it cannot be recovered.

To change logging settings

  1. Open Communications Server Control Panel.

  2. Click Clients, and then click Device Log Configuration.

  3. On the Device Log Configuration page, double-click the configuration that you want to change.

  4. In the Edit Log Setting dialog box, change any of the following settings as necessary:

    • Maximum file size (bytes) – How large a log file can become before it is purged. The default is 1024000 bytes (1 MB).

    • Maximum cache size (bytes) - The maximum amount of information (in bytes) that can be held in the log file cache before that cache must be cleared and the data written to a log file. The default is 512000 bytes (0.5 MB).

    • Number of minutes to flush cache (1-60) – Indicates how often information stored in the log file cache is written to the actual log file. (After the data has been logged the cache will be cleared.) The default is 5 minutes.

    • Number of days to keep log files (1-365) – How many days the log files are kept before they are purged. The default is 10 days.

  5. Click Commit.