Log display method and device, electronic equipment and storage medium

By receiving the terminal's query request and obtaining the target log from the preset database for grouping, the problem of the inability to compare the operation status and fault location of multiple operating systems in the prior art is solved, and debugging efficiency and system stability are improved.

CN119719035APending Publication Date: 2025-03-28CHINA AUTOMOTIVE INNOVATION CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411669406.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-21
Publication Date
2025-03-28

AI Technical Summary

Technical Problem

The prior art cannot compare the operating conditions of each operating system at the same time, and cannot quickly locate fault points in a specific time period, resulting in low debugging efficiency and low system stability and reliability.

Method used

By receiving the query request sent by the terminal, based on the query identification information and target query time of the operating system, the target log is obtained from the preset database, and the logs are grouped and sent to the terminal for comparison and positioning.

Benefits of technology

It realizes the operation status of each operating system at the same time, quickly locates fault points in a specific time period, improves debugging efficiency, and improves the stability and reliability of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119719035A_ABST
    Figure CN119719035A_ABST
Patent Text Reader

Abstract

The invention relates to a log display method and device, electronic equipment and a storage medium. The method comprises the steps that a first query request sent by a terminal is received; based on the query identification information and the target query time corresponding to the at least one operating system, obtaining a target log from a preset database, the target log comprising at least one running log corresponding to each operating system in the at least one operating system at the target query time, the at least one operating system corresponds to the same preset starting time and the same preset timing frequency, at least one group of running logs under the target query dimension is obtained based on query identification information corresponding to the at least one operating system, and the at least one group of running logs is sent to the terminal to be displayed. By utilizing the embodiment of the invention, the query efficiency and pertinence of each operating system can be improved, the comparison of the operation conditions of each operating system at the same moment is realized, the fault point is quickly positioned in a specific time period, the debugging efficiency is improved, and the stability and reliability of the system are greatly improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of vehicle virtualization systems, and in particular to a business log display method, device, electronic device and storage medium. Background Art

[0002] As automotive virtualization systems involving multiple virtual machine systems running on SOC are becoming more and more widely used, how to view multiple system logs at the same time to observe the operation of multiple systems has also become the focus of maintaining the efficient operation of virtualization systems.

[0003] In the related art, logs are often recorded through independent log systems of virtualization systems and virtual machine systems, and then the logs of each system are output through virtualized virtual terminals. The logs corresponding to different virtual machines can be viewed by switching, or the logs of each system can be exported through commands. However, in the related art, only the logs of one system can be seen at the same time. Since the start time and tick value (timing frequency) of each system are not unified, it is impossible to compare the running conditions of each operating system at the same time, and it is impossible to quickly locate the fault point in a specific time period. The debugging efficiency is low, which leads to low stability and reliability of the system. Summary of the invention

[0004] The present disclosure provides a log display method, device, electronic device and storage medium to at least solve the problems in the related art that the operation status of each operating system cannot be compared at the same time, the fault point cannot be quickly located in a specific time period, the debugging efficiency is low, and the stability and reliability of the system are low. The technical solution of the present disclosure is as follows:

[0005] According to a first aspect of an embodiment of the present disclosure, a log display method is provided, including:

[0006] A first query request sent by a receiving terminal is received, wherein the first query request includes target query identification information and target query time corresponding to a target query dimension; the target query identification information is query identification information corresponding to at least one operating system; and the target query dimension is any preset query dimension of at least one preset query dimension;

[0007] Based on the query identification information corresponding to the at least one operating system and the target query time, a target log is obtained from a preset database; the target log includes at least one operation log corresponding to the target query time for each of the at least one operating system; any operation log in the preset database is stored based on the query identification corresponding to any operation log in the at least one preset query dimension, and the at least one operating system corresponds to the same preset start time and the same preset timing frequency;

[0008] The target logs are grouped based on the query identification information corresponding to the at least one operating system to obtain at least one group of operation logs under the target query dimension;

[0009] The at least one set of operation logs is sent to the terminal, so that the terminal displays the at least one set of operation logs.

[0010] In an optional embodiment, the at least one operating system includes a virtualization system and at least one virtual machine system, and the method further includes:

[0011] The start time corresponding to the virtualization system and the timing frequency corresponding to the virtualization system are obtained, the start time corresponding to the virtualization system is set to the preset start time, and the timing frequency corresponding to the virtualization system is set to the preset timing frequency.

[0012] In an optional embodiment, the at least one system corresponds to at least one processor, and when the target query dimension is a processor query dimension, and the target query identification information is processor identification information corresponding to the at least one processor, the target logs are grouped based on the query identification information corresponding to the at least one operating system to obtain at least one group of operation logs under the target query dimension, including:

[0013] Based on the processor identification information, the target logs are grouped according to the processor identification corresponding to each of the at least one processor to obtain at least one group of operation logs under the processor query dimension.

[0014] In an optional embodiment, the method further includes:

[0015] receiving a second query request sent by a terminal, wherein the second query request includes a first target query time; the first target query time is any time within the target query time;

[0016] Based on the first target query time, at least one group of current processor operation logs corresponding to the first target query time is obtained from at least one group of operation logs under the processor query dimension.

[0017] In an optional embodiment, when the target query dimension is a system query dimension and the target query identification information is system identification information corresponding to the at least one operating system, grouping the target logs based on the query identification information corresponding to the at least one operating system to obtain at least one group of operation logs under the target query dimension includes:

[0018] Based on the system identification information, the target logs are grouped according to the system identifications corresponding to the at least one operating system, so as to obtain at least one group of operation logs under the system query dimension.

[0019] In an optional embodiment, the method further includes:

[0020] receiving a third query request sent by a terminal, wherein the third query request includes a second target query time; the second target query time is any time within the target query time;

[0021] Based on the second target query time, at least one group of current system operation logs corresponding to the second target query time is obtained from at least one group of operation logs under the system query dimension.

[0022] In an optional embodiment, the method further includes:

[0023] Acquire a current occupancy rate of a processor corresponding to a target operating system in the at least one operating system; the target operating system is an operating system in the at least one operating system that has a log memory corresponding to the at least one operating system;

[0024] When the current occupancy rate is lower than a preset threshold, the at least one operation log is obtained from a log memory corresponding to each of the at least one operating system and sent to the preset database.

[0025] According to a second aspect of an embodiment of the present disclosure, there is provided a log display device, including:

[0026] A first query request receiving module is used to receive a first query request sent by a terminal, wherein the first query request includes target query identification information and target query time corresponding to a target query dimension; the target query identification information is query identification information corresponding to at least one operating system; and the target query dimension is any preset query dimension among at least one preset query dimension;

[0027] A target log acquisition module is used to acquire a target log from a preset database based on the query identification information corresponding to the at least one operating system and the target query time; the target log includes at least one operation log corresponding to the target query time for each operating system in the at least one operating system; any operation log in the preset database is stored based on the query identification corresponding to any operation log in the at least one preset query dimension, and the at least one operating system corresponds to the same preset start time and the same preset timing frequency;

[0028] An operation log acquisition module, configured to group the target logs based on the query identification information corresponding to the at least one operating system to obtain at least one group of operation logs under the target query dimension;

[0029] The operation log sending module is used to send the at least one set of operation logs to the terminal so that the terminal displays the at least one set of operation logs.

[0030] In an optional embodiment, the at least one operating system includes a virtualization system and at least one virtual machine system, and the device further includes:

[0031] The setting module is used to obtain the start time corresponding to the virtualization system and the timing frequency corresponding to the virtualization system, set the start time corresponding to the virtualization system to the preset start time, and set the timing frequency corresponding to the virtualization system to the preset timing frequency.

[0032] In an optional embodiment, the at least one system corresponds to at least one processor, and when the target query dimension is a processor query dimension, and the target query identification information is processor identification information corresponding to the at least one processor, the operation log acquisition module includes:

[0033] The first operation log acquisition unit is used to group the target logs according to the processor identification information and the processor identification corresponding to each of the at least one processor, so as to obtain at least one group of operation logs under the processor query dimension.

[0034] In an optional embodiment, the device further comprises:

[0035] A second query request receiving module, configured to receive a second query request sent by a terminal, wherein the second query request includes a first target query time; the first target query time is any time within the target query time;

[0036] The current processor operation log acquisition module is used to acquire at least one group of current processor operation logs corresponding to the first target query time from at least one group of operation logs under the processor query dimension based on the first target query time.

[0037] In an optional embodiment, when the target query dimension is a system query dimension, and the target query identification information is system identification information corresponding to the at least one operating system, the operation log acquisition module includes:

[0038] The second operation log acquisition unit groups the target logs according to the system identification information and the system identification corresponding to each of the at least one operating system to obtain at least one group of operation logs under the system query dimension.

[0039] In an optional embodiment, the device further comprises:

[0040] A third query request receiving module, configured to receive a third query request sent by a terminal, wherein the third query request includes a second target query time; the second target query time is any time within the target query time;

[0041] The current system operation log acquisition module is used to acquire at least one group of current system operation logs corresponding to the second target query time from at least one group of operation logs under the system query dimension based on the second target query time.

[0042] In an optional embodiment, the device further comprises:

[0043] A current occupancy acquisition module, used to acquire a current occupancy of a processor corresponding to a target operating system in the at least one operating system; the target operating system is an operating system in the at least one operating system that has a log memory corresponding to the at least one operating system;

[0044] The sending module is used to obtain the at least one operation log from the log memory corresponding to each of the at least one operating system and send it to the preset database when the current occupancy rate is lower than a preset threshold.

[0045] According to a third aspect of an embodiment of the present disclosure, an electronic device is provided, comprising: a processor; and a memory for storing instructions executable by the processor; wherein the processor is used to execute the instructions to implement a method as described in any one of the above-mentioned first aspects.

[0046] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute any method described in the first aspect of the embodiment of the present disclosure.

[0047] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:

[0048] A first query request sent by a receiving terminal is obtained, based on the target query identification information and target query time corresponding to the target query dimension included in the first query request, and based on the query identification information and target query time corresponding to at least one operating system, from a preset database at least one operation log corresponding to each operating system at the target query time. Any operation log in the preset database is stored based on the query identification corresponding to any operation log in at least one preset query dimension, so that the target log of each operating system for the target query dimension at the target query time can be accurately obtained, effectively improving the query efficiency and pertinence. At least one operating system corresponds to the same preset start time and the same preset timing frequency, so that the time base of each operating system can be unified. Based on the query identification information corresponding to at least one operating system, the target logs are grouped to obtain at least one group of operation logs under the target query dimension, which are sent to the terminal for display. This allows comparison of the operating conditions of each operating system at the same time, and allows rapid location of the fault point in a specific time period, thereby improving the debugging efficiency and greatly increasing the stability and reliability of the system.

[0049] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0050] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.

[0051] Figure 1 is a schematic diagram of an application environment according to an exemplary embodiment;

[0052] Figure 2 is a flow chart showing a log display method according to an exemplary embodiment;

[0053] Figure 3 is at least one set of operation logs under a processor query dimension according to an exemplary embodiment;

[0054] Figure 4 is an exemplary embodiment showing the operation of at least one processor;

[0055] Figure 5 is a block diagram of a log display device according to an exemplary embodiment;

[0056] Figure 6 The invention is a block diagram of an electronic device for log display according to an exemplary embodiment. DETAILED DESCRIPTION

[0057] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.

[0058] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar different contents, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the attached claims.

[0059] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for display, data for analysis, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties.

[0060] See also Figure 1 , Figure 1 is a schematic diagram of an application environment according to an exemplary embodiment. Figure 1 As shown, the application environment may include a terminal 100 and a server 200 .

[0061] In an optional embodiment, the terminal 100 can be used to provide services such as log query and receiving operation logs. Specifically, the terminal 100 may include but is not limited to electronic devices such as smart phones, desktop computers, tablet computers, laptops, smart speakers, digital assistants, augmented reality (AR) / virtual reality (VR) devices, smart wearable devices, etc., and may also be software running on the above electronic devices, such as applications. Optionally, the operating system running on the electronic device may include but is not limited to Android system, IOS system, Linux, Windows, etc.

[0062] In an optional embodiment, the server 200 can provide background support for the terminal 100, and obtain at least one set of operation logs under the target query dimension. Optionally, the server 200 can receive a first query request sent by the terminal 100, and accordingly, based on the target query identification information and the target query time in the first query request, the target logs obtained from the preset database can be grouped to obtain at least one set of operation logs under the target query dimension. Specifically, the server 200 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms.

[0063] In addition, it should be noted that Figure 1 What is shown is only one application environment provided by the present disclosure. In actual application, other application environments may also be included.

[0064] In the embodiments of this specification, the terminal 100 and the server 200 may be directly or indirectly connected via wired or wireless communication, which is not limited in this disclosure.

[0065] Figure 2 is a flow chart of a log display method according to an exemplary embodiment. Figure 2 As shown, the log display method is used in electronic devices such as terminals and servers, and includes the following steps.

[0066] In step S201, a first query request sent by a terminal is received.

[0067] In a specific embodiment, the first query request may be a request for triggering acquisition of a target log. Specifically, the first query request may include target query identification information and target query time corresponding to a target query dimension.

[0068] In a specific embodiment, the target query identification information may be query identification information corresponding to at least one operating system, the at least one operating system may include a virtualization system and at least one virtual machine system, the at least one operating system corresponds to at least one processor, and the query identification information may be processor identification information and system identification information. Exemplarily, the target query identification information may be system identification information corresponding to the virtualization system and at least one virtual machine system.

[0069] In a specific embodiment, the target query time may be any time period within the log time interval, and the query identification information may be processor identification information, system identification information, and the like.

[0070] In a specific embodiment, the target query dimension can be any preset query dimension of at least one preset query dimension. Specifically, the preset query dimension can be a processor query dimension, a system query dimension, etc. Correspondingly, the target query dimension can be any query dimension of the processor query dimension and the system query dimension.

[0071] In step S203, a target log is obtained from a preset database based on the query identification information corresponding to at least one operating system and the target query time.

[0072] In a specific embodiment, the preset database may be a pre-set database that can be directly accessed by the terminal. Specifically, the preset database may be used to store logs.

[0073] In a specific embodiment, the target log may be all logs stored in a preset database. Specifically, the target log may include at least one operation log corresponding to each operating system in at least one operating system at a target query time.

[0074] In a specific embodiment, the at least one operation log may be at least one record of activity information related to a specific event in the operating system at a target query time for each operating system in at least one operating system.

[0075] In a specific embodiment, any operation log in the preset database can be stored based on the query identifier corresponding to any operation log in at least one preset query dimension, and any operation log can be any operation log of at least one operation log. Specifically, when at least one preset query dimension is a processor query dimension and a system query dimension, the corresponding query identifier can be a processor identifier and a system identifier, and any operation log in the preset database can be stored based on the processor identifier and the system identifier.

[0076] In a specific embodiment, at least one operating system may correspond to the same preset start time and the same preset timing frequency. The preset start time may be the moment when the system starts and starts recording logs, and the preset timing frequency may be the smallest unit used to measure time in the system.

[0077] In a specific embodiment, the above method may further include:

[0078] Obtaining a current occupancy rate of a processor corresponding to a target operating system in at least one operating system;

[0079] When the current occupancy rate is lower than a preset threshold, at least one operation log is obtained from a log memory corresponding to at least one operating system and sent to a preset database.

[0080] In a specific embodiment, the target operating system can be an operating system having at least one operating system corresponding log memory in at least one operating system. Exemplarily, at least one operating system can be a virtualization system and at least one virtual machine system. Accordingly, the target operating system can be a virtualization system.

[0081] In a specific embodiment, the current occupancy rate may be the proportion of the time that the processor corresponding to the target operating system is executing computing tasks at the current moment to the total time, the preset threshold may be a preset critical occupancy rate, and the log memory corresponding to at least one operating system may be a memory in the virtualization system for storing the log corresponding to at least one operating system.

[0082] In the above embodiment, when the current occupancy rate of the processor corresponding to the target operating system is lower than a preset threshold, at least one operation log is obtained from the log memory corresponding to at least one operating system and sent to a preset database. This allows log acquisition and transmission operations to be performed when the processor occupancy rate is low. At this time, the system is relatively stable, avoiding log loss or damage due to resource constraints, ensuring the integrity of the log, and using the processor's idle time to process log-related work, thereby improving the comprehensive utilization efficiency of system resources.

[0083] In an optional embodiment, the at least one operating system includes a virtualization system and at least one virtual machine system, and the method may further include:

[0084] The start time corresponding to the virtualization system and the timing frequency corresponding to the virtualization system are obtained, the start time corresponding to the virtualization system is set to a preset start time, and the timing frequency corresponding to the virtualization system is set to a preset timing frequency.

[0085] In a specific embodiment, the start time corresponding to the virtualization system may be the moment when the virtualization system starts running and starts the logging function. For example, when the virtualization system is started at 12:00:00 on October 1, 2024, this time is the start time, and the time records of subsequent virtual machine creation, resource allocation, task execution and other events are all relative to this time.

[0086] In a specific embodiment, the timing frequency corresponding to the virtualization system can be the smallest unit used to measure time in the virtualization system. For example, if the timing frequency is once every 10 milliseconds, then the virtualization system operates with 10 milliseconds as a basic interval when recording event times and performing time-related calculations.

[0087] In the above embodiment, by uniformly setting the preset start time and the preset timing frequency corresponding to at least one operating system to the start time and the timing frequency corresponding to the virtualization system, the start time and the timing frequency of each operating system can be unified, and the sequence of events in each operating system can be clarified so that the operation logs corresponding to each operating system can be aligned in time. When a system failure occurs, the fault point can be quickly located by comparing the logs of each operating system at the time when the failure occurs, thereby reducing the difficulty of troubleshooting, thereby optimizing the system and effectively improving system performance.

[0088] In step S205, target logs are grouped based on query identification information corresponding to at least one operating system to obtain at least one group of operation logs under the target query dimension.

[0089] In a specific embodiment, at least one group of operation logs may be obtained by grouping target logs based on query identification information corresponding to at least one operating system.

[0090] In an optional embodiment, the at least one system corresponds to at least one processor. When the target query dimension is a processor query dimension and the target query identification information is processor identification information corresponding to the at least one processor, the query identification information corresponding to the at least one operating system is used to group the target logs to obtain at least one group of operation logs under the target query dimension, which may include:

[0091] Based on the processor identification information, the target logs are grouped according to the processor identification corresponding to at least one processor, so as to obtain at least one group of operation logs under the processor query dimension.

[0092] In a specific embodiment, the processor query dimension can be used to determine the operation status of at least one processor at different times or time periods. Specifically, it can be used to query the start time, end time, execution duration, etc. of tasks of at least one processor at different times or time periods.

[0093] In the above embodiment, the target logs are grouped according to the processor identifiers corresponding to at least one processor to obtain at least one group of operation logs under the processor query dimension. Through grouping, it is possible to understand the operation status of each processor at different times, such as the workload of the processor, so as to optimize task allocation and improve overall performance. When a problem occurs in the system, such as an abnormal freeze or crash in a process, the operation status of the processor related to the process can be quickly viewed through the grouped logs, and the processor that may fail can be quickly locked, thereby narrowing the scope of investigation and improving the efficiency of fault diagnosis.

[0094] In an optional embodiment, the above method may further include:

[0095] receiving a second query request sent by the terminal;

[0096] Based on the first target query time, at least one group of current processor operation logs corresponding to the first target query time is obtained from at least one group of operation logs under the processor query dimension.

[0097] In a specific embodiment, the second query request may be a request to trigger acquisition of at least one set of current processor operation logs corresponding to the first target query time. Specifically, the second query request may include the first target query time, and the first target query time may be any time within the target query time.

[0098] In a specific embodiment, the at least one set of current processor operation logs may be operation logs corresponding to the first target query time at least one set of operation logs under the processor query dimension.

[0099] Figure 3 is at least one set of operation logs under the processor query dimension according to an exemplary embodiment, such as Figure 3 The at least one set of operation logs corresponds to at least one processor, and the at least one processor may be CPU[0], CPU[1], CPU[2], and CPU[3]. For example, for processor CPU[0], Figure 3 It can be seen that the running status of CPU[0] from 180ms to 400ms, for example, from 180ms to 285ms, CPU[0] is running the operating system, from 285ms to 290ms, CPU[0] is processing interrupts, from 290ms to 305ms, CPU[0] is running the operating system, etc. The first target query time can be 300ms, and at least one set of current processor running logs can be CPU[0] running the operating system, CPU[1] running the operating system, CPU[2] executing tasks, and CPU[3] running the operating system.

[0100] Figure 4 According to an exemplary embodiment, the operation of at least one processor is shown as follows: Figure 4 As shown, during the target query time, CPU[0] spent 84.71% of its time running the operating system, 14.89% of its time executing tasks, 0.29% of its time processing interrupts, and 0.1% of its time in an idle state.

[0101] In the above embodiment, through the second query request, the operation log corresponding to at least one processor at the same time within the target query time is viewed, and the load conditions of each processor can be directly compared. If it is found that some processors are overloaded at the same time while other processors are relatively idle, the task allocation can be adjusted in a targeted manner to effectively improve the system performance. When the system fails or behaves abnormally, viewing the processor operation logs at the same time can help quickly determine which processor or processors may have problems, thereby improving debugging efficiency.

[0102] In an optional embodiment, when the target query dimension is a system query dimension and the target query identification information is the system identification information corresponding to the at least one operating system, the target logs are grouped based on the query identification information corresponding to the at least one operating system to obtain at least one group of operation logs under the target query dimension, which may include:

[0103] Based on the system identification information, the target logs are grouped according to the system identification corresponding to at least one operating system, so as to obtain at least one group of operation logs under the system query dimension.

[0104] In a specific embodiment, the system query dimension can be used to determine the processor operation status corresponding to at least one operating system at different times or time periods. Specifically, it can be used to query processor-related parameters of at least one operating system running at different times or time periods, such as model, number of cores, and number of threads.

[0105] In the above embodiment, the target logs are grouped according to the system identifiers corresponding to at least one system to obtain at least one group of operation logs under the system query dimension. When a problem occurs, the logs grouped by the system identifiers can quickly determine which system has failed, thereby ensuring the stability of the system. By analyzing which tasks are executed on which processors at different times, the execution time, and the switching between tasks, the scheduling algorithm can be adjusted to reduce the overhead of context switching, improve the effective utilization of the processor, and enhance the work efficiency of the system.

[0106] In an optional embodiment, the above method may further include:

[0107] receiving a third query request sent by a terminal;

[0108] Based on the second target query time, at least one group of current system operation logs corresponding to the second target query time is obtained from at least one group of operation logs under the system query dimension.

[0109] In a specific embodiment, the third query request may be a request to trigger acquisition of at least one set of current system operation logs corresponding to the second target query time. Specifically, the third query request may include the second target query time, and the second target query time may be any time within the target query time.

[0110] In a specific embodiment, the at least one set of current system operation logs may be operation logs corresponding to at least one set of operation logs under the system query dimension at the second target query time.

[0111] In the above embodiment, through the third query request, the operation logs corresponding to at least one system at the same time within the target query time are viewed, so that the interaction between the systems can be analyzed, such as whether the data transmission is normal, whether the interface call is successful, etc., and the problems in the interaction between the systems can be quickly located. By understanding the operation of different systems at the same time, it is helpful to evaluate the efficiency of their collaborative work, optimize the collaborative process at the problem time point, and improve the overall performance of the system.

[0112] In step S207, at least one set of operation logs is sent to the terminal, so that the terminal displays the at least one set of operation logs.

[0113] In a specific embodiment, the at least one group of operation logs may be at least one group of operation logs under a target query dimension. Accordingly, the target query dimension may be a processor query dimension, a system query dimension, and the like.

[0114] It can be seen from the technical solutions provided by the above embodiments of this specification that this specification receives a first query request sent by a terminal, and based on the target query identification information and target query time corresponding to the target query dimension included in the first query request, and based on the query identification information and target query time corresponding to at least one operating system, obtains at least one operation log corresponding to each operating system in at least one operating system at the target query time from a preset database. Any operation log in the preset database is stored based on the query identification corresponding to any operation log in at least one preset query dimension, and the target log of each operating system for the target query dimension at the target query time can be accurately obtained, effectively improving the query efficiency and pertinence. At least one operating system corresponds to the same preset start time and the same preset timing frequency, which can ensure the unification of the time base of each operating system. Based on the query identification information corresponding to at least one operating system, the target logs are grouped to obtain at least one group of operation logs under the target query dimension, which are sent to the terminal for display, so that the running conditions of each operating system at the same time can be compared, and the fault point can be quickly located in a specific time period, which improves the debugging efficiency and greatly increases the stability and reliability of the system.

[0115] Figure 5FIG. 1 is a block diagram of a log display device according to an exemplary embodiment. Figure 5 , the device comprises:

[0116] The first query request receiving module 510 is used to receive a first query request sent by a terminal, where the first query request includes target query identification information and target query time corresponding to a target query dimension; the target query identification information is query identification information corresponding to at least one operating system; and the target query dimension is any preset query dimension among at least one preset query dimension;

[0117] The target log acquisition module 530 is used to acquire the target log from the preset database based on the query identification information and the target query time corresponding to at least one operating system; the target log includes at least one operation log corresponding to each operating system in the at least one operating system at the target query time; any operation log in the preset database is stored based on the query identification corresponding to any operation log in at least one preset query dimension, and at least one operating system corresponds to the same preset start time and the same preset timing frequency;

[0118] An operation log acquisition module 550 is used to group target logs based on query identification information corresponding to at least one operating system to obtain at least one group of operation logs under a target query dimension;

[0119] The operation log sending module 570 is used to send at least one set of operation logs to the terminal so that the terminal displays at least one set of operation logs.

[0120] In an optional embodiment, at least one operating system includes a virtualization system and at least one virtual machine system, and the apparatus further includes:

[0121] The setting module is used to obtain the start time and the timing frequency corresponding to the virtualization system, set the start time corresponding to the virtualization system to the preset start time, and set the timing frequency corresponding to the virtualization system to the preset timing frequency.

[0122] In an optional embodiment, at least one system corresponds to at least one processor. When the target query dimension is a processor query dimension and the target query identification information is processor identification information corresponding to at least one processor, the operation log acquisition module 550 includes:

[0123] The first operation log acquisition unit is used to group the target logs according to the processor identification information and the processor identification corresponding to at least one processor, so as to obtain at least one group of operation logs under the processor query dimension.

[0124] In an optional embodiment, the above device further includes:

[0125] A second query request receiving module, configured to receive a second query request sent by the terminal, wherein the second query request includes a first target query time; the first target query time is any time within the target query time;

[0126] The current processor operation log acquisition module is used to acquire at least one group of current processor operation logs corresponding to the first target query time from at least one group of operation logs under the processor query dimension based on the first target query time.

[0127] In an optional embodiment, when the target query dimension is a system query dimension and the target query identification information is system identification information corresponding to at least one operating system, the operation log acquisition module 550 includes:

[0128] The second operation log acquisition unit groups the target logs according to the system identification information and the system identification corresponding to the at least one operating system to obtain at least one group of operation logs under the system query dimension.

[0129] In an optional embodiment, the above device further includes:

[0130] A third query request receiving module, configured to receive a third query request sent by the terminal, wherein the third query request includes a second target query time; the second target query time is any time within the target query time;

[0131] The current system operation log acquisition module is used to acquire at least one group of current system operation logs corresponding to the second target query time from at least one group of operation logs under the system query dimension based on the second target query time.

[0132] In an optional embodiment, the above device further includes:

[0133] A current occupancy acquisition module is used to acquire a current occupancy of a processor corresponding to a target operating system in at least one operating system; the target operating system is an operating system having at least one operating system corresponding log memory in the at least one operating system;

[0134] The sending module is used to obtain at least one operation log from the log memory corresponding to at least one operating system and send it to a preset database when the current occupancy rate is lower than a preset threshold.

[0135] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

[0136] Figure 6is a block diagram of an electronic device for log display according to an exemplary embodiment. The electronic device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 6 As shown. The electronic device includes a processor, a memory, a network interface, a display screen and an input device connected via a system bus. Among them, the processor of the electronic device is used to provide computing and control capabilities. The memory of the electronic device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the electronic device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a log display method is implemented. The display screen of the electronic device can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the housing of the electronic device, or an external keyboard, touchpad or mouse, etc.

[0137] Those skilled in the art will understand that Figure 6 The structure shown is merely a block diagram of a partial structure related to the scheme of the present disclosure, and does not constitute a limitation on the electronic device to which the scheme of the present disclosure is applied. The specific electronic device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0138] In an exemplary embodiment, an electronic device is also provided, including: a processor; and a memory for storing instructions executable by the processor; wherein the processor is used to execute the instructions to implement the log display method in the embodiment of the present disclosure.

[0139] In an exemplary embodiment, a computer-readable storage medium is also provided. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute the log display method in the embodiment of the present disclosure.

[0140] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.

[0141] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims

1. A log display method, characterized in that: include: Receiving a first query request sent by a terminal, wherein the first query request includes target query identification information and target query time corresponding to a target query dimension; The target query identification information is query identification information corresponding to at least one operating system; the target query dimension is any preset query dimension among at least one preset query dimension; Based on the query identification information corresponding to the at least one operating system and the target query time, a target log is obtained from a preset database; the target log includes at least one operation log corresponding to the target query time for each of the at least one operating system; any operation log in the preset database is stored based on the query identification corresponding to any operation log in the at least one preset query dimension, and the at least one operating system corresponds to the same preset start time and the same preset timing frequency; The target logs are grouped based on the query identification information corresponding to the at least one operating system to obtain at least one group of operation logs under the target query dimension; The at least one set of operation logs is sent to the terminal, so that the terminal displays the at least one set of operation logs.

2. A log display method according to claim 1, characterized in that: The at least one operating system includes a virtualization system and at least one virtual machine system, and the method further includes: The start time corresponding to the virtualization system and the timing frequency corresponding to the virtualization system are obtained, the start time corresponding to the virtualization system is set to the preset start time, and the timing frequency corresponding to the virtualization system is set to the preset timing frequency.

3. A log display method according to claim 1, characterized in that: The at least one system corresponds to at least one processor, and when the target query dimension is a processor query dimension, and the target query identification information is processor identification information corresponding to the at least one processor, the target logs are grouped based on the query identification information corresponding to the at least one operating system to obtain at least one group of operation logs under the target query dimension, including: Based on the processor identification information, the target logs are grouped according to the processor identification corresponding to each of the at least one processor to obtain at least one group of operation logs under the processor query dimension.

4. A log display method according to claim 3, characterized in that: The method further comprises: receiving a second query request sent by a terminal, wherein the second query request includes a first target query time; the first target query time is any time within the target query time; Based on the first target query time, at least one group of current processor operation logs corresponding to the first target query time is obtained from at least one group of operation logs under the processor query dimension.

5. A log display method according to claim 1, characterized in that: In a case where the target query dimension is a system query dimension and the target query identification information is system identification information corresponding to the at least one operating system, grouping the target logs based on the query identification information corresponding to the at least one operating system to obtain at least one group of operation logs under the target query dimension includes: Based on the system identification information, the target logs are grouped according to the system identifications corresponding to the at least one operating system, so as to obtain at least one group of operation logs under the system query dimension.

6. A log display method according to claim 5, characterized in that: The method further comprises: receiving a third query request sent by a terminal, wherein the third query request includes a second target query time; the second target query time is any time within the target query time; Based on the second target query time, at least one group of current system operation logs corresponding to the second target query time is obtained from at least one group of operation logs under the system query dimension.

7. A log display method according to any one of claims 1 to 6, characterized in that: The method further comprises: Acquire a current occupancy rate of a processor corresponding to a target operating system in the at least one operating system; the target operating system is an operating system in the at least one operating system that has a log memory corresponding to the at least one operating system; When the current occupancy rate is lower than a preset threshold, the at least one operation log is obtained from a log memory corresponding to each of the at least one operating system and sent to the preset database.

8. A log display device, characterized in that: include: A first query request receiving module, configured to receive a first query request sent by a terminal, wherein the first query request includes target query identification information corresponding to a target query dimension and a target query time; The target query identification information is query identification information corresponding to at least one operating system; the target query dimension is any preset query dimension among at least one preset query dimension; A target log acquisition module is used to acquire a target log from a preset database based on the query identification information corresponding to the at least one operating system and the target query time; the target log includes at least one operation log corresponding to the target query time for each operating system in the at least one operating system; any operation log in the preset database is stored based on the query identification corresponding to any operation log in the at least one preset query dimension, and the at least one operating system corresponds to the same preset start time and the same preset timing frequency; An operation log acquisition module, configured to group the target logs based on the query identification information corresponding to the at least one operating system to obtain at least one group of operation logs under the target query dimension; The operation log sending module is used to send the at least one set of operation logs to the terminal so that the terminal displays the at least one set of operation logs.

9. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is used to execute the instructions to implement the log display method according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the log display method according to any one of claims 1 to 7.