Real-time data auditing method and device, equipment, storage medium and product
By collecting and splitting data in real time in the cloud management platform, and assigning it to multiple data processing nodes for automated comparison and correction, the problem of low data audit efficiency on multiple cloud platforms in the cloud management platform is solved, and efficient data consistency is achieved. manage.
Patent Information
- Application Number
- CN202410116685.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-26
- Publication Date
- 2024-10-22
AI Technical Summary
In cloud management platforms, resource data auditing on multiple cloud platforms is inefficient, requiring manual import and location of problem sources, resulting in long time and low efficiency.
By collecting the data to be audited in real time and splitting it into row data and column data, it is assigned to a preset number of data processing nodes for automatic audit comparison, a summary data table is generated, and a correction rule set is generated according to business needs for automatic correction.
It realizes automated data auditing without manual import and location of problem sources, improves data auditing efficiency and ensures data consistency between platforms.
Smart Images

Figure CN118819918A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of cloud management platforms, and in particular to a real-time data auditing method, apparatus, device, storage medium and computer program product. Background Art
[0002] With the development of computer networks, cloud computing is increasingly widely used. Specifically, government agencies in smart government scenarios open cloud service resources through cloud management platforms to process large amounts of data.
[0003] The cloud management platform is a comprehensive management and control platform for unified cloud business and cloud services built on cloud architecture, resources and services. The implementation of the cloud management platform usually requires connecting to the customer-side business application platform and connecting to the cloud service provider's cloud platform. That is, the application process for cloud service resources involves the cloud management platform, the customer-side business application platform and the cloud service provider's cloud platform. There is a problem of inconsistent resource data among the three platforms. The cloud management platform usually sets up corresponding audit procedures to audit its resource data to ensure the consistency of the resource data of the three platforms.
[0004] In the related technology, the resource data collected from the third-party platform is usually imported into the pre-built audit script manually, and then the resource data is analyzed and compared based on the pre-built audit script, and the difference data is output, and finally the source of the problem is located through manual analysis, thereby realizing the audit of the resource data. However, in the scenario involving a large number of cloud platforms managed by the cloud management platform, that is, when a cloud management platform audits the data of multiple cloud platforms, the amount of resource data collected is huge, and it takes a long time to import the huge amount of resource data into the audit script manually, and it also takes a lot of time to locate the source of the problem manually, resulting in low efficiency of data auditing. Summary of the invention
[0005] The main purpose of this application is to provide a real-time data auditing method, device, equipment, storage medium and computer program product, aiming to solve the technical problem of low efficiency of data auditing in the prior art.
[0006] To achieve the above objectives, the present application provides a real-time data auditing method, the real-time data auditing method comprising:
[0007] Collect data to be audited in real time;
[0008] Splitting the data to be audited to obtain split data to be audited, and allocating the split data to be audited to a preset number of data processing nodes;
[0009] The data processing nodes are used to automatically audit and compare the split data to be audited, so as to obtain a summary data table of the data to be audited, wherein the summary data table integrates the audit results of each data processing node.
[0010] Optionally, the step of splitting the data to be audited to obtain split data to be audited, and allocating the split data to be audited to a preset number of data processing nodes includes:
[0011] Based on a preset distributed data collection cluster, the data to be audited is split to obtain row data and column data, wherein the row data includes field information of the data to be audited, and the column data includes attribute information of the data to be audited;
[0012] The row data and the column data are divided into a preset first number of subtasks, and the subtasks are allocated to the first number of data processing nodes corresponding to the distributed data acquisition cluster.
[0013] Optionally, the step of performing automated audit comparison on the split data to be audited through the data processing node to obtain a summary data table of the data to be audited includes:
[0014] Based on the preset field definition rules, the row data and the column data are automatically audited and compared through each of the data processing nodes to obtain the audit results of each of the data processing nodes;
[0015] The audit results of each data processing node are integrated to obtain a summary data table of the data to be audited.
[0016] Optionally, the step of automatically auditing and comparing the row data and the column data through each data processing node based on a preset field definition rule to obtain an audit result of each data processing node includes:
[0017] Based on a preset field definition rule, through each of the data processing nodes, similarity calculation is performed on the row data to obtain a similarity result of the row data;
[0018] Based on the similarity result, divide the data blocks to be audited and compared into multiple blocks;
[0019] The column data under the data block is audited and compared to obtain the audit results of each data processing node.
[0020] Optionally, after the step of performing automated audit comparison on the split data to be audited through the data processing node to obtain a summary data table of the data to be audited, the method includes:
[0021] Based on the summary data table, determining the data to be corrected;
[0022] Get the correction rule group;
[0023] Based on the correction rule group, automatic correction is performed on the data to be corrected to obtain a correction result.
[0024] Optionally, the step of performing automatic correction on the data to be corrected based on the correction rule group to obtain a correction result includes:
[0025] splitting the correction rule group into a preset second number of correction rules;
[0026] The correction rules are distributed to the data processing nodes under the distributed data acquisition cluster, and the data to be corrected are automatically corrected in parallel through each of the data processing nodes and the correction rules under each of the data processing nodes to obtain a correction result, wherein each of the data processing nodes includes at least one correction rule.
[0027] Optionally, the step of obtaining the correction rule group includes:
[0028] Acquire business requirements, wherein the business requirements include business scenarios;
[0029] Based on the business requirements, determine the data correction type;
[0030] Generate correction rules corresponding to the data correction type, and form a corresponding correction rule group based on the correction rules, wherein the correction rules conform to the business scenario.
[0031] The present application also provides a real-time data auditing device, the real-time data auditing device comprising:
[0032] The collection module is used to collect the data to be audited in real time;
[0033] A splitting module is used to split the data to be audited to obtain the split data to be audited, and distribute the split data to be audited to a preset number of data processing nodes;
[0034] The audit module is used to perform automatic audit comparison on the split data to be audited through the data processing nodes to obtain a summary data table of the data to be audited, wherein the summary data table integrates the audit results of each data processing node.
[0035] The present application also provides a real-time data auditing device, the real-time data auditing device comprising: a memory, a processor, and a program stored in the memory for implementing the real-time data auditing method,
[0036] The memory is used to store a program for implementing a real-time data audit method;
[0037] The processor is used to execute a program for implementing the real-time data auditing method to implement the steps of the real-time data auditing method.
[0038] The present application also provides a storage medium, on which is stored a program for implementing the real-time data auditing method, and the program for implementing the real-time data auditing method is executed by a processor to implement the steps of the real-time data auditing method.
[0039] The present application also provides a computer program product, which includes a real-time data auditing program, and when the real-time data auditing program is executed by a processor, the steps of the real-time data auditing method described above are implemented.
[0040] This application splits the audited data collected in real time and distributes it to a preset number of data processing nodes. Then, through the parallel computing capabilities of each data processing node, the split data to be audited is automatically audited and compared, thereby realizing real-time automated data auditing to meet the needs of data collection and auditing in big data high-frequency writing scenarios. There is no need for manual data import and problem source location, thereby improving the efficiency of data auditing. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and are used together with the specification to explain the principles of the present application. In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings required for use in the embodiments or the prior art description will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0042] Figure 1 This is a flow chart of the first embodiment of the real-time data audit method of the present application;
[0043] Figure 2 A schematic diagram of the data collection and integration process based on a distributed data collection cluster for the real-time data audit method of this application;
[0044] Figure 3 A schematic diagram showing the data analysis results of the real-time data audit method of this application;
[0045] Figure 4 A schematic diagram of module interaction of the second embodiment of the real-time data audit method of the present application;
[0046] Figure 5This is a flow chart of the second embodiment of the real-time data audit method of the present application;
[0047] Figure 6 This is a module diagram of the real-time data audit device of this application;
[0048] Figure 7 It is a schematic diagram of the device structure of the hardware operating environment involved in the embodiment of the present application.
[0049] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0050] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0051] Reference Figure 1 , Figure 1 This is a flow chart of the first embodiment of the real-time data auditing method of the present application.
[0052] In a first embodiment, the real-time data audit method comprises the following steps:
[0053] Step S100, real-time collection of data to be audited;
[0054] It should be noted that the executor of the real-time data audit method is a real-time data audit device. Preferably, the real-time data audit device is a system client, or it can be other terminals with data transmission and data processing functions, and no specific restrictions are made here.
[0055] In the specific implementation, the application scenario involved in this application is the cloud platform management scenario, wherein the cloud platform management scenario includes the cloud management platform, the customer-side business application platform that the cloud management platform connects to, and the cloud service provider cloud platform that the cloud management platform connects to. There can be multiple cloud service provider cloud platforms, that is, the number of cloud platforms managed by the cloud management platform is large, such as one cloud management platform manages 10 heterogeneous cloud platforms. At this time, a "one-to-many" audit scenario needs to be implemented. In this application scenario, the real-time data audit device can be set on the cloud management platform or on other server ends other than the three types of platforms, and no specific limitation is made here.
[0056] It is understandable that the data to be audited refers to the data that needs to be audited, which includes data on the cloud management platform, the customer-side business application platform, and the cloud platform of the cloud service provider in the specific application scenario. Specifically, the method for the device to collect the data to be audited in real time includes the following processes: 1. Determine the collection rules: According to the purpose of collection, formulate appropriate collection rules, including the data type to be collected (cloud application platform work order information, cloud platform resource data, etc.), collection frequency, filtering conditions, etc.; 2. Select the collection tool: According to the collection rules, select the API interface collection tool and service; 3. Data preprocessing: preprocess and clean the collected data, including removing invalid data, processing missing values, data conversion, etc., to ensure data quality and consistency; 4. Data storage: store the preprocessed data in the cloud server; 5. Data transmission: transfer the collected data from the source system to the cloud server, using a variety of methods, such as API calls, message queues, etc.; 6. Automation script: write automation scripts to implement tasks such as data collection, processing and storage. Use programming languages such as Python to implement automation scripts; 7. Scheduled tasks: set up scheduled tasks to regularly execute automation scripts to achieve scheduled data collection. On cloud platforms, use cloud monitoring services to perform tasks regularly.
[0057] It should be noted that in the relevant technology, the audit frequency is once a week or a month, and the specific frequency is executed on demand, and the execution method is to manually initiate the audit task. However, when the frequency of initiation of the resource process of the client-side business application platform is high, for example, resource application, resource change, resource recovery, etc. occur every minute on the cloud management platform, and applications are made to different cloud service providers’ cloud platforms. The audit scheme in the relevant technology has the problem of continuous accumulation of data differences, and then a large amount of data will need to be manually audited and rectified. At the same time, when performing data audit tasks, new demands on the business side are constantly being initiated, and new problems are constantly accumulating, and the consistency of the data on both sides cannot be guaranteed. Based on the above technical problems, this application proposes real-time collection of audit data, and the time interval for the real-time collection can be determined based on a preset short time interval, or it can be determined based on the frequency of users triggering the platform resource process.
[0058] Furthermore, the present application proposes that the beneficial effects of real-time collection of audited data include: improving the efficiency of data auditing by replacing manual initiation of audit tasks with automated methods; preventing the accumulation of data differences, thereby eliminating the need for manual unified audit and rectification of large amounts of data; and ensuring the consistency of data between platforms.
[0059] Step S200, splitting the data to be audited to obtain split data to be audited, and distributing the split data to be audited to a preset number of data processing nodes;
[0060] It should be noted that the application scenarios involved in this application (such as a cloud management platform that manages multiple cloud platforms) include a large amount of data to be audited, and efficient task calculation is required for the data collected in real time. Therefore, it is proposed to set up multiple data processing nodes to split the data to be audited collected in real time, and perform subsequent audit task processing on the split data to be audited through a preset number of data processing nodes, that is, split a task job into multiple subtasks, and assign each subtask to multiple node machines in the cluster to run, and finally perform data aggregation processing. This application realizes parallel audit processing of data through the setting of the above multiple data processing nodes, that is, efficiently performs audit processing of a large amount of data to be audited.
[0061] In a specific implementation, the device splits the data to be audited to obtain the split data to be audited, and the method for allocating the split data to be audited to a preset number of data processing nodes also includes the following steps:
[0062] The device performs data splitting on the data to be audited based on a preset distributed data acquisition cluster to obtain row data and column data, wherein the row data includes field information of the data to be audited and the column data includes attribute information of the data to be audited; the device divides the row data and the column data into a preset first number of subtasks, and allocates the subtasks to the corresponding first number of data processing nodes under the distributed data acquisition cluster.
[0063] It should be noted that the distributed data collection cluster includes multiple data processing nodes. This application builds the distributed data collection cluster under the device for data processing including data collection, splitting, integration and data correction. Specifically, for data collection tasks, this application builds a distributed data collection cluster. If a single ETL is not split, the data collection of multiple databases and multiple data tables can be evenly distributed to multiple data collection and processing servers, so as to achieve parallel data collection and processing, speed up data collection and reduce IO bottlenecks; refer to Figure 2 For the row data splitting, column data splitting and integration operations of large tables, the device is based on the above-mentioned distributed data acquisition cluster, which splits a task job into multiple subtasks, each subtask is assigned to multiple node machines in the cluster to run, and finally the data is summarized and processed.
[0064] In a specific implementation, the splitting of the data to be audited is to perform row data splitting operations and column data splitting operations respectively, wherein the row data includes field information of the data to be audited, and the column data includes attribute information of the data to be audited. The device adopts a method of separating row and column data, and sends the split row data file to multiple data processing nodes, each node processing a part of the row data. Then, on each data processing node, multi-threading or multi-process technology is used to merge the column data with the row data to form a complete data record.
[0065] In a specific implementation, the beneficial effects of the method of separating data by rows and columns include being able to improve the efficiency of data processing, reduce errors, improve the quality and accuracy of data, and facilitate visual analysis.
[0066] Step S300, through the data processing node, the split data to be audited are automatically audited and compared to obtain a summary data table of the data to be audited, wherein the summary data table integrates the audit results of each data processing node.
[0067] It should be noted that the above steps are specifically the process of data analysis and comparison. In the application scenario of this application, it is specifically cross-system data analysis and comparison, that is, the execution of audit tasks. According to the audit rules configured in the module, the data audit work is completed. The data comparison itself is a process from coarse to fine. The first is the comparison at the data table level, and then the comparison of the data at the record level in the data table. For example, if a business application platform synchronizes a piece of data to the cloud management platform, whether it is successfully synchronized normally requires the device to compare whether the key value association between the two data tables exists. Finally, the audit result is output. According to the specified fields and content, the audit result report is output to identify the problem data. For details, please refer to Figure 3 .
[0068] In the specific implementation, the device will automatically audit and compare the data to be audited that are assigned to each data processing node, obtain the audit results output by each data processing node, and finally integrate the audit results output by all data processing nodes to obtain a summary data table of the data to be audited.
[0069] In a specific implementation, the device performs automatic audit comparison on the split data to be audited through the data processing node, and the method for obtaining a summary data table of the data to be audited also includes the following steps:
[0070] Based on the preset field definition rules, the device automatically audits and compares the row data and the column data through each data processing node to obtain the audit results of each data processing node; the audit results of each data processing node are integrated to obtain a summary data table of the data to be audited.
[0071] It should be noted that the field definition rules are similarity definition rules set based on the characters or fields involved in the data to be audited. Each data processing node audits and compares the same type of data between different platforms or systems based on the preset field definition rules to obtain the audit results output by each data processing node, where the audit results include data consistency between different platforms or systems.
[0072] In a specific implementation, the device uses multi-threading or multi-process technology on each data processing node to merge column data with row data to form a complete data record. The device processing process uses a distributed computing framework, such as ApacheHadoop or Apache Spark. These frameworks can split large data sets into smaller parts and process them on multiple computing nodes to improve processing speed and efficiency. Specifically, in the distributed computing framework, the MapReduce model is adopted and optimized to achieve row and column data separation. The MapReduce model includes a Map phase, a Shuffle phase, and a Reduce phase. The specific steps are as follows:
[0073] 1. Map phase: The collected large data set is divided into multiple small blocks according to similarity, and each small block is assigned to a Map task. The data processing node performs logical processing on it and executes the Map function written for the multi-cloud management scenario. The input of the Map function is a row of the data set, and the output is the data of each column after the row of data is split according to the delimiter specified by the similarity. The data processing node processes the data by continuously calling the map method, and the key-value pair output in the end is<key,value> At the same time, the partition to which each piece of data belongs is calculated based on the value of the key, and a logical identifier is added, where the logical identifier determines the data is assigned to a certain reduce;
[0074] 2. Shuffle phase: The shuffle process is included in both map and reduce ends. The shuffle on the map end will sort the data to obtain an ordered file. The file is sorted by partition, and the key-value pairs in each partition are sorted in ascending order according to the key value. The shuffle on the reduce end will pull the data belonging to its own partition and perform a merge sort.
[0075] 3. Reduce phase: Sort and merge the key-value pairs output by the Map phase according to the key. For each identical key, merge all corresponding values into a list as the value corresponding to the key. The output key-value pairs are<key,[value1,value2,...]> , and finally output the data analysis results of the third-party platform required by the business.
[0076] Furthermore, to ensure the quality and consistency of the data, the device will clean, convert, and process the merged data records, and store the processed data in a distributed file system or database for subsequent data analysis and application.
[0077] In a specific implementation, the device performs automatic audit comparison on the row data and the column data through each data processing node based on a preset field definition rule, and the method for obtaining the audit result of each data processing node also includes the following steps:
[0078] The device calculates similarity of the row data based on preset field definition rules through each data processing node to obtain similarity results of the row data; divides the data into multiple data blocks to be audited and compared based on the similarity results; and audits and compares the column data under the data blocks to obtain audit results of each data processing node.
[0079] In a specific implementation, the row data includes field information of the data to be audited, and the column data corresponding to the row data includes attribute information of the data to be audited. The device calculates similarity on the row data based on preset field definition rules through each data processing node, and divides the row data between different platforms or systems whose similarity exceeds a preset similarity threshold into data blocks. Finally, the device audits and compares the column data corresponding to the row data under each data block, and obtains the audit results output by each data processing node by comparing the attribute information of the data to be audited between the column data.
[0080] In the specific implementation, this application is based on a distributed data collection cluster, and performs row and column splitting operations on large tables formed by big data and high-concurrency business scenarios of multi-cloud management platforms. A task job is split into multiple subtasks, and each subtask is assigned to multiple node machines in the cluster to run. Finally, the data is aggregated and processed to solve the problem of low data audit efficiency caused by the need for manual data import and location of problem sources in related technologies.
[0081] This application splits the audited data collected in real time and distributes it to a preset number of data processing nodes. Then, through the parallel computing capabilities of each data processing node, the split data to be audited is automatically audited and compared, thereby realizing real-time automated data auditing to meet the needs of data collection and auditing in big data high-frequency writing scenarios. There is no need for manual data import and problem source location, thereby improving the efficiency of data auditing.
[0082] Based on the above first embodiment, the present application also provides another embodiment, referring to Figure 4 and Figure 5 , the real-time data audit method comprises:
[0083] After the device performs the step of automatically auditing and comparing the split data to be audited through the data processing node to obtain a summary data table of the data to be audited, the method includes:
[0084] Step A100, determining the data to be corrected based on the summary data table;
[0085] It should be noted that the data to be corrected refers to the data in the summary data table that has inconsistencies, wherein the data to be corrected has been identified when the device performs data audit and outputs the summary data table, and data extraction of the data to be corrected is required in this part.
[0086] Specifically, in the application scenarios of the present application, situations in which data to be corrected appear include but are not limited to the following: 1. There is data on the customer-side business application platform, but there is no data on the cloud management platform and the cloud service provider's cloud platform; 2. There is data on the customer-side business application platform and the cloud management platform, but there is no data on the cloud service provider's cloud platform; 3. There is no data on the customer-side business application platform and the cloud management platform, but there is data on the cloud service provider's cloud platform.
[0087] Among them, the reason for the first situation above is usually because there is a problem with the data interface call between the cloud management platform and the business application platform; the reason for the second situation is because there is a problem with the data interface call between the cloud management platform and the cloud service provider's cloud platform; the third situation is because someone privately opened data on the cloud service provider's cloud platform offline and did not go through the formal business application process.
[0088] Step A200, obtaining a correction rule group;
[0089] It should be noted that the correction rule group is a collection of set revision rules, including rules for each required data correction situation. Specifically, after the data analysis results are output, it is necessary to automatically correct the data that deviates in the results to ensure the consistency of the data on the third-party platform. The core of data correction is the rule engine. It is necessary to preset audit rules for all reasons that may cause data deviations on the third-party platform and trigger correction operations. Therefore, the device is equipped with a customizable audit rule module, which automatically corrects data according to the audit rules. At the same time, it supports the output of audit reports to display the discovered and corrected data problems in an intuitive and explicit manner. In this way, the present application can effectively solve the problems of slow data auditing speed, high time and labor costs of existing solutions.
[0090] In a specific implementation, the method for the device to obtain the correction rule group also includes the following steps:
[0091] The device obtains business requirements, wherein the business requirements include business scenarios; determines a data correction type based on the business requirements; generates correction rules corresponding to the data correction type, and forms a corresponding correction rule group based on the correction rules, wherein the correction rules conform to the business scenarios.
[0092] In a specific implementation, the correction rule group may be generated by the device according to business requirements including business scenarios, so that the correction rules conform to the business scenarios and finally form a corresponding correction rule group.
[0093] In the specific implementation, the generation of correction rules mainly includes the following steps:
[0094] 1. The device determines the goals and requirements of the correction rules: Before starting the rule correction, it is necessary to clarify the goals and requirements of the correction rules. This includes understanding business needs, determining the types of errors that need to be corrected and the scope of application of the correction rules. The correction scope of the multi-cloud management platform includes data collected by third-party platforms;
[0095] 2. Collect data and samples: Collect the data and samples that need to be corrected, understand the characteristics and distribution of the data, so as to better formulate correction rules. The data samples here are the results of the above data analysis;
[0096] 3. Analyze the error type and cause: Conduct in-depth analysis on the collected error data to determine the error type and cause. The cause is the data deviation scenario on the third-party platform;
[0097] 4. Specific scenarios are divided into the following categories: 1. The customer-side business application platform has data, but the cloud management platform and the cloud service provider's cloud platform have no data: 2. The customer-side business application platform and the cloud management platform have data, but the cloud service provider's cloud platform has no data: 3. The customer-side business application platform and the cloud management platform have no data, but the cloud service provider's cloud platform has data:
[0098] 5. Formulate correction rules: According to the error type and cause, formulate corresponding correction rules. These rules can effectively identify and correct erroneous data and are easy to understand and apply;
[0099] 6. Testing and Correction Rules: Before applying the correction rules, sufficient testing and verification will be carried out to ensure the accuracy and reliability of the rules. If it is found that the rules cannot effectively correct the errors, they will be corrected and adjusted according to the test results;
[0100] 7. Apply and feedback correction results: Apply the correction rules to the actual data, and monitor and evaluate the correction results. If errors are still found, further corrections and adjustments will be made based on the feedback results.
[0101] In short, the top-level idea of rule correction in the multi-cloud management platform is to start from business needs, analyze error types and causes, formulate effective correction rules, test, apply and feedback correction results, and continuously optimize and improve correction rules to improve data quality and accuracy.
[0102] Refer to the following table 1 for the audit rules and diagrams of key fields:
[0103] Table 1
[0104]
[0105]
[0106] Step A300: Based on the correction rule group, automatically correct the data to be corrected to obtain a correction result.
[0107] In a specific implementation, the device performs automatic correction on the data to be corrected based on the correction rule group, and the method for obtaining the correction result further includes the following steps:
[0108] The device splits the correction rule group into a preset second number of correction rules; distributes the correction rules to the data processing nodes under the distributed data acquisition cluster, and performs automated correction on the data to be corrected in parallel through each of the data processing nodes and the correction rules under each of the data processing nodes to obtain a correction result, wherein each of the data processing nodes includes at least one correction rule.
[0109] In the specific implementation, this application targets big data and high-concurrency business scenarios. The device first decomposes the data audit rules themselves, distributes the audit tasks to multiple nodes to run, forms multiple PE tasks that can be processed in parallel, and pushes the audit results to subsequent nodes after forming them, finally realizing real-time automatic data correction. Specifically, the implementation steps include:
[0110] 1. Define the rule interface: define the rule interface, including rule name, rule conditions, rule actions, etc.;
[0111] 2. Implement rule implementation: Implement specific rule implementations based on the rule interface. Each rule implementation needs to implement the methods in the rule interface, including rule conditions and rule actions;
[0112] 3. Implement rule groups: combine multiple rule implementations into a rule group to implement more complex rule logic;
[0113] 4. Implement the rule engine: Implement the rule engine, which is responsible for loading the rule group, executing the rules in the rule group, etc.
[0114] 5. Realize data input and output: Realize data input and output, including obtaining data from external data sources, outputting execution results to external systems, etc.
[0115] In the specific implementation, the above steps realize the rule interface, rule implementation, rule group and rule engine. In the rule engine, multiple rule groups are loaded, and the function of executing all rule groups is realized. During the execution process, each rule in each rule group will be executed, and if the conditions are met, the corresponding action will be executed. In this way, the device can generate different rules according to business needs, and execute these rules through the rule engine to realize the automation of data correction.
[0116] To summarize, this application provides an automated data collection and integration process, configures the data collection and adaptation process of data auditing into an automated process, realizes real-time collection, and at the same time innovates data integration methods, improves data integration efficiency, meets data collection needs in high-frequency writing scenarios of big data, improves collection efficiency, and can serve cross-resource pool, heterogeneous, and multi-node business scenarios.
[0117] Furthermore, this application also proposes that the automated data correction module configures a customizable audit rule module to set audit rules that meet the big data and high concurrency scenarios of the multi-cloud management platform, and automatically corrects the data according to the audit rules, while outputting audit reports to display the data problems that have been discovered and corrected. This effectively solves the problems of slow data auditing speed, high time and labor costs of existing solutions, and achieves the purpose of reducing costs and increasing efficiency and ensuring real-time data accuracy.
[0118] The present application also provides a real-time data auditing device, referring to Figure 6 , the real-time data auditing device comprises:
[0119] The collection module 10 is used to collect the data to be audited in real time;
[0120] A splitting module 20 is used to split the data to be audited to obtain split data to be audited, and distribute the split data to be audited to a preset number of data processing nodes;
[0121] The audit module 30 is used to perform automatic audit comparison on the split data to be audited through the data processing nodes to obtain a summary data table of the data to be audited, wherein the summary data table integrates the audit results of each data processing node.
[0122] Optionally, the splitting module 20 includes:
[0123] A row and column data splitting module is used to split the data to be audited based on a preset distributed data collection cluster to obtain row data and column data, wherein the row data includes field information of the data to be audited, and the column data includes attribute information of the data to be audited;
[0124] An allocation module is used to divide the row data and the column data into a preset first number of subtasks, and allocate the subtasks to the corresponding first number of data processing nodes under the distributed data acquisition cluster.
[0125] Optionally, the audit module 30 includes:
[0126] An audit comparison module, used to automatically audit and compare the row data and the column data through each data processing node based on a preset field definition rule to obtain an audit result of each data processing node;
[0127] The integration module is used to integrate the audit results of each data processing node to obtain a summary data table of the data to be audited.
[0128] Optionally, the audit comparison module includes:
[0129] A similarity calculation module, configured to perform similarity calculation on the row data through each of the data processing nodes based on a preset field definition rule to obtain a similarity result of the row data;
[0130] A division module, used for dividing a plurality of data blocks to be audited and compared based on the similarity result;
[0131] The column data audit module is used to audit and compare the column data under the data block to obtain the audit results of each data processing node.
[0132] Optionally, the real-time data auditing device further includes:
[0133] A determination module, used for determining the data to be corrected based on the summary data table;
[0134] An acquisition module, used for acquiring a correction rule group;
[0135] The correction module is used to perform automatic correction on the data to be corrected based on the correction rule group to obtain a correction result.
[0136] Optionally, the correction module includes:
[0137] A rule group splitting module, used for splitting the correction rule group into a preset second number of correction rules;
[0138] A distributed correction module is used to distribute the correction rules to the data processing nodes under the distributed data acquisition cluster, and to perform automated correction on the data to be corrected in parallel through each of the data processing nodes and the correction rules under each of the data processing nodes to obtain a correction result, wherein each of the data processing nodes includes at least one correction rule.
[0139] Optionally, the acquisition module includes:
[0140] A demand acquisition module, used to acquire business requirements, wherein the business requirements include business scenarios;
[0141] A correction type determination module, used to determine the data correction type based on the business requirements;
[0142] A generation module is used to generate correction rules corresponding to the data correction type, and form a corresponding correction rule group based on the correction rules, wherein the correction rules conform to the business scenario.
[0143] Reference Figure 7 , Figure 7 It is a schematic diagram of the terminal structure of the hardware operating environment involved in the embodiment of the present application.
[0144] like Figure 7 As shown, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, and a communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. The user interface 1003 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. The memory 1005 may also be a storage device independent of the aforementioned processor 1001.
[0145] Optionally, the real-time data audit device may also include a rectangular user interface, a network interface, a camera, an RF (Radio Frequency) circuit, a sensor, an audio circuit, a WiFi module, etc. The rectangular user interface may include a display screen (Display), an input submodule such as a keyboard (Keyboard), and the optional rectangular user interface may also include a standard wired interface and a wireless interface. The network interface may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface).
[0146] Those skilled in the art will understand that Figure 6 The real-time data auditing device structure shown in the figure does not constitute a limitation on the real-time data auditing device, and may include more or less components than shown in the figure, or a combination of certain components, or a different arrangement of components.
[0147] like Figure 7 As shown, the memory 1005 as a storage medium may include an operating system, a network communication module and a real-time data audit program. The operating system is a program that manages and controls the hardware and software resources of the real-time data audit device, and supports the operation of the real-time data audit program and other software and / or programs. The network communication module is used to realize the communication between the components inside the memory 1005, and the communication with other hardware and software in the real-time data audit system.
[0148] exist Figure 7 In the real-time data auditing device shown, the processor 1001 is used to execute the real-time data auditing program stored in the memory 1005 to implement the steps of any of the above-mentioned real-time data auditing methods.
[0149] The specific implementation of the real-time data auditing device of the present application is basically the same as the above-mentioned embodiments of the real-time data auditing method, and will not be repeated here.
[0150] The present application also provides a storage medium, on which a program for implementing the real-time data auditing method is stored, and the program for implementing the real-time data auditing method is executed by a processor to implement the real-time data auditing method as described below:
[0151] Collect data to be audited in real time;
[0152] Splitting the data to be audited to obtain split data to be audited, and allocating the split data to be audited to a preset number of data processing nodes;
[0153] The data processing nodes are used to automatically audit and compare the split data to be audited, so as to obtain a summary data table of the data to be audited, wherein the summary data table integrates the audit results of each data processing node.
[0154] Optionally, the step of splitting the data to be audited to obtain split data to be audited, and allocating the split data to be audited to a preset number of data processing nodes includes:
[0155] Based on a preset distributed data collection cluster, the data to be audited is split to obtain row data and column data, wherein the row data includes field information of the data to be audited, and the column data includes attribute information of the data to be audited;
[0156] The row data and the column data are divided into a preset first number of subtasks, and the subtasks are allocated to the first number of data processing nodes corresponding to the distributed data acquisition cluster.
[0157] Optionally, the step of performing automated audit comparison on the split data to be audited through the data processing node to obtain a summary data table of the data to be audited includes:
[0158] Based on the preset field definition rules, the row data and the column data are automatically audited and compared through each of the data processing nodes to obtain the audit results of each of the data processing nodes;
[0159] The audit results of each data processing node are integrated to obtain a summary data table of the data to be audited.
[0160] Optionally, the step of automatically auditing and comparing the row data and the column data through each data processing node based on a preset field definition rule to obtain an audit result of each data processing node includes:
[0161] Based on a preset field definition rule, through each of the data processing nodes, similarity calculation is performed on the row data to obtain a similarity result of the row data;
[0162] Based on the similarity result, divide the data blocks to be audited and compared into multiple blocks;
[0163] The column data under the data block is audited and compared to obtain the audit results of each data processing node.
[0164] Optionally, after the step of performing automated audit comparison on the split data to be audited through the data processing node to obtain a summary data table of the data to be audited, the method includes:
[0165] Based on the summary data table, determining the data to be corrected;
[0166] Get the correction rule group;
[0167] Based on the correction rule group, automatic correction is performed on the data to be corrected to obtain a correction result.
[0168] Optionally, the step of performing automatic correction on the data to be corrected based on the correction rule group to obtain a correction result includes:
[0169] splitting the correction rule group into a preset second number of correction rules;
[0170] The correction rules are distributed to the data processing nodes under the distributed data acquisition cluster, and the data to be corrected are automatically corrected in parallel through each of the data processing nodes and the correction rules under each of the data processing nodes to obtain a correction result, wherein each of the data processing nodes includes at least one correction rule.
[0171] Optionally, the step of obtaining the correction rule group includes:
[0172] Acquire business requirements, wherein the business requirements include business scenarios;
[0173] Based on the business requirements, determine the data correction type;
[0174] Generate correction rules corresponding to the data correction type, and form a corresponding correction rule group based on the correction rules, wherein the correction rules conform to the business scenario.
[0175] The specific implementation method of the storage medium of the present application is basically the same as the above-mentioned embodiments of the real-time data audit method, and will not be repeated here.
[0176] The present application also provides a computer program product, including a computer program, which implements the steps of the above-mentioned real-time data auditing method when executed by a processor.
[0177] The specific implementation of the computer program product of the present application is basically the same as the above-mentioned embodiments of the real-time data audit method, and will not be repeated here.
[0178] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0179] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0180] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0181] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A real-time data audit method, characterized in that: The real-time data audit method comprises: Collect data to be audited in real time; Splitting the data to be audited to obtain split data to be audited, and allocating the split data to be audited to a preset number of data processing nodes; The data processing nodes are used to automatically audit and compare the split data to be audited, so as to obtain a summary data table of the data to be audited, wherein the summary data table integrates the audit results of each data processing node.
2. The real-time data audit method according to claim 1, characterized in that: The step of splitting the data to be audited to obtain the split data to be audited, and distributing the split data to be audited to a preset number of data processing nodes includes: Based on a preset distributed data collection cluster, the data to be audited is split to obtain row data and column data, wherein the row data includes field information of the data to be audited, and the column data includes attribute information of the data to be audited; The row data and the column data are divided into a preset first number of subtasks, and the subtasks are allocated to the first number of data processing nodes corresponding to the distributed data acquisition cluster.
3. The real-time data audit method according to claim 2, characterized in that: The step of automatically auditing and comparing the split data to be audited through the data processing node to obtain a summary data table of the data to be audited includes: Based on the preset field definition rules, the row data and the column data are automatically audited and compared through each of the data processing nodes to obtain the audit results of each of the data processing nodes; The audit results of each data processing node are integrated to obtain a summary data table of the data to be audited.
4. The real-time data audit method according to claim 3, characterized in that: The step of automatically auditing and comparing the row data and the column data through each data processing node based on the preset field definition rule to obtain the audit result of each data processing node includes: Based on a preset field definition rule, through each of the data processing nodes, similarity calculation is performed on the row data to obtain a similarity result of the row data; Based on the similarity result, divide the data blocks to be audited and compared into multiple blocks; The column data under the data block is audited and compared to obtain the audit results of each data processing node.
5. The real-time data audit method according to claim 1, characterized in that: After the step of automatically auditing and comparing the split data to be audited by the data processing node to obtain a summary data table of the data to be audited, the method includes: Based on the summary data table, determining the data to be corrected; Get the correction rule group; Based on the correction rule group, automatic correction is performed on the data to be corrected to obtain a correction result.
6. The real-time data audit method according to claim 5, characterized in that: The step of performing automatic correction on the data to be corrected based on the correction rule group to obtain a correction result includes: splitting the correction rule group into a preset second number of correction rules; The correction rules are distributed to the data processing nodes under the distributed data acquisition cluster, and the data to be corrected are automatically corrected in parallel through each of the data processing nodes and the correction rules under each of the data processing nodes to obtain a correction result, wherein each of the data processing nodes includes at least one correction rule.
7. A real-time data auditing device, characterized in that: The real-time data auditing device comprises: The collection module is used to collect the data to be audited in real time; A splitting module is used to split the data to be audited to obtain the split data to be audited, and distribute the split data to be audited to a preset number of data processing nodes; The audit module is used to perform automatic audit comparison on the split data to be audited through the data processing nodes to obtain a summary data table of the data to be audited, wherein the summary data table integrates the audit results of each data processing node.
8. A real-time data auditing device, characterized in that: The real-time data auditing device comprises: a memory, a processor and a program stored in the memory for implementing the real-time data auditing method. The memory is used to store a program for implementing a real-time data audit method; The processor is used to execute a program for implementing the real-time data auditing method to implement the steps of the real-time data auditing method as claimed in any one of claims 1 to 6.
9. A storage medium, characterized in that: The storage medium stores a program for implementing the real-time data auditing method, and the program for implementing the real-time data auditing method is executed by a processor to implement the steps of the real-time data auditing method as described in any one of claims 1 to 6.
10. A computer program product, characterized in that The computer program product comprises a real-time data auditing program, and when the real-time data auditing program is executed by a processor, the steps of the real-time data auditing method according to any one of claims 1 to 6 are implemented.
