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

A log real-time analysis method and system

A real-time analysis and log technology, which is applied in the field of data processing, can solve the problems of long time-consuming statistical analysis, failure to meet "real-time", and performance degradation of database query, and achieve the effect of reducing the amount of log storage

Active Publication Date: 2020-01-14
北京科摩仕捷科技有限公司
View PDF7 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] 1. The amount of logs is too large. For those systems that are accessed frequently, the amount of logs generated every day will reach G level;
[0005] 2. Due to the large amount of logs, the statistical analysis takes a long time;
[0006] 3. Most of the data is stored in a centralized manner. As the number of monitored systems increases, the aggregated logs will become larger and larger, resulting in a slow analysis process and a sharp decline in database query performance, which cannot meet the "real-time" requirements. Expansion Need to develop

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 log real-time analysis method and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0042] The log real-time analysis method described in this embodiment, the method includes:

[0043] S1, the log parsing client judges whether the current working node is a registered node, if yes, enters S2; if not, registers the current working node and then enters S2;

[0044] S2, obtain the log directory that needs to be analyzed by the current working node;

[0045] S3, judging whether there is an updated log file under the log directory, if yes, then enter S4, if not, then repeat S3;

[0046] S4, start the thread pool and concurrently update the parsing of the log file, split the data vertically according to the system indication and store it in different data tables, and finally store the data table in the log database.

[0047] A more detailed explanation is as follows:

[0048] (1) The following steps are included before step S1:

[0049] The log parsing client obtains the configuration data of the subordinate system, and monitors the execution of the method of the...

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 discloses a real-time log analysis method and system, and relates to the field of data processing. The method comprises the steps of judging a current working node as a registered node by a log parsing client and obtaining a to-be-analyzed log directory of the current working node; judging that an updated log file exists in the log directory, starting a thread pool and updating parsing of the log file, carrying out vertical data splitting according to a system flag and then storing the data into different data tables; and finally storing the data tables into a log database. The system comprises a log recording module and a log analysis module. The storage capacity of the log is reduced under the premise of not affecting a real-time monitoring function; the elapsed time in the change from execution of the system method to reflection of the execution result from an interface is smaller than one minute; a monitoring system can be horizontally expanded; and performance extension can be finished only by simple deployment.

Description

technical field [0001] The invention relates to the field of data processing, in particular to a log real-time analysis method and system. Background technique [0002] At present, log monitoring is mostly implemented based on results. It is used to detect whether the current function is still available, and find out that it is not available as soon as possible. However, the operation has been implemented and the result is obtained. Correcting it is equivalent to starting again. Therefore, the existing monitoring method belongs to The monitoring method of repairing the past. However, how to discover the tendency of the monitored system to deteriorate before the problem occurs is a new problem. At the same time, it is also necessary to ensure that the granularity of monitoring can support the execution method of the core functions of the system. [0003] Most of the existing log-based monitoring solutions are performed by running the system once and recording it once, then r...

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/21
CPCG06F16/1815G06F16/21
Inventor 魏玮
Owner 北京科摩仕捷科技有限公司