Unlock instant, AI-driven research and patent intelligence for your innovation.

Log positioning method and device, electronic equipment and storage medium

A positioning method and log technology, applied in the computer field, can solve problems such as time-consuming, large data volume, and reduce query log efficiency, and achieve the effect of reducing workload and improving query efficiency.

Pending Publication Date: 2022-05-06
AGRICULTURAL BANK OF CHINA
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] However, the amount of data stored in the distributed system is large, and querying bucket by bucket will take a lot of time and cost, which reduces the efficiency of querying logs

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 positioning method and device, electronic equipment and storage medium
  • Log positioning method and device, electronic equipment and storage medium
  • Log positioning method and device, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0030] figure 1 It is a flow chart of a log location method provided by an embodiment of the present invention. The method can be executed by a log locating device, which can be implemented by software and / or hardware, and can be configured in a terminal and / or server to implement the log locating method in the embodiment of the present invention.

[0031] Such as figure 1 As shown, the method of this embodiment may specifically include:

[0032] S101. Receive a query request sent by a user terminal, and determine a query log type of the query request based on the query request.

[0033] In this embodiment, when the user terminal needs to obtain logs, it may send a query request including query information such as query log type and query log number to the distributed system. Based on the query request, the query log type of the current query can be determined, and the query log type can be a system type that generates the current query log.

[0034] It should be noted tha...

Embodiment 2

[0042] figure 2 It is a flow chart of another log location method provided by an embodiment of the present invention. This embodiment is optimized on the basis of the above-mentioned technical solutions. Optionally, before determining the mapping relationship between the pre-established bucket and the log number corresponding to the query log type, it also includes: setting the log number segment of each bucket for different log types of log information, and establishing the log number The mapping relationship between segments and corresponding buckets. Wherein, explanations of terms that are the same as or corresponding to the above-mentioned embodiments are not repeated here.

[0043] S201. For different log types of log information, set a log number segment of each bucket, and establish a mapping relationship between the log number segment and the corresponding bucket.

[0044] Wherein, there may be multiple log types of the log information. For the scenario of system ...

Embodiment 3

[0068] image 3 It is a structural diagram of a log locating device provided by an embodiment of the present invention, and the device is used to implement the log locating method provided in any of the above embodiments. The device and the log locating method in the above-mentioned embodiments belong to the same inventive concept. For details not described in detail in the embodiments of the log locating device, reference may be made to the above-mentioned embodiment of the log locating method. Specifically, the device may include:

[0069] Receiving query request module 10, configured to receive a query request sent by a user terminal, and determine the query log type of the query request based on the query request;

[0070] Determining the mapping relationship module 11, configured to determine the mapping relationship between the pre-established bucket and the log number corresponding to the query log type;

[0071] Determine the request log module 12, configured to dete...

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 positioning method and device, electronic equipment and a storage medium. The method comprises the following steps: receiving a query request sent by a user terminal, and determining a query log type of the query request based on the query request; determining a pre-established mapping relationship between a bucket and a log number corresponding to the query log type; and determining a request log number based on the query request, determining a target bucket to which the request log number belongs based on the mapping relationship, and determining a request log corresponding to the request log number in the target bucket. According to the technical scheme, the workload in the query process can be reduced, and the query efficiency is improved.

Description

technical field [0001] The embodiments of the present invention relate to the field of computer technology, and in particular, to a log location method, device, electronic equipment, and storage medium. Background technique [0002] In recent years, with the development of Internet technology, large-scale distributed architecture has gradually become the mainstream of information systems. In a distributed system, buckets are often used as a unit for stateless operation, maintenance, and expansion. In order to analyze user behavior, locate system faults, and count system performance, using log numbers to locate log information has become an indispensable step. [0003] At present, the distributed system mainly relies on the generator component to randomly generate a globally unique log number, and record the generated log number and the log information corresponding to the log number to each bucket database, and the log numbers in each bucket are discretely distributed. When...

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
IPC IPC(8): G06F16/18G06F16/2453G06F16/2458
CPCG06F16/1815G06F16/2471G06F16/2453
Inventor 曾杰李晓蕊刘福铭乐小意
Owner AGRICULTURAL BANK OF CHINA