Log descriptions
When you start an application that uses SOFARPC, a logs folder is created by default, and related log files are generated.
Log list
Log name | Description |
rpc/rpc-registry.log | Logs for service endpoint subscription and acceptance. |
rpc/tr-threadpool.log | Logs for the service connection pool. This log is supported by SOFABoot. |
rpc/rpc-default.log | SOFARPC INFO and WARN logs. No standard format. |
rpc/common-error.log | SOFARPC error logs. No standard format. |
rpc/rpc-remoting.log | Network-layer logs. No standard format. |
rpc/sofa-router.log | Logs related to SOFARouter. No standard format. |
rpc/rpc-remoting-serialization.log | Network-layer serialization logs. No standard format. |
tracelog/rpc-client-digest.log | SOFARPC client call summary logs. |
tracelog/rpc-server-digest.log | SOFARPC server-side call summary logs. |
tracelog/rpc-profile.log | SOFARPC processing performance logs. |
confreg/config.client.log | Logs for the service registry client. |
SOFATracer logs
After SOFATracer is integrated with SOFARPC 5.4.0 or later, the following trace logs are also generated.
By default, logs for the open source edition are in JSON format, and logs for the Enterprise Edition are comma-separated.
New fields may be added to the logs periodically. These new fields are appended to the end of the log and do not affect existing fields. If the number of fields in your log does not match the number described in this topic, compare the fields in the order that they appear. For information about new fields, contact technical support.
RPC client summary log
The rpc-client-digest.log file contains Remote Procedure Call (RPC) client summary logs. The following is a sample log:
2024-05-29 12:31:18.522,bff-account,0a65******6634,0.1,com.aliyun.gts.financial.showcases.sofa.facade.api.PointQueryService:1.0,getPoint,bolt,sync,127.0.0.1:12200,point-center,,,,,00,1002B,166B,4ms,0ms,0ms,4ms,SOFA-SEV-REST-BIZ-8341-89-T6,REGISTRY,,,,127.0.0.1,50286,,,,version=blue&,,R1=-1&R2=12&R3=110&R4=-1&R5=74/52&,171******8521,The following table describes the keys.
Key | Description |
timestamp | Time when the log was printed |
local.app | Client application name |
traceId | TraceId For more information, see TraceId and SpanId generation rules. |
spanId | SpanId |
service | Service interface information |
method | Invoked method |
span.kind | Span type |
protocol | Protocol Type. Valid values: bolt, rest. |
invoke.type | Invocation type. Valid values:
|
remote.ip | Destination IP address |
remote.app | Server-side application name |
remote.zone | Destination zone |
remote.idc | Destination IDC |
remote.city | Destination city |
user.id | User ID |
result.code | Result code. Valid values:
|
req.size | Request data size |
resp.size | Response data size |
client.elapse.time | Total time consumed by the call, in ms. |
client.conn.time | Time consumed by the client connection, in ms. |
req.serialize.time | Time consumed to serialize the request, in ms. |
outtime | Reference time for timeout, in ms. |
current.thread.name | Current thread name |
route.record | Routing record. This records the route selection process. |
elastic.id | Elastic data bit |
be.elastic | Indicates whether the service for this call requires elasticity:
|
elastic.service.name | Name of the forwarded method. |
local.client.ip | Source IP address |
local.client.port | Local client port |
local.zone | Local zone |
target.ip.in.one.physical | Indicates whether the destination IP address is on the current physical server:
|
sys.baggage | System pass-through baggage data |
bus.baggage | Business pass-through baggage data |
send.time | Time consumed by the RPC request |
phase.time | Time consumed in each phase, in ms. |
special.time.mark | Special time point marker |
router.forward | Routing forward details |
RPC server-side summary log
The rpc-server-digest.log file contains RPC server-side summary logs. The following is a sample log:
2014-06-19 17:14:35.006,client,0ad1348f140****2750021003,0.1,com.alipay.cloudenginetest.services.SofaApiWebReferenceLocalFalseTrService:1.0,service_method,TR,,10.**.**.143,client,,,12ms,0ms,HSFBizProcessor-4-thread-2,00,,F,1000ms,zue:l;ztg:r,mark=T&uid=a2&The following describes the corresponding keys:
Key | Description |
timestamp | Time when the log was printed |
local.app | Client application name |
traceId | TraceId |
spanId | SpanId |
service | Service interface information |
method | Invoked method |
protocol | Protocol Type. Valid values: bolt, rest. |
invoke.type | Invocation type. Valid values:
|
remote.ip | Caller IP address |
remote.app | Caller application name |
remote.zone | Caller zone |
remote.idc | Caller IDC |
biz.impl.time | Time consumed to process the request, in ms. This does not include the time for server-side response serialization and deserialization. |
resp.serialize.time | Time consumed to serialize the response, in ms. |
current.thread.name | Current thread name |
result.code | Return code. Valid values:
|
elastic.service.name | Indicates that the current call is a forwarded call. It includes the forwarded service name and method value. |
be.elasticc | Indicates whether this service was forwarded:
|
server.pool.wait.time | Server-side thread pool wait time, in ms. |
sys.baggage | System pass-through baggage data |
bus.baggage | Business pass-through baggage data |
server.send.time | Time consumed to forward the RPC request |
req.size | Request data size |
resp.size | Response data size |
phase.time | Details of time consumed in each phase |
special.time | Special time point marker |
router.forward | Routing forward details |
RPC client statistics log
The rpc-client-stat.log file contains RPC client statistics logs. The stat.key is a set of statistical keywords for the current time period. This set uniquely identifies a statistical entry and includes the local.app, remote.app, service.name, and method.name fields. The following is a sample log:
2014-06-19 17:14:02.186,client,client,com.alipay.cloudenginetest.services.SofaApiWebReferenceLocalFalseTrService:1.0,service_method,1,79,Y,T,RZ00BThe following describes the corresponding keys:
Key | Description | |
time | Time when the log was printed | |
stat.key | local.app | Client application name |
remote.app | Server-side application name | |
service.name | Service name | |
method.name | Method name | |
count | Number of calls | |
total.cost.milliseconds | Total time consumed by the request | |
success | Call result:
| |
load.test.mark | Indicates whether the current operation is part of an end-to-end stress test:
| |
remote.zone | Destination zone | |
RPC server-side statistics log
The rpc-server-stat.log file contains RPC server-side statistics logs. The stat.key is a set of statistical keywords for the current time period. This set uniquely identifies a statistical entry and includes the local.app, remote.app, service.name, and method.name fields. The following is a sample log:
2014-06-19 17:14:02.186,client,client,com.alipay.cloudenginetest.services.SofaApiWebReferenceLocalFalseTrService:1.0,service_method,1,7,Y,T,GZ00BThe keys are described as follows:
Key | Description | |
time | Time when the log was printed | |
stat.key | local.app | Client application name |
remote.app | Server-side application name | |
service.name | Service name | |
method | Method name | |
count | Number of calls | |
total.cost.milliseconds | Total time consumed by the request | |
success | Call result:
| |
load.test.mark | Indicates whether the current operation is part of an end-to-end stress test:
| |
remote.zone | Destination zone | |