Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Program compression log file output method and device

A log file, compressibility technology, applied in the computer field, can solve the problems of log files occupying large storage space, affecting program running efficiency, large log file volume and a lot of IO resources in the system, achieving real-time compression, reducing storage space, improving The effect of operating efficiency

Active Publication Date: 2017-01-25
GUANGZHOU HUADUO NETWORK TECH
View PDF6 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In the existing technology, the log file printed and output by the server background program contains a large number of formatted row information with repeated fields, which makes the printing of the log file occupy a large amount of IO resources of the system, which affects the operating efficiency of the program. At the same time, the printed The log files occupy a large amount of storage space. In order to reduce the disk storage space, the log files are usually compressed into binary files on a regular basis, and then restored and decompressed when they need to be queried in the future. Large problems and the problem of a large amount of system IO resources occupied when printing log 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
  • Program compression log file output method and device
  • Program compression log file output method and device
  • Program compression log file output method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0045] The present invention will be further described below with reference to the accompanying drawings and exemplary embodiments, wherein the same reference numerals in the accompanying drawings all refer to the same components. Also, detailed descriptions of known arts will be omitted if they are unnecessary to illustrate the features of the present invention.

[0046] Those skilled in the art will understand that unless otherwise stated, the singular forms "a", "an", "said" and "the" used herein may also include plural forms. It should be further understood that the word "comprising" used in the description of the present invention refers to the presence of said features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, Integers, steps, operations, elements, components, and / or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to an...

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 technical field of computers, and particularly discloses a program compression log file output method and device. The method includes the steps: acquiring a plurality of log data generated within specified time; taking the time difference between a date field and a starting time field defined for a log file as a compressed date field expression for each log datum, and taking specified numbers allocated by preset field format strings as a compressed field name expression; outputting the log data compressed within the specified time to the log file. Each log datum comprises a plurality of data items and the date field corresponding to the generation time. By replacing format line information with a large number of repeating fields in the log data, the log data are compressed in real time, IO resources occupied by programs outputting the log file are decreased, storage space occupied by a large number of log files is saved, and the running efficiency of the programs is improved.

Description

[0001] 【Technical field】 [0002] The invention relates to the technical field of computers, and specifically discloses a program compression log file output method and device. [0003] 【Background technique】 [0004] With the development of the Internet, data has become a strategic resource, and the fields and frequency of electronic logs are constantly increasing. Electronic log files can record necessary and valuable information for servers, workstations, firewalls, and application software. Therefore, The recording, collection and storage of access logs generated on the Internet become the key, especially for log storage. Since the storage space occupied by uncompressed original logs is too large, the original logs must be compressed to achieve long-term preservation. [0005] In the existing technology, the log file printed and output by the server background program contains a large number of formatted row information with repeated fields, which makes the printing of the ...

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/34
CPCG06F11/34
Inventor 黄伟
Owner GUANGZHOU HUADUO NETWORK TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products