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

Method and device for collecting logs

A collection method and collection device technology, applied in the field of communication, can solve the problems of cost, long time, low efficiency, etc., and achieve the effects of shortening response time, avoiding influence, and improving execution efficiency

Inactive Publication Date: 2014-07-23
北京中交兴路车联网科技有限公司
View PDF6 Cites 35 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, this method has the following disadvantages: (1) It is inconvenient to view log information; (2) It is difficult to statistically analyze or query log information with filter conditions; (3) To a certain extent, it reduces the execution efficiency of server applications, especially extending It affects the response time of service requests and has a certain impact on the performance of server applications
[0004] To sum up, when there is a problem with the application, if you judge, locate, or find the cause of the problem in the existing way, it will take a lot of time and the efficiency is low

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 device for collecting logs
  • Method and device for collecting logs
  • Method and device for collecting logs

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0022] figure 1 It is a schematic flowchart of a log collection method provided by Embodiment 1 of the present invention. This embodiment is applicable to the case of collecting log information corresponding to each application program in a server, and the method can be executed by a log collection device. Wherein, the server may be a server in a client / server or browser / server framework; the log collection device may be set inside the server or independent of the server. Specifically, the method includes the following steps:

[0023] Step 110, assemble the log information generated in the server into an information object set according to a preset configuration file;

[0024] Step 120, start a log storage thread, and store the set of information objects in a preset data format in a database independent of the server.

[0025] In this embodiment, the application program on the server will generate corresponding log information according to its current running situation. Usu...

Embodiment 2

[0032] figure 2 It is a schematic flowchart of a log collection method provided in Embodiment 2 of the present invention. On the basis of Embodiment 1, this embodiment adds a step of generating a configuration file, and according to this step, according to the preset configuration file, the log information generated in the server is assembled into an information object set, and the information object set is The two steps of storing the preset data format in the database independent of the server are further optimized. see figure 2 , the method specifically includes the following steps:

[0033] Step 210: Set collection parameters for the log parameter storage file to generate a configuration file.

[0034] In this embodiment, the collection parameters include configuration format, log type, and the IP address and port of the device where the database is located. Specifically, the configuration format can include a format consisting of the corresponding application name, ...

Embodiment 3

[0044] image 3 It is a schematic structural diagram of a log collection device provided in Embodiment 3 of the present invention. see image 3 , the device specifically includes:

[0045] A log information assembling unit 310, configured to assemble the log information generated in the server into an information object set according to a preset configuration file;

[0046] The log information storage unit 320 is configured to start a log storage thread, and store the set of information objects in a preset data format in a database independent of the server, wherein the database supports the preset data format .

[0047] Further, the device further includes: a collection parameter configuration unit 300, configured to store the log parameters in the log parameter storage file before the log information assembly unit 310 assembles the log information generated in the server into an information object set according to a preset configuration file. Carry out collection paramet...

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 method and device for collecting logs. The method comprises the steps that log information generated in a server is packaged into an information object set according to a preset configuration file; a log storing thread is started, and the information object set is stored in a database existing by being independent of the server in a preset data format, wherein the database is supportive of the preset data format. According to the technical scheme provided in the embodiment, the log information can be checked conveniently, statistical analysis or inquiring with filtering conditions can be carried out on the collected log information, and thus the problem of program errors in the independent server or a server cluster environment can be fast positioned or analyzed; meanwhile, the execution efficiency of application programs of the server is improved to a certain extent, and influences on the performance of the system programs of the server can be avoided.

Description

technical field [0001] Embodiments of the present invention relate to the field of communication technologies, and in particular, to a log collection method and device. Background technique [0002] At present, in the service interaction system under the client / server or browser / server architecture, the server is usually installed with applications for realizing various services, and the security and stability of these applications are very important to users of. To this end, the server will periodically collect and analyze the log information corresponding to each application program to monitor the running status of each application program. [0003] Most of the existing log collection technologies store log information in the form of files on the physical disk of the server where the application program is located, and maintain a certain capacity of log information with time and size constraints. However, this method has the following disadvantages: (1) It is inconvenien...

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/08G06F17/30
Inventor 马龙清蔡抒扬王鹏胡道生夏曙光
Owner 北京中交兴路车联网科技有限公司
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