Log compression method and device
A compression method and log technology, applied in the field of data processing, can solve the problems of long query log consumption, complex content, and large log file data, so as to improve log query efficiency, avoid large data volume, and reduce time-consuming effects
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0030] The method of querying logs adopted in the prior art is to collect logs of all servers in the system, and perform unified query from all collected logs. Combined with the characteristics of high log complexity, many useless logs, and large amount of log data in the prior art, it can be known that the log query method in the prior art is inefficient, takes a long time, and occupies more system resources.
[0031] In order to solve the above problems, the present application provides an embodiment of a log compression method, figure 1 It is a schematic diagram of log processing according to Embodiment 1 of the present invention, combined below figure 1 The example shown is to describe the processing method of the above-mentioned log in this application.
[0032] Step S11, collecting logs.
[0033] Specifically, the above log may be at least one log on the front-end device, and the front-end device may be all servers of the target application program. In an optional emb...
Embodiment 2
[0088] According to an embodiment of the present invention, an embodiment of a log compression method is also provided. It should be noted that the steps shown in the flow chart of the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and , although a logical order is shown in the flowcharts, in some cases the steps shown or described may be performed in an order different from that shown or described herein.
[0089] The method embodiment provided in Embodiment 1 of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. figure 2 A block diagram of a hardware structure of a computer terminal (or mobile device) for implementing a log compression method is shown. Such as figure 2 As shown, the computer terminal 20 (or mobile device 20) may include one or more (202a, 202b, . or a processing device such as a programmable logic device FPGA), a memory 204 for st...
Embodiment 3
[0172] According to an embodiment of the present invention, a log compression device for implementing the above log compression method is also provided, such as Figure 4 As shown, the device 400 includes:
[0173] The collection module 40 is configured to collect at least one piece of log information generated on the front-end device in real time, wherein the log information is operation information generated by operating at least one application program on the front-end device.
[0174] The compression processing module 42 is configured to perform compression processing on at least one piece of log information collected in real time to obtain a compression result.
[0175] The writing module 44 is used for writing the compression result into a predetermined location.
[0176] It should be noted here that the acquisition module 40, the compression processing module 42 and the writing module 44 correspond to steps S31 to S35 in Embodiment 1, and the examples and application s...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com