How to Generate and Read CRS Log FilesID: Q177748
|
To troubleshoot Content Replication System (CRS), you can generate and analyze log files.
CRS Information None 15024 Summary information for replication of
project test to server WILLBELL:
Total Scanned : 1733 Files 257684188 Bytes
Actually Sent : 8 Files 133877 Bytes
Not Sent due to match : 1599 Files 257550311 Bytes
CRS None None 15018 Replication for project test completed
sucessfully.
CRS Information None 15017 Replicaton for project test started by
user willbell with flags NONE.
CRS Information None 15015 Content Replication Service started
successfully.
CRS Information None 15016 Content Replication Service shutdown
successfully.
To save event logs, click Save As on the Log menu. If the file is large,
select Event Log Files (*.EVT) as the Save As type. It is also useful to
clear the Application log before doing a replication. Always verify that
there are no hardware-related problems in the System log.
crs stop
crs setglobal fulllogging=YES
crs start
This will add the registry key FullLogging with a value of YES to the
Windows NT Registry. You can check this either with the command:
Crs queryglobal
Or, you can add the registry value manually with Regedt32.exe. If you edit
the registry, be aware of the following:
WARNING: Using Registry Editor incorrectly can cause serious problems that may require you to reinstall Windows. Microsoft cannot guarantee that problems resulting from the incorrect use of Registry Editor can be solved. Use Registry Editor at your own risk.To add the FullLogging value:
For information about how to edit the registry, view the "Changing Keys And Values" online Help topic in Registry Editor (Regedit.exe) or the "Add and Delete Information in the Registry" and "Edit Registry Data" online Help topics in Regedt32.exe. Note that you should back up the registry before you edit it.
HKEY_LOCAL_ MACHINE\SOFTWARE\Microsoft\CRS
Value Name: FullLogging
<Site Server Root>:\CRS\LogfilesThere are three different log files:
CRS.LOGCrs.log is created if you use the CRS command line interface. This file will be renamed Crs.old when CRS is stopped and restarted. Webadmin.log is only generated if you open the CRS Web Administration page. This file is kept locked by the World Wide Web Publishing Service even after CRS is stopped. Thus the only way to delete or rename the Webadmin.log file is to stop and restart the WWW service. Both of these files will give information such as this the creation of a socket. Generally these files do not contain useful information.
CRSSRV.LOG
WEBADMIN.LOG
HKEY_LOCAL_MACHINE\Software\Microsoft\CRS
Value Name: LogLimit
Data Type: REG_DWORD
Radix: Dec
Value: 25165824
Net Stop CRS-OR-
Net Start CRSIn this example, a LogLimit value of 25165824 will produce a Crssrv.log file that will grow up to 24 MB. Then it will roll over to the Crssrv.old file. Thus you will get a total of 48 MB (24 MB+24 MB) of data.
Net time \\<machine_name> /SetThere are six types of possible log entries:
DBG = Debug
INF = Information
WRN = Warning
ERR = Error
FTL = Fatal
UNK = Unknown.
Most of the events are marked DBG and the error number is zero. If the type
is not DBG or INF, you will also get an Error Number.
11/21/97 15:55:33 WRN 10053 183 recv
@E:\77fre\server\crs\crsdll\cserve.cpp 1876
First, you should notice that the type is not set to ERR. Most of the time
CRS will write a Windows NT Event as an error but in the log it has the WRN
type. This is what was written to the Application Log:
11/21/97 3:55:33 PM CRS Error None 15162 Waiting to abort project
CRSVIEW after losing connection with source machine.
Second, the error code written to the event log (in this case 15162) is
different from the error number in the log (in this case 10053).
Additional query words: replicate site server
Keywords : kbnetwork
Version :
Platform : winnt
Issue type : kbinfo
Last Reviewed: July 16, 1999