Log query method and device, equipment and storage medium
A query method and log technology, applied in the field of data processing, can solve the problem of time cost and high user learning cost
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0047] figure 1 It is a flow chart of a log query method in Embodiment 1 of the present invention. This embodiment is applicable to the case of log query for massive log data. The method can be executed by a log query device, which can be implemented by hardware and / or or software, and can generally be integrated into electronic devices that provide log query services. Such as figure 1 As shown, the method includes:
[0048] Step 110, when it is detected that the user inputs a target query statement, decompose the target query statement into multiple sub-query statements, and the target query statement is an SPL query statement.
[0049] In this embodiment, massive log data uploaded by users may be collected and stored. When it is detected that the user has an input operation on the query interface provided by the system, the query statement in the SPL language input by the user may be obtained as the target query statement. Among them, the SPL language is a processing lan...
Embodiment 2
[0077] figure 2 It is a flow chart of a log query method in Embodiment 2 of the present invention, and this embodiment is further refined on the basis of the foregoing embodiments. Combine below figure 2 A log query method provided in this embodiment is described, including the following steps:
[0078] 1. Collect log data in real time, and perform data aggregation processing such as field extraction and indexing on the log data, and then store the log data in blocks into the log database according to the classification information such as file name and time.
[0079] 2. When it is detected that the user enters the target query statement on the query interface provided by the system, the target query statement is decomposed into multiple simple sub-query statements by identifying the pipe character in the target query statement.
[0080] 3. According to the order of positions from left to right in the target query statement, find the first target subquery statement that ca...
Embodiment 3
[0086] image 3 It is a schematic structural diagram of a log query device in Embodiment 3 of the present invention. This embodiment is applicable to the case of performing log query on massive log data, and the device can be implemented by hardware and / or software, and generally can be integrated into an electronic device that provides log query service. Such as image 3 As shown, the device includes:
[0087] Decomposition module 310, for detecting that the user inputs a target query statement, decomposing the target query statement into a plurality of sub-query statements, the target query statement being an SPL query statement;
[0088] Type determining module 320, for determining the type of each sub-query statement according to the position of each sub-query statement in the target query statement, the type of sub-query statement includes: parallel type and non-parallel type;
[0089] The parallel retrieval module 330 is used to perform parallel retrieval on the log d...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com