!--a11y-->
Registering Activity TracingYou have to register the paths for the TREX activity traces with the log viewer before you can view them there. The log server then recognizes the paths for as long as it continues to run. If you restart the log viewer server, you have to repeat the registration.

Refer also to SAP Note 621466 about the log viewer.
You have at least read access to the directory in which the TREX activity traces are located from the portal.
1. Determine the paths of the TREX activity traces.
You have to register the paths of all individual TREX activity traces. By default, TREX activity traces have the ending *.sat and are located on the TREX host at <TREX_DIR>\<trex_hostname>\trace\.

If you have a distributed TREX installation, you need to specify the paths for all TREX hosts.
2. Start the log viewer from the directory <j2ee_engine>\tools\. Connect to the log view server by choosing File ® Connect.
3. Determine the socket port of the log viewer server:
a. Start the configuration tool from the directory <j2ee_engine>\configtool\.
b. Choose cluster\server ® services ® logviewer. The required port is under socketport. The standard port is 5465.
4. Open a command prompt on the portal host.
5. Enter the following lines:
telnet
set LOCAL_ECHO
open <log_viewer_server> <socket_port>
REGISTER
<path_of_trex_activity_trace>#SATLog

This example shows you how to register the activity trace of the queue server.
telnet
set LOCAL_ECHO
open MyLogViewerHost 5465
READY#Logviewer#6.20
REGISTER
ready for registration
/mytrexshare/TrexQueueServer.sat#SATLog
DONE!
Connection to host lost.
6. Repeat the steps above for the activity traces of the other TREX servers.
If you have a distributed TREX installation, carry out these steps for all activity traces on all TREX hosts.
You can now display the TREX activity traces in the log viewer.

The Log Viewer is able to display the TREX trace files (*.trc) only in ASCII format. If you choose any other format (e.g. ListFormat), the trace file can not be displayed.
To view the trace files do the following: LogViewer ® add a file ® navigate to trace folder and choose the trace file ® mark the Format ASCIIFormat ® the trace file is shown