Method, device and equipment for actively collecting micro-service error logs and medium

By actively collecting microservice error logs, microservice logs are automatically collected and filtered, structured log files are generated and sent to the target receiver, which solves the problem of time-consuming development of manually filtering logs and improves the timeliness and accuracy of problem handling.

CN119668981APending Publication Date: 2025-03-21QIAN JIN NETWORK INFORMATION TECH SHANGHAI LTD
0 Cites 2 Cited by

Patent Information

Application Number
CN202411727009.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-28
Publication Date
2025-03-21

AI Technical Summary

Technical Problem

In the prior art, developers need to manually filter a large amount of log data, which consumes a lot of time and energy, and some system abnormalities or hidden problems may not be discovered in time, affecting system stability and user experience.

Method used

A method of actively collecting microservice error logs is proposed, collecting microservice logs by preconfiguring task information, and filtering according to filtering rules, generating structured log files, and finally sending them to the target receiver.

Benefits of technology

It realizes automatic collection of microservice logs, reduces the developer's manual operation time, improves the timeliness and accuracy of problem handling, and ensures that developers can get reminders of important issues as soon as possible and deal with them in a timely manner.

✦ Generated by Eureka AI based on patent content.
Patent Text Reader

Abstract

The invention relates to a method for actively collecting a micro-service error log, which comprises the following steps: collecting a micro-service log according to pre-configured task information, the pre-configured task information comprising a micro-service name and a log path, and the micro-service log comprising log content, a link tracking ID and log context information; filtering the micro-service log according to the filtering rule to obtain a key error log, wherein the key error log is used for representing generated important error information; filling the abnormal type, the log context and the link tracking ID analyzed based on the key error log into a structure template to generate a structured log file; and sending the structured log file to the target receiving end according to the configuration information. According to the method, a rear-end collection mode is adopted, the micro-service logs are automatically collected, developers do not need to manually log in a server or query log files, and time and energy are saved.
Need to check novelty before this filing date? Find Prior Art