Log acquisition device and log acquisition method

A collection device and log technology, applied in digital transmission systems, electrical components, transmission systems, etc., can solve the problems of large log files, poor scalability, and time taken up for log analysis, and achieve small log files, good maintainability, and guaranteed The effect of accuracy

Inactive Publication Date: 2011-02-09
道有道科技集团股份公司 +1
View PDF4 Cites 54 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] 1. The period of log collection is too long. In order to ensure the normal operation of the business, it usually takes one day
[0007] 2. The scalability is poor, and the collection and processing of larger system logs will be more difficult
[0008] 3. The log file is too large
Due to the common use of text files to record files, the log files are not well compressed and require a lot of disk space
[0009] 4. The timeliness of log analysis is poor
Since some systems need to complete log analysis at a specific time, the existing method of uploading and merging logs will take up a lot of time for log analysis. The larger the log volume, the longer the time for log uploading and merging will be, resulting in log analysis that cannot be completed in time.
[0010] 5. Poor maintainability
The log format of the business changes, and the analysis method of the log changes accordingly. When the system is upgraded, it will face uncertainty

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 acquisition device and log acquisition method
  • Log acquisition device and log acquisition method
  • Log acquisition device and log acquisition method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0049] The principles and features of the present invention are described below in conjunction with the accompanying drawings, and the examples given are only used to explain the present invention, and are not intended to limit the scope of the present invention.

[0050] Such as figure 1 Shown is a schematic diagram of the device structure of the present invention, including at least one client 1 and at least one server 2, the client 1 is used for log collection, the server 2 is used for log recording, the client 1 and the server 2 Log information is transmitted via the network 3 . The log collection mode in the present invention adopts TCP / IP protocol, and client 1 utilizes socket to send log message to server 2, adopts TCP / IP protocol to ensure the accuracy of log collection.

[0051] The client 1 includes a client log recording module 11 and a client log reading and sending module 12 . Wherein, the client log recording module 11 is used by the application of the client 1...

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 a log acquisition device and a log acquisition method. The device comprises at least one client for collecting logs and at least one server for recording the logs, wherein log information is transmitted between the client and the server through a network in real time. The method comprises that: the client generates the log information, writes the log information into a disk file of the client, reads the log information from the disk file of the client, and sends a connection request to the server; after receiving the request, the server establishes network connection with the client and receives the log information; the server sends the received log information to a server log writing module and a server log writing database module; the server log writing module writes the log information into the disk file of the server; and the server log writing database module writes the log information into the database. When the device and the method of the invention are used, the data analysis is more real-time, and the distributed acquisition of the logs is realized.

Description

technical field [0001] The invention relates to the technical field of computer Internet, in particular to a real-time collection device and method of distributed logs. Background technique [0002] In the current Internet field, the analysis of user behavior is becoming more and more important, and the basis of user behavior analysis is the user's usage log. For many distributed high-traffic products on the Internet, with the distribution of servers, log analysis becomes more and more troublesome. It is transferred to a server through FTP (File Transfer Protocol) for unified processing. Before the calculation and processing of some logs, the sorting of logs also needs to be considered. [0003] For example, a common log backup method at present: multiple business servers will record the log in the local log file in the form of text according to the designed log format, and truncate the log file by day or hour. When the business load is low in the early morning, the log fi...

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): H04L29/06H04L12/24H04L29/08
Inventor 王东辉周建修
Owner 道有道科技集团股份公司
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