none
Message tracking log "MSGTRKMD" automatically deleted before 30 days in Exchange2013 RRS feed

  • Question

  • Hi 

    We have enable message tracking for 40days, but MSGTRKMD files automatically deleted after 20 to 25 days once it rechaed the all file size near 1GB.

    due to this we are unable to see complete delivery information about the messages.

    thanks



    Wednesday, January 4, 2017 1:29 PM

Answers

  • Hi,

    Generally, the log file rotation functionality deletes the oldest log files when either of the following conditions is true:

    A log file reaches its maximum specified age;
    The message tracking log directory reaches its maximum specified size.

    The MessageTrackingLogMaxDirectorySize parameter specifies the maximum size of the message tracking log directory. When the maximum directory size is reached, the server deletes the oldest log files first.

    You can run "Get-TransportService | Select MessageTrackingLogMax*" to check the value "MessageTrackingLogMaxDirectorySize", the default value is 1000MB.

    Then we can use the following command to change the value to 2GB:

    Set-TransportService ex2013servername -MessageTrackingLogMaxDirectorySize 2000MB


    Best Regards,
    David Wang
    TechNet Community Support


    Please remember to mark the replies as answers if they helped.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.





    Thursday, January 5, 2017 2:38 AM
    Moderator

All replies

  • Hi 

    We have enable message tracking for 40days, but MSGTRKMD files automatically deleted after 20 to 25 days once it rechaed the all file size near 1GB.

    due to this we are unable to see complete delivery information about the messages.

    thanks



    are you running any scripts outside of Exchange to clean up other logs?  Maybe its including the directory for the message tracking logs.

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread

    Wednesday, January 4, 2017 2:11 PM
  • Hi,

    Generally, the log file rotation functionality deletes the oldest log files when either of the following conditions is true:

    A log file reaches its maximum specified age;
    The message tracking log directory reaches its maximum specified size.

    The MessageTrackingLogMaxDirectorySize parameter specifies the maximum size of the message tracking log directory. When the maximum directory size is reached, the server deletes the oldest log files first.

    You can run "Get-TransportService | Select MessageTrackingLogMax*" to check the value "MessageTrackingLogMaxDirectorySize", the default value is 1000MB.

    Then we can use the following command to change the value to 2GB:

    Set-TransportService ex2013servername -MessageTrackingLogMaxDirectorySize 2000MB


    Best Regards,
    David Wang
    TechNet Community Support


    Please remember to mark the replies as answers if they helped.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.





    Thursday, January 5, 2017 2:38 AM
    Moderator
  • This is not the case.

    We have already modify the required values.

    Max directory size is 20 GB and 90 days period. All logs are in the directory for 90 days but MSGTRKMD log are missing or deleted once it reaches to around 995MB.


    Friday, January 6, 2017 11:40 AM
  • No we are not running and script to clear the logs files.
    Friday, January 6, 2017 11:40 AM
  • Hi,

    How many mailbox servers in your environment?

    Have you run the command above in the every mailbox server?

    Also confirm if you have some third party program in your exchange servers.


    Best Regards,
    David Wang
    TechNet Community Support


    Please remember to mark the replies as answers if they helped.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Monday, January 9, 2017 7:01 AM
    Moderator
  • We have 18 servers in environment and all servers are in same configuration.

    we ran this command in all 18 servers.


    • Edited by Am230089 Monday, January 9, 2017 8:49 AM correction
    Monday, January 9, 2017 8:49 AM
  • Hi,

    Did you ever get to the bottom of this? I have what seems like a very similar problem:

    MessageTrackingLogEnabled            : True
    MessageTrackingLogMaxAge                 : 90.00:00:00
    MessageTrackingLogMaxDirectorySize  : 4 GB (4,294,967,296 bytes)
    MessageTrackingLogMaxFileSize        : 10 MB (10,485,760 bytes)

    I have logs going back to 11th June (todays date 24/7/2017) on all log types other than msgtrkmd* where the oldest available is 24/06/2017.

    I only have one server in my environment

    Thanks,

    Dan

    Monday, July 24, 2017 10:30 AM