Log capturing method and device, equipment, storage medium and product
By dynamically adjusting the execution order and actions of log-fetching expression nodes in the communication module, and combining performance and quality indicators, the problem of insufficient intelligence in log-fetching in existing technologies is solved, and flexible and efficient log-fetching is achieved.
Patent Information
- Application Number
- CN202511197546.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-08-22
- Publication Date
- 2025-12-16
AI Technical Summary
Existing technologies lack intelligence in the log capture process of communication modules, especially in complex scenarios where a large amount of irrelevant information is recorded, affecting performance. Furthermore, they still perform high-frequency log capture under extreme environments such as high load and weak signal.
By responding to the log capture start command in response to the graphical user interface, the execution order and actions of log capture expression nodes are dynamically adjusted, and adjustments are made in conjunction with performance and quality indicators to achieve intelligent log capture.
It improves the flexibility and intelligence of log capture, is suitable for various application scenarios, reduces redundant information, and improves the hit rate of critical logs and the flexibility of the system.
Smart Images

Figure CN121144155A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of communication, in particular to a log capturing method and device, equipment, storage medium and product. BACKGROUND
[0002] In the development, testing and operation process of a communication module, log is one of the key parameters for debugging and problem analysis. At present, the traditional log system usually captures logs in a fixed condition, full record or static configuration mode. However, in a complex scenario, a large amount of irrelevant information will be recorded, and high-frequency log capturing will still be performed in extreme environments such as high load and weak signal, which affects the performance of the communication module. There is a defect that the fixed execution cannot dynamically perceive real-time changing data in the whole capturing process. Therefore, the above-mentioned log capturing method lacks intelligence.
[0003] The above content is only used to assist in understanding the technical solutions of the present application and does not represent the acknowledgement of the above content as prior art. SUMMARY
[0004] The main purpose of the present application is to provide a log capturing method, device, equipment, storage medium and product, which aims to solve the technical problem of insufficient intelligence of the prior art in log capturing.
[0005] To achieve the above-mentioned purpose, the present application provides a log capturing method, which comprises:
[0006] In response to a log capturing start instruction on a graphical operation interface, a log capturing expression node corresponding to the log capturing start instruction is determined;
[0007] The current performance parameter of the target communication module in operation is obtained, and the execution order of the log capturing expression node is dynamically adjusted according to the current performance parameter;
[0008] The current quality index of the target communication module in operation is obtained, and the execution action of the log capturing expression node is dynamically adjusted according to the current quality index;
[0009] The log of the target communication module is captured by executing the adjusted execution order and execution action of the log capturing expression node.
[0010] In an embodiment, before the step of determining the log capturing expression node corresponding to the log capturing start instruction on the graphical operation interface, the method further comprises:
[0011] The log capturing information of the user is obtained based on the graphical operation interface of the remote policy configuration platform;
[0012] constructing a current log capture strategy according to the log capture information, and acquiring a current log capture expression logic according to the current log capture strategy;
[0013] converting the current log capture strategy into an executable local expression tree structure;
[0014] determining whether a capture trigger condition of the expression tree structure is met according to the current log capture expression logic, and responding to a log capture start instruction on the graphical operation interface.
[0015] In an embodiment, the step of acquiring a current performance parameter of the target communication module runtime and dynamically adjusting an execution order of the log capture expression node according to the current performance parameter comprises:
[0016] acquiring a current performance parameter of the target communication module runtime and an execution performance parameter of the log capture expression node based on a performance awareness mechanism;
[0017] respectively acquiring dynamic weights of the current performance parameter and the execution performance parameter;
[0018] calculating a first score according to a performance value corresponding to the current performance parameter and a dynamic weight of the current performance parameter based on a scoring mechanism, and calculating a second score according to a performance value corresponding to the execution performance parameter and a dynamic weight of the execution performance parameter;
[0019] comparing the first score and the second score, and dynamically adjusting the execution order of the log capture expression node according to a comparison result based on a dynamic rearrangement mechanism.
[0020] In an embodiment, the step of acquiring a current quality index of the target communication module runtime and dynamically adjusting an execution action of the log capture expression node according to the current quality index comprises:
[0021] acquiring a current quality index of the target communication module runtime based on a quality awareness mechanism, wherein the current quality index comprises a signal strength index, a temperature index, and a load index;
[0022] acquiring a signal strength value corresponding to the signal strength index, and triggering a critical path reservation mode to run when the signal strength value is less than a preset strength threshold;
[0023] acquiring a temperature value corresponding to the temperature index and a load value corresponding to the load index;
[0024] triggering a load regulation mode to run when the temperature value is greater than a preset temperature threshold and / or the load value is greater than a preset load threshold;
[0025] The execution actions of the log fetching expression nodes are dynamically adjusted based on the critical path retention mode and load balancing mode.
[0026] In one embodiment, after the step of capturing the logs of the target communication module by executing the log capture expression node of the adjusted execution order and execution action, the method further includes:
[0027] Perform multi-dimensional data inspection on the logs;
[0028] When the detection results meet the preset requirements, a target log capture strategy is generated based on the adjusted execution order and the log capture expression node of the execution action.
[0029] Compare the target log fetching strategy with the current log fetching strategy;
[0030] The log capture strategies of other communication modules in the IoT module deployment scenario are updated according to the target log capture strategy and / or target update content.
[0031] In one embodiment, the step of updating the log capture strategy of other communication modules in the IoT module deployment scenario according to the target log capture strategy and / or target update content includes:
[0032] Obtain resource information of other communication modules in the IoT module deployment scenario;
[0033] Based on the resource information, determine the target available resources for other communication modules;
[0034] When the target available resources do not meet the preset replacement conditions, the log capture strategy of other communication modules in the IoT module deployment scenario is hot-updated based on the wireless network remote update strategy and the target update content.
[0035] When the target available resources meet the preset replacement conditions, the log capture strategy of other communication modules in the IoT module deployment scenario is replaced according to the target log capture strategy, based on the wireless network remote update strategy.
[0036] Furthermore, to achieve the above objectives, this application also proposes a log capture device, which includes:
[0037] The determination module is used to determine the log capture expression node corresponding to the log capture start command in response to the log capture start command in the graphical user interface.
[0038] The adjustment module is used to obtain the current performance parameters of the target communication module during operation, and dynamically adjust the execution order of the log capture expression nodes according to the current performance parameters;
[0039] The adjustment module is also used to obtain the current quality index of the target communication module during operation, and dynamically adjust the execution action of the log capture expression node according to the current quality index;
[0040] The capture module is used to capture the logs of the target communication module by executing log capture expression nodes with adjusted execution order and execution actions.
[0041] In addition, to achieve the above objectives, this application also proposes a log capture device, the device comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the log capture method described above.
[0042] In addition, to achieve the above objectives, this application also proposes a storage medium, which is a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the steps of the log capture method described above.
[0043] In addition, to achieve the above objectives, this application also provides a computer program product, which includes a computer program that, when executed by a processor, implements the steps of the log capture method described above.
[0044] One or more technical solutions proposed in this application have at least the following technical effects: In response to a log capture start command in a graphical user interface, a log capture expression node corresponding to the log capture start command is determined; the current performance parameters of the target communication module during operation are obtained, and the execution order of the log capture expression node is dynamically adjusted according to the current performance parameters; the current quality indicators of the target communication module during operation are obtained, and the execution actions of the log capture expression node are dynamically adjusted according to the current quality indicators; the logs of the target communication module are captured by executing the log capture expression nodes with the adjusted execution order and actions. Through the above methods, the execution order of the log capture expression node is dynamically adjusted from a performance perspective and the execution actions of the log capture expression node are dynamically adjusted from a quality perspective, thereby achieving intelligent log capture and improving the flexibility of log capture, making it suitable for various application scenarios. Attached Figure Description
[0045] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0046] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0047] Figure 1 This is a flowchart illustrating the log capture method of this application in Embodiment 1.
[0048] Figure 2 This is a flowchart illustrating Embodiment 2 of the log capture method of this application;
[0049] Figure 3 This is a schematic diagram of the module structure of the log capture device according to an embodiment of this application;
[0050] Figure 4 This is a schematic diagram of the device structure of the hardware operating environment involved in the log capture method in this application embodiment.
[0051] The purpose, features, and advantages of this application will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0052] It should be noted that the executing entity in this embodiment can be a computing service device with data processing, network communication, and program execution functions, such as a tablet computer, personal computer, or mobile phone, or an electronic device or log capture system capable of performing the above functions. The following description uses a log capture system as an example to illustrate this embodiment and the subsequent embodiments.
[0053] Based on this, this application provides a log capture method, referring to... Figure 1 , Figure 1 This is a flowchart illustrating the first embodiment of the log capture method of this application.
[0054] In this embodiment, the log capture method includes steps S10 to S40:
[0055] Step S10: In response to the log capture start command in the graphical user interface, determine the log capture expression node corresponding to the log capture start command.
[0056] It should be noted that the graphical user interface can be provided by the remote policy configuration platform and used to build the current log capture policy. The log capture start command refers to the start command initiated by the user to capture logs. In response to the log capture start command in the graphical user interface, the log capture expression node corresponding to the log capture start command is determined. The log capture expression node is the core component of the log capture system. For the expression tree structure, there are multiple log capture expression nodes, such as condition nodes and assignment nodes.
[0057] Furthermore, before step S10, the method further includes: obtaining the user's log capture information based on the graphical operation interface of the remote policy configuration platform; constructing the current log capture strategy based on the log capture information; converting the current log capture strategy into an expression tree structure that can be executed locally; and responding to the log capture start command on the graphical operation interface when the capture triggering condition that satisfies the expression tree structure is determined based on the logic of the current log capture expression.
[0058] It should be understood that log capture information refers to the information that users input into the graphical interface of the remote policy configuration platform according to actual needs. The current log capture policy can be constructed remotely based on this information. Furthermore, the policy parsing and expression tree generation engine needs to be used to convert the current log capture policy into an executable expression tree structure locally. Then, the expression execution engine executes the log capture expression nodes in the expression tree structure according to the current log capture expression logic, and checks in real time whether the capture trigger conditions are met. If so, it indicates that the log capture process needs to be started. At this point, the user can click the log capture button in the graphical interface to generate a log capture start command. For the log capture system, it is necessary to respond promptly and accurately to the log capture start command in the graphical interface.
[0059] Step S20: Obtain the current performance parameters of the target communication module during runtime, and dynamically adjust the execution order of the log capture expression nodes according to the current performance parameters.
[0060] It is understandable that the current performance parameters can be the running state of the target communication module at the current moment. The target communication module can be a WWAN (Wide Area Wireless Communication Network) module. After obtaining the current performance parameters of the target communication module, the execution order of the log capture expression nodes is dynamically adjusted according to the current performance parameters, which can effectively improve the hit rate of critical logs and reduce redundancy.
[0061] Further, step S20 includes: obtaining the current performance parameters of the target communication module during runtime and the execution performance parameters of the log capture expression nodes based on a performance-aware mechanism; obtaining the dynamic weights of the current performance parameters and the execution performance parameters respectively; calculating a first score based on a scoring mechanism according to the performance value corresponding to the current performance parameter and the dynamic weight of the current performance parameter, and calculating a second score based on the performance value corresponding to the execution performance parameter and the dynamic weight of the execution performance parameter; comparing the first score and the second score, and dynamically adjusting the execution order of the log capture expression nodes according to the comparison result based on a dynamic reordering mechanism.
[0062] It should be understood that the performance awareness mechanism refers to the mechanism used to perceive and obtain performance dimension parameters. In this embodiment, the current performance parameters of the target communication module during operation and the execution performance parameters of the log capture expression node are obtained based on the performance awareness mechanism. The execution performance parameters include, but are not limited to, the hit rate of the condition node and the triggering effect.
[0063] It should be noted that, in order to effectively improve the accuracy of dynamically adjusting the execution order of log fetching expression nodes, this embodiment also introduces a scoring mechanism. At this time, based on the scoring mechanism, a first score is calculated according to the performance value corresponding to the current performance parameter and the dynamic weight of the current performance parameter, and a second score is calculated according to the performance value corresponding to the execution performance parameter and the dynamic weight of the execution performance parameter. Here, the first score refers to the score of the current performance parameter, and the second score refers to the score of the execution performance parameter. After comparing the first score and the second score, the execution order of log fetching expression nodes is dynamically adjusted according to the comparison result based on the dynamic reordering mechanism. For example, when "PingDelay" changes frequently and is more discriminative, it is executed first to reduce unnecessary judgments, or the initial execution order is: [Network latency] → [Number of Ping failures], and the dynamically adjusted execution order is: [Number of Ping failures] → [Network latency].
[0064] Step S30: Obtain the current quality index of the target communication module during operation, and dynamically adjust the execution action of the log capture expression node according to the current quality index.
[0065] It should be understood that current quality indicators include, but are not limited to, signal strength indicators, temperature indicators, load indicators, CPU utilization, memory usage, network latency and packet loss rate, battery voltage, and the number of upload tasks. For example, when the signal strength value corresponding to the signal strength indicator is less than the preset strength threshold, only the execution action of the log capture expression node for dialing failure is retained, and other execution actions are deleted, thereby reducing unnecessary execution actions and lowering the log output frequency.
[0066] Step S40: Capture the logs of the target communication module by executing the log capture expression node of the adjusted execution order and execution action.
[0067] Understandably, by dynamically adjusting the execution order of log capture expression nodes from a performance perspective and the execution actions of log capture expression nodes from a quality perspective, logs of the target communication module can be captured by executing log capture expression nodes with the adjusted execution order and actions. This breaks through the limitation of fixed execution of log capture expression nodes and enables intelligent log capture.
[0068] Furthermore, after step S40, the method further includes: performing multi-dimensional data detection on the logs; when the detection results meet preset requirements, generating a target log capture strategy based on the adjusted execution order and the log capture expression node of the execution action; comparing the target log capture strategy with the current log capture strategy; and updating the log capture strategy of other communication modules in the IoT module deployment scenario based on the target log capture strategy and / or the target update content.
[0069] It should be understood that after the logs are captured, multi-dimensional data inspection will be performed on the logs. These inspection dimensions include, but are not limited to, correctness and continuity dimensions. When the inspection results meet the preset requirements, a target log capture strategy is generated based on the adjusted execution order and the log capture expression node of the execution action. At this time, the log capture strategy of other communication modules in the IoT module deployment scenario can be updated remotely, achieving the effect of updating the log capture strategy without firmware upgrade, thus ensuring the flexibility and controllability of the system.
[0070] It is understandable that the target update content refers to the content that updates the log capture strategy of other communication modules in the IoT module deployment scenario. The target update content includes, but is not limited to, expression tree structure, judgment threshold, priority parameters of each expression node, load control parameters, and log sampling rate. At this time, the log capture strategy of other communication modules in the IoT module deployment scenario can be updated according to the target log capture strategy and / or the target update content.
[0071] Furthermore, the step of updating the log capture strategy of other communication modules in the IoT module deployment scenario according to the target log capture strategy and / or target update content includes: obtaining resource information of other communication modules in the IoT module deployment scenario; determining the target available resources of other communication modules according to the resource information; when the target available resources do not meet the preset replacement conditions, performing a hot update of the log capture strategy of other communication modules in the IoT module deployment scenario based on the wireless network remote update strategy and the target update content; and replacing the log capture strategy of other communication modules in the IoT module deployment scenario based on the target log capture strategy when the target available resources meet the preset replacement conditions.
[0072] It's understandable that the target available resources refer to the available resources of other communication modules in the IoT module deployment scenario at the current moment. When the target available resources do not meet the preset replacement conditions, it indicates insufficient resources, making it impossible to support the replacement of the log capture strategy. In this case, the log capture strategies of other communication modules can be hot-updated based on the wireless network remote update strategy, and no update is needed for identical content. On the other hand, when the target available resources meet the preset replacement conditions, it indicates sufficient resources. In this case, the log capture strategies of other communication modules can be directly replaced, achieving updates without relying on firmware and improving operational efficiency.
[0073] This embodiment responds to a log capture start command in the graphical user interface, determines the log capture expression node corresponding to the command, obtains the current performance parameters of the target communication module during runtime, and dynamically adjusts the execution order of the log capture expression node based on these parameters. It also obtains the current quality indicators of the target communication module during runtime and dynamically adjusts the execution actions of the log capture expression node based on these indicators. Finally, it captures the logs of the target communication module by executing the log capture expression nodes with the adjusted execution order and actions. Through this method, the execution order and execution actions of the log capture expression nodes are dynamically adjusted from both a performance and quality perspective, thereby achieving intelligent log capture and improving its flexibility, making it suitable for various application scenarios.
[0074] Based on the first embodiment of this application, in the second embodiment of this application, the content that is the same as or similar to that in Embodiment 1 above can be referred to the above description, and will not be repeated hereafter. Based on this, please refer to... Figure 2 Step S30 includes steps S301 to S305:
[0075] Step S301: Obtain the current quality indicators of the target communication module during operation based on the quality perception mechanism, wherein the current quality indicators include signal strength indicators, temperature indicators, and load indicators.
[0076] Step S302: Obtain the signal strength value corresponding to the signal strength index. When the signal strength value is less than a preset strength threshold, trigger the critical path retention mode to run.
[0077] It should be understood that the critical path retention mode refers to a mode that only retains the critical path. For example, when the signal strength value is less than the preset strength threshold, it indicates that the signal is weak. At this time, the critical path retention mode will be triggered to run, retaining only the critical path related to the dialing failure and directly deleting other non-critical paths.
[0078] Step S303: Obtain the temperature value corresponding to the temperature index and the load value corresponding to the load index.
[0079] Step S304: When the temperature value is greater than a preset temperature threshold and / or the load value is greater than a preset load threshold, the load control mode is triggered.
[0080] It should be understood that the load control mode refers to the mode of controlling the overall load of the target communication module. For example, when the load value is greater than the preset load threshold, it indicates that the overall load is high. At this time, low-priority logs are disabled, sampling mode is started, and upload is delayed. When the temperature value is greater than the preset temperature threshold, it indicates that the temperature is too high. At this time, the log level is reduced to 1, local caching is disabled, and the upload time of non-critical logs is postponed.
[0081] Step S305: Dynamically adjust the execution action of the log capture expression node according to the critical path retention mode and load control mode.
[0082] It should be understood that after determining the critical path retention mode and load control mode corresponding to the current quality indicators, the execution actions of the log fetching expression nodes are dynamically adjusted according to the critical path retention mode and load control mode.
[0083] This embodiment obtains the current quality indicators of the target communication module during operation based on a quality awareness mechanism. These current quality indicators include signal strength, temperature, and load. The signal strength value corresponding to the signal strength indicator is obtained. When the signal strength value is less than a preset strength threshold, a critical path retention mode is triggered. The temperature value corresponding to the temperature indicator and the load value corresponding to the load indicator are obtained. When the temperature value is greater than a preset temperature threshold and / or the load value is greater than a preset load threshold, a load control mode is triggered. The execution actions of the log capture expression node are dynamically adjusted according to the critical path retention mode and the load control mode. Through this method, when the signal strength, temperature, and load indicators in the current quality indicators all meet their corresponding preset thresholds, the corresponding modes are triggered, and the execution actions of the log capture expression node are dynamically adjusted according to the critical path retention mode and the load control mode, thereby effectively improving the accuracy of the dynamic adjustment of execution actions.
[0084] This application also provides a log capture device; please refer to [reference needed]. Figure 3 The log capture device includes:
[0085] The determination module 10 is used to determine the log capture expression node corresponding to the log capture start command in response to the log capture start command in the graphical operation interface.
[0086] The adjustment module 20 is used to obtain the current performance parameters of the target communication module during operation, and dynamically adjust the execution order of the log capture expression nodes according to the current performance parameters.
[0087] The adjustment module 20 is also used to obtain the current quality index of the target communication module during operation, and dynamically adjust the execution action of the log capture expression node according to the current quality index.
[0088] The capture module 30 is used to capture the logs of the target communication module by executing the log capture expression node of the adjusted execution order and execution action.
[0089] This embodiment responds to a log capture start command in the graphical user interface, determines the log capture expression node corresponding to the command, obtains the current performance parameters of the target communication module during runtime, and dynamically adjusts the execution order of the log capture expression node based on these parameters. It also obtains the current quality indicators of the target communication module during runtime and dynamically adjusts the execution actions of the log capture expression node based on these indicators. Finally, it captures the logs of the target communication module by executing the log capture expression nodes with the adjusted execution order and actions. Through this method, the execution order and execution actions of the log capture expression nodes are dynamically adjusted from both a performance and quality perspective, thereby achieving intelligent log capture and improving its flexibility, making it suitable for various application scenarios.
[0090] The log capture device provided in this application, employing the log capture method described in the above embodiments, can solve the technical problem of insufficient intelligence in existing log capture technologies. Compared with the prior art, the beneficial effects of the log capture device provided in this application are the same as those of the log capture method provided in the above embodiments, and other technical features in the log capture device are the same as those disclosed in the methods of the above embodiments, and will not be repeated here.
[0091] In one embodiment, the determining module 10 is further configured to obtain user log capture information based on the graphical user interface of the remote policy configuration platform; construct a current log capture strategy based on the log capture information, and obtain current log capture expression logic based on the current log capture strategy; convert the current log capture strategy into an expression tree structure that can be executed locally; and respond to a log capture start command on the graphical user interface when it is determined that the capture triggering condition that satisfies the expression tree structure based on the current log capture expression logic.
[0092] In one embodiment, the adjustment module 20 is further configured to: obtain the current performance parameters of the target communication module during operation and the execution performance parameters of the log capture expression nodes based on a performance-aware mechanism; obtain the dynamic weights of the current performance parameters and the execution performance parameters respectively; calculate a first score based on the performance value corresponding to the current performance parameter and the dynamic weight of the current performance parameter based on a scoring mechanism, and calculate a second score based on the performance value corresponding to the execution performance parameter and the dynamic weight of the execution performance parameter; compare the first score and the second score, and dynamically adjust the execution order of the log capture expression nodes according to the comparison result based on a dynamic reordering mechanism.
[0093] In one embodiment, the adjustment module 20 is further configured to obtain the current quality indicators of the target communication module during operation based on a quality perception mechanism, wherein the current quality indicators include signal strength indicators, temperature indicators, and load indicators; obtain the signal strength value corresponding to the signal strength indicator; trigger the critical path retention mode operation when the signal strength value is less than a preset strength threshold; obtain the temperature value corresponding to the temperature indicator and the load value corresponding to the load indicator; trigger the load control mode operation when the temperature value is greater than a preset temperature threshold and / or the load value is greater than a preset load threshold; and dynamically adjust the execution action of the log capture expression node according to the critical path retention mode and the load control mode.
[0094] In one embodiment, the crawling module 30 is further configured to perform multi-dimensional data detection on the logs; when the detection results meet preset requirements, generate a target log crawling strategy based on the adjusted execution order and the log crawling expression node of the execution action; compare the target log crawling strategy with the current log crawling strategy; and update the log crawling strategy of other communication modules in the IoT module deployment scenario based on the target log crawling strategy and / or target update content.
[0095] In one embodiment, the crawling module 30 is further configured to acquire resource information of other communication modules in the IoT module deployment scenario; determine the target available resources of other communication modules based on the resource information; when the target available resources do not meet the preset replacement conditions, perform a hot update of the log crawling strategy of other communication modules in the IoT module deployment scenario based on the target update content according to the wireless network remote update strategy; and when the target available resources meet the preset replacement conditions, replace the log crawling strategy of other communication modules in the IoT module deployment scenario based on the target log crawling strategy according to the wireless network remote update strategy.
[0096] This application provides a log capture device, which includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, which are executed by the at least one processor to enable the at least one processor to perform the log capture method in Embodiment 1 above.
[0097] The following is for reference. Figure 4The diagram illustrates a structural schematic of a log capture device suitable for implementing embodiments of this application. The log capture device in these embodiments may include, but is not limited to, mobile terminals such as mobile phones, laptops, digital radio receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Description), PMPs (Portable Media Players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 4 The log capture device shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of this application.
[0098] like Figure 4 As shown, the log capture device may include a processing unit 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to a program stored in ROM (Read Only Memory) 1002 or a program loaded from storage device 1003 into RAM (Random Access Memory) 1004. RAM 1004 also stores various programs and data required for the operation of the log capture device. The processing unit 1001, ROM 1002, and RAM 1004 are interconnected via bus 1005. Input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to I / O interface 1006: input devices 1007 including, for example, touch screens, touchpads, keyboards, mice, image sensors, microphones, accelerometers, gyroscopes, etc.; output devices 1008 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 1003 including, for example, magnetic tapes, hard disks, etc.; and communication devices 1009. Communication device 1009 allows the log capture device to communicate wirelessly or wiredly with other devices to exchange data. While the figures show log capture devices with various systems, it should be understood that implementing or having all of the systems shown is not required. More or fewer systems may be implemented alternatively.
[0099] Specifically, according to the embodiments disclosed in this application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device, or installed from storage device 1003, or installed from ROM 1002. When the computer program is executed by processing device 1001, it performs the functions defined in the methods of the embodiments disclosed in this application.
[0100] The log capture device provided in this application, employing the log capture method described in the above embodiments, can solve the technical problem of insufficient intelligence in log capture in the prior art. Compared with the prior art, the beneficial effects of the log capture device provided in this application are the same as those of the log capture method provided in the above embodiments, and other technical features in this log capture device are the same as those disclosed in the method of the previous embodiment, and will not be repeated here.
[0101] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any suitable manner in one or more embodiments or examples.
[0102] The above description is merely a specific embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
[0103] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., a computer program) stored thereon, the computer-readable program instructions being used to execute the log capture method in the above embodiments.
[0104] The computer-readable storage medium provided in this application may be, for example, a USB flash drive, but is not limited to, electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof. In this embodiment, the computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer-readable storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.
[0105] The aforementioned computer-readable storage medium may be included in the log capture device; or it may exist independently and not be assembled into the log capture device.
[0106] Computer program code for performing the operations of this application can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a Local Area Network (LAN) or a Wide Area Network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0107] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this application. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0108] The modules described in the embodiments of this application can be implemented in software or hardware. The names of the modules do not necessarily limit the functionality of the unit itself.
[0109] The readable storage medium provided in this application is a computer-readable storage medium that stores computer-readable program instructions (i.e., a computer program) for executing the above-described log capture method, thereby solving the technical problem of insufficient intelligence in log capture in the prior art. Compared with the prior art, the beneficial effects of the computer-readable storage medium provided in this application are the same as those of the log capture method provided in the above embodiments, and will not be repeated here.
[0110] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps of the log capture method described above.
[0111] The computer program product provided in this application can solve the technical problem of insufficient intelligence in log capture in existing technologies. Compared with the prior art, the beneficial effects of the computer program product provided in this application are the same as those of the log capture method provided in the above embodiments, and will not be repeated here.
[0112] The above description is only a part of the embodiments of this application and does not limit the patent scope of this application. All equivalent structural transformations made under the technical concept of this application and using the contents of the specification and drawings of this application, or direct / indirect applications in other related technical fields, are included in the patent protection scope of this application.
Claims
1. A log capture method, characterized in that, The method includes: In response to the log capture start command in the graphical user interface, determine the log capture expression node corresponding to the log capture start command; Obtain the current performance parameters of the target communication module during runtime, and dynamically adjust the execution order of the log capture expression nodes based on the current performance parameters; Obtain the current quality index of the target communication module during runtime, and dynamically adjust the execution action of the log capture expression node based on the current quality index; Logs of the target communication module are captured by executing the log capture expression node with the adjusted execution order and actions.
2. The method as described in claim 1, characterized in that, Before the step of determining the log capture expression node corresponding to the log capture start command in response to the log capture start command in the graphical user interface, the method further includes: The user's log capture information is obtained through the graphical interface of the remote policy configuration platform. The current log fetching strategy is constructed based on the log fetching information, and the current log fetching expression logic is obtained based on the current log fetching strategy. Convert the current log fetching strategy into an executable expression tree structure locally; When the current log capture expression logic determines that the capture triggering condition satisfies the expression tree structure, the log capture start command is invoked in the graphical user interface.
3. The method as described in claim 1, characterized in that, The step of obtaining the current performance parameters of the target communication module during runtime and dynamically adjusting the execution order of the log capture expression nodes based on the current performance parameters includes: The current performance parameters of the target communication module during runtime and the execution performance parameters of the log capture expression nodes are obtained based on the performance awareness mechanism. Obtain the dynamic weights of the current performance parameters and the execution performance parameters respectively; The scoring mechanism calculates a first score based on the performance value corresponding to the current performance parameter and the dynamic weight of the current performance parameter, and calculates a second score based on the performance value corresponding to the execution performance parameter and the dynamic weight of the execution performance parameter. The first score and the second score are compared, and the execution order of the log capture expression nodes is dynamically adjusted based on the comparison result using a dynamic reordering mechanism.
4. The method as described in claim 1, characterized in that, The step of obtaining the current quality indicators of the target communication module during operation and dynamically adjusting the execution action of the log capture expression node based on the current quality indicators includes: The current quality indicators of the target communication module during operation are obtained based on the quality perception mechanism, wherein the current quality indicators include signal strength indicators, temperature indicators and load indicators. Obtain the signal strength value corresponding to the signal strength index, and trigger the critical path preservation mode when the signal strength value is less than a preset strength threshold. Obtain the temperature value corresponding to the temperature index and the load value corresponding to the load index; When the temperature value is greater than a preset temperature threshold and / or the load value is greater than a preset load threshold, the load control mode is triggered. The execution actions of the log fetching expression nodes are dynamically adjusted based on the critical path retention mode and load balancing mode.
5. The method according to any one of claims 1 to 4, characterized in that, After the step of capturing the logs of the target communication module by executing the log capture expression node with the adjusted execution order and execution action, the method further includes: Perform multi-dimensional data inspection on the logs; When the detection results meet the preset requirements, a target log capture strategy is generated based on the adjusted execution order and the log capture expression node of the execution action. The target log capture strategy is compared with the current log capture strategy, and the target update content is determined based on the comparison result. The log capture strategies of other communication modules in the IoT module deployment scenario are updated according to the target log capture strategy and / or target update content.
6. The method as described in claim 5, characterized in that, The step of updating the log capture strategy of other communication modules in the IoT module deployment scenario according to the target log capture strategy and / or target update content includes: Obtain resource information of other communication modules in the IoT module deployment scenario; Based on the resource information, determine the target available resources for other communication modules; When the target available resources do not meet the preset replacement conditions, the log capture strategy of other communication modules in the IoT module deployment scenario is hot-updated based on the wireless network remote update strategy and the target update content. When the target available resources meet the preset replacement conditions, the log capture strategy of other communication modules in the IoT module deployment scenario is replaced according to the target log capture strategy, based on the wireless network remote update strategy.
7. A log capture device, characterized in that, The device includes: The determination module is used to determine the log capture expression node corresponding to the log capture start command in response to the log capture start command in the graphical user interface. The adjustment module is used to obtain the current performance parameters of the target communication module during operation, and dynamically adjust the execution order of the log capture expression nodes according to the current performance parameters; The adjustment module is also used to obtain the current quality index of the target communication module during operation, and dynamically adjust the execution action of the log capture expression node according to the current quality index; The capture module is used to capture the logs of the target communication module by executing log capture expression nodes with adjusted execution order and execution actions.
8. A log capture device, characterized in that, The device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the log capture method as described in any one of claims 1 to 6.
9. A storage medium, characterized in that, The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, it implements the steps of the log capture method as described in any one of claims 1 to 6.
10. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the steps of the log capture method as described in any one of claims 1 to 6.