Log query method and device, equipment and storage medium

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

Active Publication Date: 2021-05-07
BEIJING YOUTEJIE INFORMATION TECH
View PDF5 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
  • Log query method and device, equipment and storage medium
  • Log query method and device, equipment and storage medium
  • Log query method and 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 and device, equipment and a storage medium. The method comprises the following steps: in response to a log query instruction, analyzing the log query instruction to obtain at least one reference field; comparing each reference field with a standard field set, wherein the standard field set comprises an acceleration field of which the historical query frequency meets a high-frequency query condition; if it is determined that each reference field comprises at least one target standard field, obtaining a target query index corresponding to the target standard field; and according to the target query index, querying to obtain a log matched with the log query instruction. According to the scheme provided by the embodiment of the invention, the problems that the log data matched with the query instruction is difficult to quickly query and the query efficiency is relatively low are solved, the target log is quickly queried, and the log search efficiency is improved.

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 Applications(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