CN116010350A - Binary log retrieval method, system, equipment and storage medium - Google Patents

Binary log retrieval method, system, equipment and storage medium Download PDF

Info

Publication number
CN116010350A
CN116010350A CN202310297112.7A CN202310297112A CN116010350A CN 116010350 A CN116010350 A CN 116010350A CN 202310297112 A CN202310297112 A CN 202310297112A CN 116010350 A CN116010350 A CN 116010350A
Authority
CN
China
Prior art keywords
target
log
event
binary log
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202310297112.7A
Other languages
Chinese (zh)
Other versions
CN116010350B (en
Inventor
徐泽威
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Everything Safety Technology Co ltd
Original Assignee
Shenzhen Everything Safety Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Everything Safety Technology Co ltd filed Critical Shenzhen Everything Safety Technology Co ltd
Priority to CN202310297112.7A priority Critical patent/CN116010350B/en
Publication of CN116010350A publication Critical patent/CN116010350A/en
Application granted granted Critical
Publication of CN116010350B publication Critical patent/CN116010350B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a binary log retrieval method, which comprises the following steps: in response to a search instruction, determining a target digital code in a binary log based on an expression corresponding to the search instruction; analyzing the target digital code to obtain a target label combination; and determining a target event based on the target tag combination, and outputting a log file corresponding to the target event. The invention also discloses a binary log retrieval system, a binary log retrieval device and a binary log retrieval storage medium. The method optimizes the retrieval process aiming at the binary log, improves the retrieval efficiency and accuracy, and improves the user experience.

Description

Binary log retrieval method, system, equipment and storage medium
Technical Field
The present invention relates to the field of log retrieval technologies, and in particular, to a binary log retrieval method, system, device, and storage medium.
Background
In the conventional log, log information is stored as text files, and when the log needs to be retrieved, the log information can only be searched by means of simple text, and slightly complex combined search cannot be supported, and the disk space occupied by the conventional log is large.
At present, with the development of information technology, more and more scenes store key log information through binary logs, so that more key log information is stored under the condition of reducing occupied space, and network transmission is facilitated. However, when the key log information stored in the binary log needs to be read, people often only pay attention to the analysis of the binary log file, but not pay attention to the accurate search of the key log information, which results in low search efficiency and accuracy when searching for the binary log, so that the user experience is poor.
Disclosure of Invention
The invention mainly aims to provide a binary log retrieval method, binary log retrieval equipment and a storage medium, and aims to improve the efficiency and accuracy of binary log retrieval and improve user experience.
In order to achieve the above object, the present invention provides a binary log search method, comprising the steps of:
in response to a search instruction, determining a target digital code in a binary log based on an expression corresponding to the search instruction;
analyzing the target digital code to obtain a target label combination;
and determining a target event based on the target tag combination, and outputting a log file corresponding to the target event.
Optionally, the expression includes a tag, an operator and a reference value, and the step of determining the target digital code in the binary log based on the expression corresponding to the search instruction includes:
identifying whether the tag, the operator and the reference value meet a preset retrieval rule;
if the preset search rule is met, analyzing the tag, the operator and the reference value to obtain an analysis result;
and determining the digital code corresponding to the expression based on the analysis result as the target digital code.
Optionally, after the step of determining the target digital code in the binary log based on the expression corresponding to the search instruction in response to the search instruction, the method further includes:
recording response times of the retrieval instruction corresponding to the expression;
and if the response times exceed the preset times, adding an index corresponding to the expression, wherein the index comprises a reference value range corresponding to the label.
Optionally, the step of determining the target digital code in the binary log based on the expression corresponding to the search instruction in response to the search instruction further includes:
if the retrieval instruction corresponds to a plurality of expressions, determining a retrieval sequence based on the priority of each expression;
and executing the step of determining the target digital code in the binary log based on the expression corresponding to the search instruction based on the search order.
Optionally, the step of determining a target event based on each tag combination and outputting a log file corresponding to the target event includes:
determining an associated log event based on the target tag combination, wherein the log event includes metadata and the target tag combination;
and taking the log event as the target event, and generating and outputting a log file corresponding to the target event.
Optionally, the step of parsing the target digital code to obtain a target tag combination includes:
analyzing the target digital code to obtain a target label;
and acquiring the label combination associated with the target label as the target label combination.
Optionally, after the step of determining the target event based on the target tag combination and outputting the log file corresponding to the target event, the method further includes:
if the target event comprises a plurality of log events, acquiring time stamp information corresponding to each log event;
and associating the log events based on the ordering of the timestamp information, generating a comprehensive event and outputting a log file corresponding to the comprehensive event.
In addition, to achieve the above object, the present invention also provides a binary log search system, including:
the first determining module is used for responding to the search instruction and determining a target digital code in the binary log based on an expression corresponding to the search instruction;
the analysis module is used for analyzing the target digital code to obtain a target label combination;
and the second determining module is used for determining a target event based on the target tag combination and outputting a log file corresponding to the target event.
In addition, in order to achieve the above object, the present invention also provides a binary log retrieval apparatus comprising: a memory, a processor, and a binary log search program stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the binary log search method as described above.
In addition, in order to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a binary log search program which, when executed by a processor, implements the steps of the binary log search method as described above.
According to the binary log searching method, the target digital code is determined in the binary log based on the expression corresponding to the searching instruction by responding to the searching instruction; analyzing the target digital code to obtain a target label combination; and determining a target event based on the target tag combination, and outputting a log file corresponding to the target event. The retrieval process aiming at the binary log is optimized, the retrieval efficiency and accuracy are improved, and the user experience is improved.
Drawings
FIG. 1 is a schematic diagram of a binary log retrieval system in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart of a binary log search method according to a first embodiment of the present invention;
FIG. 3 is a block diagram of a binary log retrieval system according to an embodiment of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of a binary log retrieval device in a hardware running environment according to an embodiment of the present invention.
The terminal of the embodiment of the invention can be a PC, and also can be mobile terminal equipment with a display function, such as a smart phone, a tablet personal computer, a portable computer and the like.
As shown in fig. 1, the binary log retrieving apparatus may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein the communication bus 1002 is used to enable connected communication between these components. The user interface 1003 may include a Display, an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may further include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also optionally be a storage device separate from the processor 1001 described above.
Optionally, the binary log retrieval device may also include a camera, RF (Radio Frequency) circuitry, sensors, audio circuitry, wiFi modules, and the like. Among them, sensors such as light sensor, motion sensor and others are not described herein.
It will be appreciated by those skilled in the art that the terminal structure shown in fig. 1 does not constitute a limitation of the binary log retrieval device, and may include more or fewer components than shown, or may combine certain components, or a different arrangement of components.
As shown in fig. 1, an operating system, a network communication module, a user interface module, and a binary log search program may be included in a memory 1005 as one type of computer storage medium.
In the binary log retrieval device shown in fig. 1, the network interface 1004 is mainly used for connecting to a background server and performing data communication with the background server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be used to invoke a binary log retrieval program stored in the memory 1005.
In the present embodiment, the binary log retrieving apparatus includes: the system comprises a memory 1005, a processor 1001 and a binary log search program stored in the memory 1005 and capable of running on the processor 1001, wherein the processor 1001 executes the steps of the binary log search method in the following embodiments when calling the binary log search program stored in the memory 1005.
The invention also provides a binary log searching method, referring to fig. 2, fig. 2 is a flow chart of a first embodiment of the binary log searching method of the invention.
In this embodiment, the method includes the steps of:
step S101, in response to a search instruction, determining a target digital code in a binary log based on an expression corresponding to the search instruction;
in this embodiment, after receiving a search instruction from a user, in response to the search instruction, a target digital code is determined in a binary log according to an expression corresponding to the search instruction.
Specifically, the binary log is composed of log events, each log event is composed of a log header and a log body, the log header contains metadata, the log body is a label combination formed by labels, each label combination can comprise one label or a plurality of labels, when a user needs to search the binary log, the user needs to input an expression, and send out a search instruction, and the expression corresponding to the search instruction is analyzed in response to the search instruction, so that a target digital code can be determined in the binary log, and the target label combination can be obtained through analysis of the target digital code.
Optionally, the metadata included in the log header may include timestamp information and a hash code, where the hash code is a unique ID of the log event and is obtained by calculation of a hash algorithm, and in addition, the hash operation may be performed by using the timestamp information and the log body, if the timestamp information and the log body of the two log events are the same, the hash code is the same, and if the timestamp information and/or the log body of the two log events are different, the hash code is different.
Step S102, analyzing the target digital code to obtain a target label combination;
in this embodiment, after determining the target digital code in the binary log according to the expression corresponding to the search instruction, the target digital code may be parsed to obtain the target tag combination.
Specifically, the binary log stores a digital code, the digital code can be converted into text information, the text can be used for representing a label combination, the label combination can be named for log events, the number of labels included in the label combination can be different for log events with different complexity, for example, the label combination of a simple event can only include one label, and the label combination of a complex event can include a plurality of labels, so that after the target digital code is determined in the binary log according to an expression corresponding to a search instruction, the target digital code is analyzed by using a label analysis tool, and the target label combination can be obtained.
Step S103, determining a target event based on the target tag combination, and outputting a log file corresponding to the target event.
In this embodiment, after the target digital code is parsed to obtain the target tag combination, the target event may be determined according to the target tag combination, and then the log file corresponding to the target event may be output.
Specifically, as the log event is composed of metadata and a tag combination, the target digital code is analyzed, the target digital code is converted into the target tag combination, and then the metadata can be obtained through the target tag combination, so that the associated log event is determined as the target event, and then the log file corresponding to the target event is generated and output.
In the embodiment, a target digital code is determined in a binary log based on an expression corresponding to a search instruction by responding to the search instruction; analyzing the target digital code to obtain a target label combination; and determining a target event based on the target tag combination, and outputting a log file corresponding to the target event. The retrieval process aiming at the binary log is optimized, the retrieval efficiency and accuracy are improved, and the user experience is improved.
Based on the first embodiment, a second embodiment of the binary log searching method of the present invention is provided, in this embodiment, the expression includes a tag, an operator and a reference value, and in step S101, the method for determining a target digital code in a binary log based on the expression corresponding to the searching instruction includes the specific steps of:
step S201, identifying whether the tag, the operator and the reference value conform to a preset search rule;
step S202, if the preset search rule is met, analyzing the tag, the operator and the reference value to obtain an analysis result;
and step 203, determining the digital code corresponding to the expression based on the analysis result as the target digital code.
In this embodiment, the expression corresponding to the search instruction includes a tag, an operator and a reference value, and in response to the search instruction, the target digital code is obtained according to the expression corresponding to the search instruction, first, whether the tag, the operator and the reference value conform to a preset search rule needs to be identified, if the tag, the operator and the reference value conform to the preset search rule, the tag, the operator and the reference value are parsed, a parsing result is obtained, and then the digital code corresponding to the expression is determined according to the parsing result and is used as the target digital code.
Specifically, the expression corresponding to the search instruction is a ternary expression, and the ternary expression comprises three elements of a tag, an operator and a reference value, wherein the tag supports six data types and comprises: the method comprises the steps of determining a number, a pool, enumeration, a structure, a character string and a floating point number according to the data types of the labels, wherein the number and the floating point number support are equal to =, unequal to = | and greater than =, less than <, and greater than or equal to =, the pool support is equal to =, unequal to = | and equal to =, the structure is a plurality of continuously stored parallel labels, splitting the structure into a plurality of labels for processing when searching, the character string support prefix is equal to =, the prefix is unequal to = |, the suffix is equal to $ =, the suffix is unequal to = | and the keyword is equal to = | and the keyword is unequal to = | and all labels support two operators of existence of exists and absence of exists of the labels, presetting the rules corresponding to the labels and the operators and other relevant rules for searching, identifying whether the expression accords with the preset expression, analyzing the result according to the binary expression, and analyzing the result according to the analysis result when the binary expression accords with the preset expression.
Optionally, after step S101, the method further includes:
step S301, recording response times of the search instruction corresponding to the expression;
step S302, if the response times exceeds the preset times, adding an index corresponding to the expression, where the index includes a reference value range corresponding to the tag.
In this embodiment, after obtaining a target digital code according to an expression corresponding to a search instruction, recording the response times of the search instruction corresponding to the expression, and if the response times exceed a preset number, adding an index corresponding to the expression, where the index includes a reference value range corresponding to a label in the expression.
Specifically, when searching an expression in response to a search instruction, the response times of the search instruction corresponding to the expression, that is, the search times of the expression, are recorded, if the times exceed the preset times, a corresponding index is added to the expression, for example, the preset times are 3 times, and when the search times of any expression exceed 3 times, an index corresponding to the expression is added, wherein the index at least comprises a reference value range corresponding to a label in the expression.
Optionally, the index of the expression may also include a start position, an end position of the tag for quick positioning of the tag.
In this embodiment, the response times of the search instruction corresponding to the expression are recorded; and if the response times exceed the preset times, adding an index corresponding to the expression, wherein the index comprises a reference value range corresponding to the label. The subsequent retrieval efficiency of the same expression is higher, the intelligence of binary log retrieval is improved, and the user experience is improved.
In this embodiment, whether the tag, the operator and the reference value meet a preset search rule is identified; if the preset search rule is met, analyzing the tag, the operator and the reference value to obtain an analysis result; and determining the digital code corresponding to the expression based on the analysis result as the target digital code. The accuracy of binary log retrieval is improved through the expression specific type rule and the retrieval rule.
Based on the first embodiment, a third embodiment of the binary log search method of the present invention is proposed, and in this embodiment, before step S101, the method further includes:
step S401, if the search instruction corresponds to a plurality of expressions, determining a search sequence based on the priority of each expression;
step S402, based on the search sequence, executing the step of determining the target digital code in the binary log based on the expression corresponding to the search instruction.
In this embodiment, if the received search instruction corresponds to a plurality of expressions, a search order is determined according to the priority of each expression, and a step of determining a target digital code in the binary log based on the expression corresponding to the search instruction is performed according to the search order.
Specifically, during binary log retrieval, the retrieval instruction may correspond to more than one expression, if the retrieval instruction corresponds to a plurality of expressions, the retrieval order needs to be determined according to the priority of each expression, then the retrieval is performed according to the retrieval order, and the target digital code is determined in the binary log, wherein the priority may be represented by the order of each expression or may be determined by the retrieval rule.
In this embodiment, if the search instruction corresponds to a plurality of expressions, determining a search order based on priorities of the expressions; and executing the step of determining the target digital code in the binary log based on the expression corresponding to the search instruction based on the search order. When searching is carried out according to the expressions, the searched result meets the requirements of users, the intelligence and the accuracy of binary log searching are improved, and the user experience is improved.
Based on the first embodiment, a fourth embodiment of the binary log search method of the present invention is proposed, in which step S103 includes:
step S501, determining an associated log event based on the target tag combination, wherein the log event comprises metadata and the target tag combination;
step S502, taking the log event as the target event, and generating and outputting a log file corresponding to the target event.
In this embodiment, after a target digital code is parsed to obtain a target tag combination, an associated log event can be determined according to the target tag combination, where the log event includes metadata and the target tag combination, then the log event associated with the target tag combination is used as a target event, and a log file corresponding to the target event is output, for example, each log event is composed of metadata and tag combination, the metadata is used as a log header, the tag combination is used as a log body, the log header and the log body are associated with each other, and the associated metadata is determined by the target tag combination, so that the target event can be obtained.
In this embodiment, determining an associated log event based on the target tag combination, wherein the log event includes metadata and the target tag combination; and taking the log event as the target event, and generating and outputting a log file corresponding to the target event. The efficiency and the accuracy of binary log retrieval are improved, and the user experience is improved.
Based on the first embodiment, a fifth embodiment of the binary log retrieving method of the present invention is proposed, in which step S102 includes:
step S601, analyzing the target digital code to obtain a target label;
step S602, obtaining a label combination associated with the target label as the target label combination.
In this embodiment, after the target digital code is obtained according to the expression corresponding to the search instruction, the target digital code is parsed to obtain the target tag, and then the tag combination associated with the target tag is obtained as the target tag combination, for example, the target digital code is parsed by the tag parser to obtain the target tag, and the tag combination associated with the target tag is obtained according to the target tag to obtain the target tag combination as the target tag combination.
In this embodiment, the target tag is obtained by parsing the target digital code; and acquiring the label combination associated with the target label as the target label combination. All the associated label combinations are obtained through the labels, so that the suitability of an analysis result is improved, and the accuracy of binary log retrieval is improved.
Based on the above embodiments, a sixth embodiment of the binary log search method of the present invention is proposed, and in this embodiment, after step S103, the method further includes:
step S701, if the target event includes a plurality of log events, acquiring timestamp information corresponding to each log event;
step S702, associating each log event based on the ordering of the timestamp information, generating a comprehensive event and outputting a log file corresponding to the comprehensive event.
In this embodiment, after determining a target event and outputting a log file corresponding to the target event, if the target event includes a plurality of log events, timestamp information corresponding to each log event is obtained, each log event is associated according to the ordering of the timestamp information, a comprehensive event is generated, and the log file corresponding to the comprehensive event is output.
Specifically, in addition to the label combination consisting of labels, a tree-level association relationship may exist between label combinations, for example, a tree-level association relationship formed by nesting a plurality of label combinations in a structure body, and a log event corresponding to each label combination having a tree-level association relationship may also exist between the label combinations, so that a large event can be constructed according to a small event to form an objective world model, therefore, if a finally obtained target event includes a plurality of log events, a comprehensive event can be generated according to the ordering of timestamp information of each log event, and a log file corresponding to the comprehensive event can be output, so as to achieve the purpose of binary search.
Alternatively, the metadata may include, in addition to the timestamp information and the hash code, a hash code of the associated event, and in addition to the association of the log event by the tag combination, different log events may be associated by the hash code of the associated event to generate the integrated event.
In this embodiment, if the target event includes a plurality of log events, timestamp information corresponding to each log event is obtained; and associating the log events based on the ordering of the timestamp information, generating a comprehensive event and outputting a log file corresponding to the comprehensive event. And finally, the comprehensive event can be constructed according to the log event with the association relationship, so that the intelligence and the flexibility of binary log retrieval are improved, and the user experience is improved.
In addition, an embodiment of the present invention further provides a binary log search system, referring to fig. 3, where the binary log search system includes:
a first determining module 10, configured to determine, in response to a search instruction, a target digital code in a binary log based on an expression corresponding to the search instruction;
the parsing module 20 is configured to parse the target digital code to obtain a target tag combination;
the second determining module 30 is configured to determine a target event based on the target tag combination, and output a log file corresponding to the target event.
Further, the expression includes a tag, an operator, and a reference value, and the first determining module 10 is further configured to:
identifying whether the tag, the operator and the reference value meet a preset retrieval rule;
if the preset search rule is met, analyzing the tag, the operator and the reference value to obtain an analysis result;
and determining the digital code corresponding to the expression based on the analysis result as the target digital code.
Further, the binary log retrieval system is further configured to:
recording response times of the retrieval instruction corresponding to the expression;
and if the response times exceed the preset times, adding an index corresponding to the expression, wherein the index comprises a reference value range corresponding to the label.
Further, the binary log retrieval system is further configured to:
if the retrieval instruction corresponds to a plurality of expressions, determining a retrieval sequence based on the priority of each expression;
and executing the step of determining the target digital code in the binary log based on the expression corresponding to the search instruction based on the search order.
Further, the binary log retrieval system is further configured to:
determining an associated log event based on the target tag combination, wherein the log event includes metadata and the target tag combination;
and taking the log event as the target event, and generating and outputting a log file corresponding to the target event.
Further, the binary log retrieval system is further configured to:
analyzing the target digital code to obtain a target label;
and acquiring the label combination associated with the target label as the target label combination.
Further, the binary log retrieval system is further configured to:
if the target event comprises a plurality of log events, acquiring time stamp information corresponding to each log event;
and associating the log events based on the ordering of the timestamp information, generating a comprehensive event and outputting a log file corresponding to the comprehensive event.
The method executed by the binary log search device may refer to various embodiments of the binary log search method of the present invention, and will not be described herein.
In addition, the embodiment of the invention also provides a binary log retrieval device, which comprises: a memory, a processor, and a binary log search program stored on the memory and executable on the processor, which when executed by the processor, implements the steps of the binary log search method as described above.
In addition, the embodiment of the invention also provides a computer readable storage medium, wherein the computer readable storage medium stores a binary log retrieval program, and the binary log retrieval program realizes the steps of the binary log retrieval method when being executed by a processor.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The foregoing embodiment numbers of the present invention are merely for the purpose of description, and do not represent the advantages or disadvantages of the embodiments.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) as described above, comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the method according to the embodiments of the present invention.
The foregoing description is only of the preferred embodiments of the present invention, and is not intended to limit the scope of the invention, but rather is intended to cover any equivalents of the structures or equivalent processes disclosed herein or in the alternative, which may be employed directly or indirectly in other related arts.

Claims (10)

1. A binary log retrieval method, characterized in that the binary log retrieval method comprises the steps of:
in response to a search instruction, determining a target digital code in a binary log based on an expression corresponding to the search instruction;
analyzing the target digital code to obtain a target label combination;
and determining a target event based on the target tag combination, and outputting a log file corresponding to the target event.
2. The binary log search method as claimed in claim 1, wherein the expression includes a tag, an operator, and a reference value, and the step of determining the target digital code in the binary log based on the expression corresponding to the search instruction includes:
identifying whether the tag, the operator and the reference value meet a preset retrieval rule;
if the preset search rule is met, analyzing the tag, the operator and the reference value to obtain an analysis result;
and determining the digital code corresponding to the expression based on the analysis result as the target digital code.
3. The binary log search method according to claim 2, wherein the step of determining the target digital code in the binary log based on the expression corresponding to the search instruction in response to the search instruction further comprises:
recording response times of the retrieval instruction corresponding to the expression;
and if the response times exceed the preset times, adding an index corresponding to the expression, wherein the index comprises a reference value range corresponding to the label.
4. The binary log search method according to claim 1, wherein the step of determining the target digital code in the binary log based on the expression corresponding to the search instruction in response to the search instruction further comprises:
if the retrieval instruction corresponds to a plurality of expressions, determining a retrieval sequence based on the priority of each expression;
and executing the step of determining the target digital code in the binary log based on the expression corresponding to the search instruction based on the search order.
5. The binary log retrieval method as claimed in claim 1, wherein the step of determining a target event based on each of the tag combinations and outputting a log file corresponding to the target event comprises:
determining an associated log event based on the target tag combination, wherein the log event includes metadata and the target tag combination;
and taking the log event as the target event, and generating and outputting a log file corresponding to the target event.
6. The binary log retrieval method as recited in claim 1, wherein said parsing said target digital code to obtain a target tag combination comprises:
analyzing the target digital code to obtain a target label;
and acquiring the label combination associated with the target label as the target label combination.
7. The binary log retrieval method according to any one of claims 1 to 6, wherein after the step of determining a target event based on the target tag combination and outputting a log file corresponding to the target event, further comprising:
if the target event comprises a plurality of log events, acquiring time stamp information corresponding to each log event;
and associating the log events based on the ordering of the timestamp information, generating a comprehensive event and outputting a log file corresponding to the comprehensive event.
8. A binary log retrieval system, the binary log retrieval system comprising:
the first determining module is used for responding to the search instruction and determining a target digital code in the binary log based on an expression corresponding to the search instruction;
the analysis module is used for analyzing the target digital code to obtain a target label combination;
and the second determining module is used for determining a target event based on the target tag combination and outputting a log file corresponding to the target event.
9. A binary log retrieval apparatus, characterized in that the binary log retrieval apparatus comprises: memory, a processor and a binary log search program stored on the memory and executable on the processor, which binary log search program when executed by the processor implements the steps of the binary log search method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that the readable storage medium has stored thereon a binary log search program which, when executed by a processor, implements the steps of the binary log search method according to any one of claims 1 to 7.
CN202310297112.7A 2023-03-24 2023-03-24 Binary log retrieval method, system, equipment and storage medium Active CN116010350B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310297112.7A CN116010350B (en) 2023-03-24 2023-03-24 Binary log retrieval method, system, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310297112.7A CN116010350B (en) 2023-03-24 2023-03-24 Binary log retrieval method, system, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN116010350A true CN116010350A (en) 2023-04-25
CN116010350B CN116010350B (en) 2023-06-06

Family

ID=86037676

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310297112.7A Active CN116010350B (en) 2023-03-24 2023-03-24 Binary log retrieval method, system, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116010350B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110240729A1 (en) * 2010-03-31 2011-10-06 Mckesson Automation Inc. System, apparatus, method and computer-readable storage medium for generating medication labels
CN106055621A (en) * 2016-05-26 2016-10-26 浪潮电子信息产业股份有限公司 Log retrieval method and device
CN106233292A (en) * 2014-06-24 2016-12-14 惠普发展公司有限责任合伙企业 Synthesis document access
CN107851267A (en) * 2015-10-07 2018-03-27 谷歌有限责任公司 System and method for carrying out the synchronous data related to audio call via the virtual phone number of dynamically distributes
CN110362549A (en) * 2019-06-17 2019-10-22 平安普惠企业管理有限公司 Log memory search method, electronic device and computer equipment
JP2019212060A (en) * 2018-06-05 2019-12-12 日本電信電話株式会社 Retrieval device, retrieval method, and retrieval program
CN110737707A (en) * 2019-09-06 2020-01-31 深圳前海金融资产交易所有限公司 Multi-system log searching method and device and computer readable storage medium
CN111639248A (en) * 2020-04-28 2020-09-08 深圳壹账通智能科技有限公司 Webpage data crawling method, device, equipment and storage medium
CN111813756A (en) * 2019-04-12 2020-10-23 北京嘀嘀无限科技发展有限公司 Log retrieval system, method and device, electronic equipment and storage medium
CN113760971A (en) * 2021-11-09 2021-12-07 通联数据股份公司 Method, computing device and storage medium for retrieving data of a graph database
CN115061990A (en) * 2022-06-10 2022-09-16 金蝶软件(中国)有限公司 Log storage method, log retrieval method, log storage device, log retrieval device and log storage medium

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110240729A1 (en) * 2010-03-31 2011-10-06 Mckesson Automation Inc. System, apparatus, method and computer-readable storage medium for generating medication labels
CN106233292A (en) * 2014-06-24 2016-12-14 惠普发展公司有限责任合伙企业 Synthesis document access
CN107851267A (en) * 2015-10-07 2018-03-27 谷歌有限责任公司 System and method for carrying out the synchronous data related to audio call via the virtual phone number of dynamically distributes
CN106055621A (en) * 2016-05-26 2016-10-26 浪潮电子信息产业股份有限公司 Log retrieval method and device
JP2019212060A (en) * 2018-06-05 2019-12-12 日本電信電話株式会社 Retrieval device, retrieval method, and retrieval program
CN111813756A (en) * 2019-04-12 2020-10-23 北京嘀嘀无限科技发展有限公司 Log retrieval system, method and device, electronic equipment and storage medium
CN110362549A (en) * 2019-06-17 2019-10-22 平安普惠企业管理有限公司 Log memory search method, electronic device and computer equipment
CN110737707A (en) * 2019-09-06 2020-01-31 深圳前海金融资产交易所有限公司 Multi-system log searching method and device and computer readable storage medium
CN111639248A (en) * 2020-04-28 2020-09-08 深圳壹账通智能科技有限公司 Webpage data crawling method, device, equipment and storage medium
CN113760971A (en) * 2021-11-09 2021-12-07 通联数据股份公司 Method, computing device and storage medium for retrieving data of a graph database
CN115061990A (en) * 2022-06-10 2022-09-16 金蝶软件(中国)有限公司 Log storage method, log retrieval method, log storage device, log retrieval device and log storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
WEIBIN MENG ET AL.: "device-agnostic log anomaly classification with partial labels", 《2018 IEEE/ACM 26TH INTERNATIONAL SYMPOSIUM ON QUALITY OF SERVICE》, pages 1 - 5 *
王淼: "搜索日志分析研究述评", 《电脑知识与技术》, vol. 14, no. 32, pages 263 - 266 *

Also Published As

Publication number Publication date
CN116010350B (en) 2023-06-06

Similar Documents

Publication Publication Date Title
CN108920659B (en) Data processing system, data processing method thereof, and computer-readable storage medium
CN109284399B (en) Similarity prediction model training method and device and computer readable storage medium
US20080071749A1 (en) Method, Apparatus and Computer Program Product for a Tag-Based Visual Search User Interface
US20070094718A1 (en) Configurable dynamic input word prediction algorithm
US20140188889A1 (en) Predictive Selection and Parallel Execution of Applications and Services
CN105988996B (en) Index file generation method and device
CN109710739B (en) Information processing method and device and storage medium
CN110069763B (en) Contract text customization method, device, equipment and readable storage medium
US20090006342A1 (en) Method, Apparatus and Computer Program Product for Providing Internationalization of Content Tagging
CN112035638B (en) Information processing method, device, storage medium and equipment
CN110855555B (en) Mail sending method, device, equipment and computer readable storage medium
CN109634436B (en) Method, device, equipment and readable storage medium for associating input method
JP2009020865A (en) Character input assist method, character input assist system, character input assist program, user terminal, character conversion method and character conversion program
CN116991977B (en) Domain vector knowledge accurate retrieval method and device based on large language model
CN116010350B (en) Binary log retrieval method, system, equipment and storage medium
CN112836077B (en) Specific person retrieval method, system, device and storage medium
JP4885678B2 (en) Content creation apparatus and content creation method
CN111460258A (en) Judicial assessment information extraction method, system, device and storage medium
JP7293764B2 (en) Information processing device and program
CN114238229B (en) Print file searching method and device, electronic equipment and storage medium
JP2009245181A (en) Distributed full-text retrieval system, distributed full-text retrieving method, distributed full-text retrieval program and recording medium with the program recorded
CN108197151B (en) Grammar library updating method and device
CN117149951A (en) Intelligent retrieval method and device, electronic equipment and storage medium
CN117235073A (en) Enterprise knowledge searching method and device
CN117556020A (en) Intelligent question-answering method, device, equipment and storage medium based on large language model

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant