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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
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