Unlock instant, AI-driven research and patent intelligence for your innovation.

Log information processing method, device, electronic device and readable storage medium

An information processing method and log technology applied in the computer field

Active Publication Date: 2020-10-16
BEIJING QDING INTERCONNECTION TECHNOLOGY CO LTD
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] At present, the e-commerce platform is composed of hundreds of distributed servers. Each call request will pass through multiple business systems, call different types of interface implementations, and each call request will generate various caches or databases (Database , DB) access, but these scattered call request data are of limited help for abnormal troubleshooting or process optimization

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Log information processing method, device, electronic device and readable storage medium
  • Log information processing method, device, electronic device and readable storage medium
  • Log information processing method, device, electronic device and readable storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0045] Such as figure 1 As shown, the log information processing method provided by Embodiment 1 of the present application can be used in any cross-platform and cross-thread program interface call scenario to collect and process the log information of each call request, including:

[0046] S101: Obtain call request information.

[0047] In the actual implementation process, log information is automatically collected at each system entry layer and resource layer, and there is no need for programs to manually output log information. Specifically, for example, it may be realized by adding a log information collection plug-in in the configuration file, for example, adding a log information collection plug-in in the sqlMapConfig.xml configuration file.

[0048]

[0049]

[0050] interceptor="com.qding.framework.common.log.MybatisLogPlugin">

[0051]

[0052] In a possible implementation manner, before adding the log information collection plug-in, the version o...

Embodiment approach

[0059] A possible implementation mode: define the control Contoller layer of the aspect class background of log information collection and the interface layer of the corresponding RPC service. Here, the above-mentioned aspect class of log information collection is mainly extended through the annotation method of the extension method, so it can be realized without modifying the parent class.

[0060] For example: @Around("execution(*com.qding.*.controller..*.*(..))||"+"execution(*com.qding.*.common.service..*.*(. .))")

[0061] public Object doAround(ProceedingJoinPoint pjp)throwsThrowable{

[0062] Object result = doAroundService(pjp);

[0063] return result;

[0064]}

[0065] Another possible implementation manner: Here, the call request type is judged according to the access path path of the call request, for example, whether the call request type is HTTP or RPC.

[0066] public String fetchTypeByPath(String path){

[0067] String type = null;

[0068] if(path. contain...

Embodiment 2

[0100] Such as figure 2 As shown, it is an implementation scheme of the log information processing method provided in Embodiment 2 of the present application in actual implementation, including:

[0101] S201: Obtain call request information through each call request to the application cluster, and collect log information.

[0102] Specifically, according to the call request information, determining the call request type corresponding to the call request information; according to the call request type, acquiring log information of the call request information.

[0103] S202: Write log information into a request log file.

[0104] In a possible implementation manner, the storing the log data type and log data includes: storing the log data type and log data in a request log file. For example, store all collected log information in the tracer.log file.

[0105] S203: Read the log information from the request log file through the log collection agent.

[0106] S204: forward ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present application provides a log information processing method, device, electronic device, and readable storage medium, wherein the method includes: acquiring call request information; determining the call request type corresponding to the call request information according to the call request information ; According to the call request type, obtain the log information of the call request information; the log information includes request identification information and request step information; according to the request identification information, determine the request chain corresponding to the call request information; according to the request step information, Determine the position of the call request corresponding to the call request information in the request chain. The purpose of this application is to track the complete invocation link of each invocation request, and collect performance data of each invocation service on the invocation link.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a log information processing method, device, electronic equipment and readable storage medium. Background technique [0002] At present, the e-commerce platform is composed of hundreds of distributed servers. Each call request will pass through multiple business systems, call different types of interface implementations, and each call request will generate various caches or databases (Database , DB) access, but these scattered call request data are of limited help for abnormal troubleshooting or process optimization. [0003] In particular, for cross-process and cross-thread scenarios, it is particularly important to summarize, collect, and analyze massive log information. Contents of the invention [0004] In view of this, the purpose of this application is to provide a log information processing method, device, electronic device and readable storage medium, so as...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F16/18G06F16/182H04L29/08
CPCH04L67/1097H04L67/02H04L67/56
Inventor 许晓星
Owner BEIJING QDING INTERCONNECTION TECHNOLOGY CO LTD