question

ElvinMammadov-7519 avatar image
0 Votes"
ElvinMammadov-7519 asked YukiSun-MSFT commented

Exchange Server Logs Max Age is 30 days, but in reality not

Hello,

We are using Exchange Server 2016. We checked the maximum age of SMTP logs with the command and it shows it is 30 days, but we see tha it keeps only the last 2 days logs. The size of folder is not even 100mb. How can we solve the problem? The following are the folders we normally check. Thank you.

D:\Exchange Server\V15\TransportRoles\Logs\FrontEnd\ProtocolLog\SmtpSend
D:\Exchange Server\V15\TransportRoles\Logs\Hub\ProtocolLog\SmtpSend
D:\Exchange Server\V15\TransportRoles\Logs\FrontEnd\ProtocolLog\SmtpReceive
D:\Exchange Server\V15\TransportRoles\Logs\Hub\ProtocolLog\SmtpReceive

office-exchange-server-administrationoffice-exchange-server-mailflow
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

YukiSun-MSFT avatar image
0 Votes"
YukiSun-MSFT answered YukiSun-MSFT commented

Hi @ElvinMammadov-7519,

Have you checked if the size of the log file or folder is reaching the maximum size limit?
By default, the maximum protocol log file size is 10 MB and the maximum protocol log directory size is 250 MB. We can run the command below to check the settings for the folders you listed above:

 Get-FrontEndTransportService | Format-List ReceiveProtocolLog*,SendProtocolLog*
 Get-TransportService | Format-List ReceiveProtocolLog*,SendProtocolLog*

98445-1.jpg

If this is the case, it's suggested to try increasing the maximum size settings and see how it goes:

 < Set-FrontEndTransportService |  Set-TransportService > <ServerIdentity> -ReceiveProtocolLogMaxFileSize <Size> -ReceiveProtocolLogMaxDirectorySize <Size> -SendProtocolLogMaxFileSize <Size> -SendProtocolLogMaxDirectorySize <Size>

For more informaiton about configuring protocol logs, hopefully you can find the document below useful:
Configure protocol logging


If an Answer is helpful, please click "Accept Answer" and upvote it.
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.


1.jpg (103.7 KiB)
· 2
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.

Thank you very much for your comprehensive answer.

0 Votes 0 ·

My pleasure :)

0 Votes 0 ·