Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

Log file retrieval method and device, terminal and medium

A log file and log technology, applied in the computer field, can solve problems such as time consumption, loss of key data, and non-existence, and achieve the effect of improving efficiency and shortening log reading time.

Inactive Publication Date: 2020-11-17
云和恩墨(北京)信息技术有限公司
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Therefore, this method not only needs to consume a lot of time to determine the maximum number of content, but also has the problem that the first line of data is easily truncated when intercepting the log content, resulting in the loss of key data
The periodical scan file is to periodically query the size of the log file, and to obtain the size of the latest log file content of the log file based on the difference between the two queried log files, and to search based on the size starting from the end of the log file , the main problem of this method is: because the retrieved time may not exist in the latest log content, it is necessary to retrieve the old log content again to determine the retrieval position

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 file retrieval method and device, terminal and medium
  • Log file retrieval method and device, terminal and medium
  • Log file retrieval method and device, terminal and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, not to limit the present application.

[0024] It should be noted that although the functional modules are divided in the schematic diagram of the device, and the logical sequence is shown in the flowchart, in some cases, it can be executed in a different order than the module division in the device or the flowchart in the flowchart. steps shown or described.

[0025] In order to make the purpose, technical solution and advantages of the present application clearer, the implementation manners of the present application will be further described in detail below in conjunction with the accompanying drawings.

[0026] According to...

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 file retrieval method and device, a terminal and a medium. The method comprises the following steps: determining read times of a specified log file in a specified storageposition; reading the specified log file according to the preset fragment reading character number and the read times to obtain a to-be-processed log fragment; determining time information included in the log fragment; and according to the time information and a preset log retrieval time period, processing the log fragment to complete retrieval of the specified log file. The specified log file isread by taking the fragment reading character number as a unit, so that the reading frequency of the log file can be controlled, the effect of reading the specified log file in a fragmentation manneris achieved, the log reading time is shortened by controlling the data volume read each time, and the log reading efficiency is improved. Log retrieval efficiency is improved.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a retrieval method, device, terminal and medium for log files. Background technique [0002] The log file is a record file used to record the operation content of the application program. Therefore, the problems of the application program can be tracked by monitoring the log file. For example, tracking down application problems, troubleshooting application errors, understanding application activity, etc. The monitoring log files are generally retrieved by specifying the log retrieval time, that is, positioning is performed at the specified retrieval log time, and the location until the end of the file is used as the retrieved log to complete the log retrieval. [0003] At present, three methods are mainly used for log retrieval: binary search method, tail interception method and periodic file scanning. Among them, the binary search method mainly divides the log file...

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
IPC IPC(8): G06F16/14G06F16/17G06F16/18
CPCG06F16/14G06F16/1734G06F16/1815
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
Eureka Blog
Learn More
PatSnap group products