Log data display method and device, medium and program product
By generating and displaying a log node relationship topology, the confusion caused by multiple service nodes and complex relationships in log data is solved, improving the efficiency and user experience of log analysis.
Patent Information
- Application Number
- CN202410861946.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-09-17
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In the existing technology, there are many service nodes and complex relationships in the log data, resulting in confusing log node relationships reflected in the displayed link topology diagram, and low user recognition during analysis.
By obtaining the log search condition information input by the user, the target log data information is determined and filtered, a log node relationship topology diagram is generated, and displayed according to the preset display format, highlighting the link relationship under the user's filtering conditions.
It improves the recognition of log relationship topology, improves the display effect and analysis processing efficiency of log data, and improves user experience.
Smart Images

Figure CN118656276A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of log processing technology, and in particular to a log data display method, device, medium and program product. Background Art
[0002] During the use of the application, different user requests will be completed by calling different service nodes, and these data will be stored through log data. In order to study the association between the service nodes during the operation of the application, it is necessary to analyze and study the link relationship between the service nodes during the operation of the application.
[0003] In the prior art, if one wants to understand the association relationship between service nodes during the running of an application, one generally directly obtains the association relationship topology diagram of each service node in the application, and then searches for the service node that needs to be analyzed from the association relationship topology diagram combined with the stored log data, and then generates a corresponding link relationship topology diagram based on the service node.
[0004] However, there are many service nodes involved in the log data, and the relationship between each service node is also relatively complex. Therefore, if the search is performed using a general search method, due to the large number of service nodes involved, the displayed link topology diagram reflects a chaotic relationship between log nodes, which makes it difficult for users to identify the log node data in the log data. Summary of the invention
[0005] The present invention provides a log data display method, device, medium and program product, which can improve the recognition of a log relationship topology diagram, thereby improving the display effect of log data, and further improving the efficiency of log analysis and processing and the user experience.
[0006] According to one aspect of the present invention, a log data display method is provided, comprising:
[0007] In response to a log query instruction issued by a user, obtaining log search condition information input by the user, wherein the log search condition information includes log query condition information and log filtering condition information;
[0008] Determine the target log data information according to the log query condition information, and filter the target log data information according to the log filtering condition information to obtain the target log node data set and the node association information of each log node in the target log node data set;
[0009] Generate a log node relationship topology graph according to the target log node data set and the node association information of each log node in the target log node data set;
[0010] The log node relationship topology diagram is displayed in a preset display format.
[0011] According to one aspect of the present invention, a log data display device is provided, comprising:
[0012] A log search condition acquisition module, used to obtain log search condition information input by a user in response to a log query instruction issued by a user, wherein the log search condition information includes log query condition information and log filtering condition information;
[0013] A log data processing module, used to determine target log data information according to the log query condition information, and filter the target log data information according to the log filtering condition information to obtain a target log node data set and node association information of each log node in the target log node data set;
[0014] A log node relationship topology map generating module, used for generating a log node relationship topology map according to the target log node data set and the node association information of each log node in the target log node data set;
[0015] The log node relationship topology diagram display module is used to display the log node relationship topology diagram in a preset display format.
[0016] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0017] at least one processor; and
[0018] a memory communicatively connected to the at least one processor; wherein,
[0019] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the log data display method described in any embodiment of the present invention.
[0020] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the log data display method described in any embodiment of the present invention when executed.
[0021] The technical solution of the embodiment of the present invention obtains the log query condition information and log filtering condition information included in the log search condition information input by the user in response to the log query instruction issued by the user, and then determines the target log data information according to the log query condition information, and filters the target log data information according to the log filtering condition information, so as to obtain the target log node data set and the node association information of each log node in the target log node data set. Further, a log node relationship topology map is generated according to the target log node data set and the node association information of each log node in the target log node data set, and the log node relationship topology map is displayed in a preset display format to present the link relationship between each log node that meets the user's screening condition to the user, which can solve the problem that the log node relationship reflected by the link topology map displayed in the prior art is chaotic, so that the user has a low recognition when analyzing the log node data in the log data, and can improve the recognition of the log relationship topology map, thereby improving the display effect of the log data, and further improving the efficiency of log analysis and processing and the user's experience.
[0022] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0024] Figure 1 is a flow chart of a log data display method provided according to Embodiment 1 of the present invention;
[0025] Figure 2 is a flowchart of another log data display method provided according to Embodiment 2 of the present invention;
[0026] Figure 3 A schematic diagram of the display effect of partially adjusting the log node relationship topology diagram provided in the second embodiment of the present invention;
[0027] Figure 4 is a structural schematic diagram of a log data display device provided according to Embodiment 3 of the present invention;
[0028] Figure 5 It is a structural schematic diagram of an electronic device that implements the log data display method of the fourth embodiment of the present invention; DETAILED DESCRIPTION
[0029] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0030] It should be noted that the terms "comprises" and "has" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or apparatus comprising a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to these processes, methods, products or apparatus.
[0031] Embodiment 1
[0032] Figure 1 A flow chart of a log data display method is provided for the first embodiment of the present invention. This embodiment can be applied to the case where a log node relationship topology diagram is generated according to the log search conditions input by the user, and the log node relationship topology diagram is displayed in a preset display format. The method can be executed by a log data display device, which can be implemented in the form of hardware and / or software, and the log data display device can be configured in an electronic device. Figure 1 As shown, the method may include:
[0033] S110 . In response to a log query instruction issued by a user, obtain log search condition information input by the user, wherein the log search condition information may include log query condition information and log filtering condition information.
[0034] The log query instruction may be a log query operation triggered by a user through a query button or other triggering operation, and is an instruction for querying node data in the log. After detecting the user's instruction triggering operation, the log search condition information input by the user may be obtained according to the user's triggering operation, and data that meets the log search condition information may be searched according to the input log search condition information.
[0035] The log search condition information may be a log search condition input by a user through a front-end page, and the log search condition may be input into a corresponding condition input box by text input or drop-down box input, etc. The log search condition information may include log query condition information and log filter condition information.
[0036] Among them, the log query condition information can be the log query condition input by the user through the front end, which is used to characterize the conditions corresponding to the log data that the user wants to query. After detecting the query instruction issued by the user, the log query condition information input by the user can be obtained, and the corresponding log data can be obtained according to the log query condition information. The log query conditions may include but are not limited to time interval conditions, business type conditions, etc. The time interval conditions can be used to indicate the time range of the log that the user wants to query, and the business type conditions can be used to indicate the business type of the log that the user wants to query. Among them, the log filtering condition information can be the log filtering condition input by the user through the front end, which is used to characterize the log node data that the user wants to obtain from the log. After detecting the query instruction issued by the user, the log filtering condition information input by the user can be obtained, and the obtained log data can be filtered according to the log filtering condition information to obtain the log node data required by the user.
[0037] Specifically, the system for providing the log query function can respond to the log query instruction issued by the user and obtain the log search condition information input by the user. It can be that when the user's log query instruction is detected, the log query condition information and log filtering condition information in the log search condition information input by the user through the front-end page are obtained, thereby providing search conditions for the subsequent topology map generation.
[0038] S120 . Determine target log data information according to the log query condition information, and filter the target log data information according to the log filtering condition information to obtain a target log node data set and node association information of each log node in the target log node data set.
[0039] The target log data information may be log data information that meets the log query condition obtained by querying the database storing the log data information according to the log query condition contained in the log query condition information. The target log data information may include, but is not limited to, node identification information of each node data in the target log data and node association information corresponding to the node identification information.
[0040] The target log node data set may be a set of node identification information of log nodes that meet the log query condition and the log filtering condition, obtained after filtering the log data information that meets the log query condition through the filtering condition.
[0041] Among them, the node association information of each log node can be the association information of each log node with other nodes in the target log node data set in the target log node data set. The node association information of the log node can be used to characterize the association relationship between the log node in the target log data information and other log nodes in the target log node data set.
[0042] Specifically, determining the target log data information according to the log query condition information may be to obtain the log query condition information input by the user, and obtain the log query condition according to the log query condition information, and query the database storing the log data through the log query condition to obtain the target log data information that meets the log query condition information input by the user.
[0043] Specifically, the target log data information is filtered according to the log filtering condition information to obtain the target log node data set and the node association information of each log node in the target log node data set. After obtaining the target log data information, the filtering condition can be determined according to the log filtering condition information input by the user, and the queried target log data information is filtered according to the filtering condition to obtain the log node identification information in the target log data information that meets the filtering condition, and then the target log node data set is constructed according to the log node identification information that meets the filtering condition, and the node association information of the log nodes corresponding to each target log node data in the target log node data set is obtained from the target log data information.
[0044] S130 , generating a log node relationship topology graph according to the target log node data set and the node association information of each log node in the target log node data set.
[0045] Among them, the log node relationship topology map can be a node relationship topology map generated by the target log node data set and the node association information corresponding to each target log node data in the target log node data set, which is used to characterize the link relationship of each target log node data that meets the log search conditions input by the user.
[0046] Optionally, the log node relationship topology map is generated according to the target log node data set and the node association information of each log node in the target log node data set, and the target log node data set and the node association information of each log node in the target log node data set are input into a relationship topology map generation tool to complete the generation of the log node relationship topology map. The embodiment of the present invention does not specifically limit the relationship topology map generation tool, and those skilled in the art can set it according to their own needs, or they can realize the generation of the relationship topology map through self-developed tools.
[0047] S140: Display the log node relationship topology diagram according to a preset display format.
[0048] Among them, the preset display format can be a display format of the log node relationship topology map after adjusting the log node relationship topology map according to the user's display needs, such as enlarging the nodes that meet the user's set conditions, adjusting the node size in the log node relationship topology map, highlighting the nodes that meet the user's set conditions, adjusting the log node relationship topology map according to the size of the display page or the size of the display screen, and other display format settings.
[0049] Optionally, displaying the log node relationship topology map in a preset display format can be that after the log node relationship topology map is generated, the generated log node relationship topology map is adjusted according to the display format preset by the user, and the adjusted log node relationship topology map is displayed on the display page, so that the user can analyze and view the log node relationship topology map.
[0050] The technical solution of the embodiment of the present invention obtains the log query condition information and log filtering condition information included in the log search condition information input by the user in response to the log query instruction issued by the user, and then determines the target log data information according to the log query condition information, and filters the target log data information according to the log filtering condition information, so as to obtain the target log node data set and the node association information of each log node in the target log node data set. Further, a log node relationship topology map is generated according to the target log node data set and the node association information of each log node in the target log node data set, and the log node relationship topology map is displayed in a preset display format to present the link relationship between each log node that meets the user's screening condition to the user, which can solve the problem that the log node relationship reflected by the link topology map displayed in the prior art is chaotic, so that the user has a low recognition when analyzing the log node data in the log data. The recognition of the log relationship topology map can be improved, thereby improving the display effect of the log data, and then improving the efficiency of log analysis and processing and the user's experience.
[0051] Embodiment 2
[0052] Figure 2 A flowchart of a log data display method provided in the second embodiment of the present invention. Based on the above embodiments, this embodiment obtains log search condition information input by the user in response to a log query instruction issued by the user, determines the target log data information according to the log query condition information, and filters the target log data information according to the log filtering condition information to obtain the target log node data set and the node association information of each log node in the target log node data set; generates a log node relationship topology diagram according to the target log node data set and the node association information of each log node in the target log node data set; and displays the log node relationship topology diagram in a preset display format. Figure 2 As shown, the method of this embodiment may include:
[0053] S210 . In response to a log query instruction issued by a user, obtain log search condition information input by the user, wherein the log search condition information includes log query condition information and log filtering condition information.
[0054] S220 . Determine target log data information according to the log query condition information, and filter the target log data information according to the log filtering condition information to obtain a target log node data set and node association information of each log node in the target log node data set.
[0055] Optionally, determining the target log data information according to the log query condition information may include: generating a log query statement according to the log query condition information; querying a target database through the log query statement, and determining the target log data information according to a log query result of the target database.
[0056] The log query statement may be a query statement generated according to the log query condition after the log query condition is obtained. The log query statement may be used to query the log data information that meets the log query condition input by the user from the database. The target database may be a database storing log data information, which is used to store the log data information of the system or application during operation.
[0057] The log query result may be target log data information obtained after querying the target database according to the log query statement.
[0058] Specifically, the log query condition information input by the user may be obtained, and according to the log query condition information and the type of the target database storing the log data information, a database query statement for querying the target database that meets the user's log query condition is generated. Then, the target database is queried through the database query statement, and the target log data information that meets the user's log query condition is obtained according to the query result.
[0059] Optionally, filtering the target log data information according to the log filtering condition information to obtain the target log node data set and the node association information of each log node in the target log node data set may include: determining the filtering condition according to the log filtering condition information, and filtering the target log data information according to the filtering condition to obtain the target log node identification information that meets the filtering condition; constructing the target log node data set according to the target log node identification information; querying the target log data information according to the target log node identification information to obtain the node association information of each log node in the target log node data set; wherein the node association information of the log node may include node identification information, associated node identification information and associated node quantity information.
[0060] The filtering condition may be determined according to the log filtering condition information and is used to filter the target log data information. The filtering condition may be used to obtain the log node data that meets the log filtering condition input by the user.
[0061] The target log node identification information may be log node identification information corresponding to log node data that meets the log query condition and log filtering condition input by the user, obtained after filtering the target log data information according to the log filtering condition input by the user.
[0062] Among them, the node identification information can be the identification information of each target log node in the target log node data set, which is used to characterize the node identification of each log node in the target log node data set. For example, the node identification information can be the name information or ID information of each log node. The associated node identification information can be the association information between each log node in the log node data set and other log nodes in the log node data set, which is used to characterize the connection relationship and connection type between each log node and other log nodes. The associated node quantity information can be the associated quantity information between each log node in the log node data set and other log nodes in the log node data set, which is used to characterize the associated log node quantity of each log node in the log node data set.
[0063] Specifically, the filtering condition is determined according to the log filtering condition information, and the target log data information is filtered according to the filtering condition to obtain the target log node identification information that meets the filtering condition. After obtaining the target log data information, the corresponding filtering condition can be determined according to the log filtering condition information input by the user, and the target log data information is filtered according to the filtering condition, and the log data information that does not meet the filtering condition in the target log data information is filtered to obtain the log data information that meets the filtering condition, and then the target log node identification information corresponding to the target log node that meets the log filtering condition input by the user is obtained.
[0064] In a specific example, after determining the target log data information, after obtaining the conditions for filtering the log nodes, the target log data information can be processed first, and all the log node information in the target log data information can be extracted. Then, the conditions for filtering the log nodes can be obtained according to the filtering conditions input by the user. These filtering conditions can be the system to which the log node belongs, the environment in which the log node is located, or the log filtering condition information such as the business type of the log node. The user can choose to limit one or more of the filtering conditions so that the system can filter the log nodes extracted from the target log data information according to one or more filtering conditions selected by the user. The specific filtering process can be to delete the log node information that does not meet the filtering conditions input by the user, obtain the remaining log node information, and determine the remaining log node information as the target log node information. After obtaining this information, a data set can be established, and then the target log node information is stored therein, and then the target log node data set is constructed. Then, the target log data information is queried according to the target log node identification information, and the data access connection relationship between each target log node identification is obtained from the target log data information. The number of node connections of each target log node identification and how each target log node identification interacts with other target log node identifications are recorded to obtain the associated node identification information.
[0065] Specifically, a target log node data set is constructed according to the target log node identification information, and the target log data information is queried according to the target log node identification information to obtain the node association information of each log node in the target log node data set. The obtained target log node identification information can be collected into a data set to construct the target log node data set; then the target log data information is queried according to the target log node data in the target log node data set, and the node association information between each target log node data in the target log node data set is obtained from the target log data information.
[0066] S230 , generating a log node relationship topology graph according to the target log node data set and the node association information of each log node in the target log node data set.
[0067] Optionally, generating a log node relationship topology map based on a target log node data set and node association information of each log node in the target log node data set may include: determining a log node aggregation tool; inputting log node identification information of each log node in the target log node data set and node association information of each log node in the target log node data set into the log node aggregation tool, so as to generate a log node relationship topology map through the log node aggregation tool.
[0068] Among them, the log node aggregation tool can be a tool for analyzing and processing according to the connection relationship of each node data in the log data, and can construct a log node relationship topology map of each node data in the log data according to the needs of the user. For example, after the log node aggregation tool obtains the log node identification information corresponding to each target log node data in the target log node data set, it can determine the initial node from the target log node data according to the log node identification information and the node association information corresponding to each log node identification information, and then take the initial node as the starting point, and generate a log node relationship topology map according to the log node identification information corresponding to each target log node data. Among them, the log node aggregation tool can be a tool selected according to the needs, such as ELK Stack (composed of Elasticsearch, Logstash and Kibana), a powerful tool for log management, or the generation of the log relationship topology map can be realized through the self-developed tool of the technician.
[0069] S240 , determining the node association quantity of each log node according to the node association information of each log node in the target log node data set, and determining the log node with the largest node association quantity as the current reference log node.
[0070] The associated node quantity information may be the associated quantity information between each log node in the log node data set and other log nodes in the log node data set, and is used to characterize the associated log node quantity of each log node in the log node data set. The log node with the largest associated quantity may be the log node in the log node data set that has the largest number of associated quantities with other log nodes in the log node data set.
[0071] Among them, the current benchmark log node can be a benchmark log node determined according to the associated quantity of each log node in the log node data set, and is used as a reference log node for adjusting the position of the log node relationship topology map when displaying the log node relationship topology map.
[0072] Specifically, the node association quantity of each log node is determined according to the node association information of each log node in the target log node data set, and the log node with the largest node association quantity is determined as the current benchmark log node. This can be after the target log node data set is generated and the node association information of each log node in the target log node data set is determined, the association quantity information of each log node with other log nodes in the target log node data set can be determined according to the node association information of each log node, and the log node with the largest number of associations between each log node in the target log node data set and other log nodes is determined as the current benchmark log node, and then when the log node relationship topology diagram is displayed on the display page, the display position of the log node relationship topology diagram is determined.
[0073] S250 , obtaining page information of the display page, adjusting the log node relationship topology map according to the page information, and obtaining an adjusted log node relationship topology map.
[0074] The display page may be a page for displaying a log node relationship topology map, and the page information may be page information of the display page, which may include but is not limited to width and height information and preset ratio information of the display page. The width and height information is used to characterize the width and height of the display page for displaying the log node relationship topology map, and the preset ratio information is used to characterize the size ratio of the display page, the log node relationship topology map, and the benchmark log node.
[0075] The adjusted log node relationship topology map may be a log node relationship topology map obtained by adjusting the log node relationship topology map according to width and height information of the display page and preset ratio information.
[0076] Optionally, adjusting the log node relationship topology map according to the page information to obtain the adjusted log node relationship topology map may include: obtaining the width, height and preset ratio information of the display page; adjusting the size of the log node relationship topology map and the benchmark log node according to the width, height and preset ratio information to obtain the adjusted log node relationship topology map.
[0077] Specifically, according to the width and height information and the preset ratio information, the sizes of the log node relationship topology map and the benchmark log node are adjusted to obtain the adjusted log node relationship topology map. This can be done by obtaining the width and height information and the preset ratio information of the display page used to display the log node relationship topology map, substituting the display width and height information into the size ratio of the display page, the log node relationship topology map and the benchmark log node, calculating the size information of the log node relationship topology map and the size information of the benchmark log node, and adjusting the size information of the benchmark log node and the size of the log node relationship topology map according to the width and height information of the log node relationship topology map and the size information of the benchmark log node to obtain the adjusted log node relationship topology map.
[0078] S260: Using the current reference log node as the display center point of the display page, and displaying the adjusted log node relationship topology map in the display page according to the adjusted log node relationship topology map and the positioning data of the current reference log node in the display page.
[0079] Among them, the positioning data can be the coordinate data of the adjusted log node relationship topology map and the current benchmark log node in the display page. The current benchmark log node in the adjusted log node relationship topology map can be displayed at the center position of the display page, and the adjusted log node relationship topology map can be displayed accordingly.
[0080] Specifically, the current reference log node is used as the display center point of the display page, and the adjusted log node relationship topology diagram is displayed in the display page according to the adjusted log node relationship topology diagram and the positioning data of the current reference log node in the display page. After determining the current reference log node, the center coordinates of the display page are determined according to the width and height information of the display page, and the center coordinates of the display page are used as the display coordinates of the current reference log node. Then, the current reference log node after resizing is displayed on the center coordinates, and after aligning the adjusted log node relationship topology diagram with the display page, the adjusted log node relationship topology diagram is displayed through the display page.
[0081] In a specific application scenario, the log data display method provided by the embodiment of the present invention may include the following process:
[0082] Step 1. User search inputs search criteria;
[0083] Step 2. The page interface obtains the user's search conditions and passes them into the database;
[0084] Step 3. The database filters out relevant data based on the page conditions, and the data is transmitted to the aggregation tool;
[0085] Step 4. The aggregation tool obtains the link topology related data, including node names and node relationships, and transmits it back to the page;
[0086] Step 5. The page gets the data transmitted back from the aggregation tool, displays the link topology, obtains the node name and passes it to the [Location] function for display;
[0087] Step 6. Find the center position (center x, center y) according to the size of the link graph topology, and place the positioning node at (center x, center y);
[0088] Step 7. The code sets the default computer screen radius to a, the link graph radius to b, and the node radius to c;
[0089] Step 8. After the user is located, the computer screen size a1 is obtained, and the link graph radius b1 and the node radius c1 are obtained according to the default relationship a:b:c;
[0090] Step 9. The link graph adjusts the radius of all nodes to C1, and the located node is placed at the center of the link topology at this time (x1, y1).
[0091] Optionally, after displaying the adjusted log node relationship topology diagram in the display page, it also includes: obtaining the node identification information of each log node in the log node data set, and constructing a target node positioning identifier according to the node identification information of each log node; in response to a target node positioning command triggered by the user according to the target node positioning identifier, determining the log node corresponding to the node identification information specified by the user as the current benchmark log node; using the current benchmark log node as the display center point of the display page, and displaying the adjusted log node relationship topology diagram in the display page according to the adjusted log node relationship topology diagram and the positioning data of the current benchmark log node in the display page.
[0092] The target node location identifier may be a function of providing location and display for the target node. After the user triggers the target node location identifier, the system for providing the log query function may make a corresponding location response and highlight or enlarge the target node selected by the user.
[0093] The target node positioning command may be a node positioning command issued by a user after triggering a target node positioning identifier. When the target node positioning command is detected, the target node may be positioned according to the node identifier information specified by the target node positioning command.
[0094] Specifically, the node identification information of each log node in the log node data set is obtained, and the target node positioning identification is constructed according to the node identification information of each log node. The node identification information of each log node in the log node data set can be integrated into the target node positioning drop-down box to construct the target node positioning identification. The user can select the target node to be located through the positioning drop-down box and issue a target node positioning command.
[0095] Specifically, in response to a target node positioning command triggered by a user according to a target node positioning identifier, the log node corresponding to the node identification information specified by the user is determined as the current benchmark log node. This may be when a trigger operation of the user on the drop-down box of the target node positioning identifier is detected, the node identification information is obtained, and the log node corresponding to the node identification information is determined based on the node identification information, and the log node corresponding to the node identification information is determined as the current benchmark log node.
[0096] Specifically, the current reference log node is used as the display center point of the display page, and the adjusted log node relationship topology diagram is displayed in the display page according to the adjusted log node relationship topology diagram and the positioning data of the current reference log node in the display page. After the target node is determined as the current reference log node, the center coordinates of the display page are determined according to the width and height information of the display page, and the center coordinates of the display page are used as the display coordinates of the current reference log node. Then, the current reference log node after resizing is highlighted and displayed at the center coordinates, and after the adjusted log node relationship topology diagram is aligned with the display page, the adjusted log node relationship topology diagram is displayed through the display page. Figure 3 A schematic diagram of the display effect of partially adjusting the log node relationship topology diagram provided in the second embodiment of the present invention, in a specific example, Figure 3 As shown, the current benchmark log node can be enlarged and highlighted, and the log node relationship topology diagram can be adjusted accordingly.
[0097] The technical solution of the embodiment of the present invention obtains the user input log query condition information and log filtering condition information by responding to the log query instruction issued by the user, then determines the target log data information according to the log query condition information, filters the target log data information according to the log filtering condition information, and obtains the target log node data set and the node association information of each log node in the target log node data set. Further, a log node relationship topology map is generated according to the target log node data set and the node association information of each log node in the target log node data set, and the log node relationship topology map is displayed in a preset display format to present the link relationship between each log node that meets the user's screening condition to the user, which can solve the problem that the log node relationship reflected by the link topology map displayed in the prior art is chaotic, so that the user has a low recognition when analyzing the log node data in the log data. The recognition of the log relationship topology map can be improved, thereby improving the display effect of the log data, and then improving the efficiency of log analysis and processing and the user's experience. The log node with the largest number of node associations is determined as the current benchmark log node; the page information of the display page is obtained, and the log node relationship topology diagram is adjusted according to the page information to obtain the adjusted log node relationship topology diagram; the current benchmark log node is used as the display center point of the display page, and the adjusted log node relationship topology diagram is displayed in the display page according to the positioning data of the adjusted log node relationship topology diagram and the current benchmark log node in the display page. The size of the log node relationship topology diagram can be adjusted according to the size of the display page, so that the log node relationship topology diagram can be displayed more clearly on the display page, thereby improving the flexibility of log information display and enhancing user experience.
[0098] Embodiment 3
[0099] Figure 4 This is a schematic diagram of the structure of a log data display device provided in Embodiment 3 of the present invention. Figure 4 As shown, the device includes: a log search condition information acquisition module 310, a log data processing module 320, a log node relationship topology map generation module 330 and a log node relationship topology map display module 340.
[0100] The log search condition acquisition module 310 is used to obtain the log search condition information input by the user in response to the log query instruction issued by the user, wherein the log search condition information includes log query condition information and log filtering condition information;
[0101] The log data processing module 320 is used to determine the target log data information according to the log query condition information, and filter the target log data information according to the log filtering condition information to obtain the target log node data set and the node association information of each log node in the target log node data set;
[0102] A log node relationship topology map generating module 330, configured to generate a log node relationship topology map according to the target log node data set and the node association information of each log node in the target log node data set;
[0103] The log node relationship topology diagram display module 340 is used to display the log node relationship topology diagram in a preset display format.
[0104] Furthermore, the log data processing module 320 is specifically used to: generate a log query statement according to the log query condition information; query the target database through the log query statement, and determine the target log data information according to the log query result of the target database.
[0105] Furthermore, the log data processing module 320 is specifically used to: determine the filtering conditions according to the log filtering condition information, and filter the target log data information according to the filtering conditions to obtain the target log node identification information that meets the filtering conditions; construct the target log node data set according to the target log node identification information; query the target log data information according to the target log node identification information to obtain the node association information of each log node in the target log node data set; wherein the node association information of the log node includes node identification information, associated node identification information and associated node quantity information.
[0106] Furthermore, the log node relationship topology map generation module 330 is specifically used to: determine a log node aggregation tool; input the log node identification information of each log node in the target log node data set and the node association information of each log node in the target log node data set into the log node aggregation tool, so as to generate the log node relationship topology map through the log node aggregation tool.
[0107] Furthermore, the log node relationship topology map display module 340 is specifically used to: determine the node association quantity of each log node according to the node association information of each log node in the target log node data set; determine the log node with the largest node association quantity as the current benchmark log node; obtain page information of the display page, adjust the log node relationship topology map according to the page information, and obtain the adjusted log node relationship topology map; use the current benchmark log node as the display center point of the display page, and display the adjusted log node relationship topology map in the display page according to the adjusted log node relationship topology map and the positioning data of the current benchmark log node in the display page.
[0108] Furthermore, the log node relationship topology map display module 340 is specifically used to: obtain the width and height information and preset ratio information of the display page; adjust the size of the log node relationship topology map and the benchmark log node according to the width and height information and the preset ratio information to obtain the adjusted log node relationship topology map.
[0109] Furthermore, the log data display device also includes: a target node positioning module, which is used to obtain the node identification information of each log node in the log node data set after displaying the adjusted log node relationship topology map in the display page, and construct a target node positioning function according to the node identification information of each log node; in response to a target node positioning command triggered by a user according to the target node positioning identifier, determine the log node corresponding to the node identification information specified by the user as the current benchmark log node; use the current benchmark log node as the display center point of the display page, and display the adjusted log node relationship topology map in the display page according to the adjusted log node relationship topology map and the positioning data of the current benchmark log node in the display page.
[0110] The log data display device provided in the embodiment of the present invention can execute the log data display method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0111] Embodiment 4
[0112] Figure 5A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0113] like Figure 5 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0114] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0115] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the log data display method.
[0116] In some embodiments, the log data display method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the log data display method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the log data display method in any other appropriate manner (e.g., by means of firmware).
[0117] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0118] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0119] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0120] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0121] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0122] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0123] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0124] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A log data display method, characterized in that: include: In response to a log query instruction issued by a user, obtaining log search condition information input by the user, wherein the log search condition information includes log query condition information and log filtering condition information; Determine the target log data information according to the log query condition information, and filter the target log data information according to the log filtering condition information to obtain the target log node data set and the node association information of each log node in the target log node data set; Generate a log node relationship topology graph according to the target log node data set and the node association information of each log node in the target log node data set; The log node relationship topology diagram is displayed in a preset display format.
2. The method according to claim 1, characterized in that The determining target log data information according to the log query condition information includes: Generate a log query statement according to the log query condition information; The target database is queried through the log query statement, and the target log data information is determined according to the log query result of the target database.
3. The method according to claim 1, characterized in that The filtering of the target log data information according to the log filtering condition information to obtain the target log node data set and the node association information of each log node in the target log node data set includes: Determine a filtering condition according to the log filtering condition information, and filter the target log data information according to the filtering condition to obtain target log node identification information that meets the filtering condition; Constructing the target log node data set according to the target log node identification information; Query the target log data information according to the target log node identification information to obtain node association information of each log node in the target log node data set; The node association information of the log node includes node identification information, associated node identification information and associated node quantity information.
4. The method according to claim 1, characterized in that: The generating a log node relationship topology diagram according to the target log node data set and the node association information of each log node in the target log node data set includes: Determine the log node aggregation tool; The log node identification information of each log node in the target log node data set and the node association information of each log node in the target log node data set are input into the log node aggregation tool to generate the log node relationship topology map through the log node aggregation tool.
5. The method according to claim 1, characterized in that The displaying of the log node relationship topology diagram in a preset display format includes: Determining the node association quantity of each of the log nodes according to the node association information of each of the log nodes in the target log node data set; Determine the log node with the largest number of node associations as the current benchmark log node; Acquire page information of the display page, and adjust the log node relationship topology map according to the page information to obtain an adjusted log node relationship topology map; The current reference log node is used as the display center point of the display page, and the adjustment log node relationship topology diagram is displayed in the display page according to the adjustment log node relationship topology diagram and the positioning data of the current reference log node in the display page.
6. The method according to claim 5, characterized in that The step of adjusting the log node relationship topology map according to the page information to obtain the adjusted log node relationship topology map includes: Obtaining width, height and preset ratio information of the display page; According to the width and height information and the preset ratio information, the sizes of the log node relationship topology map and the reference log node are adjusted to obtain the adjusted log node relationship topology map.
7. The method according to claim 5, characterized in that After displaying the adjustment log node relationship topology diagram on the display page, the method further includes: Obtaining node identification information of each log node in the log node data set, and constructing a target node positioning identifier according to the node identification information of each log node; In response to a target node positioning command triggered by a user according to a target node positioning identifier, determining a log node corresponding to the node identification information specified by the user as a current reference log node; The current reference log node is used as the display center point of the display page, and the adjustment log node relationship topology diagram is displayed in the display page according to the adjustment log node relationship topology diagram and the positioning data of the current reference log node in the display page.
8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the log data display method according to any one of claims 1 to 7.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the log data display method according to any one of claims 1 to 7 when executed.
10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the computer program implements the log data display method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Method and device for generating log for pressure test
CN108572914A
Log data retrieval method and device, equipment and medium
CN112948328A
Log processing method and device, computer equipment and storage medium
CN115237857A
Log display method and device, electronic equipment and nonvolatile storage medium
CN115617750A
Log display method and device, equipment and storage medium
CN115794744A
Cited By
Visual processing method and device for distributed database and electronic equipment
CN121092558A
