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

Log data query method and device

A query method and log technology, applied in the field of data processing, can solve problems such as slow query speed, achieve the effect of reducing waste and speeding up query speed

Active Publication Date: 2022-06-28
北京安帝科技有限公司
View PDF13 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The present invention provides a query method and device for log data, which is used to solve the defect of slow query speed in the prior art, realize reasonable setting of the number of storage nodes and allocation of computing resources, thereby increasing the query speed and reducing the waste of computing 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
  • Log data query method and device
  • Log data query method and device
  • Log data query method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0042] In order to make the objectives, technical solutions and advantages of the present invention clearer, the technical solutions in the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention. , not all examples. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0043] For ease of understanding, the terms involved in the present invention are first explained.

[0044] (1) Distributed storage system

[0045] For non-distributed storage systems, a large amount of data and a large amount of access will lead to input and output (IO) bottlenecks. Distributed storage improves the storage capacity, processing capacity, and fast response capacity of the entire storage by shardin...

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 log data query method and device. The query method includes: obtaining a query statement of the log data, parsing the data attribute of the log data included in the query statement, and a storage address; according to the storage address, determining the storage node of the log data and the corresponding data storage capacity of the storage node; The storage node configures the computing power corresponding to the amount of data storage; based on the computing power query, the log data corresponding to the data attribute in the storage address is obtained. By allocating appropriate computing power to storage nodes according to the corresponding data storage capacity of storage nodes, more computing resources are allocated to storage nodes that require more computing power to speed up query speed. And by adding the corresponding log data generation time, type, and storage address to the query statement, it is convenient to lock a smaller query range according to these restrictions, reduce the number of logs to be queried, and thus speed up the query.

Description

technical field [0001] The invention relates to the technical field of data processing, and in particular, to a method and device for querying log data. Background technique [0002] Due to the large amount of log message data generated by tobacco manufacturers, a non-relational database (not only SQL, NOSQL) is used as the storage method. Usually, by deploying a storage server cluster, the log message data is centrally stored in a multi-node and multi-partition storage mode, that is, a distributed storage system is used to centrally store the log message data. When querying a log in a structured query language (SQL), an SQL query statement can also be used to directly query the log packet data of multiple nodes and multiple partitions. [0003] When using the storage method corresponding to the distributed storage system in the prior art to store log message data, it is necessary to traverse all storage nodes to obtain the query data, so there is a disadvantage of slow que...

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/242G06F16/27
CPCG06F16/2433G06F16/27
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