Performance information extraction method for power data network equipment and electronic equipment

By displaying the log file identifier on the interface of the power data network equipment, obtaining the target log file and extracting performance information using a parsing algorithm, the problems of low manual extraction efficiency and low accuracy in the prior art are solved, and efficient and accurate performance information extraction and integration are achieved.

CN120144551APending Publication Date: 2025-06-13SHANTOU POWER SUPPLY BUREAU OF GUANGDONG POWER GRID CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510198018.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-21
Publication Date
2025-06-13

AI Technical Summary

Technical Problem

In the prior art, the efficiency of manually extracting performance information from the log files of the power data network equipment is low, the accuracy is low, and the operation is cumbersome.

Method used

The log file identifier is displayed through the display interface, the target log file is obtained based on the selection operation, and the performance information is extracted using the parsing algorithm corresponding to the target log file, and stored in the preset performance information integration form.

Benefits of technology

It realizes high efficiency, high accuracy and easy operation of the power data network equipment performance information extraction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120144551A_ABST
    Figure CN120144551A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a performance information extraction method for power data network equipment and electronic equipment. The method comprises the following steps: when an operation that a first control of a display interface is triggered is received, displaying a log file identifier of the power data network equipment; and when an operation that the log file identifier is selected is received, obtaining a target log file under a path corresponding to the log file identifier. And then, triggering an information extraction instruction, extracting performance information of the target electric power data network equipment from each target log file according to the information extraction instruction and an analysis algorithm corresponding to the target log file, and storing the performance information into a preset performance information integration form. The method is used for extracting the performance information of the power data network equipment and generating the file, is high in efficiency, is high in accuracy, and is simple and convenient to operate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of big data, and in particular, to a method for extracting performance information of power data network devices and an electronic device. Background Art

[0002] In order to prevent failures of power data network devices and ensure the continuity, stability, and security of power supply, it is necessary to extract the performance information of the power data network devices from the log files during the operation of the power data network devices.

[0003] In the related art, for each power data network device, the performance information during the operation of the power data network device is manually extracted from the log file and saved to a file.

[0004] However, the above-mentioned manual method has low efficiency, low accuracy, and cumbersome operation for extracting and generating files of the performance information of power data network devices. Summary of the Invention

[0005] Embodiments of this application provide a method for extracting performance information of power data network devices and an electronic device, so as to achieve the effects of high efficiency, high accuracy, and simple operation for extracting and generating files of the performance information of power data network devices.

[0006] In a first aspect, embodiments of this application provide a method for extracting performance information of power data network devices, including:

[0007] Display the log file identifier of the power data network device according to the trigger operation performed on the first control of the display interface;

[0008] Obtain the target log file indicated by the log file identifier based on the selection operation performed on the log file identifier;

[0009] Extract the performance information of the target power data network device from the target log file according to the information extraction instruction, based on the parsing algorithm corresponding to the target log file, and store the performance information in a preset performance information integration form.

[0010] In a possible implementation manner, the obtaining the target log file indicated by the log file identifier includes:

[0011] Obtain the target log file of the remote power data network device indicated by the log file identifier according to the path corresponding to the remote power data network device.

[0012] In a possible implementation manner, the extracting the performance information of the target power data network device from the target log file based on the parsing algorithm corresponding to the target log file includes:

[0013] Obtain the type information of the target power data network device from the target log file;

[0014] Determine the parsing algorithm corresponding to the target log file according to the type indicated by the type information;

[0015] Extract the performance information of the target power data network device from the target log file based on the parsing algorithm.

[0016] In a possible implementation manner, the performance information includes the performance information corresponding to at least one preset performance; and

[0017] The parsing algorithm includes at least one preset regular expression; wherein, each preset regular expression corresponds to a preset performance.

[0018] In a possible implementation manner, the extracting the performance information of the target power data network device from the target log file based on the parsing algorithm includes:

[0019] Extract the performance information corresponding to the at least one preset performance from the target log file based on the at least one preset regular expression.

[0020] In a possible implementation manner, before storing the performance information into a preset performance information integration form, the method further includes:

[0021] Convert the sentences expressed in the first language in the performance information into the corresponding sentences expressed in the second language; and

[0022] The storing the performance information into a preset performance information integration form includes:

[0023] Write the performance information including the corresponding sentences expressed in the second language into the preset performance information integration form.

[0024] In a second aspect, an embodiment of the present application provides a performance information extraction device for a power data network device, including:

[0025] A display module, configured to display the log file identifier of the power data network device according to a trigger operation performed on a first control of a display interface;

[0026] An acquisition module, configured to acquire the target log file indicated by the log file identifier based on a selection operation performed on the log file identifier;

[0027] An extraction module, configured to extract the performance information of the target power data network device from the target log file according to an information extraction instruction based on the parsing algorithm corresponding to the target log file;

[0028] A storage module for storing the performance information into a preset performance information integration form.

[0029] In a possible implementation manner, "obtaining the target log file indicated by the log file identifier" in the obtaining module is specifically used for:

[0030] Obtaining the target log file of the remote power data network device indicated by the log file identifier according to the path corresponding to the remote power data network device.

[0031] In a possible implementation manner, "extracting the performance information of the target power data network device from the target log file based on the parsing algorithm corresponding to the target log file" in the extraction module is specifically used for:

[0032] Obtaining the type information of the target power data network device from the target log file;

[0033] Determining the parsing algorithm corresponding to the target log file according to the type indicated by the type information;

[0034] Extracting the performance information of the target power data network device from the target log file based on the parsing algorithm.

[0035] In a possible implementation manner, the performance information includes the performance information corresponding to at least one preset performance; and

[0036] The parsing algorithm includes at least one preset regular expression; wherein, each preset regular expression corresponds to a preset performance.

[0037] In a possible implementation manner, "extracting the performance information of the target power data network device from the target log file based on the parsing algorithm" in the extraction module is specifically used for:

[0038] Extracting the performance information corresponding to the at least one preset performance respectively from the target log file based on the at least one preset regular expression.

[0039] In a possible implementation manner, before the storage module, the device is further used for:

[0040] Converting the sentences expressed in the first language in the performance information into the corresponding sentences expressed in the second language; and

[0041] The storage module is specifically used for:

[0042] Writing the performance information including the corresponding sentences expressed in the second language into the preset performance information integration form.

[0043] In a third aspect, an embodiment of the present application provides an electronic device, including: a memory and a processor;

[0044] The memory stores computer-executable instructions;

[0045] The processor executes the computer-executable instructions stored in the memory, so that the processor executes the above first aspect and / or various possible implementation manners of the first aspect.

[0046] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are executed by a processor, they are used to implement the above first aspect and / or various possible implementation manners of the first aspect.

[0047] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program, and when the computer program is executed by a processor, it implements the above first aspect and / or various possible implementation manners of the first aspect.

[0048] The method and electronic device for extracting performance information of a power data network device provided by the embodiments of the present application display the log file identifier of the power data network device when an operation of triggering a first control on the display interface is received. When an operation of selecting the log file identifier is received, the target log file under the path corresponding to the log file identifier is obtained. Then, an information extraction instruction is triggered, and according to the information extraction instruction, for each target log file, according to the parsing algorithm corresponding to the target log file, the performance information of the target power data network device is extracted from the target log file, and the performance information is stored in a preset performance information integration form, realizing the automatic extraction of performance information from the target log file based on a visual operation interface. Therefore, the efficiency of extracting performance information of the power data network device and generating a preset performance information integration form is high, the accuracy is high, and the operation is simple. BRIEF DESCRIPTION OF THE DRAWINGS

[0049] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application.

[0050] Figure 1 It is a schematic flow chart of a method for extracting performance information of a power data network device provided by the present application;

[0051] Figure 2 It is a schematic diagram of the display interface provided by the present application Figure 1 ;

[0052] Figure 3 It is a schematic diagram of a dialog box for selecting a log file identifier provided by the present application Figure 1;

[0053] Figure 4 It is a schematic flowchart of another method for extracting performance information of power data network equipment provided by this application;

[0054] Figure 5 It is a schematic diagram of the display interface of the unselected log file identifier provided by this application Figure 2 ;

[0055] Figure 6 It is a schematic diagram of the dialog box for selecting the log file identifier provided by this application Figure 2 ;

[0056] Figure 7 It is a schematic diagram of the display interface of the selected log file identifier provided by this application;

[0057] Figure 8 It is a schematic diagram of the dialog box for selecting the target storage path identifier provided by this application;

[0058] Figure 9 It is a schematic diagram of the display interface of the selected target storage path identifier provided by this application;

[0059] Figure 10 It is a schematic diagram of the performance information in the preset performance information integration form provided by this application;

[0060] Figure 11 It is a schematic structural diagram of the performance information extraction device for power data network equipment provided by this application;

[0061] Figure 12 It is a schematic structural diagram of the electronic device provided by this application.

[0062] Through the above-mentioned drawings, the clear embodiments of this application have been shown, and there will be more detailed descriptions hereinafter. These drawings and textual descriptions are not intended to limit the scope of the concept of this application in any way, but to illustrate the concept of this application to those skilled in the art by referring to specific embodiments. Detailed Description of the Embodiments

[0063] Here, the exemplary embodiments will be described in detail, and the examples are shown in the drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. On the contrary, they are merely examples of devices and methods consistent with some aspects of this application as detailed in the appended claims.

[0064] As the core of the power system, the performance of power data network equipment directly affects the continuity, stability, and security of power supply. Therefore, it is necessary to extract the performance information of the power data network equipment from the log files during the operation of the power data network equipment.

[0065] In related technologies, the performance information during the operation of each power data network equipment is manually extracted from the log files of the power data network equipment one by one and saved to a file.

[0066] However, the above-mentioned manual method has low efficiency, low accuracy, and cumbersome operations for extracting the performance information of power data network equipment and generating files.

[0067] This application provides a method for extracting performance information of power data network equipment and an electronic device to solve the above technical problems.

[0068] The following uses specific embodiments to elaborate in detail on the technical solutions of this application and how the technical solutions of this application solve the above technical problems. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of this application will be described below with reference to the accompanying drawings.

[0069] Figure 1 It is a schematic flowchart of a method for extracting performance information of power data network equipment provided by this application. As Figure 1 shown, the method includes:

[0070] S101: Display the log file identifier of the power data network equipment according to the trigger operation performed on the first control of the display interface.

[0071] Exemplarily, the execution subject of this embodiment can be a terminal device, or an electronic device, or a client, or a device or equipment for extracting performance information of power data network equipment based on the terminal device, or other devices or equipment that can implement the solution of this application, and this is not limited.

[0072] This embodiment takes the execution subject as a terminal device as an example for introduction.

[0073] Exemplarily, the log file identifier can be understood as the name of the folder where the log file is located. Assuming that several log files are stored in the path "F: / Power Data Network Equipment Log Folder" of the terminal device, then "Power Data Network Equipment Log Folder" can be understood as a log file identifier, and each log file identifier corresponds to a path. The log file includes the performance information of the power data network equipment during operation.

[0074] Among them, power data network devices refer to various devices used in the power system to achieve data transmission, processing, and management, such as but not limited to substations, routers, switches, fiber optic transceivers, servers, wireless communication devices, etc.; performance information includes, for example, but not limited to device operation information (such as the software version used by the device, the number of processors, the hardware version, etc.), device CPU information (such as the CPU usage rate in the last 5 seconds, the CPU usage rate in the last 1 minute), device memory information (such as the total system memory, the used memory, etc.), device hardware information (such as the number of ports, the PCB version, etc.), and one or more of the like.

[0075] The log file identifier can be one or more. The log file corresponding to one log file identifier can be one or more. One power data network device can generate one or more log files during operation. The path corresponding to the log file identifier can be the path in the terminal device or the path corresponding to the remote power data network device. This embodiment does not limit this.

[0076] In one example, it can be combined with Figure 2 and Figure 3 for understanding. Figure 2 is a schematic diagram of the display interface provided by this application. Figure 1 , Figure 3 is a schematic diagram of the dialog box for selecting the log file identifier provided by this application. Figure 1 . As Figure 2 shown, if the terminal device receives an operation in which the first control 201 in the display interface 20 is triggered (such as a mouse click operation), then the dialog box 30 for selecting the log file identifier in Figure 3 is displayed, and the log file identifier 301 is displayed in the dialog box 30.

[0077] S102. Based on the selection operation performed on the log file identifier, obtain the target log file indicated by the log file identifier.

[0078] Exemplarily, the log file identifier can be understood as the log file identifier corresponding to the target log file. The target log file can be one or more. This embodiment does not limit this.

[0079] After the terminal device displays the log file identifier of the power data network device, if it receives an operation in which the log file identifier is selected, it obtains the path corresponding to the log file identifier according to the log file identifier, and then obtains the target log file under this path.

[0080] For example, it can be combined with Figure 3 , and still refer to the example in step S101 for understanding. As Figure 3As shown in the figure, assume that the path corresponding to the log file identifier 301 is "F: / Power Data Network Equipment Log Folder", and several log files are stored in this path. After the terminal device displays the dialog box 30, if it receives the operations of selecting the log file identifier 301 and the control 302 in sequence (such as mouse click operations), it generates the path corresponding to the log file identifier 301 ("F: / Power Data Network Equipment Log Folder") according to the log file identifier 301, and then obtains several log files in this path.

[0081] S103. According to the information extraction instruction, based on the parsing algorithm corresponding to the target log file, extract the performance information of the target power data network equipment from the target log file, and store the performance information in the preset performance information integration form.

[0082] In one example, the process of "extracting the performance information of the target power data network equipment from the target log file based on the parsing algorithm corresponding to the target log file" in step S103 includes the following steps:

[0083] Obtain the type information of the target power data network equipment from the target log file;

[0084] Determine the parsing algorithm corresponding to the target log file according to the type indicated by the type information;

[0085] Extract the performance information of the target power data network equipment from the target log file based on the parsing algorithm.

[0086] Exemplarily, each log file includes the type information of the power data network equipment that generated the log file, and the type information indicates the type, which can be understood as the provider of the power data network equipment, for example.

[0087] For example, for each target log file, the type information of the target power data network equipment can be obtained from the target log file through the first preset algorithm, where the first preset algorithm can be any algorithm for extracting the type information in the log file, such as regular expressions, keyword extraction, etc.

[0088] For the same performance information, the expression in the log files generated by different types of power data network equipment is different. Therefore, different second preset algorithms can be set in advance for the log files generated by different types of power data network equipment. The second preset algorithm can be any algorithm for extracting the performance information in the log file, such as regular expressions, machine learning models, etc.

[0089] After the terminal device obtains the target log file indicated by the log file identifier, it can trigger an information extraction instruction. According to the information extraction instruction, for each target log file, the type information of the target power data network device is obtained from the target log file, and then the corresponding second preset algorithm found according to the type indicated by the type information is used as the parsing algorithm. Furthermore, the parsing algorithm is called to extract the performance information of the target power data network device from the target log file, and the performance information is stored in a preset performance information integration form. The preset performance information integration form can be in formats such as excel, text, etc. This embodiment does not limit the format of the preset performance information integration form.

[0090] By setting different second preset algorithms for the log files generated by different types of power data network devices in advance, the accuracy of extracting performance information from the log files generated by different types of power data network devices can be improved.

[0091] The method for extracting performance information of a power data network device provided in an embodiment of the present application displays the log file identifier of the power data network device when an operation of triggering the first control on the display interface is received. When an operation of selecting the log file identifier is received, the target log file under the corresponding path of the log file identifier is obtained. Then, an information extraction instruction is triggered, and according to the information extraction instruction, for each target log file, the performance information of the target power data network device is extracted from the target log file according to the parsing algorithm corresponding to the target log file, and the performance information is stored in a preset performance information integration form, realizing the automatic extraction of performance information from the target log file based on a visual operation interface. Therefore, the efficiency of extracting performance information of a power data network device and generating a preset performance information integration form is high, the accuracy is high, and the operation is simple.

[0092] Figure 4 The following is a schematic flowchart of another method for extracting performance information of a power data network device provided in the present application. As Figure 4 shown, on the basis of the Figure 1 embodiment, the method for extracting performance information of a power data network device is described in detail. The method includes:

[0093] S401. Display the log file identifier of the power data network device according to the triggering operation performed on the first control of the display interface.

[0094] Exemplarily, the execution subject of this embodiment can be a terminal device, or an electronic device, or a client, or a device or equipment for extracting performance information of a power data network device based on a terminal device, or other devices or equipment that can implement the solution of the present application, and this is not limited.

[0095] This embodiment will be described by taking the execution entity as a terminal device as an example.

[0096] Exemplarily, the implementation manners of step S401 and step S101 are similar, and the meanings of the log file identifier, the power data network device, and the log file have also been introduced in step S101. For details, refer to the description in step S101, and details will not be elaborated here.

[0097] In some implementation manners of this embodiment, when the terminal device does not receive an operation of triggering the first control, a prompt message for selecting the folder where the target log file is located can also be displayed through the second control. Among them, the target log file can be understood as the log file for which performance information is to be extracted.

[0098] In one example, it can be combined with Figure 5 and Figure 6 for understanding. Figure 5 is a schematic diagram of the display interface provided by this application without a selected log file identifier Figure 2 , Figure 6 is a schematic diagram of the dialog box for selecting the log file identifier provided by this application Figure 2 . As Figure 5 shown, if the terminal device receives an operation of triggering the first control 501 in the display interface 50 (such as a mouse click operation), then the dialog box 60 for selecting the log file identifier in Figure 6 is displayed, and the log file identifier 601 is displayed in the dialog box 60.

[0099] When the terminal device does not receive an operation of triggering the first control 501, "Select the log folder of the power data network device" can be displayed in the second control 502, which is used to prompt that the log file identifier can be displayed by triggering the first control 501.

[0100] By displaying a prompt message for selecting the folder where the target log file is located in the second control when not receiving an operation of triggering the first control, the next operation can be prompted, improving the usability.

[0101] S402. Based on the selection operation performed on the log file identifier, obtain the target log file of the remote power data network device indicated by the log file identifier according to the path corresponding to the remote power data network device.

[0102] Exemplarily, the remote power data network device can be understood as a device different from the terminal device. If the log file of the performance information to be extracted is the log file of the remote power data network device, the log file identifier displayed in step S401 is the name of the folder where the log file of the remote power data network device is located. Afterwards, if an operation in which the log file identifier is selected is received, the path corresponding to the log file identifier of the remote power data network device is obtained according to the log file identifier, and then the target log file under the path is obtained.

[0103] Among them, the method for obtaining the path corresponding to the log file identifier of the remote power data network device can be any implementation method of implementing a shared path between two devices, such as but not limited to the implementation method of the Linux / Unix NFS shared path, the implementation method of the network shared path (Windows UNC format), etc.

[0104] By obtaining the target log file of the remote power data network device indicated by the log file identifier according to the path corresponding to the remote power data network device, the target log file of the remote power data network device can be obtained, and then performance information can be extracted from the log file of the remote power data network device.

[0105] In some implementations of this embodiment, after receiving the operation of selecting the log file identifier, the terminal device may no longer display the log file identifier of the power data network device, and display a prompt message of the folder where the selected target log file is located through the second control.

[0106] For example, you can combine Figure 6 To understand, such as Figure 6 As shown, assuming that the path corresponding to the log file identifier 601 is the "F: / power data network device log folder" on the remote power data network device, and a number of log files are stored under this path, then after the terminal device displays the dialog box 60, if it receives an operation in which the log file identifier 601 and the control 602 are selected in sequence (such as a mouse click operation), the path corresponding to the log file identifier 601 (the "F: / power data network device log folder" on the remote power data network device) is generated according to the log file identifier 601, and then the number of log files under the path are obtained.

[0107] In some implementations of this embodiment, Figure 6 As shown, after receiving the operation of selecting the log file identifier 601 and the control 602 in sequence, the terminal device can also close the dialog box 60, and the display interface is changed to Figure 5 The status of the display interface 50 in the Figure 7 The status of the display interface 70, Figure 7Schematic diagram of the display interface for the selected log file identifier provided by this application, as Figure 7 shown, in the second control 701, "F: / Power Data Network Equipment Log Folder" can be displayed, which is used to prompt that the log file identifier corresponding to the selected path is "F: / Power Data Network Equipment Log Folder".

[0108] After receiving the operation that the log file identifier is selected, by displaying the prompt information of the folder where the selected target log file is located through the second control, the completed operation can be prompted, improving the usability.

[0109] In some implementation manners of this embodiment, when the operation of triggering the third control is not received, the fourth control can display the prompt information that the target storage path needs to be selected. Multiple storage path identifiers that can be used to store the extracted performance information can also be displayed according to the triggering operation performed on the third control of the display interface. After receiving the operation that the target storage path identifier is selected, according to the target storage path identifier, the target storage path corresponding to the target storage path identifier is obtained, and the multiple storage path identifiers that can be used to store the extracted performance information are no longer displayed. At the same time, the prompt information of the selected target storage path is displayed through the fourth control.

[0110] Among them, the storage path identifier can be understood as the identifier of the folder that can be used to store the performance information extracted from the log file, and each storage path identifier corresponds to a path. The target storage path identifier corresponds to the path where the performance information extracted from the log file is to be stored.

[0111] In one example, it can be understood in combination with Figure 7 、 Figure 8 and Figure 9 For understanding, Figure 8 Schematic diagram of the dialog box for selecting the target storage path identifier provided by this application, Figure 9 Schematic diagram of the display interface for the selected target storage path identifier provided by this application.

[0112] As Figure 7 shown, when the terminal device does not receive the operation of triggering the third control 702 (such as the operation of mouse click), in the fourth control 703, "Output Device Performance Information Extraction Form" can be displayed, which is used to prompt that the storage path identifier can be displayed by triggering the third control 702.

[0113] If the terminal device receives the operation of triggering the third control 702 in the display interface 70, then the Figure 8 dialog box 80 for selecting the storage path identifier in is displayed, and multiple storage path identifiers are displayed in the dialog box 80.

[0114] As Figure 8As shown in the figure, assume that the storage path identifier 801 in the dialog box 80 is the target storage path identifier, and the corresponding path is "F: / Device Performance Information Extraction" in the terminal device. If the terminal device receives the operations of the storage path identifier 801 and the control 802 being triggered in sequence, then according to the storage path identifier 801, obtain the target storage path corresponding to the storage path identifier 801, and no longer display the dialog box 80. At the same time, the display interface changes from the Figure 7 display interface 70 state in Figure 9 to the state of the display interface 90 in Figure 9 As shown in the figure, the fourth control 901 displays "F: / Device Performance Information Extraction", which is used to prompt that the target storage path identifier with the corresponding path of "F: / Device Performance Information Extraction" has been selected.

[0115] By obtaining the target storage path corresponding to the target storage path identifier according to the target storage path identifier after receiving the operation of the target storage path identifier being selected, the storage location of the performance information extracted from the log file can be adjusted, and the operation is more flexible.

[0116] By displaying the prompt information of the selected target storage path in the fourth control after receiving the operation of the target storage path identifier being selected, the completed operation can be prompted, improving the usability.

[0117] S403. According to the information extraction instruction, obtain the type information of the target power data network device from the target log file;

[0118] Exemplarily, as Figure 9 shown in the figure, after the terminal device obtains the target log file of the remote power data network device indicated by the log file identifier and obtains the target storage path, when receiving the operation of the fifth control 902 being triggered, it can trigger the information extraction instruction to obtain the type information of the target power data network device from the target log file.

[0119] Among them, obtaining the type information of the target power data network device from the target log file has been introduced in step S103. For details, please refer to the description in step S103 and will not be elaborated here.

[0120] S404. Determine the parsing algorithm corresponding to the target log file according to the type indicated by the type information.

[0121] Exemplarily, step S404 has been introduced in step S103. For details, please refer to the description in step S103 and will not be elaborated here.

[0122] S405. Extract the performance information of the target power data network device from the target log file based on the parsing algorithm.

[0123] In one example, the performance information includes performance information corresponding to at least one preset performance.

[0124] In one example, the parsing algorithm includes at least one preset regular expression; wherein, each preset regular expression corresponds to a preset performance.

[0125] In one example, performance information corresponding to at least one preset performance is extracted from the target log file based on at least one preset regular expression.

[0126] Exemplarily, the preset performance may include, but is not limited to, device operation information, device CPU information, device memory information, device hardware information, etc. of the power data network device. Among them, the performance information corresponding to the device operation information includes, but is not limited to, the software version used by the device, the number of processors, the hardware version, etc. The performance information corresponding to the device CPU information includes, but is not limited to, the CPU usage rate in the last 5 seconds, the CPU usage rate in the last 1 minute, etc. The performance information corresponding to the device memory information includes, but is not limited to, the total system memory, the used memory, etc. The performance information corresponding to the device hardware information includes, but is not limited to, the number of ports, the PCB version, etc.

[0127] In the parsing algorithm, different preset regular expressions can be set in advance for different preset performances, and at least one preset regular expression is set. Furthermore, for each target log file, based on each preset regular expression, the content matching the preset regular expression can be extracted from the target log file, that is, the performance information corresponding to the preset performance corresponding to the preset regular expression is extracted.

[0128] In one example, assume there is 1 target log file R, and the parsing algorithm includes preset regular expression A and preset regular expression B, and these two preset regular expressions correspond to device operation information and device CPU information respectively. Among them, the preset regular expression A can be the content between "display version" and the line break, and the preset regular expression B can be the content between "display cpu-usage" and the line break.

[0129] The terminal device can use the content extracted from the target log file R and matching the preset regular expression A as the performance information corresponding to the device operation information based on the preset regular expression A. At the same time, based on the preset regular expression B, the content extracted from the target log file R and matching the preset regular expression B is used as the performance information corresponding to the device CPU information.

[0130] By setting different preset regular expressions in advance for different preset performances, the accuracy of extracting performance information corresponding to different preset performances from the log files generated by the power data network device can be improved.

[0131] S406. Convert the sentences expressed in the first language in the performance information into corresponding sentences expressed in the second language.

[0132] Exemplarily, after the terminal device extracts the performance information of the target power data network device from the target log file based on the parsing algorithm, it can convert the words or sentences expressed in English in the performance information into corresponding words or sentences expressed in Chinese. For example, convert "Version" in the performance information to "Software version:", and convert "CPU usage in the last 5 seconds" in the performance information to "CPU usage rate in the last 5 seconds:", etc.

[0133] By converting the sentences expressed in the first language in the performance information into corresponding sentences expressed in the second language, the readability of the performance information extracted from the log file generated by the power data network device can be improved.

[0134] S407. Write the performance information including the corresponding sentences expressed in the second language into a preset performance information integration form.

[0135] In one example, the name of the target log file includes the device name of the power data network device.

[0136] Exemplarily, after the terminal device converts the sentences expressed in the first language in the performance information into corresponding sentences expressed in the second language and obtains the target storage path, it can first generate a preset performance information integration form under the target storage path. Among them, the format of the preset performance information integration form has been introduced in step S103. For details, please refer to the description in step S103 and will not be elaborated here. In this embodiment, the preset performance information integration form is taken as an excel for illustration.

[0137] Secondly, extract the device name from the name of the target log file, for example, it is XX device.

[0138] Then, write the device name, the name of at least one preset performance, and the performance information corresponding to the preset performance into the preset positions in the preset performance information integration form respectively.

[0139] For example, write "XX device" into cell B2 of the preset performance information integration form, write the name of the preset performance "Device operation information" into cell B3 of the preset performance information integration form, and write the performance information corresponding to "Device operation information" into cell B4 of the preset performance information integration form;

[0140] Write the name of the preset performance, "Device CPU Information", into cell C3 of the preset performance information integration form, and write the performance information corresponding to "Device CPU Information" into cell C4 of the preset performance information integration form;

[0141] Write the name of the preset performance, "Device Memory Information", into cell D3 of the preset performance information integration form, and write the performance information corresponding to "Device Memory Information" into cell D4 of the preset performance information integration form;

[0142] Write the name of the preset performance, "Device Hardware Information", into cell E3 of the preset performance information integration form, and write the performance information corresponding to "Device Hardware Information" into cell E4 of the preset performance information integration form.

[0143] Figure 10 This is a schematic diagram of the performance information in the preset performance information integration form provided for this application, as Figure 10 shown. For example, it can be combined with Figure 10 to understand the performance information extracted from the log file of the power data network device in the preset performance information integration form.

[0144] By writing the performance information including the corresponding words and sentences expressed in the second language into the preset performance information integration form, the performance information can be stored in a structured manner, which is convenient for subsequent data analysis, statistics, and visualization of the performance information of the power data network device.

[0145] Figure 11 This is a schematic diagram of the structure of the performance information extraction device for the power data network device provided for this application, as Figure 11 shown. The performance information extraction device 110 provided in this embodiment includes:

[0146] A display module 1101, configured to display the log file identifier of the power data network device according to the trigger operation performed on the first control of the display interface;

[0147] An acquisition module 1102, configured to acquire the target log file indicated by the log file identifier based on the selection operation performed on the log file identifier;

[0148] An extraction module 1103, configured to extract the performance information of the target power data network device from the target log file according to the information extraction instruction based on the parsing algorithm corresponding to the target log file;

[0149] A storage module 1104, configured to store the performance information into the preset performance information integration form.

[0150] In a possible implementation manner, "obtaining the target log file indicated by the log file identifier" in the obtaining module 1102 is specifically used for:

[0151] Obtaining the target log file of the remote power data network device indicated by the log file identifier according to the path corresponding to the remote power data network device.

[0152] In a possible implementation manner, "extracting the performance information of the target power data network device from the target log file based on the parsing algorithm corresponding to the target log file" in the extraction module 1103 is specifically used for:

[0153] Obtaining the type information of the target power data network device from the target log file;

[0154] Determining the parsing algorithm corresponding to the target log file according to the type indicated by the type information;

[0155] Extracting the performance information of the target power data network device from the target log file based on the parsing algorithm.

[0156] In a possible implementation manner, the performance information includes the performance information corresponding to at least one preset performance; and

[0157] The parsing algorithm includes at least one preset regular expression; wherein, each preset regular expression corresponds to a preset performance.

[0158] In a possible implementation manner, "extracting the performance information of the target power data network device from the target log file based on the parsing algorithm" in the extraction module 1103 is specifically used for:

[0159] Extracting the performance information corresponding to at least one preset performance respectively from the target log file based on at least one preset regular expression.

[0160] In a possible implementation manner, before the storing module 1104, the apparatus 110 is further used for:

[0161] Converting the words and sentences expressed in the first language in the performance information into the corresponding words and sentences expressed in the second language; and

[0162] The storing module 1104 is specifically used for:

[0163] Writing the performance information including the corresponding words and sentences expressed in the second language into a preset performance information integration form.

[0164] The performance information extraction apparatus for power data network devices provided in this embodiment can execute the method provided in the above method embodiment, and its implementation principle and technical effects are similar, which will not be elaborated here in this embodiment.

[0165] Figure 12 The structural schematic diagram of the electronic device provided for this application is as follows. As Figure 12 shown, the electronic device 120 provided in this embodiment includes: at least one processor 1201 and a memory 1202. Optionally, the device 120 further includes a communication component 1203. Among them, the processor 1201, the memory 1202, and the communication component 1203 are connected through a bus 1204.

[0166] In the specific implementation process, at least one processor 1201 executes the computer-executable instructions stored in the memory 1202, so that at least one processor 1201 executes the above method.

[0167] For the specific implementation process of the processor 1201, reference can be made to the above method embodiment. The implementation principle and technical effect are similar, and will not be elaborated here in this embodiment.

[0168] In the above embodiment, it should be understood that the processor may be a central processing unit (English: Central Processing Unit, abbreviated: CPU), or other general-purpose processors, digital signal processors (English: Digital Signal Processor, abbreviated: DSP), application specific integrated circuits (English: Application Specific Integrated Circuit, abbreviated: ASIC), etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in combination with the invention can be directly embodied as being executed and completed by a hardware processor, or executed and completed by a combination of hardware and software modules in the processor.

[0169] The memory may include a high-speed memory (Random Access Memory, RAM), and may also include a non-volatile memory (Non-volatile Memory, NVM), such as at least one disk memory.

[0170] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For the convenience of representation, the bus in the attached drawings of this application is not limited to only one bus or one type of bus.

[0171] The present application also provides a computer program product, including a computer program which, when executed by a processor, implements the above method.

[0172] In one example, the present application may be a program product in the form of multiple scripts for different operating systems. Each program product includes a computer program which, when executed by a processor, implements the above method.

[0173] The present application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the above method.

[0174] The above-readable storage medium may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, a magnetic disk or an optical disk. The readable storage medium may be any available medium accessible by a general-purpose or special-purpose computer.

[0175] An exemplary readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium may also be a component of the processor. The processor and the readable storage medium may be located in an application specific integrated circuit (ASIC). Of course, the processor and the readable storage medium may also exist as discrete components in a device.

[0176] The division of units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other may be through some interfaces, and the indirect couplings or communication connections of devices or units may be in electrical, mechanical or other forms.

[0177] The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0178] In addition, in each embodiment of the present invention, each functional unit can be integrated in a processing unit, can exist physically alone for each unit, or two or more units can be integrated in one unit.

[0179] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods in each embodiment of the present invention. The aforementioned storage medium includes: USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks, or optical disks and other various media that can store program codes.

[0180] Those of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps including the above method embodiments; and the aforementioned storage medium includes: ROM, RAM, magnetic disks, or optical disks and other various media that can store program codes.

[0181] Finally, it should be noted that: After considering the specification and practicing the invention disclosed herein, those skilled in the art will readily think of other implementation schemes of the present invention. The present invention aims to cover any variations, uses, or adaptive changes of the present invention. These variations, uses, or adaptive changes follow the general principles of the present invention and include common general knowledge or conventional technical means in the technical field not disclosed in the present invention. It is not limited to the exact structure described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present invention is only limited by the appended claims.

Claims

1. A method for extracting performance information of power data network equipment, characterized in that: include: Displaying a log file identifier of a power data network device according to a triggering operation performed on a first control of the display interface; Based on the selection operation performed on the log file identifier, obtaining the target log file indicated by the log file identifier; According to the information extraction instruction, based on the parsing algorithm corresponding to the target log file, the performance information of the target power data network device is extracted from the target log file, and the performance information is stored in a preset performance information integration form.

2. The method according to claim 1, characterized in that The step of obtaining the target log file indicated by the log file identifier includes: According to the path corresponding to the remote power data network device, the target log file of the remote power data network device indicated by the log file identifier is obtained.

3. The method according to claim 1, characterized in that The extracting the performance information of the target power data network device from the target log file based on the parsing algorithm corresponding to the target log file includes: Acquire type information of target power data network equipment from the target log file; Determining a parsing algorithm corresponding to the target log file according to the type indicated by the type information; The performance information of the target power data network device is extracted from the target log file based on the parsing algorithm.

4. The method according to claim 3, characterized in that The performance information includes performance information corresponding to at least one preset performance; and The parsing algorithm includes at least one preset regular expression; wherein each preset regular expression corresponds to a preset performance.

5. The method according to claim 4, characterized in that The extracting the performance information of the target power data network device from the target log file based on the parsing algorithm includes: Based on the at least one preset regular expression, performance information corresponding to the at least one preset performance is extracted from the target log file.

6. The method according to any one of claims 1 to 5, characterized in that Before storing the performance information in a preset performance information integration form, the method further includes: Converting the words and sentences in the performance information expressed in the first language into corresponding words and sentences expressed in the second language; and The storing the performance information into a preset performance information integration form includes: The performance information including the corresponding words and sentences expressed in the second language is written into the preset performance information integration form.

7. A performance information extraction device for power data network equipment, characterized in that: include: A display module, configured to display a log file identifier of a power data network device according to a trigger operation performed on a first control of a display interface; An acquisition module, used for acquiring a target log file indicated by the log file identifier based on a selection operation performed on the log file identifier; An extraction module, configured to extract performance information of a target power data network device from the target log file according to an information extraction instruction and based on a parsing algorithm corresponding to the target log file; The storage module is used to store the performance information into a preset performance information integration form.

8. An electronic device, characterized in that: include: Memory, processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory, so that the processor performs the method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the method according to any one of claims 1 to 6 when executed by a processor.

10. A computer program product, characterized in that The invention comprises a computer program, which implements the method according to any one of claims 1 to 6 when being executed by a processor.