exchange默认的SMTP等protocol log保留时间如何调整

连国 于 570 Reputation points
2024-08-02T02:14:19.49+00:00

您好

近期发现客户环境中用户的exchange服务器上的SMTP日志都只剩下4天的,又看了其他的protocol log也是4天,,是所有服务器同时出现的这个情况。

是什么原因导致的,是默认配置吗?还是说做了什么调整?

如何调整protocol log的保留时间期限。

Exchange Server
Exchange Server
A family of Microsoft client/server messaging and collaboration software.
1,297 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,634 questions
0 comments No comments
{count} votes

Accepted answer
  1. Mike Hu-MSFT 4,135 Reputation points Microsoft Vendor
    2024-08-02T08:54:44.6033333+00:00

    您好,

    欢迎来到微软论坛

    Exchange 服务器上的协议日志保留期限默认不是四天,所以可能是配置被调整过。

    使用以下命令来查看当前的日志配置:

    Get-TransportService | fl *logmaxage* 
    

    如果你想调整指定服务器上的SMTP日志保留时间,可以使用以下命令:

     Set-TransportService -Identity <ServerName> -ProtocolLogMaxAge <TimeSpan> 
    

    例如,将日志保留时间设置为30天:

    Set-TransportService -Identity "Server1" -ProtocolLogMaxAge 30.00:00:00 
    
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.