- Kueppers-Board Blog Space - http://kueppers-board.de -
Exchange 2007 Log Files
Dieser Eintrag stammt von Bernstein_TK Am 21.11.2007 @ 12:33 In Windows Server, Exchange, Allgemein | Keine Kommentare
Einen sehr guter Beitrag bezogen auf die Logs von Exchange 2007 hat Bharat Suneja geschrieben.
[1] http://exchangepedia.com/blog/2007/11/exchange-server-2007-how-many-logs-hath.html
1. Setup Log: Exchange Server 2007 logs detailed setup-related information to the Setup log. Two log files are created in \ExchangeSetupLogs directory - 1) ExchangeSetup.msilog logs events related to extraction of Exchange files from the installer 2) ExchangeSetup.log has details about every step of the setup, including system status, pre-requisite checks, installation, configuration, etc. A shell script Get-SetupLog.ps1 (in the \Exchange Server\Scripts directory) is available to review setup information. More details in ‘Verifying an Exchange 2007 Installation” in product documentation.
2. Transaction logs: These are the familiar ESE Database write-ahead logs that we’ve seen since as long as Exchange’s ESE Databases have been around. These contain information about changes to the Exchange (Mailbox and Public Folder) Databases, which are committed in a batch.
In addition to the Mailbox and Public Folder Databases, Exchange Server 2007 also uses ESE databases for transport queues.
Transaction logs used to be 5 Mb. in previous versions. In Exchange Server 2007, the size has been reduced to 1 Mb. to accommodate new replication features. It’s important to note that
transaction logs belong to a Storage Group, not a particular Mailbox or Public Folder Database. These are perhaps the most important type of logs for the health of an Exchange server. More information about these in “[2] Understanding transaction logging“.
Transaction log-related configuration changes can be made using the Set-StorageGroup shell command. Basically, there’s not much to configure, except changing the path to move transaction logs to an alternate location - a different folder or on another volume. You can enable Circular Logging in scenarios where up-to-the-minute restores are not required, or during bulk mailbox moves where generation of an extraordinary number of log files is anticipated.
Parameters and defaults:
LogFolderPath: location of transaction logs for a Storage Group
CircularLoggingEnabled: false
LogFilePrefix: Prefixes are added to transaction log file names, starting with E00 for log files belonging to the first Storage Group on a server. View-only parameter.
LogFileSize: 1024 (file size in bytes). View-only parameter.
CopyLogFolderPath: location of transaction logs for LCR replicas
3. Message Tracking Logs: Message Tracking logs tell us what happens to a message at every step of the way in the transport pipeline. These are invaluable for troubleshooting mail flow problems. Many third-party reporting tools also use these as fodder to generate great-looking reports about messaging activity in Exchange environments. (Read previous post “[3] Exchange Server 2007: Message Tracking from the command line“)
Message Tracking logs on exist on mailbox and transport servers (Hub and Edge Transport) and are enabled by default. The relevant parameters (listed below) can be viewed/modified using
Get-TransportServer/Set-TransportServer commands. The Mailbox server equivalents are
Get-MailboxServer/Set-MailboxServer.
Parameters and defaults:
MessageTrackingLogPath: \Exchange Server\TransportRoles\Logs\MessageTracking
MessageTrackingLogEnabled: true
MessageTrackingLogSubjectLoggingEnabled: true
MessageTrackingLogMaxAge: 30.00:00:00 (30 days)
MessageTrackingLogMaxFileSize: 10Mb
MessageTrackingLogMaxDirectorySize: 250Mb
Access: Get-MessageTrackingLog shell command, or the Message Tracking tool in EMC.
4. SMTP Send and Receive Logs (aka “Protocol” logs): Exchange Server 2003/2000 had a single SMTP log, configured from SMTP Virtual Server properties in Exchange System Manager. Exchange Server 2007 splits these into SMTP Send and SMTP Receive logs. Gone is the per-SMTP Virtual Server granularity
(the equivalent would have been per-Receive Connector and per-Send Connector logs… note to Devin Ganger: Yes, Receive Connectors are not the same as SMTP Virtual Servers - they are roughly equivalent.. :). For more details about SMTP Send and Receive Logs, read previous post “[4] Exchange Server 2007: Logging SMTP Protocol Activity“.
Most settings for SMTP Send and Receive Logs are stored in the transport server configuration, just like Message Tracking Logs. However,
logging can be enabled/disabled on each individual Send and Receive Connector by using
Set-SendConnector and
Set-ReceiveConnector commands.
Parameter and defaults:
ProtocolLoggingLevel: None (to enable it, set it to verbose)
5. Agent Logs: Actions taken by anti-spam agents are logged in Agent Logs, and are a very welcome new addition to Exchange’s messaging hygiene/anti-spam features. More about Agent Logs in previous post “[5] Exchange Server 2007: Managing And Filtering Anti-Spam Agent Logs“.
Access: Agent logs can be accessed using the
Get-AgentLog shell command. There are no GUI interfaces to parse/search agent logs in the EMC.
6. Connectivity Logs: Records information about outbound SMTP connectivity to mailbox servers, smarthosts, or destination domains, including source queue, destination (mailbox server, smarthost, or domain), DNS resolution, connection failures, transmitted messages and bytes. Note, this is not SMTP (protocol) logging, but a more network-centric view of outbound connections. Connectivity Logs are not enabled by default. More details in “[6] Managing Connectivity Logging“.
Parameters and defaults:
ConnectivityLogEnabled: false
ConnectivityLogMaxAge: 30.00:00:00
ConnectivityLogMaxDirectorySize: 250Mb
ConnectivityLogMaxFileSize: 10Mb
ConnectivityLogPath: \Exchange Server\TransportRoles\Logs\Connectivity
7. Routing Table Logs: A snapshot of the transport server’s routing table is logged when the transport service starts, when a routing configuration change is detected, and at fixed interval (12 hours by default, configurable by modifying EdgeTransport.exe.config file). More details in “[7] Managing Routing Table Logging“.
Parameters and defaults:
RoutingTableLogMaxAge: 7.00:00:00 (7 days)
RoutingTableLogMaxDirectorySize: 50Mb
RoutingTableLogPath: \Exchange Server\TransportRoles\Logs\Routing
8. Messaging Records Management (MRM) Logs: Exchange Server 2003/2000’s Mailbox Manager feature, which is often compared to Managed Folders in Exchange Server 2007, sends a report to a designated mailbox about actions taken. It also has a Report Only mode. The Managed Folders Agent, which is responsible for applying Managed Folder Mailbox Policies to mailboxes, does no such reporting. However, it does provide detailed logs, which can be used to generate the required reports.
Messaging Records Management is more than simply cleaning up mailboxes. From a compliance standpoint, MRM logs are more important than others in the list. As such, it may be required to archive these for a longer period, depending on organizational policies. The MRM log defaults reflect this.
More details in “[8] How to Configure Messaging Records Management Logging“.
Parameters and defaults:
LogPathForManagedFolders: \Exchange Server\Logging\Managed Folder Assistant
LogFileAgeLimitForManagedFolders: 00:00:00
LogDirectorySizeLimitForManagedFolders: unlimited (per-Database, log files for the a Database have the same prefix. The limit is for log files for each Database, not a cumulative size limit for the directory)
LogFileSizeLimitForManagedFolders: 10MB
RetentionLogForManagedFoldersEnabled: False
JournalingLogForManagedFoldersEnabled: False
FolderLogForManagedFoldersEnabled: False
SubjectLogForManagedFoldersEnabled: False
9. IIS Logs: Client Access Servers log HTTP activity to IIS logs. OWA and EAS access is logged in IIS logs. Configuration of IIS logging is controlled from the IIS Manager console. IIS activity can be logged in a number of different log file formats: the default [9] W3C Extended (ASCII text, fields customizable), [10] IIS (fixed field, ASCII text, not customizable), [11] NCSA Common (fixed field, ASCII text, not customizable), and [12] ODBC (logged to ODBC-compliant databases like Microsoft Access and SQL Server, resource-intensive). More info about configuring IIS logs in “[13] Configuring IIS Logs (IIS 6.0)“.
IIS Logs and Exchange ActiveSync: Exchange Server 2007 also has a cmdlet/task for extracting ActiveSync data from IIS logs and generating reports - Export-ActiveSyncLog. More info about EAS reporting in Exchange ActiveSync Reporting Services.
10. POP3 and IMAP4 Protocol Logs: Protocol logging for POP3 and IMAP4 protocols is
disabled by default. This can be enabled [14] by editing the related config files. The logs are not kept around for too long - the default is 24 hours, just enough to allow for troubleshooting recent issues. In most environments, these logs lose value quite rapidly - keeping them for extended periods is unnecessary, unless mandated by compliance policies in your organization.
POP3 log configuration: Microsoft.Exchange.Pop3.exe.config file
IMAP4 protocol log: Microsoft.Exchange.Imap4.exe.config file
Location: \Exchange Server\ClientAccess\PopImap
Parameters and defaults:
ProtocolLog: false (disabled by default, change this key to true in above config files for each protocol to enable logging)
AgeQuotaInHours: 24 hours
SizeQuota: 10000000 (10 million bytes / approx 9.54 Mb)
PerFileSizeQuota: 1000000 (1 million bytes / approx 976 Kb)
11. Certificate Logging: Certificate logs can be used to troubleshoot certificate-related problems for SMTP, POP3 and IMAP4 protocols. Though certificate-related issues are logged in the Application Event Log,
Exchange Server 2007 SP1 adds the functionality to log more detailed information to a log file. In addition to the above, verbose information can be exposed/output in the Exchange shell when using the Get-ExchangeCertificate, New-ExchangeCertificate, and Enable-ExchangeCertificate commands, by adding an xml snippet to the Powershell.config file. The configuration options are discussed in “[15] How to Enable Certificate Logging” in Exchange documentation.
12. Cluster Log: In clustered environments, Windows Server 2003/2008 OS maintains a cluster log with detailed information about cluster events like initialization, node addition/removal, resource states, failovers, etc. The Cluster service also logs important event information to Windows event logs. However, for in-depth troubleshooting and diagnostics, the cluster log has the beef. More information about the Cluster log in “[16] Cluster Log Basics“.
Location: <systemroot>\Cluster
13. Pipeline Tracing Logs: Pipeline tracing is used to troubleshoot transport agents. It logs email messages as they traverse the transport pipeline, including message content and actions taken by transport agents. Pipeline tracing is configured using the Set-TransportServer command.
More info in “[17] Using Pipeline Tracing to Diagnose Transport Agent Problems“.
Parameters:
14. Application Event Log: Last, but not the least, Exchange logs plenty of information to the Application Event Log. The level of logging is set to lowest for most Exchange services and processes. Each event log entry has a numeric identifier - the Event ID, and a well-defined structure. Events in Windows event logs can be accessed using the Event Viewer console, which provides a rich UI for viewing, searching and filtering event log entries. Other acess methods include interfaces like WMI. Windows PowerShell (and therefore, the Exchange shell) also provide a way to quickly access event log information from the command-line, using the Get-EventLog command.
Diagnostic Logging and Exchange Server 2007: Every once in a while you run into issues that require more information from different Exchange services/processes, than what’s logged to the Application event log by default, in order to troubleshoot them. Such detailed logging is not required for normal operations.
Diagnostic Logging levels: You can change the level of detail Exchange services/processes log to the Application Event Log when diagnostic logging is enabled. The different levels:
0 - Lowest
1 - Low
3 - Medium
5 - High
7 - Expert
If left turned on, diagnostic logging can quickly flood event logs, making it difficult to locate other important events or having them purged from logs based on size and age restrictions. Bump up diagnostic logging to troubleshoot issues, and remember to turn it off once done.
To bump up diagnostic logging for a particular Exchange process/service ([18] here’s a list of processes with configurable event log levels) - the Categorizer in this case, to level 7 (expert):
Set-EventLogLevel MSExchangeTransport\Categorizer -Level 7
More information about diagnostic logging in “[19] Diagnostic Logging for Exchange Processes“.
Dieser Artikel wurde ausgedruckt ab Kueppers-Board Blog Space: http://kueppers-board.de
URL zum Artikel: http://kueppers-board.de/2007/11/21/exchange-2007-log-files/
URLs in this post:
[1] http://exchangepedia.com/blog/2007/11/exchange-server-2007-how-many-logs-hath.html: http://exchangepedia.com/blog/2007/11/exchange-server-2007-how-many-logs-hath.ht
ml
[2] Understanding transaction logging: http://technet.microsoft.com/en-us/library/bb331951.aspx
[3] Exchange Server 2007: Message Tracking from the command line: http://exchangepedia.com/blog/2006/10/exchange-server-2007-message-tracking.html
[4] Exchange Server 2007: Logging SMTP Protocol Activity: http://exchangepedia.com/blog/2007/05/exchange-server-2007-logging-smtp.html
[5] Exchange Server 2007: Managing And Filtering Anti-Spam Agent Logs: http://exchangepedia.com/blog/2007/04/managing-and-filtering-anti-spam-agent.htm
l
[6] Managing Connectivity Logging: http://technet.microsoft.com/en-us/library/bb124500.aspx
[7] Managing Routing Table Logging: http://technet.microsoft.com/en-us/library/bb125148.aspx
[8] How to Configure Messaging Records Management Logging: http://technet.microsoft.com/en-us/library/bb397218.aspx
[9] W3C Extended : http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/67640
0bc-8969-4aa7-851a-9319490a9bbb.mspx?mfr=true
[10] IIS: http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/be22e
074-72f8-46da-bb7e-e27877c85bca.mspx?mfr=true
[11] NCSA Common: http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/b344f
84e-bc77-4019-859c-9d483bc85c77.mspx?mfr=true
[12] ODBC: http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/8ea48
fac-28c0-46ae-9b7a-e4682dae3264.mspx?mfr=true
[13] Configuring IIS Logs (IIS 6.0): http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/b344f
84e-bc77-4019-859c-9d483bc85c77.mspx?mfr=true
[14] by editing the related config files: http://technet.microsoft.com/en-us/library/aa997690.aspx
[15] How to Enable Certificate Logging: http://technet.microsoft.com/en-us/library/bb851489.aspx
[16] Cluster Log Basics: http://www.microsoft.com/technet/prodtechnol/windows2000serv/reskit/distrib/dsdg
_icl_kzns.mspx?mfr=true
[17] Using Pipeline Tracing to Diagnose Transport Agent Problems: http://technet.microsoft.com/en-us/library/bb125198.aspx
[18] here’s a list of processes with configurable event log levels: http://technet.microsoft.com/en-us/library/bb201661.aspx
[19] Diagnostic Logging for Exchange Processes: http://technet.microsoft.com/en-us/library/bb201668.aspx
Klicken hier zum Drucken.