Supercharge Your Innovation With Domain-Expert AI Agents!

Log data processing method and related device

A data processing device and data processing technology, applied in the computer field, can solve the problems of inability to analyze historical files, inconvenient information search, uncertain starting time of log files, etc., so as to achieve effective log rolling operation and improve management effects. Effect

Pending Publication Date: 2020-04-17
山东中创软件商用中间件股份有限公司
View PDF5 Cites 4 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, as the number of log files used by the server increases day by day, in the first technique, the start time in each log file is uncertain, which is inconvenient to find information, and when an abnormality occurs in the application system, a large number of logs will be generated in a short period of time , at this time, the log rolling operation will continue, and a large number of other historical logs will be deleted
In another log processing method, if a certain number of historical log files are retained, the files exceeding this number will be deleted directly, resulting in no subsequent statistical analysis of historical files

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 data processing method and related device
  • Log data processing method and related device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0045] The core of this application is to provide a log data processing method, log data processing device, server and computer-readable storage medium, by first controlling the size of the log data writing process, and then by the longest storage time and the maximum number of logs Delete archived log files, realize dual control of log files through size and time, and improve the effect of log file rolling.

[0046] In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative effo...

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 log data processing method which comprises the following steps: when log data are received, writing the log data into a to-be-written log file; when the size of the to-be-written log file is greater than a preset size, executing log rolling operation on the to-be-written log file to obtain an archived log file and a new to-be-written log file; and deleting all archived log files according to the longest storage time and the maximum log number in a preset log rolling strategy. According to the log file processing method and the device, the size of the writing process of the log data is controlled firstly, then the archived log file is deleted according to the longest storage time and the maximum log number, dual control over the log file according to the size and the time is achieved, and the log file rolling effect is improved. The invention further discloses a log data processing device, a server and a computer readable storage medium, which have the above beneficial effects.

Description

technical field [0001] The present application relates to the field of computer technology, and in particular to a log data processing method, a log data processing device, a server, and a computer-readable storage medium. Background technique [0002] After the application server program has been running for a period of time, the application system on the server will generate a large number of historical log files. These logs can be used to find historical operation information. When an abnormality is found in the application system, these log information will also be important for diagnosing the abnormality. in accordance with. Obviously, no matter for the application server program or the application program, the importance of the log is self-evident, storing a large amount of historical log records is essential for the operation and maintenance of the system, but for different application systems, the historical log requirements are also different. How long to store th...

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): G06F16/18G06F16/16G06F16/11
CPCG06F16/1815G06F16/113G06F16/162
Inventor 李新峰高隆林韩锋赵欣翟鲁超
Owner 山东中创软件商用中间件股份有限公司
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More