question

38481998 avatar image
0 Votes"
38481998 asked Miles-MSFT answered

size messagetrackinglog

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

два сервера 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-server-2016
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

Miles-MSFT avatar image
0 Votes"
Miles-MSFT answered

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.