Get-MessageTrackingLog not getting results of last 15 days in exchange 2016

Mani 476 Reputation points
2023-09-01T08:48:25.4466667+00:00

Hello all,

I'm trying to get the message trace for 14 Aug with the below command in Exchange 2016

Get-MessageTrackingLog -ResultSize Unlimited -Start "08/14/2023 03:00AM" -End "8/14/2023 10:00PM"

but it is not providing results for me (Attached SS for reff)

Can someone suggest how can i get those messages

We want to check one particular message which was sent on 14 th of Aug.

User's image

Exchange | Exchange Server | Management
Exchange | Exchange Server | Management
The administration and maintenance of Microsoft Exchange Server to ensure secure, reliable, and efficient email and collaboration services across an organization.
Exchange | Hybrid management
Exchange | Hybrid management
The administration of a hybrid deployment that connects on-premises Exchange Server with Exchange Online, enabling seamless integration and centralized control.
0 comments No comments
{count} votes

Answer accepted by question author
  1. Anonymous
    2023-09-06T02:44:53.5033333+00:00

    Hello @mani,

    I checked the screenshot you provided, the "MessageTrackingLogMaxAge" parameter specifies the message tracking log maximum file age. I see that the value of this parameter in your environment is 30 days. Logically speaking, there should be no problem. You should be able to view content within the past 30 days.

    So, I checked about the description of other parameters in your screenshot. It seems that "-MessageTrackingLogMaxDirectorySize" will also affect the record. When the maximum directory size is reached, the server will delete the oldest log file first. So, I'm guessing it might have something to do with this.

    Currently, unfortunately, you can no longer view records for "14 th Aug" as it has likely been deleted by the server. But you can reset the values of these parameters now so that you can view the records later.

    User's image

    Please check this: Set-TransportService you can set the value you want according to your needs.


1 additional answer

Sort by: Most helpful
  1. Anonymous
    2023-09-04T02:17:17.87+00:00

    Hi @Mani,

    If I understand you correctly, you only want to find results for the day August 14th.

    Please use the following shell command, which works fine in my environment.

    Get-MessageTrackingLog -Start "08/29/2023 03:00AM" -End "08/29/2023 10:00PM"

    User's image

    Regards

    Shaofan


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". 

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.  


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.