Log extraction method and related equipment
An extraction method and log technology, applied in the computer field, can solve problems affecting the speed of troubleshooting and increase communication costs, and achieve the effect of reducing volume, shortening time, and reducing the time for screening logs
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0028] see figure 1 , figure 1 is a schematic flowchart of an embodiment of the log extraction method of the present invention. Such as figure 1 As shown, the method includes the following steps:
[0029] S11: Store the terminal log in the form of sliced files, wherein the attributes of each sliced file include: file generation time;
[0030] In step S11, after the terminal or the cloud card server communicating with the terminal is started, a terminal log is generated. The data of the terminal log includes: terminal WIFI information, terminal SIM card information, terminal network connection information, terminal battery information and cloud card operating status information.
[0031] Preferably, each tile file has the same size. For example, the size of each slice file is 20M. When the size of log records saved in a slice file exceeds 20M, a new slice file is regenerated. Of course, the slice file may also be saved according to a predetermined time unit, that is, ...
Embodiment 2
[0050] see image 3 , image 3 It is a structural schematic diagram of an embodiment of the log extracting device of the present invention. Such as image 3 As shown, the device includes a log storage module 31 , a slice capture module 32 , a log generation module 33 and a log sending module 34 .
[0051] The log storage module 31 is configured to store terminal logs in slices, wherein the attributes of each slice file include: file generation time.
[0052] The slice grabbing module 32 is configured to extract at least one slice file corresponding to the time period after receiving the log request for extracting a certain time period sent by the server.
[0053] A log generation module 33, configured to generate a log file based on the at least one slice file.
[0054] The log sending module 34 is configured to upload the log file to the server. Specifically, the working method of each module of the device is the same as the method described in Embodiment 1, and will not...
Embodiment 3
[0056] see Figure 4 , Figure 4 It is a structural schematic diagram of an embodiment of the log extraction system of the present invention. Such as Figure 4 As shown, the log extraction system includes a plurality of terminals 41 and a server 42 .
[0057] The terminal 41 includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein, the memory stores instructions executable by the at least one processor, and the instructions can execute the method as described in Embodiment 1 .
[0058] The server 42 is used to communicate with the terminal 41 . The communication mode between the server 42 and the terminal 41 is wired communication or wireless communication. Wherein, after obtaining the log file, the server saves the log file in a storage location corresponding to the server, and if the number of log files saved in the storage location exceeds a predetermined number, replaces the log file with the first saved file. Fo...
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