CN111522922B - Log information query method and device, storage medium and computer equipment - Google Patents

Log information query method and device, storage medium and computer equipment Download PDF

Info

Publication number
CN111522922B
CN111522922B CN202010224612.4A CN202010224612A CN111522922B CN 111522922 B CN111522922 B CN 111522922B CN 202010224612 A CN202010224612 A CN 202010224612A CN 111522922 B CN111522922 B CN 111522922B
Authority
CN
China
Prior art keywords
log
information
query
log information
application
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.)
Active
Application number
CN202010224612.4A
Other languages
Chinese (zh)
Other versions
CN111522922A (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.)
Zhejiang Koubei Network Technology Co Ltd
Original Assignee
Zhejiang Koubei Network 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 Zhejiang Koubei Network Technology Co Ltd filed Critical Zhejiang Koubei Network Technology Co Ltd
Priority to CN202010224612.4A priority Critical patent/CN111522922B/en
Publication of CN111522922A publication Critical patent/CN111522922A/en
Application granted granted Critical
Publication of CN111522922B publication Critical patent/CN111522922B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/332Query formulation
    • G06F16/3329Natural language query formulation or dialogue systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/338Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F21/00Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
    • G06F21/60Protecting data
    • G06F21/62Protecting access to data via a platform, e.g. using keys or access control rules
    • G06F21/6218Protecting access to data via a platform, e.g. using keys or access control rules to a system of files or objects, e.g. local or distributed file system or database
    • 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

Abstract

The application discloses a log information query method, a log information query device, a storage medium and computer equipment, and relates to the technical field of networks. The method comprises the following steps: acquiring a log query request, extracting a service unique identifier from the log query request, and acquiring log query conditions and authorization information; according to the log query condition, searching out log information which carries a service unique identifier and corresponds to the log query condition from at least one log library corresponding to the authorization information; and carrying out aggregation and analysis processing on the log information inquired from at least one log library to obtain a log information inquiry result. The method can quickly determine the log library to be searched, omits complicated operation of consulting logs by each server, improves log query efficiency, reduces log query time consumption, and can conveniently check out the calling link of the service request corresponding to the service unique identifier so as to check out the problem of service request response failure.

Description

Log information query method and device, storage medium and computer equipment
Technical Field
The present application relates to the field of network technologies, and in particular, to a method and apparatus for querying log information, a storage medium, and a computer device.
Background
In the internet technology, a response of one network request usually needs to call a plurality of applications, and call links of many network requests are complex, in general, in a large service system, thousands of network requests may be initiated at the same time, and the network requests may call applications in different servers at the same time, in this process, some network requests may fail to respond, and at this time, troubleshooting is needed.
At present, the log information generated when the application is called is an important basis for checking the problems of the calling links, the log information can record the state information of each application when the application is called by a node, and the problem of which calling link in the whole calling link occurs can be found through the log information, so that a method for solving the problem is found.
In the prior art, a query tool for log information is generally only deployed on each application server, and when the problem of calling links needs to be checked by means of the log information, the log can be checked only to each server, so that the time is long, and the checking efficiency is low.
Disclosure of Invention
In view of the above, the present application provides a method, a system, a storage medium and a computer device for inquiring log information, which mainly aims to solve the technical problems of long time consumption and low efficiency of inquiring log information when the problem of calling links is examined.
According to a first aspect of the present application, there is provided a log information query method, the method comprising:
acquiring a log query request, extracting a service unique identifier from the log query request, and acquiring log query conditions and authorization information;
according to the log query condition, searching out log information which carries a service unique identifier and corresponds to the log query condition from at least one log library corresponding to the authorization information;
and carrying out aggregation and analysis processing on the log information inquired from at least one log library to obtain a log information inquiry result.
In one embodiment, before obtaining the log query request, the method further comprises: and collecting the log information uploaded by each server in real time, and storing the log information in a log library corresponding to each server, wherein the log information uploaded by each server carries a service unique identifier.
In one embodiment, the log query conditions include keyword information, application environment information, log level information, and query time information; the authorization information comprises an account name and a password; according to the log query condition, searching the log information which carries the service unique identifier and corresponds to the log query condition in at least one log library corresponding to the authorization information, wherein the method comprises the following steps: determining at least one log library to be searched according to the account name and the password; and searching corresponding log information in at least one log library to be searched according to the unique service identifier, the keyword information, the application environment information, the log level information and the query time information.
In one embodiment, the key information includes a service number and log content; the application environment information comprises a development environment, a test environment, a prefire environment and an online environment; the log level information includes a debug level, a general level, a warning level, and an error level; the query time information includes a log generation start time and a log generation end time.
In one embodiment, aggregating and analyzing log information queried from at least one log library to obtain log information query results, including: aggregating log information queried from at least one log library on a cloud server; analyzing the application name, the file path and the log content of each piece of log information, and generating time and an IP address of a server; and arranging the analyzed log information according to the time sequence of the application being called or the time sequence of the interface of the application to obtain a log information query result, wherein the log information query result comprises a full-link log check report corresponding to the service unique identifier.
In one embodiment, the method further comprises: and displaying the log information query result.
According to a second aspect of the present application, there is provided a log information inquiry apparatus comprising:
the query request acquisition module is used for acquiring a log query request, extracting a service unique identifier, a log query condition and authorization information from the log query request;
the log information searching module is used for searching out log information which carries a service unique identifier and corresponds to the log query condition from at least one log library corresponding to the authorization information according to the log query condition;
and the log information analysis module is used for carrying out aggregation and analysis processing on the log information inquired from at least one log library to obtain a log information inquiry result.
In one embodiment, the device further comprises a log information collection module, wherein the log information collection module is used for collecting log information uploaded by each server in real time and storing the log information in a log library corresponding to each server, and the log information uploaded by each server carries a service unique identifier.
In one embodiment, the log information searching module is specifically configured to determine at least one log library to be searched according to an account name and a password; and searching corresponding log information in at least one log library to be searched according to the unique service identifier, the keyword information, the application environment information, the log level information and the query time information.
In one embodiment, the log information analysis module is specifically configured to aggregate log information queried from at least one log library on a cloud server; analyzing the application name, the file path and the log content of each piece of log information, and generating time and an IP address of a server; and arranging the analyzed log information according to the time sequence of the application being called or the time sequence of the interface of the application to obtain a log information query result, wherein the log information query result comprises a full-link log check report corresponding to the service unique identifier.
In one embodiment, the device further comprises a query result display module, wherein the query result display module is used for displaying the log information query result.
According to a third aspect of the present application, there is provided a storage medium having stored thereon a computer program which, when executed by a processor, implements the above-described log information query method.
According to a fourth aspect of the present application, there is provided a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the above log information query method when executing the program.
The application provides a log information query method, a device, a storage medium and computer equipment, which are characterized in that firstly, a log query request carrying a service unique identifier is obtained, a log query condition and authorization information are extracted from the log query request, then, according to the log query condition, log information carrying the service unique identifier and corresponding to the log query condition is searched out in at least one log library corresponding to the authorization information, and finally, the searched log information is subjected to aggregation and analysis processing to obtain a log information query result. By the method, the log library to be searched can be rapidly determined, the log information meeting the query conditions is searched in the plurality of log libraries, the complicated operation of consulting the logs by each server is omitted, the log query efficiency is improved, the time consumption of the log query is reduced, and in addition, the searched log information carries the service unique identifier, so that the calling link of the service request corresponding to the service unique identifier can be conveniently checked, and the problem of failure response of the service request can be effectively checked.
The foregoing description is only an overview of the present application, and is intended to be implemented in accordance with the teachings of the present application in order that the same may be more clearly understood and to make the same and other objects, features and advantages of the present application more readily apparent.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application and do not constitute a limitation on the application. In the drawings:
fig. 1 shows a flow diagram of a log information query method according to an embodiment of the present application;
fig. 2 is a schematic flow chart of another log information query method according to an embodiment of the present application;
fig. 3 is a schematic view of a scenario of a log information query method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a log information query device according to an embodiment of the present application;
fig. 5 shows a schematic structural diagram of another log information query apparatus according to an embodiment of the present application.
Detailed Description
The application will be described in detail hereinafter with reference to the drawings in conjunction with embodiments. It should be noted that, without conflict, the embodiments of the present application and features of the embodiments may be combined with each other.
In one embodiment, as shown in fig. 1, a log information query method is provided, and the method is applied to a cloud server for illustration, where the cloud server refers to a server configured on a cloud cluster. The method comprises the following steps:
101. and acquiring a log query request, and extracting a service unique identifier, a log query condition and authorization information from the log query request.
In this embodiment, each service request sent by the front end carries a service unique identifier, and the service unique identifier is transmitted to all invoked applications along with the service request, printed in a log after the invocation is completed, and uploaded to a corresponding log library by a server where the application is located. The service request is also called a network request, which refers to a request message from the front end to the server, the server responds to the front end request according to the request information, that is, the server executes the call of a plurality of applications according to the request information and returns a corresponding call result. The front end may include a mobile client and a web page.
Further, in this embodiment, the log query condition may include restriction information such as keyword information, application environment information, log level information, and query time information; the authorization information may include user information such as account names and passwords.
Specifically, the cloud server can acquire the log query request of the user in real time, and extract the unique service identifier corresponding to a certain service request, keyword information, log query conditions including application environment information, log level information and query time information, and authorization information such as account name and password from the log query request.
102. According to the log query condition, searching out log information which carries the unique service identifier and corresponds to the log query condition from at least one log library corresponding to the authorization information.
Specifically, the cloud server may first determine one or more log libraries to be searched according to the account name and the password, and then search corresponding log information in the one or more log libraries to be searched according to log query conditions such as the service unique identifier, the keyword information, the application environment information, the log level information, the query time information and the like. In this embodiment, the number of the log libraries corresponding to the authorization information may be one or more, the log information in the log library corresponding to the authorization information may be uploaded by one or more application servers, and according to the authorization of each log library to the cloud server, the cloud server may call the log information in the log library corresponding to the authorization information when the authorization information is satisfied.
103. And carrying out aggregation and analysis processing on the log information inquired from at least one log library to obtain a log information inquiry result.
Where aggregate processing refers to the process of collecting and sending log information from multiple data sources, and parsing processing refers to the process of converting log information into meaningful data for analysis.
Specifically, the cloud server firstly aggregates the log information queried from at least one log library, then analyzes the information such as application name, file path, log content, log generation time and server IP address of each piece of log information which carries the unique service identifier and corresponds to the log query condition, finally arranges the analyzed log information according to the time sequence of application being invoked or the time sequence of interface being invoked of the application, and generates a log information query result, wherein the log information query result can comprise a full-link log query report corresponding to the unique service identifier, the state information of each application when being invoked by a node can be recorded in the full-link log query report, and the links possibly causing problems in the invoking link of the service request can be more efficiently queried through the full-link log query report.
According to the log information query method provided by the embodiment, firstly, a log query request carrying a service unique identifier is obtained, a log query condition and authorization information are extracted from the log query request, then, according to the log query condition, the log information carrying the service unique identifier and corresponding to the log query condition is searched for in at least one log library corresponding to the authorization information, and finally, the searched log information is subjected to aggregation and analysis processing to obtain a log information query result. By the method, the log library to be searched can be rapidly determined, the log information meeting the query conditions is searched in the plurality of log libraries, the complicated operation of consulting the logs by each server is omitted, the log query efficiency is improved, the time consumption of the log query is reduced, and in addition, the searched log information carries the service unique identifier, so that the calling link of the service request corresponding to the service unique identifier can be conveniently checked, and the problem of failure response of the service request can be effectively checked.
Further, as a refinement and extension of the specific implementation manner of the foregoing embodiment, in order to fully describe the implementation process of this embodiment, a log information query method is provided, as shown in fig. 2, and the method includes the following steps:
201. and collecting the log information uploaded by each server in real time, and storing the log information in a log library corresponding to each server.
Specifically, the invoked process of the application in each server is recorded in the log information, and then the agent for collecting the log information collects the log information and uploads the log information to the corresponding log library. In this embodiment, the log library corresponding to the server may be on the local application server or on another application server, and according to the authorization of each log library to the cloud server, the cloud server may retrieve the log information in the log library corresponding to the authorization information when the authorization information is satisfied. In this embodiment, the log information uploaded by each server carries a service unique identifier, where the service unique identifier is transmitted to each application and printed in the log when the server responds to the service request.
202. And acquiring a log query request, and extracting a service unique identifier, a log query condition and authorization information from the log query request.
Specifically, the cloud server can acquire the log query request of the user in real time, and extract the unique service identifier corresponding to a certain service request, keyword information, log query conditions including application environment information, log level information, query time information and other information, and account name, password and other authorization information from the log query request.
In this embodiment, the keyword information may include information such as a service number and log content; the application environment information may include development environment, test environment, prefire environment, online environment, etc.; the log level information may include debug level, general level, warning level, and error level; the query time information may include a log generation start time and a log generation end time. Through the setting of the information, the query range of the log information can be accurately defined, so that the query is more targeted. For example, the log query condition may be log information with a fault level, a service number of 001 and a latest 1 hour in a development environment, and it is understood that the log query condition may be transformed into innumerable combinations, so as to precisely lock a query range of the log information, thereby facilitating a user to efficiently query the log information meeting the requirements of the user.
203. According to the log query condition, searching out log information which carries the unique service identifier and corresponds to the log query condition from at least one log library corresponding to the authorization information.
Specifically, the cloud server may first determine one or more log libraries to be searched according to the account name and the password, and then search corresponding log information in the one or more log libraries to be searched according to log query conditions such as the service unique identifier, the keyword information, the application environment information, the log level information, the query time information and the like. In this embodiment, the log library corresponding to the authorization information may be one or more log libraries, and the log information in the log library corresponding to the authorization information may be uploaded by one application server or more application servers.
In this embodiment, the number of the log database to be searched may be one or more, depending on the authorization of the user to access the log database, for the log database authorized to access by the user, the cloud database may search and obtain the log information in the log database, for the unauthorized log database, the cloud database has no access to the log database, so that the same cloud server may provide targeted log query service for different users, thereby making the log query applicable to a wider range and higher security.
204. And carrying out aggregation and analysis processing on the log information inquired from at least one log library to obtain a log information inquiry result.
Specifically, the cloud server aggregates the log information queried from at least one log library, then analyzes the application name, the file path, the log content, the log generation time, the server IP address and other information of each piece of log information which carries the service unique identifier and corresponds to the log query condition, finally arranges the parsed log information according to the time sequence of the application being invoked or the time sequence of the interface of the application being invoked, and generates a log information query result, wherein the log information query result can comprise all-link log query reports corresponding to the service unique identifier, the state information of each application when being invoked by a node can be recorded in the all-link log query report, and the links which possibly cause problems in the invoking link of the service request can be more efficiently queried through the all-link log query report.
205. And displaying the log information query result.
Specifically, the cloud server can display the query result of the log information, the displayed information can include the application name, the file path, the log content, the log generation time, the server IP address and other information of each piece of log information, and each piece of log information is arranged according to the time sequence of the application being called or the time sequence of the interface of the application, so that a user can conveniently find valuable log information. In addition, through the display function of the log information, the user can also remotely access the login interface of the server where the application is located, so as to initiate remote access to the application server.
The log query method provided in this embodiment may be applied to the scenario shown in fig. 3, as shown in fig. 3, each service request may carry a service unique identifier, where the service unique identifier may be transmitted from the front end to all invoked applications in a transparent manner, and after the invocation is completed, the service unique identifier may be printed in log information, and then uploaded to a corresponding log library by a server where the application is located. When a user initiates a log information query request, a log query service platform deployed on a cloud server initiates log search to one or more log libraries according to the log query request, and after corresponding log information is searched, the log information is aggregated and analyzed by the log query service platform and displayed to the user, so that the user has more visual understanding of a call link of service, and the problem of failure in service request response is conveniently and effectively solved.
Further, as a specific implementation of the method shown in fig. 1 to fig. 3, the present embodiment provides a log information query device, as shown in fig. 4, including: a query request acquisition module 31, a log information search module 32, and a log information analysis module 33.
The query request acquisition module 31 is configured to acquire a log query request, and extract a service unique identifier, a log query condition and authorization information from the log query request;
the log information searching module 32 is configured to search, according to the log query condition, log information that carries the service unique identifier and corresponds to the log query condition in at least one log library corresponding to the authorization information;
the log information analysis module 33 may be configured to aggregate and analyze the log information queried from the at least one log library to obtain a log information query result.
In a specific application scenario, as shown in fig. 5, the apparatus further includes a log information collecting module 34, where the log collecting module 34 may be configured to collect log information uploaded by each server in real time, and store the log information in a log library corresponding to each server, where the log information uploaded by each server carries a service unique identifier.
In a specific application scenario, the log information searching module 32 may be specifically configured to determine at least one log library to be searched according to an account name and a password; and searching corresponding log information in at least one log library to be searched according to the unique service identifier, the keyword information, the application environment information, the log level information and the query time information.
In a specific application scenario, the log information parsing module 33 may be specifically configured to aggregate log information queried from at least one log library on a cloud server; analyzing the application name, the file path and the log content of each piece of log information which carries the unique service identifier and corresponds to the log query condition, and generating time and the server IP address of the log; and arranging the analyzed log information according to the time sequence of the application being called or the time sequence of the interface of the application to obtain a log information query result, wherein the log information query result comprises a full-link log check report corresponding to the service unique identifier.
In a specific application scenario, as shown in fig. 5, the apparatus further includes a query result display module 35, where the query result display module 35 may be configured to display a log information query result.
It should be noted that, other corresponding descriptions of each functional unit related to the log information query device provided in this embodiment may refer to corresponding descriptions in fig. 1 to 3, and are not described herein again.
Based on the methods shown in fig. 1 and fig. 2, correspondingly, the present embodiment further provides a storage medium, on which a computer program is stored, where the program is executed by a processor to implement the log information query method shown in fig. 1 and fig. 2.
Based on such understanding, the technical solution of the present application may be embodied in the form of a software product, where the software product to be identified may be stored in a non-volatile storage medium (may be a CD-ROM, a U-disc, a mobile hard disk, etc.), and include several instructions for causing a computer device (may be a personal computer, a server, or a network device, etc.) to execute the method described in the various implementation scenarios of the present application.
Based on the method shown in fig. 1 and fig. 2 and the embodiment of the log information query device shown in fig. 4 and fig. 5, in order to achieve the above objective, the present embodiment further provides an entity device for querying log information, which may specifically be a personal computer, a server, a smart phone, a tablet computer, a smart watch, or other network devices, where the entity device includes a storage medium and a processor; a storage medium storing a computer program; a processor for executing a computer program to implement the method as shown in fig. 1 and 2.
Optionally, the physical device may further include a user interface, a network interface, a camera, radio Frequency (RF) circuitry, sensors, audio circuitry, WI-FI modules, and the like. The user interface may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), etc., and the optional user interface may also include a USB interface, a card reader interface, etc. The network interface may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface), etc.
It will be appreciated by those skilled in the art that the structure of the entity device for querying log information provided in this embodiment is not limited to the entity device, and may include more or fewer components, or some components may be combined, or different arrangements of components.
The storage medium may also include an operating system, a network communication module. The operating system is a program for managing the entity equipment hardware and the software resources to be identified, and supports the operation of the information processing program and other software and/or programs to be identified. The network communication module is used for realizing communication among all components in the storage medium and communication with other hardware and software in the information processing entity equipment.
From the above description of the embodiments, it will be apparent to those skilled in the art that the present application may be implemented by means of software plus necessary general hardware platforms, or may be implemented by hardware. By applying the technical scheme of the application, the log library to be searched can be rapidly determined, the log information meeting the query condition is searched in the log library, and meanwhile, the calling link of the service request corresponding to the service unique identifier can be conveniently checked. Compared with the prior art, the technical scheme of the request omits complicated operation of consulting logs by each server, improves the efficiency of log inquiry, reduces the time consumption of log inquiry, and can effectively solve the problem of failure response of service requests.
Those skilled in the art will appreciate that the drawing is merely a schematic illustration of a preferred implementation scenario and that the modules or flows in the drawing are not necessarily required to practice the application. Those skilled in the art will appreciate that modules in an apparatus in an implementation scenario may be distributed in an apparatus in an implementation scenario according to an implementation scenario description, or that corresponding changes may be located in one or more apparatuses different from the implementation scenario. The modules of the implementation scenario may be combined into one module, or may be further split into a plurality of sub-modules.
The above-mentioned inventive sequence numbers are merely for description and do not represent advantages or disadvantages of the implementation scenario. The foregoing disclosure is merely illustrative of some embodiments of the application, and the application is not limited thereto, as modifications may be made by those skilled in the art without departing from the scope of the application.

Claims (9)

1. The log information query method is characterized by being applied to a cloud server, and comprises the following steps:
acquiring a log query request, and extracting a service unique identifier, a log query condition and authorization information from the log query request;
according to the log query conditions, searching at least one log library corresponding to the authorization information for log information which carries the service unique identifier and corresponds to the log query conditions, wherein the log information in the log library corresponding to the authorization information is uploaded by one or more servers, and the log information uploaded by each server carries the service unique identifier;
the log information inquired from at least one log library is subjected to aggregation and analysis processing to obtain a log information inquiry result, wherein the log information inquiry result comprises a full-link log inquiry report corresponding to the service unique identifier, and the full-link log inquiry report records state information of each application when the application is called by a node;
displaying the log information query result, wherein a user can remotely access a login interface of a server where an application is located through the display function of the log information;
the aggregating and analyzing the log information queried from at least one log library to obtain a log information query result comprises the following steps: aggregating the log information queried from at least one log library on the cloud server; analyzing the application name, the file path, the log content, the log generation time and the server IP address of each piece of log information; and arranging the parsed log information according to the time sequence of the application being called or the time sequence of the interface of the application to obtain the log information query result.
2. The method of claim 1, wherein prior to the obtaining the log query request, the method further comprises:
and collecting the log information uploaded by each server in real time, and storing the log information in a log library corresponding to each server.
3. The method of claim 2, wherein the log query conditions include keyword information, application environment information, log level information, and query time information; the authorization information comprises an account name and a password;
searching the log information which carries the service unique identifier and corresponds to the log query condition in at least one log library corresponding to the authorization information according to the log query condition, wherein the method comprises the following steps:
determining at least one log library to be searched according to the account name and the password;
and searching corresponding log information in the at least one log library to be searched according to the service unique identifier, the keyword information, the application environment information, the log level information and the query time information.
4. A method according to claim 3, wherein the key information includes a service number and log content; the application environment information comprises a development environment, a test environment, a prefire environment and an online environment; the log level information includes a debug level, a general level, a warning level, and an error level; the inquiry time information includes a log generation start time and a log generation end time.
5. A log information query apparatus, wherein the apparatus is applied to a cloud server, the apparatus comprising:
the query request acquisition module is used for acquiring a log query request, extracting a service unique identifier from the log query request, and acquiring log query conditions and authorization information;
the log information searching module is used for searching out the log information which carries the service unique identifier and corresponds to the log inquiry condition from at least one log library corresponding to the authorization information according to the log inquiry condition, wherein the log information in the log library corresponding to the authorization information is uploaded by one or more servers, and the log information uploaded by each server carries the service unique identifier;
the log information analysis module is used for carrying out aggregation and analysis processing on the log information inquired from the at least one log library to obtain a log information inquiry result, wherein the log information inquiry result comprises a full-link log inquiry report corresponding to the service unique identifier, and the full-link log inquiry report is recorded with state information of each application when the application is called by a node;
the query result display module is used for displaying the log information query result, wherein a user can remotely access a login interface of a server where the application is located through the display function of the log information;
the log information analysis module is specifically configured to aggregate the log information queried from the at least one log library on the cloud server; analyzing the application name, the file path and the log content of each piece of log information, and generating time and an IP address of a server; and arranging the parsed log information according to the time sequence of the application being called or the time sequence of the interface of the application to obtain the log information query result.
6. The apparatus of claim 5, further comprising a log information collection module, wherein the log information collection module is configured to collect log information uploaded by each server in real time, and store the log information in a log library corresponding to each server.
7. The apparatus of claim 6, wherein the authorization information includes an account name and a password; the log information search module is configured to search for log information,
the method is particularly used for determining at least one log library to be searched according to the account name and the password;
and searching corresponding log information in the at least one log library to be searched according to the service unique identifier, the keyword information, the application environment information, the log level information and the query time information.
8. A storage medium having stored thereon a computer program, which when executed by a processor, implements the steps of the method of any of claims 1 to 4.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the computer program when executed by the processor implements the steps of the method according to any one of claims 1 to 4.
CN202010224612.4A 2020-03-26 2020-03-26 Log information query method and device, storage medium and computer equipment Active CN111522922B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010224612.4A CN111522922B (en) 2020-03-26 2020-03-26 Log information query method and device, storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010224612.4A CN111522922B (en) 2020-03-26 2020-03-26 Log information query method and device, storage medium and computer equipment

Publications (2)

Publication Number Publication Date
CN111522922A CN111522922A (en) 2020-08-11
CN111522922B true CN111522922B (en) 2023-08-22

Family

ID=71910555

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010224612.4A Active CN111522922B (en) 2020-03-26 2020-03-26 Log information query method and device, storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN111522922B (en)

Families Citing this family (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112231287A (en) * 2020-09-06 2021-01-15 厦门天锐科技股份有限公司 System log processing method and device, electronic equipment and medium
CN112148700A (en) * 2020-10-12 2020-12-29 平安科技(深圳)有限公司 Log data processing method and device, computer equipment and storage medium
CN112148674B (en) * 2020-10-12 2023-12-19 平安科技(深圳)有限公司 Log data processing method, device, computer equipment and storage medium
CN112256658B (en) * 2020-10-16 2023-08-18 海尔优家智能科技(北京)有限公司 Log record distribution method and device, storage medium and electronic device
CN113761015B (en) * 2020-10-22 2023-09-05 北京京东振世信息技术有限公司 Log processing method, device, system and storage medium
CN112416897B (en) * 2020-11-18 2023-07-21 青岛海尔科技有限公司 Log query method and device, storage medium and electronic device
CN112433991A (en) * 2020-11-20 2021-03-02 苏宁金融科技(南京)有限公司 Problem positioning method and device
CN112541009B (en) * 2020-12-23 2023-10-13 湖北华中电力科技开发有限责任公司 Data query method, device, electronic equipment and storage medium
CN112667589B (en) * 2020-12-30 2023-09-01 北京明朝万达科技股份有限公司 Log management method, device and system
CN112835856A (en) * 2021-02-01 2021-05-25 长沙市到家悠享网络科技有限公司 Log data query method and device, equipment and medium
CN113407511A (en) * 2021-06-23 2021-09-17 中移(杭州)信息技术有限公司 Log aggregation method, log aggregation equipment and computer program product
CN113590572B (en) * 2021-07-21 2022-10-18 用友汽车信息科技(上海)股份有限公司 Log viewing method and device, electronic equipment and readable storage medium
CN113590372A (en) * 2021-08-10 2021-11-02 平安普惠企业管理有限公司 Log-based link tracking method and device, computer equipment and storage medium
CN113918606B (en) * 2021-12-15 2022-04-19 亿咖通(湖北)技术有限公司 Log query method and device
CN116701337B (en) * 2023-08-04 2024-01-16 腾讯科技(深圳)有限公司 Log data processing method and device, electronic equipment and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012016194A1 (en) * 2010-07-30 2012-02-02 Mohammad Al Hasan Query suggestion for e-commerce sites
CN102880541A (en) * 2012-09-28 2013-01-16 用友软件股份有限公司 Log information acquisition system and log information acquisition method
CN105824958A (en) * 2016-03-31 2016-08-03 广州华多网络科技有限公司 Method, device and system for inquiring log
CN107463602A (en) * 2017-06-15 2017-12-12 努比亚技术有限公司 A kind of log processing method and server, client
CN107861859A (en) * 2017-11-22 2018-03-30 北京汇通金财信息科技有限公司 A kind of blog management method and system based on micro services framework
CN108197200A (en) * 2017-12-27 2018-06-22 金蝶软件(中国)有限公司 Daily record method for tracing, device, computer equipment and storage medium
CN108737467A (en) * 2017-04-19 2018-11-02 腾讯科技(深圳)有限公司 A kind of server log inspection method, device and system
CN109408337A (en) * 2018-10-31 2019-03-01 京东方科技集团股份有限公司 A kind of method and device of interface O&M
WO2019140828A1 (en) * 2018-01-17 2019-07-25 平安科技(深圳)有限公司 Electronic apparatus, method for querying logs in distributed system, and storage medium
CN110532347A (en) * 2019-09-02 2019-12-03 北京博睿宏远数据科技股份有限公司 A kind of daily record data processing method, device, equipment and storage medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8713693B2 (en) * 2011-07-26 2014-04-29 Salesforce.Com, Inc. Secure access to customer log data in a multi-tenant environment
US20190205474A1 (en) * 2017-12-29 2019-07-04 Facebook, Inc. Mining Search Logs for Query Metadata on Online Social Networks

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012016194A1 (en) * 2010-07-30 2012-02-02 Mohammad Al Hasan Query suggestion for e-commerce sites
CN102880541A (en) * 2012-09-28 2013-01-16 用友软件股份有限公司 Log information acquisition system and log information acquisition method
CN105824958A (en) * 2016-03-31 2016-08-03 广州华多网络科技有限公司 Method, device and system for inquiring log
CN108737467A (en) * 2017-04-19 2018-11-02 腾讯科技(深圳)有限公司 A kind of server log inspection method, device and system
CN107463602A (en) * 2017-06-15 2017-12-12 努比亚技术有限公司 A kind of log processing method and server, client
CN107861859A (en) * 2017-11-22 2018-03-30 北京汇通金财信息科技有限公司 A kind of blog management method and system based on micro services framework
CN108197200A (en) * 2017-12-27 2018-06-22 金蝶软件(中国)有限公司 Daily record method for tracing, device, computer equipment and storage medium
WO2019140828A1 (en) * 2018-01-17 2019-07-25 平安科技(深圳)有限公司 Electronic apparatus, method for querying logs in distributed system, and storage medium
CN109408337A (en) * 2018-10-31 2019-03-01 京东方科技集团股份有限公司 A kind of method and device of interface O&M
CN110532347A (en) * 2019-09-02 2019-12-03 北京博睿宏远数据科技股份有限公司 A kind of daily record data processing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN111522922A (en) 2020-08-11

Similar Documents

Publication Publication Date Title
CN111522922B (en) Log information query method and device, storage medium and computer equipment
CN110245078B (en) Software pressure testing method and device, storage medium and server
CN112910945B (en) Request link tracking method and service request processing method
EP3534263A1 (en) Systems and methods for web analytics testing and web development
US20170142143A1 (en) Identifying notable events based on execution of correlation searches
CN108667855B (en) Network flow abnormity monitoring method and device, electronic equipment and storage medium
CN108197200A (en) Daily record method for tracing, device, computer equipment and storage medium
US7913233B2 (en) Performance analyzer
US9654580B2 (en) Proxy-based web application monitoring through script instrumentation
CN109039787B (en) Log processing method and device and big data cluster
CN103428042A (en) Method and system for carrying out stress test on server
CN105095207A (en) Methods for retrieving and obtaining contents of application software, and devices for retrieving and obtaining contents of application software
US9558307B1 (en) System and method for providing a scalable server-implemented regression query environment for remote testing and analysis of a chip-design model
CN111614483A (en) Link monitoring method and device, storage medium and computer equipment
CN114528457A (en) Web fingerprint detection method and related equipment
CN112650688A (en) Automated regression testing method, associated device and computer program product
CN112347165A (en) Log processing method and device, server and computer readable storage medium
CN112925757A (en) Method, equipment and storage medium for tracking operation log of intelligent equipment
JP2016192185A (en) Spoofing detection system and spoofing detection method
CN115104336A (en) Tracking and publishing data for generating analytics
US20080162687A1 (en) Data acquisition system and method
CN111046382A (en) Database auditing method, device, storage medium and device
US11768889B1 (en) Evaluating configuration files for uniform resource indicator discovery
CN108737350B (en) Information processing method and client
CN115827379A (en) Abnormal process detection method, device, equipment and medium

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