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

A non-destructive acquisition method and system for real-time logs in a distributed environment

A distributed environment and collection method technology, applied in the field of log collection, can solve the problems of low collection performance, no centralized configuration and release, manual archiving, etc., to ensure real-time performance and reliability, convenient configuration and operation, and prevent leaks The effect of taking place

Active Publication Date: 2020-11-13
GUANGDONG ESHORE TECH
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] 1. The single-point problem of Rsyslog will cause some scrolling output log files to fail to be collected during abnormal exit
[0006] 2. Rsyslog does not support the collection of dynamic log directories such as daily updated date directories, nor does it support unified configuration and collection of multiple directories with the same structure
[0007] 3. Rsyslog does not support the archiving and deletion of log files after collection, and the number of files in the log output directory is increasing, requiring manual archiving and deletion
[0009] 1. The single point problem of Logstash will lead to high probability of resending and loss of log messages during abnormal exit
[0010] 2. Logstash does not support collection of dynamic log directories such as daily updated date directories, nor does it support unified configuration and collection of multiple directories with the same structure
[0011] 3. Logstash does not support the archiving and deletion of log files after collection, and the number of files in the log output directory is increasing
[0012] 4. In a distributed system environment, metadata such as Logstash collection configuration does not have centralized configuration and release functions, and cannot effectively manage the collection metadata of each host
[0013] 5. In a distributed system environment, Logstash does not provide a monitoring output interface, and cannot effectively manage the status of Logstash
[0014] 4. Logstash is developed with ruby, and the collection performance is low

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
  • A non-destructive acquisition method and system for real-time logs in a distributed environment
  • A non-destructive acquisition method and system for real-time logs in a distributed environment
  • A non-destructive acquisition method and system for real-time logs in a distributed environment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0059] In order to fully understand the technical content of the present invention, the technical solutions of the present invention will be further introduced and illustrated below in conjunction with specific examples, but not limited thereto.

[0060] Such as Figure 1~6 In the specific embodiment shown, this embodiment provides a method for non-destructive collection of real-time logs in a distributed environment, which can be used in the unified collection and management of logs in a distributed system to achieve non-destructive collection of real-time logs, configuration and operation. It is convenient and has high performance. It not only guarantees the real-time and reliability of distributed system log collection, but also has a powerful ability to recover abnormalities.

[0061] This embodiment provides a method for non-destructive collection of real-time logs in a distributed environment, the method comprising:

[0062] S1. Obtain the log message in the log file; ...

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 invention relates to a method and system for losslessly acquiring logs in real time in a distributed environment. The method includes the steps that log messages in log files are acquired; the log messages are cached in a Disk-Assisted buffer mode; state messages are updated to offset state files in real time; the corresponding relation between the log files and the offset state files is recorded; whether the log files have the missing acquisition condition or not is judged; if the log files have the missing acquisition condition, a configuration module interface is called, and acquisition configuration files of the log files in missing acquisition are generated. The log messages are persisted in a magnetic disk, it is guaranteed that the messages are not lost, updating of the offset state files can guarantee that the messages are not lost or data is not repeatedly transmitted, the log files are subjected to missing acquisition judgment, the missing acquisition condition is avoided, lossless real-time log acquisition is achieved, configuration and operation are convenient, the performance is high, the real-time performance and reliability of distributed system log acquisition are guaranteed, and high abnormal re-acquisition capacity is achieved.

Description

technical field [0001] The invention relates to a log collection method, and more specifically refers to a non-destructive collection method and system for real-time logs in a distributed environment. Background technique [0002] With the development of platform technology and distributed computing technology, the logs used to record user operations and system operation status may be distributed on hundreds of servers. How to collect these data together for subsequent analysis is a big problem. technical challenge. The emergence of the distributed collection system is to meet the collection needs of massive logs in the distributed system environment. The distributed collection system uses the collectors distributed on multiple computer nodes connected to the network to realize unified management of metadata and distributed storage of collectors. System log collection in a distributed environment. [0003] At present, Rsyslog and Logstash are usually used to collect logs. ...

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/17G06F16/182G06F16/23
CPCG06F16/1734G06F16/182G06F16/2358
Inventor 张雷张伟何广柏
Owner GUANGDONG ESHORE TECH