Share via

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

1 answer

Sort by: Most helpful
  1. Miles 1,286 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.