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.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
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...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


