Method and system for managing log records

A record management and log technology, which is applied in the field of log record management methods and systems, can solve the problems of lack of timeliness, frequent flash operations, and inability to guarantee the number of log records, so as to prolong the life of memory and avoid occupying memory space.

Active Publication Date: 2012-11-28
ZTE CORP
View PDF3 Cites 34 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The disadvantage of this method is that the number of log records cannot be guaranteed, especially important logs are likely to be overwritten by non-important log files after a period of time
Real-time reporting of log content can enable log information to be saved in time, but the operation of flash memory (flash) is too frequent
Batch reporting of log records can reduce the read and write operations on the flash space and prolong the life of the memory, but its disadvantage is the lack of timeliness

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
  • Method and system for managing log records
  • Method and system for managing log records
  • Method and system for managing log records

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] In order to make the purpose, technical solution and advantages of the present invention more clear, the embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings. It should be noted that, in the case of no conflict, the embodiments in the present application and the features in the embodiments can be combined arbitrarily with each other.

[0031] The present invention optimizes the log management in two aspects. In the aspect of reporting information, when the timely reporting of log information is satisfied, the content of log information is reported in batches. File management: Dynamically determine the file compression conditions, and save the compressed log information files in a circular manner, so as to reduce the occupation of memory space.

[0032] The log collection module reports the information to the log management module by combining the timing reporting information with the dynamic reporting thres...

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 provides a method for managing log records, which comprises the following steps of: periodically detecting a cache, and when detecting that log records exist in a cache, reporting the log records; and when the number of the log records in the cache is greater than or equal to the ratio of the number of reported log records to the number of log-record reported times, reporting the log records in the cache. The invention also provides a system for managing the log records, which comprises a log acquisition module and a log management module, wherein the log acquisition module is used for periodically detecting the cache, and when the condition that the log records exist in the cache is detected, reporting the log records to the log management module; and the log management module is used for reporting the log records in the cache when the number of the log records in the cache is greater than or equal to the ratio of the number of the reported log records to the number of the log-record reported times. According to the method and the system, while a requirement of timely reporting the log records is satisfied, the number of the reported times is minimized, and then the service life of a memory is prolonged; and through compressing log files and deleting premature log files, a situation that multiple files occupy the space of the memory is avoided.

Description

technical field [0001] The invention relates to the technical field of log management in microwave equipment. Specifically, it relates to a logging management method and system. Background technique [0002] With the continuous emergence of hardware devices, the system has higher and higher requirements for device information recording. The recorded log information must not only be accurate and easy to locate, but also be stored in a timely and effective manner. Therefore, how to collect various device information in the system and how to effectively save the collected log information has become a problem that must be solved. In this case, the system should have a reasonable mechanism for collecting, reporting log records, and saving log information. [0003] The log management method provided by Chinese Patent No. CN200810066666.1 is to cache log information in memory space, and determine whether to write log files to save log records by judging the number of records. T...

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 Applications(China)
IPC IPC(8): G06F11/34G06F17/30
CPCH04L41/069
Inventor 邵永春
Owner ZTE CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products