GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Logs

Logs

Jump to bottom
Eric Zhao edited this page Mar 29, 2022 · 11 revisions

We may configure the log directory via the csp.sentinel.log.dir property.

Block log

All block logs will be recorded in ${user_home}/logs/csp/sentinel-block.log:

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:10: timestamp
  2. 1: index
  3. sayHello(java.lang.String,long): the resource name
  4. XXXException,type of rules to take effect. FlowException for flow control, DegradeException for circuit breaking, SystemException for system adaptive protection, ParamFlowException for parameter flow control
  5. default for the limitApp defined in rules
  6. origin,for the real origin of the request (or the parameter)
  7. 61,0,61 for block times; 0 has no meaning, which can be ignored

Metric log

Metrics of resources are recorded in ${user_home}/logs/csp/{app_name}-metrics.log:

1529573107000|2018-06-21 17:25:07|sayHello(java.lang.String,long)|10|3601|10|0|2
  1. 1529573107000: the timestamp of this record;
  2. 2018-06-21 17:25:07: formatted date/time;
  3. sayHello(java.lang.String,long): resource name;
  4. 10: passed request count (passQps);
  5. 3601: blocked count;
  6. 10: complete count (successfully handled by Sentinel);
  7. 0: business exception count;
  8. 2: the average response time (ms)

Record log

Other info (such as rule loading) is recorded in ${user_home}/logs/csp/sentinel-record.log.xxx.

Since 1.7.2, a new Logger SPI mechanism is introduced for flexible logging extension. The default logger implementation is still based on java.util.logging, and developers could introduce dependencies of logging integration to adapt to their existing logging library (e.g. slf4j). We've provided the sentinel-logging-slf4j module.

Note that the logger SPI is designed for RecordLog and CommandCenterLog. The metric log and block log will not be affected by the logger SPI.

  • Sentinel 官方网站

  • OpenSergo 微服务治理

  • 文档

    • Read Me
    • 新手指南
    • Sentinel 介绍
    • FAQ
    • Roadmap
    • 如何使用
    • 工作原理
    • 流量控制
    • 集群流控(分布式流控)
    • 网关流控
    • 熔断降级
    • 热点参数限流
    • 系统自适应限流
    • 黑白名单控制
    • 实时监控数据
    • 动态规则
    • 控制台
    • 生产环境使用 Sentinel
    • 阿里云企业版 Sentinel
    • OpenSergo 控制面
    • 启动配置项
    • 注解埋点支持
    • 主流框架适配
    • Envoy 集群流量控制
    • 多语言生态
    • 开源贡献指南
  • 阿里云 微服务解决方案

  • Release Notes

  • Related Blog

  • Awesome Sentinel

  • Documents

    • Read Me
    • Introduction
    • How to Use
    • How it Works
    • Flow Control
    • Parameter Flow Control
    • Cluster Flow Control
    • API Gateway Flow Control
    • Circuit Breaking
    • Adaptive System Protection
    • Metrics
    • General Configuration
    • Dynamic Rule Configuration
    • Dashboard
    • Integrations with open-source frameworks
    • Contribution Guideline

Clone this wiki locally

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.