Applies to: Exchange Server 2013
Topic Last Modified: 2013-02-18
Connectivity logging records the outbound connection activity that's used to transmit messages from a transport service on an Exchange server. Connectivity logging records the connection source, destination, number of messages and bytes transmitted, and connection failure information.
What do you need to know before you begin?
- Estimated time to complete: 15 minutes
- You need to be assigned permissions before you can perform this
procedure or procedures. To see what permissions you need, see the
"Transport service", "Front End Transport service", and "Mailbox
Transport service" entries in the Mail Flow
- You can use the Exchange admin center (EAC) to enabled or
disabled connectivity logging, or set the connectivity log path for
the Transport service only. For all other connectivity logging
options in other transport services, you need to use the Shell.
- For information about keyboard shortcuts that may apply to the
procedures in this topic, see Keyboard Shortcuts in
the Exchange Admin Center.
What do you want to do?
Use the EAC to configure connectivity logging in the Transport service
- In the EAC, navigate to Servers > Servers.
- Select the Mailbox server you want to configure, and then click
- On the server properties page, click Transport Logs.
- In the Connectivity log section, change any of the
- Enable connectivity log To disable
connectivity logging on the server, clear the check box. To enable
connectivity logging on the server, select the check box.
- Connectivity log path The value you
specify must be on the local Exchange server. If the folder doesn't
exist, it will be created for you when you click Save.
- Enable connectivity log To disable connectivity logging on the server, clear the check box. To enable connectivity logging on the server, select the check box.
Use the Shell to configure connectivity logging
To configure connectivity logging, run the following command:
<Set-TransportService | Set-MailboxTransportService | Set-FrontEndTransportService> <ServerIdentity> -ConnectivityLogEnabled <$true | $false> -ConnectivityLogMaxAge <dd.hh:mm:ss> -ConnectivityLogMaxDirectorySize <Size> -ConnectivityLogMaxFileSize <Size> -ConnectivityLogPath <LocalFilePath>
This example sets the following connectivity log settings in the Transport service on the Mailbox server named Mailbox01:
- Sets the location of the connectivity log files to D:\Hub
Connectivity Log. Note that if the folder doesn't exist, it will be
created for you.
- Sets the maximum size of a connectivity log file to
- Sets the maximum size of the connectivity log directory to
- Sets the maximum age of a connectivity log file to
Set-TransportService Mailbox01 -ConnectivityLogPath "D:\Hub Connectivity Log" -ConnectivityLogMaxFileSize 20MB -ConnectivityLogMaxDirectorySize 1.5GB -ConnectivityLogMaxAge 45.00:00:00
How do you know this worked?
To verify that you have successfully configured connectivity logging, do the following:
- In the Shell, run the following command:
<Get-TransportService | Get-FrontEndTransportService | Get-MailboxTransportService> <ServerIdentity> | Format-List ConnectivityLog*
- Verify the values displayed are the values you configured.