Where are Exchange logs location for Exchange Server Subscription Edition

Yvonne 30 Reputation points
2026-01-08T17:36:18.95+00:00

Can anyone tell me where all the Exchange logs are located?

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.

0 comments No comments

4 answers

Sort by: Oldest
  1. AI answer

    2026-01-08T17:36:25.1266667+00:00

    In Exchange Server Subscription Edition, the logs are typically located in the following default directories:

    1. Transport Logs:
      • Agent Logs:
        • Mailbox servers (Front End Transport service): %ExchangeInstallPath%TransportRoles\Logs\FrontEnd\AgentLog
        • Mailbox servers (Transport service): %ExchangeInstallPath%TransportRoles\Logs\Hub\AgentLog
        • Edge Transport servers: %ExchangeInstallPath%TransportRoles\Logs\Edge\AgentLog
    2. Protocol Logs:
      • Mailbox servers (Receive connectors): %ExchangeInstallPath%TransportRoles\Logs\FrontEnd\ProtocolLog\SmtpReceive
      • Mailbox servers (Send connectors): %ExchangeInstallPath%TransportRoles\Logs\FrontEnd\ProtocolLog\SmtpSend
      • Edge Transport servers (Receive connectors): %ExchangeInstallPath%TransportRoles\Logs\Edge\ProtocolLog\SmtpReceive
      • Edge Transport servers (Send connectors): %ExchangeInstallPath%TransportRoles\Logs\Edge\ProtocolLog\SmtpSend
    3. Queue Database Logs:
      • The queue database and transaction logs are located at %ExchangeInstallPath%TransportRoles\data\Queue.

    You can run commands in the Exchange Management Shell to determine the specific log paths being used for your server setup.

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

  2. Yvonne 30 Reputation points
    2026-01-08T17:37:02.5833333+00:00

    Which powershell can I run to see the log age?

    Was this answer helpful?

    0 comments No comments

  3. Anonymous
    2026-01-09T02:39:16.1333333+00:00

    Hi Yvonne

    Thank you for reaching out to Microsoft Q&A forum.

    Based on your question, beside Q&A Assist support, I would like to share some additional information:

    In Exchange Server Subscription Edition (SE), log locations are the same as recent on - premises Exchange versions (Exchange 2016/2019), unless they were manually changed in the configuration.

    • Main Exchange logging folder: C:\Program Files\Microsoft\Exchange Server\V15\Logging\
    • Mail flow & transport logs: %ExchangeInstallPath%\TransportRoles\Logs\

    Includes message tracking, protocol (SMTP send/receive), agent, routing, and connectivity logs.

    • IIS (OWA, ECP, EWS, ActiveSync) logs: C:\inetpub\logs\LogFiles\
    • Exchange setup / upgrade logs: C:\ExchangeSetupLogs\ExchangeSetup.log

    Please note that actual paths can be customized. To confirm the configured paths on your server, you can also check via Exchange Management Shell.

    For official Microsoft documentation, please refer to: Transport logs in Exchange Server | Microsoft Learn

    Checking log age using PowerShell

    To check the oldest or newest log files in a specific folder (example: Message Tracking):

    Oldest log files

    Get-ChildItem "C:\Program Files\Microsoft\Exchange Server\V15\TransportRoles\Logs\MessageTracking" -Recurse |
    Sort-Object LastWriteTime |
    Select-Object -First 5 FullName, LastWriteTime
    

    Newest log files

    Get-ChildItem "C:\Program Files\Microsoft\Exchange Server\V15\TransportRoles\Logs\MessageTracking" -Recurse |
    Sort-Object LastWriteTime -Descending |
    Select-Object -First 5 FullName, LastWriteTime
    

    To list logs older than a specific number of days (example: 30 days):

    $Days = 30
    Get-ChildItem "C:\Program Files\Microsoft\Exchange Server\V15\TransportRoles\Logs" -Recurse |
    Where-Object { $_.LastWriteTime -lt (Get-Date).AddDays(-$Days) } |
    Select FullName, LastWriteTime
    

    To confirm configured log paths (in case defaults were changed):

    Get-TransportService | Format-List *LogPath*
    

    I hope these suggestions provide some helpful.


    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. 

    Was this answer helpful?


  4. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

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.