All Products
Search
Document Center

Microservices Engine:Important logs

Last Updated:Mar 10, 2026

Microservices Engine (MSE) application protection writes three log files that capture per-second metrics, blocking events, and rule processing activity for each protected resource. Use these logs to monitor resource status and troubleshoot protection issues on individual servers.

All applications with MSE application protection enabled produce these logs automatically.

Log directory

The base log directory (${BaseDir}) depends on your MSE agent version:

MSE agent versionBase directory
Earlier than 4.3.0${user_home}/logs/csp
4.3.0 and later/home/admin/.opt/AliyunJavaAgent/logs/sentinel

To check your MSE agent version, go to the node details page of your application.

Log files

Log typeFile pathDescription
Second-level monitoring logs${BaseDir}/${app_name}-metrics.logPer-second metric data for each protected resource
Blocking details logs${BaseDir}/sentinel-block.logRequests blocked by protection rules (flow control, circuit breaking, concurrency isolation, hot parameter protection)
Business logs${BaseDir}/sentinel-record.log.${Current date}Rule push, reception, and processing events, and resource calls

Second-level monitoring logs

Each line in ${app_name}-metrics.log records the metric data for one resource over a one-second interval.

Sample entry:

1718765870000|2024-06-19 02:57:50|/flow|30|5|30|10|13|0|1|1|IN

Field reference

PositionFieldExampleDescription
1Timestamp1718765870000Unix timestamp in milliseconds
2Formatted time2024-06-19 02:57:50Human-readable timestamp
3Resource name/flowName of the protected resource
4Passed QPS30Requests that passed all rule checks per second
5Rejected QPS5Requests blocked by protection rules per second
6Completed QPS30Completed calls (successful + failed) per second
7Abnormal QPS10Processing exceptions of a resource per second
8Average RT13Average response time of a resource
9Reserved0Reserved for internal use
10Parallelism1In-flight requests not yet completed
11Reserved1Reserved for internal use
12DirectionININ = inbound (server-side), OUT = outbound (client-side)

Blocking details logs

Each line in sentinel-block.log records the blocking events for one resource over a one-second interval, regardless of the protection type (flow control, circuit breaking, or system protection).

Sample entries:

2024-06-19 03:13:44|1|/a,ConcurrencyLimitException,default,origin,26133,1718766824000|1,0,0
2024-06-19 03:13:45|1|/flow,FlowException,default,origin,33593,1718766825000|6,0,0

Field reference

PositionFieldExampleDescription
1Formatted time2024-06-19 03:13:44Timestamp of the blocking event
2Serial number1Serial number. You do not need to pay attention to this value.
3Resource name/aName of the blocked resource
4Blocking typeFlowExceptionException class that identifies the protection rule type. See the blocking type reference table below.
5ReserveddefaultReserved for internal use
6ReservedoriginReserved for internal use
7Rule ID26133ID of the protection rule that triggered the block
8Timestamp1718766824000Unix timestamp in milliseconds
9Block count1,0,0First value: number of blocks per second. Remaining values are reserved.

Blocking type reference

Exception classProtection type
FlowExceptionFlow control (interface throttling)
DegradeExceptionCircuit breaking or degradation
ConcurrencyLimitExceptionConcurrency isolation
ParamFlowExceptionHot parameter protection (RPC)
WebFlowExceptionHot parameter protection (HTTP)

Business logs

Business logs are stored in sentinel-record.log.${Current date} under ${BaseDir}. These logs record the push, reception, and processing of rules and resource calls. The logs are useful for troubleshooting.