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

Method and device for building log indexes

A construction method and log technology, applied in the computer field, can solve problems such as consumption, excessive time and resources, and low efficiency, and achieve the effect of ensuring search efficiency and improving search efficiency

Active Publication Date: 2018-02-13
杭州迪普信息技术有限公司
View PDF10 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When looking for a log record whose field value is a specific value, it is necessary to traverse each log record to determine whether the value of the field is a specific value. Obviously, this traversal search method is very inefficient, especially when there are many logs. consumes more time and resources

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 building log indexes
  • Method and device for building log indexes
  • Method and device for building log indexes

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0042] In order to enable those skilled in the art to better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be described in detail below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only It is a part of the embodiments of this application, not all of them. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments in this application shall fall within the protection scope of this application.

[0043] First, the log index construction method of the embodiment of the present invention is described, see figure 1 As shown, the method may include the following steps:

[0044] S101. Determine at least one required field combination in the log file that needs to create an index file according to a preset field combination rule;

[0045] In actual log search, similar to using a sea...

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 provides a method and a device for building log indexes. The method for building the log indexes includes determining at least one necessary field combination in log files according to preset field combination rules; executing operation for each log record in the log files, to be more specific, acquiring values of fields in the log records, splicing the values of the fields to obtainvalues of the necessary field combinations and acquiring offset locations of the log records in the log files; creating index records for the different values of each field combination; writing the index records of the same field combination into a single index file of the corresponding log file. The index files need to be created for the necessary field combinations determined according to the preset field combination rules. The index records further comprise offset locations of the log records corresponding to the different values. According to the scheme, the method and the device have theadvantage that the log searching efficiency can be effectively improved by the method and the device.

Description

technical field [0001] The present application relates to the field of computer technology, in particular to a log index construction method and device. Background technique [0002] In a computer, events that occur during the operation of the operating system or other software are usually recorded in a log, and the log can provide information such as daily maintenance of the operation of the system and diagnosis of software problems. When recording logs, a preset log format is usually used, that is, one or more fields to be recorded are preset, and the value of each preset field may be different for different events. The log recorded for an event is composed of the values ​​of all the preset fields of the event. For example, if the fields of a log recording a certain software operation are set to "time" and "operation", each time the software performs an operation, a log including the time value and operation value will be generated, and the user needs to check when a cert...

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): G06F17/30
CPCG06F16/13G06F16/1815
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