Nuclear power DCS control system log analysis method and system

By automatically collecting, storing and parsing log files, unified management and analysis of multi-type DCS logs is realized, which solves the problems of poor scalability and difficulty in unified management in the existing technology, reduces processing costs and improves log utilization efficiency.

CN119293006APending Publication Date: 2025-01-10CHINA NUCLEAR POWER OPERATION TECH CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411254151.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-09
Publication Date
2025-01-10

AI Technical Summary

Technical Problem

The existing multi-type DCS log parsing methods lack scalability and unified management, resulting in the increase in processing costs and development and deployment costs of increasing as the DCS control system models increase, and it is impossible to effectively compare and view the original files and parsing results.

Method used

Provides a log analysis method and system for the nuclear power DCS control system. Through the steps of collection, management, analysis, monitoring and interface shelving, it realizes automatic collection, storage, analysis and unified management of log files, and supports the analysis and query of multiple types of logs. Adopt a unified parsing rule scripting portal and data interface open.

Benefits of technology

It reduces the cost of DCS log processing communication and development deployment, improves log utilization efficiency, realizes rapid viewing of log data, and reduces development burden through automatic collection and automatic parsing, supporting the integration and scalability of multiple types of logs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119293006A_ABST
    Figure CN119293006A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of nuclear power DCS control system log analysis, and provides a nuclear power DCS control system log analysis method and system, and the method comprises the steps: collecting a DCS log; setting a file storage directory tree, and displaying all the collected log files; the DCS log file is analyzed; an analysis rule list is displayed, an analysis rule is newly added, the analysis rule is written, and an analysis result structure is defined; task monitoring and management are carried out, the task monitoring comprises a collection task and an analysis task, and the task state can be checked in the task monitoring; querying the analyzed data, and exporting a query result; and shelving a data interface, opening the interface, and monitoring an interface calling condition by accessing a log. According to the method, various DCS logs can be efficiently and quickly analyzed, and the log analysis method is uniformly managed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of nuclear power DCS control system log analysis, and in particular to a nuclear power DCS control system log analysis method and system. Background Art

[0002] The operation log formats of DCS control systems vary greatly depending on the model. Currently, most types of DCS logs are developed using customized scripts or programs. Scripts or programs in Python, JavaScript or other programming languages ​​are written to extract and process log data.

[0003] For the traditional multi-type DCS log parsing method, a script or program is written and developed for each log type for deployment. The disadvantages are that as the number of DCS control system models required increases, the corresponding services are constantly increasing, the scalability and unified management of the method are poor, and the effects of the original file and the parsing results cannot be compared and viewed. Summary of the invention

[0004] The main purpose of the present invention is to provide a nuclear power DCS control system log parsing method and system, which can efficiently and quickly parse multiple DCS logs and uniformly manage log parsing methods.

[0005] Another object of the present invention is to provide a nuclear power DCS control system log parsing method and system to achieve multiple types of use of one tool.

[0006] In order to achieve the above object, the present invention provides the following technical solutions:

[0007] In one aspect, the present invention provides a nuclear power DCS control system log parsing method, comprising:

[0008] Step 1: Collect DCS logs;

[0009] Step 2: DCS log file management, set up the file storage directory tree, and display all collected log files;

[0010] Step 3: Parse the DCS log file;

[0011] Step 4: Display the parsing rule list, add new parsing rules, write parsing rules, and define the parsing result structure;

[0012] Step 5: Monitor and manage tasks. Task monitoring includes collection tasks and analysis tasks. The task status can be viewed in task monitoring.

[0013] Step 6: Query the parsed data and export the query results;

[0014] Step 7: List the data interface, open the interface, and monitor the interface call status through access logs.

[0015] In some embodiments, step 1 comprises:

[0016] Step 1.1: Offline collection, set log file metadata information, upload the selected file, confirm the ownership of log data based on metadata information, and determine the log file management path by the storage directory;

[0017] Step 1.2: Online collection, set log file metadata information, log file source information, and collection task scheduling information, confirm the ownership of log data based on metadata information, determine the log file management path by the storage directory, confirm the automatic acquisition frequency of log files by the collection task scheduling information, and incrementally obtain log files within the frequency period to realize automatic collection of log files.

[0018] In some embodiments, offline acquisition includes:

[0019] Use the log collection module to collect data offline and add offline collection tasks;

[0020] Configure basic task information, including task name, file storage directory, and power plant unit to which it belongs;

[0021] Select the file to be uploaded and submit the task. The collection task will automatically run to upload the log file.

[0022] In some embodiments, online acquisition includes:

[0023] Configure data source information, including source file server address, access account information, and collection protocol;

[0024] Online collection through the log collection module, adding online tasks;

[0025] Configure basic task information, including task name, file storage directory, and power plant unit to which it belongs;

[0026] Select the data source to be collected and configure the scheduling information of the collection task, including the task running time and task running frequency;

[0027] Submit the configured task scheduling information and basic task information, and run, collect, and store log files autonomously.

[0028] In some embodiments, task monitoring includes task list, task editing, task re-running, task log, and task deletion.

[0029] In some embodiments, DCS log file management includes file directory management and file management.

[0030] In some embodiments, after selecting multiple or a single file, the corresponding type of parsing rules are set, and a single file parsing is performed on the selected file; the file storage directory is selected, the parsing rules and scheduling information are set, and the unparsed files in the selected directory are identified according to the set scheduling time and cycle, and the file parsing is performed according to the selected parsing rules to achieve automatic parsing of log files.

[0031] In some embodiments, the parsing method includes:

[0032] For single file parsing:

[0033] Select a single file for parsing, set basic parsing information, and then submit the task;

[0034] The task runs immediately, parses the file according to the selected parsing rules, structures the data into the structure preset by the parsing rules, and writes it into the time series database for storage;

[0035] For multiple file parsing:

[0036] Select multiple files to be parsed, perform batch parsing, set basic parsing information, and then submit the task;

[0037] The task runs immediately, parses the file according to the selected parsing rules, structures the data into the structure preset by the parsing rules, and writes it into the time series database for storage;

[0038] For timing analysis:

[0039] Select the log storage directory, perform scheduled analysis, set basic analysis information, and then submit the task;

[0040] The task runs automatically according to the scheduled time, identifies unparsed files based on the log file upload time, parses the files according to the selected parsing rules, structures the data into the structure preset by the parsing rules, and writes it into the time series database for storage.

[0041] In some embodiments, a parsing rule script is written for the DCS log to be parsed, the effect is debugged, a debugging sample log is uploaded, the effect is checked, the parsed table header name is written, and the parsing rules are saved, so as to achieve extensibility of the parsing rules and multi-type log parsing.

[0042] On the other hand, the present invention also provides a nuclear power DCS control system log parsing system, comprising:

[0043] Log collection module, used to collect log files of nuclear power DCS control system;

[0044] The data storage module is used to store the collected log files and archive them according to the set period;

[0045] The log processing module is used to parse and process the collected log files, and can parse the log files according to the parsing rules set by the user;

[0046] Data management module, used to manage system-related data, including log file data collected by the system, parsed DCS log data, and metadata generated by the system itself;

[0047] The task scheduling module is used to autonomously call and run system tasks, and monitor and record the running status and running logs of tasks;

[0048] System management module, used to manage and control system users, roles, and permissions;

[0049] System log management module, used to record all system operations;

[0050] The data service module is used to open the system's data assets to the outside world and control the data access scope and access rights according to the set interface query conditions.

[0051] The data service module is used to open the system's data assets to the outside world and control the data access scope and access rights according to the set interface query conditions.

[0052] In some embodiments, task scheduling is performed through a task scheduling module to support the task operation of the overall process of the log parsing tool, configure the scheduling time and scheduling frequency of the log collection task, monitor the status and completion status of the log collection task and log parsing task, and support manual intervention in tasks and automatic re-collection of data when tasks are abnormal.

[0053] In some embodiments, the data service includes a data interface service and a data export service, as follows:

[0054] Data interface services: API key management, data interface, interface call log, including:

[0055] API key management: manage data interfaces to open user information domain access rights;

[0056] 1) Add APIkey, enter the caller name, and the system will automatically assign a string of 32 characters to it;

[0057] 2) Set its status to Enable to open user access rights, and set its status to Disable to close user access rights.

[0058] Data interface: manage all open data interfaces of the system and access information of the data interfaces;

[0059] 1) Display the basic information of all open data interfaces of the system, including: data interface name, data interface address, description information, interface return type, creation time, interface status (listed means the interface is officially enabled, delisted means the interface is not enabled);

[0060] 2) Add, edit, and delete data interfaces, and configure interface access information, including: interface name, interface address, interface description, interface request parameters, whether interface request parameters are required, interface request parameter type, whether interface request parameter values ​​are fixed, and whether interface request parameter values ​​are fixed values, so as to control the scope of data opening.

[0061] Interface call log: records the usage information of all open data interfaces of the system, including the call data interface address, data interface name, caller API key, caller name, request IP, request parameters, request time, request duration, request status, and request error information, so as to facilitate the system to control abnormal conditions of interface usage.

[0062] Data export service: By selecting the power plant, unit, log type, time, and data parameter value, you can query the log analysis result data and export it. The queried data can be exported (CSV file) for external use.

[0063] On the other hand, the present invention also provides a nuclear power DCS control system log parsing tool, comprising:

[0064] Log collection: Set the log collection method, log tag, log directory, and collection task scheduling by configuring the log collection task;

[0065] Log storage: Store the collected log files and archive them periodically;

[0066] Log parsing: Expand parsing rules by presetting some parsing rules and user-defined parsing rules;

[0067] Log analysis result storage: The DCS data after log analysis is stored in a time series database in a unified format;

[0068] Metadata storage: stores tag information as well as business metadata, operational metadata, and technical metadata generated by the system itself;

[0069] Asset management: manage all log files, parsed data and other assets, and provide data services to external applications;

[0070] Task scheduling: supports the running of tasks in the overall process of the system, configures the scheduling time and frequency of log collection tasks; monitors the status and completion status of log collection tasks and log parsing tasks, and supports manual intervention in tasks and automatic re-collection of data when tasks are abnormal.

[0071] On the other hand, the present invention also provides a computer device, including a memory and a processor, wherein the memory stores computer-readable instructions, and the processor implements the steps of the nuclear power DCS control system log parsing method when executing the computer-readable instructions.

[0072] On the other hand, the present invention further provides a computer-readable storage medium, on which computer-readable instructions are stored, and when the computer-readable instructions are executed, the steps of the nuclear power DCS control system log parsing method are implemented.

[0073] Compared with the prior art, the nuclear power DCS control system log parsing method and system provided by the present invention have the following beneficial effects:

[0074] The present invention can reduce the communication cost and development and deployment cost of DCS log processing, improve the utilization efficiency of DCS log, and can quickly view the data in the DCS log.

[0075] The present invention realizes automatic collection of logs by configuring log server connection information.

[0076] The present invention realizes automatic parsing of logs by configuring fixed directories and fixed parsing rules.

[0077] The present invention provides a unified parsing rule script writing entry to achieve the integration and scalability of multiple types of parsing rules.

[0078] The present invention controls the accuracy of the uploaded script in a debugging operation mode.

[0079] The present invention uses an open data interface to make better use of data. BRIEF DESCRIPTION OF THE DRAWINGS

[0080] In order to more clearly illustrate the technical solution of the present invention, the following briefly introduces the drawings required for the technical description.

[0081] Figure 1 A flow chart of a nuclear power DCS control system log parsing method provided by the present invention;

[0082] Figure 2 A flow chart of the log parsing business of a nuclear power DCS control system provided by the present invention;

[0083] Figure 3A schematic diagram of a nuclear power DCS control system log parsing system provided by the present invention;

[0084] Figure 4 This is the overall functional architecture diagram of the nuclear power DCS log parsing tool provided by the present invention. DETAILED DESCRIPTION

[0085] The following is further explained in detail through specific implementation methods.

[0086] like Figure 1 and Figure 2 As shown, the present invention provides a nuclear power DCS control system log parsing method, comprising the following steps:

[0087] Step 1: Collect DCS logs. Configure the log collection task, set the log collection method, log tag, log directory, and collection task scheduling.

[0088] Log collection methods include online collection and offline collection, and usually only one of them is used. Online collection automatically collects log files by parsing the log push protocol (including at least the SCP protocol), while offline collection manually collects log files by uploading local files.

[0089] Log tags provide supplementary information for asset management by users selecting tag information such as power plants, units, equipment models, and log types.

[0090] Better manage the collected log files by selecting the log directory.

[0091] Task scheduling configuration controls log collection tasks by setting log collection time, collection frequency, etc.

[0092] Step 1 specifically includes:

[0093] Step 1.1: Offline collection. Set the metadata information of the log file, including the power plant, unit, and file storage directory, select the files to be uploaded, and confirm the ownership of the log data based on the metadata information. The log file management path is determined by the storage directory.

[0094] Offline collection includes: creating a new collection task, selecting a file storage directory, selecting a power plant unit, selecting a file, and uploading a log file. Specifically, it includes:

[0095] 1) Perform offline collection through the log collection module and add offline collection tasks;

[0096] 2) Configure basic task information: task name, file storage directory, and power plant unit to which it belongs;

[0097] 3) Select the file to be uploaded and submit the task. The collection task will automatically run to upload the log file.

[0098] Step 1.2: Online collection. Set the metadata information of the log file, including the power plant, unit, and file storage directory; set the source information of the log file, including the source file server address, connection method, and authentication information; set the collection task scheduling information, that is, the automatic acquisition frequency information of the log file, including the scheduling time and scheduling cycle. Based on the metadata information, confirm the ownership of the log data, and determine the log file management path by the storage directory; confirm the automatic acquisition frequency of the log file by the collection task scheduling information, and incrementally obtain the log files within the frequency period to realize the automatic collection of log files.

[0099] Online collection includes: creating a new collection task, configuring data source, selecting file storage directory, configuring task running time, configuring task running frequency, and uploading log files. Specifically include:

[0100] 1) Configure data source information: source file server address, access account information, and collection protocol;

[0101] 2) Collect data online through the log collection module and add online tasks;

[0102] 3) Configure basic task information: task name, file storage directory, and power plant unit to which it belongs;

[0103] 4) Select the data source to be collected and configure the scheduling information of the collection task: task running time and task running frequency;

[0104] 5) Submit the configured task scheduling information and basic task information, and run, collect, and store log files autonomously.

[0105] Among them, log storage involves step 1, log parsing result storage involves step 3, and metadata storage involves every step.

[0106] For log storage, the collected log files are stored and archived according to a certain period.

[0107] For log analysis result storage, the DCS data after log analysis is stored in a time series database in a unified format.

[0108] For metadata storage, label information as well as business metadata, operation metadata and technical metadata generated by the system itself are stored.

[0109] Step 2: DCS log file management. Set up the file storage directory tree to display all collected log files, including metadata information such as log file attribute description information, and be able to view uploaded files online.

[0110] DCS log file management includes file directory management and file management. File directory management includes: directory tree display, adding directories, modifying directory names, and deleting directories. File management includes: file list display, editing file names and directories, file downloads, and file deletions. The file list displays basic information, including file name, parsing status, description information, etc.

[0111] Step 3: DCS log file analysis.

[0112] Single file analysis:

[0113] 1) Select a single file for parsing, set the basic parsing information: task name, parsing rules, and then submit the task;

[0114] 2) The task runs immediately, parses the file according to the selected parsing rules, structures the data into the structure preset by the parsing rules, and writes it into the time series database for storage.

[0115] Multiple file parsing:

[0116] 1) Select multiple files to be parsed, perform batch parsing, set basic parsing information: task name, parsing rules, and then submit the task;

[0117] 2) The task runs immediately, parses the file according to the selected parsing rules, structures the data into the structure preset by the parsing rules, and writes it into the time series database for storage.

[0118] Timing analysis:

[0119] 1) Select the log storage directory, perform scheduled analysis, set the basic analysis information: task name, analysis rules, task running time, task running frequency, and then submit the task;

[0120] 2) The task runs automatically according to the scheduled time, identifies unparsed files according to the log file upload time, parses the files according to the selected parsing rules, structures the data into the structure preset by the parsing rules, and writes it into the time series database for storage.

[0121] After selecting multiple or a single file, set the corresponding type of parsing rules to perform a single file parsing on the selected file. Specifically, select multiple files, select parsing rules, and parse all files in the directory; select a single file, select parsing rules, parse the selected file, and view the parsing results.

[0122] Select the file storage directory, set the parsing rules and scheduling information, identify the unparsed files in the selected directory according to the set scheduling time and cycle, and perform file parsing according to the selected parsing rules to achieve automatic parsing of log files. Specifically, select the file directory, select the parsing rules, select the scheduling cycle, select the effective time, and parse all files in the directory.

[0123] Step 4: Parsing rule management. The system presets some parsing rules and supports user-defined parsing rules to achieve the scalability of parsing rules.

[0124] Parsing rule management includes:

[0125] 1) Parsing rule display: Displays the basic information of all parsing rules integrated in the system: rule name, usage log type, creation time, and task description;

[0126] 2) Add new parsing rules: Add new rules script editing, support scripts and programs in multiple programming languages ​​such as Python, Java, regular expressions, etc., and you can also directly upload the completed script files;

[0127] 3) Parsing rule debugging: Debugging, you can upload the debugging log file to debug the written parsing rule script, view the parsing results, and better help modify the parsing rule script;

[0128] 4) Write and save the parsed data structure, parsing rule name, and log type;

[0129] 5) Provide script writing specification examples to better help write parsing rule scripts.

[0130] Display the parsing rule list, add new parsing rules, write parsing rules, and define the parsing result structure. Writing parsing rules includes: uploading parsing scripts, parsing script debugging, script writing specification examples, saving, and displaying the parsing results.

[0131] Manage all parsing rules, write parsing rule scripts for DCS logs to be parsed, debug the effects, upload debugging sample logs, view the effects, independently write parsing header names, and save parsing rules, so as to achieve scalability of parsing rules and multi-type log parsing.

[0132] Step 5: Task monitoring. Display the running status of all log collection tasks and log parsing tasks, and monitor and manage the tasks.

[0133] Task monitoring includes collection and analysis. Task monitoring includes task list, task editing, task re-running, task log, and task deletion. Task editing includes task name, analysis rules, scheduling cycle, and scheduling time.

[0134] Step 6: Data query. Query the parsed data, set the power plant, unit, log type, time, parameters to be queried, query results, and export the query results.

[0135] Step 7: Open the interface. Create a caller identification key, set the data interface information, including the interface name, interface address, and input parameter information, list the data interface, open it to the outside world, and monitor the interface call status through the access log.

[0136] In addition, if Figure 3 As shown, the present invention also provides a nuclear power DCS control system log parsing system, including a log collection module, a data storage module, a log processing module, a data management module, a task scheduling module, a system management module, a system log management module, and a data service module.

[0137] The log collection module is used to collect log files of the nuclear power DCS control system. The log collection module has the functions of online log collection and offline log collection.

[0138] The log file collection end uses remote FTP file acquisition for online collection and file upload service for offline collection.

[0139] By configuring the log collection task, you can set the log collection method, log tag, log directory, and collection task scheduling. The log collection method includes online collection and offline collection. Online collection automatically collects log files by parsing the log push protocol (including at least the SCP protocol), and offline collection manually collects log files by uploading local files. Log tags provide supplementary information for asset management by allowing users to select tag information such as power plants, units, equipment models, and log types. You can better manage the collected log files by selecting the log directory. Task scheduling configuration controls log collection tasks by setting log collection time, collection frequency, etc.

[0140] The data storage module is used to store the collected log files and archive them according to a certain period (for example, on the last day of each month, the log files uploaded this month are packaged and compressed by identifying the file upload time and uploaded to the object storage database OSS). The data storage module stores log file data, parsed DCS data, and system metadata.

[0141] The nuclear power DCS control system log parsing system supports the storage of unstructured data such as log files, supports the storage of DCS time series data after log parsing, and supports the relational data storage of system metadata.

[0142] The log analysis results are stored in the data storage module, and the DCS data after log analysis is stored in the time series database in a unified format.

[0143] The metadata is stored through the data storage module, and the tag information and the business metadata, operation metadata and technical metadata generated by the nuclear power DCS control system log parsing system itself are stored.

[0144] The log processing module is used to parse and process the collected log files, and can parse the log files according to the parsing rules set independently.

[0145] The nuclear power DCS control system log parsing system can parse logs according to the set rules, and supports the expansion and customization of parsing rules.

[0146] Log parsing is performed through the log processing module. The system presets some parsing rules and supports user-defined parsing rules to achieve the extensibility of parsing rules.

[0147] The data management module is used to manage system-related data, including log file data collected by the system, parsed DCS log data, and metadata generated by the system itself.

[0148] Data management includes log file management and parsed DCS data management. It supports log file metadata management, log culture storage directory management, log file tag management, log file preview, and supports query and display of parsed DCS data.

[0149] All log files and parsed data are managed through the data management module, and data services are provided to external applications. Log file management includes modification of log file storage path and directory, online preview of log files, attribute information of log files, etc. Data query can query and display parsed data according to time, power plant, unit, equipment model and other information. Data publishing includes data export and interface publishing to provide data to external applications.

[0150] The task scheduling module is used to autonomously call and run system tasks, and monitor and record the running status and operation logs of tasks.

[0151] The task scheduling module supports autonomous configuration of log collection and log parsing tasks, task status monitoring, task alarm information display, scheduling plan configuration and task frequency configuration.

[0152] Task scheduling is performed through the task scheduling module to support the task operation of the overall process of the log parsing tool. The scheduling time and scheduling frequency of the log collection task can be configured. The status and completion status of the log collection task and the log parsing task can be monitored, and manual intervention in the task and automatic re-collection of data are supported when the task is abnormal.

[0153] The system management module is used to manage and control system users, roles, and permissions.

[0154] System management includes system user management, system user role management, and system user permission management.

[0155] System user management: manage all basic information of system users, including user name, name, gender, phone number, email address, department, role, etc.;

[0156] System user role management: manage all roles in the system, display all role names, data permissions, and menu permissions in the system;

[0157] System user authority management: manage individual user authority information, including data authority and menu authority;

[0158] The system log management module is used to record all system operations.

[0159] System log management includes system operation log records and system login log records.

[0160] System operation log record: record all system operation information, including operation user, operation time, operation content, etc.;

[0161] System login log record: record all system login information, including login user, login IP, login time;

[0162] The data service module is used to open the system's data assets to the outside world and control the data access scope and access rights according to the set interface query conditions.

[0163] Data services include data interface services and data export services.

[0164] Data interface service: including API key management, data interface, and interface call log.

[0165] API key management: manage data interfaces to open user information domain access rights.

[0166] 1) Add APIkey, enter the caller name, and the system will automatically assign a string of 32 characters to it;

[0167] 2) Set its status to Enable to open user access rights, and set its status to Disable to close user access rights.

[0168] Data interface: manage all open data interfaces of the system and access information of the data interfaces;

[0169] 1) Display the basic information of all open data interfaces of the system, including: data interface name, data interface address, description information, interface return type, creation time, interface status (listed means the interface is officially enabled, delisted means the interface is not enabled);

[0170] 2) You can add, edit, and delete data interfaces, and configure interface access information, including: interface name, interface address, interface description, interface request parameters, whether interface request parameters are required, interface request parameter type, whether interface request parameter values ​​are fixed, and whether interface request parameter values ​​are fixed values, so as to control the scope of data openness.

[0171] Interface call log: records the usage information of all open data interfaces of the system, including the call data interface address, data interface name, caller API key, caller name, request IP, request parameters, request time, request duration, request status, and request error information, so as to facilitate the system to control abnormal conditions of interface usage.

[0172] Data export service: By selecting the power plant, unit, log type, time, and data parameter value, you can query the log analysis result data and export it (CSV file) for external use.

[0173] In addition, if Figure 4 As shown, the present invention also provides a DCS log parsing tool, including log collection, log storage, log parsing, storage of parsed log data, and asset management, and the data in the log is parsed and stored in a database.

[0174] Log collection: Set the log collection method, log tags, log directory, and collection task scheduling by configuring the log collection task.

[0175] Log collection methods include online collection and offline collection. Online collection automatically collects log files by parsing the log push protocol (including at least the SCP protocol), and offline collection manually collects log files by uploading local files. Log tags provide supplementary information for asset management by users selecting tag information such as power plants, units, equipment models, and log types. Collected log files can be better managed by selecting log directories. Task scheduling configuration controls log collection tasks by setting log collection time and frequency.

[0176] Log storage: Store the collected log files and archive them at a certain period.

[0177] Log parsing: The nuclear power DCS control system log parsing system presets some parsing rules and supports user-defined parsing rules to achieve the scalability of parsing rules.

[0178] Log analysis result storage: The DCS data after log analysis is stored in a time series database in a unified format.

[0179] Metadata storage: stores tag information as well as business metadata, operational metadata, and technical metadata generated by the system itself.

[0180] Asset management: Manage all assets such as log files and parsed data, and provide data services to external applications.

[0181] Log file management includes modification of log file storage path and directory, online preview of log files, attribute information of log files, etc.; data query can query and display parsed data according to time, power plant, unit, equipment model and other information; data publishing includes data export and interface publishing to provide data to external applications.

[0182] Task scheduling: supports the task operation of the overall process of the nuclear power DCS control system log analysis system, and can configure the scheduling time and frequency of the log collection task; can monitor the status and completion status of the log collection task and log analysis task, and support manual intervention in the task and automatic re-collection of data when the task is abnormal.

[0183] In addition, the present invention also provides a computer device, including a memory and a processor, wherein the memory stores computer-readable instructions, and when the processor executes the computer-readable instructions, the steps of the above-mentioned nuclear power DCS control system log parsing method are implemented.

[0184] In addition, the present invention also provides a computer-readable storage medium, on which computer-readable instructions are stored, and when the computer-readable instructions are executed, the steps of the above-mentioned nuclear power DCS control system log parsing method are implemented.

[0185] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory, static random access memory, dynamic random access memory, other types of random access memory, read-only memory, electrically erasable programmable read-only memory, flash memory or other memory technology, CD-ROM read-only memory, digital versatile disk or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission medium that can be used to store information that can be accessed by a computing device.

[0186] The present invention proposes a system and method for parsing nuclear power DCS control system logs for multiple types of DCS logs, which can efficiently and quickly parse multiple DCS logs and uniformly manage log parsing methods, so as to realize the use of multiple types of one tool.

[0187] The present invention provides a unified nuclear power DCS control system log parsing system, reduces the communication cost and development and deployment cost of DCS log processing, improves the utilization efficiency of DCS logs, and can quickly view data in DCS logs.

[0188] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A method for analyzing logs of a nuclear power DCS control system, characterized in that: include: Step 1: Collect DCS logs; Step 2: DCS log file management, set up the file storage directory tree, and display all collected log files; Step 3: Parse the DCS log file; Step 4: Display the parsing rule list, add new parsing rules, write parsing rules, and define the parsing result structure; Step 5: Monitor and manage tasks; Step 6: Query the parsed data and export the query results; Step 7: List the data interface, open the interface, and monitor the interface call status through access logs.

2. The nuclear power DCS control system log parsing method according to claim 1 is characterized in that: Step 1 includes: Step 1.1: Offline collection, set log file metadata information, upload the selected file, confirm the ownership of log data based on metadata information, and determine the log file management path by the storage directory; Step 1.2: Online collection, set log file metadata information, log file source information, and collection task scheduling information, confirm the ownership of log data based on metadata information, determine the log file management path by the storage directory, confirm the automatic acquisition frequency of log files by the collection task scheduling information, and incrementally obtain log files within the frequency period to realize automatic collection of log files.

3. The nuclear power DCS control system log parsing method according to claim 1 or 2, characterized in that: Offline collection includes: Use the log collection module to collect data offline and add offline collection tasks; Configure basic task information, including task name, file storage directory, and power plant unit to which it belongs; Select the file to be uploaded and submit the task. The collection task will automatically run to upload the log file.

4. The nuclear power DCS control system log parsing method according to claim 1, characterized in that: Online collection includes: Configure data source information, including source file server address, access account information, and collection protocol; Online collection through the log collection module, adding online tasks; Configure basic task information, including task name, file storage directory, and power plant unit to which it belongs; Select the data source to be collected and configure the scheduling information of the collection task, including the task running time and task running frequency; Submit, run, collect, and store log files according to the configured task scheduling information and task basic information.

5. The nuclear power DCS control system log parsing method according to claim 1, characterized in that: In step 3, after selecting multiple or single files, set the corresponding type of parsing rules and perform a single file parsing on the selected files; select the file storage directory, set the parsing rules and scheduling information, identify the unparsed files in the selected directory according to the set scheduling time and cycle, and perform file parsing with the selected parsing rules to achieve automatic parsing of log files.

6. The nuclear power DCS control system log parsing method according to claim 1, characterized in that: In step 3, the parsing method includes: For single file parsing: Select a single file for parsing, set basic parsing information, and then submit the task; The task runs immediately, parses the file according to the selected parsing rules, structures the data into the structure preset by the parsing rules, and writes it into the time series database for storage; For multiple file parsing: Select multiple files to be parsed, perform batch parsing, set basic parsing information, and then submit the task; The task runs immediately, parses the file according to the selected parsing rules, structures the data into the structure preset by the parsing rules, and writes it into the time series database for storage; For timing analysis: Select the log storage directory, perform scheduled analysis, set basic analysis information, and then submit the task; The task runs automatically according to the scheduled time, identifies unparsed files based on the log file upload time, parses the files according to the selected parsing rules, structures the data into the structure preset by the parsing rules, and writes it into the time series database for storage.

7. The nuclear power DCS control system log parsing method according to claim 1, characterized in that: In step 4, the parsing rule script is written for the DCS log to be parsed, the effect is debugged, the debugging sample log is uploaded, the effect is checked, the parsed header name is written, and the parsing rules are saved, so as to realize the scalability of the parsing rules and the parsing of multiple types of logs.

8. A nuclear power DCS control system log analysis system, characterized in that: include: Log collection module, used to collect log files of nuclear power DCS control system; The data storage module is used to store the collected log files and archive them according to the set period; The log processing module is used to parse the collected log files and can parse the log files according to the set parsing rules; Data management module, used to manage system-related data; The task scheduling module is used to autonomously call and run system tasks, and monitor and record the running status and running logs of tasks; System management module, used to manage and control system users, roles, and permissions; System log management module, used to record all system operations; The data service module is used to open the system's data assets to the outside world and control the data access scope and access rights according to the set interface query conditions.

9. A computer device comprising a memory and a processor, wherein the memory stores computer-readable instructions, characterized in that: When the processor executes the computer-readable instructions, the steps of the nuclear power DCS control system log parsing method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having computer-readable instructions stored thereon, characterized in that: When the computer-readable instructions are executed, the steps of the nuclear power DCS control system log parsing method according to any one of claims 1 to 7 are implemented.