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

Log monitoring method and device, computer equipment and storage medium

A log and log file technology, applied in computing, hardware monitoring, instruments, etc., can solve problems such as monitoring log confusion

Pending Publication Date: 2021-04-09
PING AN SECURITIES CO LTD
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The main purpose of this application is to provide a log monitoring method, device, computer equipment and storage medium, aiming at overcoming the defect of easy confusion when monitoring logs at present

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 monitoring method and device, computer equipment and storage medium
  • Log monitoring method and device, computer equipment and storage medium
  • Log monitoring method and device, computer equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0064] In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.

[0065] refer to figure 1 , a log monitoring method is provided in an embodiment of the present application, comprising the following steps:

[0066] Step S1, obtaining the log to be detected;

[0067] Step S2, obtaining the log file path of the log to be detected, and verifying whether the log file path is legal;

[0068] Step S3, if it is legal, then according to the keyword parameter, detect the keyword in the log to be detected; according to the keyword parameter, use the grep-Ve command to detect the keyword to be eliminated in the log to be detected; according to th...

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 the field of log monitoring, and provides a log monitoring method and device, computer equipment and a storage medium. The method comprises the steps of obtaining a to-be-detected log; obtaining a log file path of the to-be-detected log, and verifying whether the log file path is legal or not; if yes, detecting a keyword in the log to be detected; detecting an elimination keyword in the to-be-detected log; intercepting n rows of records containing an error keyword context in the log to be detected to obtain an error keyword context record number; verifying whether the error keyword context record number is an integer or not; if so, detecting a timestamp separator character string in the to-be-detected log; performing format processing on the timestamp separator character string, the keywords and the rejected keywords; storing as a file after format processing; and encoding and outputting the file. According to the invention, keyword elimination is supported during log monitoring, and the abnormal information context can be completely displayed; through multiple verification in the log monitoring process, chaos can be avoided.

Description

technical field [0001] The present application relates to the technical field of log monitoring, in particular to a log monitoring method, device, computer equipment and storage medium. Background technique [0002] Log monitoring is a very important means for locating production problems for operation and maintenance. With the increase of linux environment in production servers, the workload of log locating and analyzing also increases. Accurate and efficient log monitoring methods are required for abnormalities, so that monitoring can be done To accurately and timely find abnormalities, directly locate specific abnormal sentences to facilitate analysis, and at the same time support flexible filtering methods to immediately eliminate invalid alarms and prevent false alarms, so as to achieve the purpose of improving work efficiency. [0003] The log monitoring method in the existing linux service does not have the function of eliminating keywords, and cannot accurately searc...

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
IPC IPC(8): G06F11/30
CPCG06F11/3068
Inventor 刘佰富
Owner PING AN SECURITIES CO LTD