size messagetrackinglog

2021-07-12T09:00:08.053+00:00

Здравствуйте,

два сервера Exchange 2016 в DAG.

выставил настройки:

Name                               : MAIL01
MessageTrackingLogEnabled          : True
MessageTrackingLogPath             : d:\TransportRoles\Logs\MessageTracking
MessageTrackingLogMaxFileSize      : 15 MB (15,728,640 bytes)
MessageTrackingLogMaxDirectorySize : 8 GB (8,589,934,592 bytes)
MessageTrackingLogMaxAge           : 30.00:00:00

Name                               : MAIL02
MessageTrackingLogEnabled          : True
MessageTrackingLogPath             : d:\TransportRoles\Logs\MessageTracking
MessageTrackingLogMaxFileSize      : 15 MB (15,728,640 bytes)
MessageTrackingLogMaxDirectorySize : 8 GB (8,589,934,592 bytes)
MessageTrackingLogMaxAge           : 30.00:00:00

но папка с логами занимает всего 500 Мб, там логи за один день, подскажите в чем может быть проблема ?

Windows for business | Windows Server | User experience | Other
0 comments No comments

2 answers

Sort by: Most helpful
  1. Ceyhun KIRMIZITAS 0 Reputation points Microsoft External Staff
    2026-10-04T00:42:44.5066667+00:00

    I would first verify the effective Message Tracking configuration on both Exchange servers and compare the values side by side.

    For example:

    Get-TransportService | fl Name,MessageTrackingLogPath,MessageTrackingLogMaxAge,MessageTrackingLogMaxDirectorySize,MessageTrackingLogMaxFileSize
    

    In a multi-server environment, I would also review the other transport log paths to make sure the logging configuration is consistent across the Exchange servers.

    I recently published ExchangeLogPathManager.ps1 on GitHub for this purpose. The script can review supported transport log paths across multiple Exchange servers, compare source and target servers, preview proposed changes, apply supported path changes, and verify the resulting configuration.

    GitHub repository:

    https://github.com/Ceyhun-Kirmizitas/ExchangeLogPathManager.ps1

    Detailed article and usage examples:

    https://ceyhunkirmizitas.net/manage-exchange-server-transport-log-paths/

    Was this answer helpful?

    0 comments No comments

  2. Miles 1,291 Reputation points
    2021-07-13T02:38:03.56+00:00

    Hi

    Here is an example which changes all paramenters at once:
    Set-TransportService Mailbox_Server -MessageTrackingLogEnabled $true -MessageTrackingLogPath “M:\logs” -MessageTrackingLogMaxFileSize 30MB -MessageTrackingLogMaxDirectorySize 2.5GB -MessageTrackingLogMaxAge 365.00:00:00

    The cmdlet above turns on message tracking for Mailbox_Server and sets the log storage to M:\logs. Size limit for a single log file is changed to 30 MB. It is mostly a cosmetic change, which controls the number of log files – the greater the limit, the less csv are created every day. The max directory size (before the oldest files are overwritten) is set to 2.5GB, and the log files are kept for 365 days.
    Setting the –MessageTrackingLogMaxAge to 00:00:00 will let you keep message tracking logs for an indefinite period.

    We could refer to this link which may be helpful to solve your problem.
    https://www.codetwo.com/admins-blog/message-tracking-logs-exchange/
    Please note: Information posted in the given link is hosted by a third party. Microsoft does not guarantee the accuracy and effectiveness of information.

    Also, this Q&A forum is only supported by English.
    Thanks for your understanding and cooperating.


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.