Skip to content
jialianglinjl edited this page Jun 21, 2018 · 11 revisions

block logs

All blocks will be recorded in <user directory>/logs/csp/sentinel-block.log. It contains following info:

2014-06-20 16:35:10|1|sayHello(java.lang.String,long),FlowException,default,origin|61,0
2014-06-20 16:35:11|1|sayHello(java.lang.String,long),FlowException,default,origin|1,0
  1. 2014-06-20 16:35:10timestamp
  2. 1resource index
  3. sayHello(java.lang.String,long)resource name
  4. XXXExceptionblock reason, FlowException is blocked by flow rules, DegradeException is blocked by degrade rules,SystemExceptionis blocked by system rules
  5. defaultthe limitApp defined in rule
  6. originthe blocked reource's origin. it might be empty
  7. 61,061 the block count, 0 can be ignored

resource run time log

resources run-time info will be generated in `/logs/csp/-metrics.log.2018-06-21'. By default, the port no is 8719.

1529573107000|2018-06-21 17:25:07|sayHello(java.lang.String,long)|10|10|3601|0|2
  1. 1529573107000timestamp in milseconds
  2. 2018-06-21 17:25:07date
  3. sayHello(java.lang.String,long)resource name
  4. 10the incoming count of the resource per second
  5. 10the success count of the resource per second
  6. 3601the block count of the resource per second
  7. 0the exception count of the resource per second
  8. 2the avg resource response time per second

other logs

all other info is recorded i <user directory>/logs/csp/record.log

Clone this wiki locally