A log query method, device, equipment and storage medium

A query method and log technology, which is applied in the computer field, can solve the problems of large search data, low query efficiency, and difficulty in quickly querying log data, etc., and achieve the effect of improving efficiency and fast query

Active Publication Date: 2021-08-03
BEIJING YOUTEJIE INFORMATION TECH
View PDF1 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] At this stage, the generated log data is mainly stored in the database. When the log query command is received, the log data that matches the query command is searched in the database; this method is difficult to quickly query due to the large amount of search data required. To the log data that matches the query command, the query efficiency is low

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
  • A log query method, device, equipment and storage medium
  • A log query method, device, equipment and storage medium
  • A log query method, device, equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0045] figure 1 It is a flow chart of the log query method provided by Embodiment 1 of the present invention. This embodiment is applicable to the case where the log matching the query instruction is quickly queried, and the method can be executed by a log query device, which can use software and / or implemented in hardware, and integrated in the log query device that executes the method; wherein, the log query device can be an electronic device such as a computer, a server, or a tablet computer. Specifically, refer to figure 1 , the method specifically includes the following steps:

[0046] Step 110: In response to the log query instruction, analyze the log query instruction to obtain at least one reference field.

[0047] Wherein, the log query instruction may be a query instruction in any operating environment or computer language, and its specific form is not limited in this embodiment.

[0048] In an optional implementation manner of this embodiment, after receiving the...

Embodiment 2

[0060] figure 2 It is a flowchart of a log query method in Embodiment 2 of the present invention. This embodiment is a further refinement of the above-mentioned technical solutions. The technical solutions in this embodiment can be compared with each of the above-mentioned one or more embodiments. Optional combination. Such as figure 2 As shown, the log query method may include the following steps:

[0061] Step 210, obtain multiple historical log query instructions and analyze them to obtain multiple target fields; count the query frequency of each target field, and obtain the target fields whose query frequency is greater than or equal to the set threshold value and determine them as accelerated fields; The overlapping ones are stored in the standard field set, and the query indexes of each accelerated field in the standard field set are respectively established.

[0062] In an optional implementation of this embodiment, before parsing the log query command in response ...

Embodiment 3

[0087] image 3 It is a flowchart of a log query method in Embodiment 3 of the present invention. This embodiment is a further refinement of the above-mentioned technical solutions. The technical solutions in this embodiment can be compared with each of the above-mentioned one or more embodiments. Optional combination. Such as image 3 As shown, the log query method may include the following steps:

[0088] Step 310: In response to the log query instruction, parse the log query instruction to obtain at least one reference field.

[0089] Step 320: Determine the consistency between each reference field and each standard field in the standard field set; when the target reference field is consistent with the target standard field, determine that each reference field contains at least one target standard field.

[0090] In an optional implementation of this embodiment, after parsing the log query instruction to obtain at least one reference finger, the consistency between each ...

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 embodiment of the invention discloses a log query method, device, equipment and storage medium. Wherein, the method includes: responding to the log query instruction, parsing the log query instruction to obtain at least one reference field; comparing each reference field with a standard field set, the standard field set includes historical query frequency satisfying the high-frequency query condition An acceleration field; if it is determined that each reference field includes at least one target standard field, then obtain a target query index corresponding to the target standard field; according to the target query index, query to obtain a log matching the log query instruction. The solution of the embodiment of the present invention solves the problem that it is difficult to quickly query the log data matching the query instruction, and the query efficiency is low, realizes the rapid query of the target log, and improves the efficiency of log search.

Description

technical field [0001] The embodiments of the present invention relate to computer technology, and in particular to a log query method, device, equipment and storage medium. Background technique [0002] With the continuous development of information technology, various websites, servers, and applications generate hundreds of millions of log data every day; how to query the logs required by users from these log data is a key issue in the industry. [0003] At this stage, the generated log data is mainly stored in the database. When the log query command is received, the log data that matches the query command is searched in the database; this method is difficult to quickly query due to the need to search for more data If the log data matching the query command is found, the query efficiency is low. Contents of the invention [0004] Embodiments of the present invention provide a log query method, device, device, and storage medium, so as to quickly query a target log and ...

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 Patents(China)
IPC IPC(8): G06F16/18G06F16/14G06F16/22
CPCG06F16/14G06F16/1815G06F16/2228
Inventor 饶琛琳梁玫娟
Owner BEIJING YOUTEJIE INFORMATION TECH
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
Try Eureka
PatSnap group products