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

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

Pending Publication Date: 2019-10-22
深圳市圣麾科技有限公司
View PDF3 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The disadvantage of the traditional method is: because the capture and screening of logs requires communication with the corresponding developers, resulting in increased communication costs, thus affecting the speed of troubleshooting

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 extraction method and related equipment
  • Log extraction method and related equipment
  • Log extraction method and related equipment

Examples

Experimental program
Comparison scheme
Effect test

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...

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 log extraction method and related equipment, and the log extraction method comprises the steps: carrying out the slice storage of a terminal log, and the attribute of each slice file comprising the file generation time; after a log request for extracting a certain time period sent by a server is received, extracting at least one slice file corresponding to the time period; generating a log file based on the at least one slice file; and uploading the log file to the server. The log extraction method is automatically operated and does not need to be manually grabbed. Moreover, the log data of the terminal is stored in the form of multiple slice files, so that the screening range is reduced, the log screening time is shortened, the log capture efficiency is improved,and the terminal problem checking time is shortened. The method is widely applied to remote extraction of the terminal log.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a log extraction method and related equipment. Background technique [0002] When a terminal fails, the cause of the terminal failure is usually located by grabbing the log records of the terminal. The traditional method is: After obtaining all the log files of the terminal, find a professional to capture and filter the logs. [0003] The disadvantage of the traditional method is that the capture and screening of logs requires communication with the corresponding developers, which increases communication costs and affects the speed of troubleshooting. Contents of the invention [0004] The present invention aims to solve one of the technical problems in the related art at least to a certain extent. For this reason, an object of the present invention is to provide a log extraction method and related equipment, which can conveniently capture and filter logs, and help improve ...

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): G06F16/18G06F16/174G06F16/172G06F11/34
CPCG06F16/1815G06F16/1744G06F16/172G06F11/3476
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