Canvas-style log analysis method based on big data stream processing framework

Through the canvas-based log analysis method based on the big data stream processing framework, users can form workflows and generate distributed programs through drag-and-drop operations, solving the problems of complex log analysis operations and insufficient reliability in the existing technology, and achieving simplified operations. and improve efficiency.

CN113806429BActive Publication Date: 2024-10-11SANGFOR TECH INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010533924.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-06-11
Publication Date
2024-10-11
Estimated Expiration
2040-06-11

AI Technical Summary

Technical Problem

The existing big data stream processing platform is complex to operate, cannot guarantee reliability and stability when performing log analysis, and is difficult to maintain. It is especially difficult to use for business personnel without a big data foundation.

Method used

By providing a canvas-based log analysis method based on the big data stream processing framework, users can obtain operators through drag and drop operations, form workflows and convert them into Json format files, generate distributed programs run by executors, and implement analysis of log data. , simplifying the operation process.

Benefits of technology

The big data stream processing framework log analysis operation is simple and efficient, avoiding the need to write code and improving the reliability and stability of log analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113806429B_ABST
    Figure CN113806429B_ABST
Patent Text Reader

Abstract

The present application discloses a canvas-style log analysis method, system and storage medium based on a big data stream processing framework, wherein the canvas-style log analysis method based on the big data stream processing framework includes: obtaining operators of the canvas working area according to the user's dragging operation on the canvas; forming a workflow of log analysis according to the operator; converting the workflow into a corresponding Json format file; generating a distributed program running on an executor from the Json format file, so that the executor executes the distributed program to analyze the log data. The problem of complex operation, unreliable reliability and stability, and difficult maintenance when using an open source program of a big data stream processing framework for log analysis in the prior art is solved, and the operation of log analysis of a big data stream processing framework is simple and efficient.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of big data technology, and in particular to a canvas-style log analysis method based on a big data stream processing framework. Background Art

[0002] With the rapid development of Internet technology, the data generated is also growing explosively. How to make good use of these big data for production and other arrangements is of great significance to enterprises.

[0003] At present, big data stream processing platforms can be used to process data in the production process of enterprises and realize the analysis of streaming data. However, the current big data stream processing platform mainly analyzes data through the component operation process of the open source system. The operation is relatively complex and requires understanding of its framework and principles. It is difficult for business personnel who do not have a big data foundation to use it. Summary of the invention

[0004] The embodiments of the present application provide a canvas-style log analysis method, system and storage medium based on a big data stream processing framework, aiming to solve the problems in the prior art of using open source programs of a big data stream processing platform for log analysis, such as complex operation, lack of reliability and stability, and difficult maintenance, thereby achieving the effect of simple and efficient operation of log analysis in a big data stream processing framework.

[0005] To achieve the above objectives, the present application provides a canvas log analysis method based on a large data stream processing framework, and the canvas log analysis method based on the large data stream processing framework comprises the following steps:

[0006] Obtain the operator of the canvas working area based on the user's drag operation on the canvas;

[0007] Forming a workflow for log analysis according to the operator;

[0008] Convert the workflow into a corresponding Json format file;

[0009] The Json format file is generated into a distributed program running on the executor, so that the executor executes the distributed program to analyze the log data.

[0010] Optionally, the step of generating a distributed program running on an executor from the Json format file includes:

[0011] Convert the Json format file into a DSL description file;

[0012] Generate a corresponding job flow diagram according to the DSL description file;

[0013] A distributed program to be run by an executor is generated according to the job flow graph.

[0014] Optionally, before the step of generating a distributed program to be run by an executor according to the job flow graph, the following steps are included:

[0015] Operator integration, verification, and rule matching operations are performed on the job flow graph.

[0016] Optionally, before the step of generating a distributed program to be run by an executor according to the job flow graph, the following steps are included:

[0017] Construct the execution environment according to the type of job flow diagram and set parameter configuration.

[0018] Optionally, the step of constructing the execution environment according to the type of the job flow graph includes:

[0019] Determine the type of the job flow graph according to the source operators included in the job flow graph;

[0020] If the type of the job flow graph is a batch processing type, constructing an execution environment corresponding to the batch processing;

[0021] If the type of the job flow graph is a stream processing type, an execution environment corresponding to the stream processing is constructed.

[0022] Optionally, after the step of constructing the execution environment according to the type of the job flow graph and setting parameter configuration, the following steps are included:

[0023] Collect data for parameter configuration;

[0024] The data is formatted and field manipulated.

[0025] Optionally, after the step of acquiring the operator of the canvas working area according to the dragging operation of the user in the canvas, the method further comprises:

[0026] If the operator includes a custom operator;

[0027] Get the jar dependency file corresponding to the custom operator;

[0028] Store the jar dependency file and write the storage path into a Json file.

[0029] In addition, in order to achieve the above-mentioned purpose, the present application also provides a canvas log analysis system based on a big data stream processing framework, characterized in that the system includes a canvas log analysis terminal based on a big data stream processing framework; wherein,

[0030] The canvas-type log analysis terminal based on the big data stream processing framework includes a memory, a processor, and a canvas-type log analysis program based on the big data stream processing framework stored in the memory and executable on the processor. When the canvas-type log analysis program based on the big data stream processing framework is executed by the processor, the following steps are implemented:

[0031] Obtain the operator of the canvas working area based on the user's drag operation on the canvas;

[0032] Forming a workflow for log analysis according to the operator;

[0033] Convert the workflow into a corresponding Json format file;

[0034] The Json format file is generated into a distributed program running on the executor, so that the executor executes the distributed program to analyze the log data.

[0035] In addition, in order to achieve the above purpose, the present application also provides a canvas log analysis device based on a large data stream processing framework, characterized in that the device includes:

[0036] The acquisition module acquires the operators in the canvas working area according to the user's dragging operation on the canvas;

[0037] The engine module converts the workflow into a corresponding Json format file;

[0038] The executor module generates a distributed program running on the executor from the Json format file, so that the executor executes the distributed program to analyze the log data.

[0039] In addition, in order to achieve the above-mentioned purpose, the present application also provides a computer-readable storage medium, characterized in that a canvas-style log analysis program based on a large data stream processing framework is stored on the storage medium, and the canvas-style log analysis program based on the large data stream processing framework implements any of the methods described above when executed by a processor.

[0040] In this embodiment, the operator of the canvas working area is obtained according to the user's dragging operation on the canvas, a workflow of log analysis is formed according to the operator, and the workflow is converted into a corresponding Json format file; the Json format file is used to generate a distributed program running on the executor, so that the executor executes the distributed program to analyze the log data. Log analysis is completed by dragging the operator of the canvas to the working area of ​​the canvas. There is no need to write code through the big data stream processing program, and there is no need to learn and understand its framework and its principles to achieve canvas-based log analysis based on the big data stream processing framework, which achieves the effect of simplifying the operation of big data log analysis. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 A schematic diagram of the terminal structure of the hardware operating environment involved in the embodiment of the present application;

[0042] Figure 2 This is a flowchart of an embodiment of a canvas-style log analysis method based on a large data stream processing framework of the present application;

[0043] Figure 3 This is a flowchart of another embodiment of the canvas-type log analysis method based on a large data stream processing framework of the present application;

[0044] Figure 4 This is a flowchart of another embodiment of the canvas-style log analysis method based on a large data stream processing framework of the present application;

[0045] Figure 5 A flowchart of constructing an execution environment for this application according to the type of job flow diagram;

[0046] Figure 6 A flowchart of the steps after constructing the execution environment and setting parameter configuration for this application according to the type of the job flow diagram;

[0047] Figure 7 This is a flow chart of another embodiment of the canvas-style log analysis method based on a large data stream processing framework of the present application. DETAILED DESCRIPTION

[0048] 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.

[0049] The main solution of the embodiment of the present application is: according to the user's drag operation on the canvas, the operator of the canvas work area is obtained; according to the operator, a workflow for log analysis is formed; the workflow is converted into a corresponding Json format file; the Json format file is used to generate a distributed program running on the executor, so that the executor executes the distributed program to analyze the log data. . Since the prior art uses a big data stream processing platform for log analysis, the import of data sources, data processing, and analysis results are all implemented by writing code in the big data stream processing platform. The log analysis implemented in this way has the problems of complex operation, reliability and stability cannot be guaranteed, and maintenance is difficult. Therefore, the present application drags the encapsulated big data stream processing framework operator to the canvas work area to construct a distributed program that can be run on the executor, so as to realize the log analysis based on the big data stream processing framework without writing code on the big data stream processing platform, and achieves the effect of simple and efficient operation of the log analysis of the big data stream processing framework.

[0050] like Figure 1As shown, Figure 1 It is a schematic diagram of the terminal structure of the hardware operating environment involved in the embodiment of the present application.

[0051] like Figure 1 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.

[0052] Optionally, the terminal may also include a camera, an RF (Radio Frequency) circuit, a sensor, a TV 1006, an audio circuit, a WiFi module, a detector, etc. Of course, the terminal may also be configured with other sensors such as a gyroscope, a barometer, a hygrometer, a temperature sensor, etc., which will not be described in detail here.

[0053] Those skilled in the art will understand that Figure 1 The terminal structure shown in the figure does not constitute a limitation on the terminal device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0054] like Figure 1 As shown, the memory 1005 as a computer-readable storage medium may include an operating system, a network communication module, a user interface module, and a canvas log analysis program based on a large data stream processing framework.

[0055] exist Figure 1 In the terminal shown, the network interface 1004 is mainly used to connect to the backend server and communicate data with the backend server; the user interface 1003 is mainly used to connect to the client (user end) and communicate data with the client; and the processor 1001 can be used to call the canvas log analysis program based on the large data stream processing framework stored in the memory 1005, and perform the following operations:

[0056] Obtain the operator of the canvas working area based on the user's drag operation on the canvas;

[0057] Forming a workflow for log analysis according to the operator;

[0058] Convert the workflow into a corresponding Json format file;

[0059] The Json format file is generated into a distributed program running on the executor, so that the executor executes the distributed program to analyze the log data.

[0060] refer to Figure 2 , Figure 2 This is a flow chart of an embodiment of a canvas-based log analysis method based on a large data stream processing framework of the present application. The canvas-based log analysis method based on a large data stream processing framework includes:

[0061] Step S10, obtaining an operator of the canvas working area according to the user's dragging operation on the canvas;

[0062] Step S20, forming a workflow of log analysis according to the operator;

[0063] The canvas is the operating interface of the canvas log analysis system based on the big data stream processing framework of this application. Its design can be divided into upper and lower parts, wherein the encapsulated big data stream processing framework operator is designed as the basic operator at the upper end of the interface, and the lower part is the canvas work area. The user selects the operator corresponding to the log analysis by clicking the mouse and drags it to the work area of ​​the canvas. It is understandable that the design of the canvas can be selected by the operator according to actual needs. The acquisition is to obtain the operator of the work area by setting the program inside the system. The types of the operators include source operators (Kafka source operators), processing operators (analysis rule operators, association rule operators, big data stream processing framework SQL operators, Union operators), destination operators (search engine destination operators, Kafka destination operators) and custom operators (Async operation operators). When log analysis is performed by dragging data in the canvas, different types of operators need to be used to complete the analysis of the log.

[0064] Users need to connect different types of operators in the order of execution according to the log analysis work that needs to be processed to form a corresponding workflow.

[0065] Step S30, converting the workflow into a corresponding Json format file;

[0066] The Json format file is a data exchange format file that can be easily parsed and generated by a computer. Its grammatical form includes Json objects, Json arrays, and Json nesting. In the canvas-type log analysis method system based on the big data stream processing framework, the workflow formed by connecting operators in the working area of ​​the canvas is converted into a Json format file corresponding to it.

[0067] Step S40, generating a distributed program running on the executor from the Json format file, so that the executor executes the distributed program to analyze the log data.

[0068] After generating the Json format file, the system passes the Json format file to the engine layer, and the engine layer further processes the Json format file to generate a distributed program that can be run on the executor.

[0069] In this application, the Flink stream data processing platform is taken as an example. When the user uses the log analysis system for data analysis, the Flink source operator that has been encapsulated in the system can be dragged into the canvas to import the required data into Flink, and then the corresponding processing operator can be dragged from the control bar of the system according to the analysis operation performed on the data as needed. Generally, when the data source of the data is obtained from the outside, the external data can be imported into Flink by dragging the source operator. Then, the data is transformed by dragging the processing operator (transformation), and the transformed data is written to the external data source through the destination operator. It is worth noting that a Flink Job is usually composed of a source operator, a processing operator and a destination operator, that is, in this application, the process of importing, analyzing and storing the analysis results of the stream data is realized by dragging three operators. Among them, the processing operator can contain multiple ones, and the flow direction of the data can be determined according to the execution order of the operator.

[0070] In this embodiment, when the system detects that the user drags an operator, the operator in the canvas work area and the connection mode between the operators are obtained, and the workflow of the log analysis to be executed is initially formed according to the operator and the connection mode between the operators, and the workflow is converted into a computer description language Json format file, and then a distributed program that can be run on the executor is generated according to the Json format file, so that the executor completes the log analysis. The user can analyze the log by dragging the encapsulated operator on the canvas, and the log analysis can be completed without writing program code in the big data stream processing platform, achieving the effect of simple and efficient operation of log analysis in the big data stream processing framework.

[0071] Reference Figure 3 , Figure 3 In another embodiment of the present application, the step of generating a distributed program running on an executor from the Json format file includes:

[0072] Step S41, converting the Json format file into a DSL description file;

[0073] Step S42, generating a corresponding operation flow diagram according to the DSL description file;

[0074] Step S43: generating a distributed program to be run by an executor according to the workflow diagram.

[0075] The DSL is a language that describes objects, rules, and operating modes in a specific field. For example, when there is an SQL statement in Json, the SQL statement will eventually be handed over to the corresponding database for processing. The database reads useful messages from the SQL statement and returns the corresponding results. By converting the Json format file into a DSL description, a job flow graph is generated during the execution process, and the corresponding distributed program running on the executor is generated according to the job flow graph. The job flow graph is a data structure that represents the job and is recognized by the data flow engine of the large data stream processing framework.

[0076] Before the step of generating a distributed program for execution by an executor according to the job flow graph, the method includes:

[0077] Step S44, performing operator integration, verification, and rule matching operations on the workflow graph.

[0078] It is understandable that there will be repeated operators (multiple source operators) in the workflow graph generated by DSL language, and further analysis and optimization of the workflow graph is required, wherein the analysis and optimization include operations such as operator integration, verification, and rule matching on the workflow graph. For example, when a user needs to analyze data from multiple logs, drag multiple Kafka source operators to import the corresponding log data respectively. When processing data, if the processing operators used are the same (performing the same operation), only one command corresponding to one operator can be selected to implement data analysis, avoiding unreasonable resource allocation caused by repeated operations.

[0079] In this embodiment, when there are multiple data sources, i.e. repeated operator nodes, in the workflow graph, it is analyzed whether the operators are the same data source and further optimized to avoid repeated execution of the same operation instructions in the executor and reduce the speed of the system's log analysis.

[0080] Reference Figure 4 , Figure 4 This is another flow chart of an embodiment of the present application. Before the steps of performing operator integration, verification, and rule matching operations on the workflow graph, the following steps are included:

[0081] Step S45, constructing an execution environment according to the type of the job flow graph and setting parameter configuration.

[0082] In this embodiment, there are two types of job flow graphs generated according to the DSL description, namely, job flow graphs corresponding to stream processing jobs and job flow graphs corresponding to batch processing jobs. Job configuration parameters are set according to the two different types of job flow graphs.

[0083] Reference Figure 5 The step of constructing the execution environment according to the type of the job flow graph includes:

[0084] Step S451, determining the type of the workflow graph according to the source operators included in the workflow graph;

[0085] Step S452, if the type of the workflow diagram is a batch processing type, constructing an execution environment corresponding to the batch processing;

[0086] Step S453: If the type of the job flow graph is a stream processing type, then construct an execution environment corresponding to the stream processing.

[0087] Batch processing jobs are log data with boundaries, while stream processing jobs are log data with no boundaries. It is understandable that batch processing can be performed one by one in sequence or in parallel for a series of related tasks. For example, every year, NetEase Cloud Music stores the records of songs that users have listened to in the past year as the data source for batch processing, and obtains a set of data about user usage as data output after analysis and calculation. Stream processing, on the other hand, is a series of continuously changing data, and its characteristic is that the data source is dynamic, and log analysis needs to be performed in real time based on the data source, such as real-time recommendation.

[0088] In this application, the type of data flow graph to be processed is determined according to the type of source operator contained in the job flow graph, and then the engine is controlled to build the corresponding execution environment, and then the configuration parameters of the job are set. By traversing the entire pipeline, the operator API encapsulation and schema transmission and conversion are completed, and finally submitted to the distributed engine for execution.

[0089] In a specific embodiment, the present application also proposes a batch-stream fusion method based on asynchronous IO, constructs an execution environment that can simultaneously perform stream processing and batch processing, and supports querying and using batch data during stream processing. Specifically, the system can support typical batch-stream fusion scenarios by introducing asynchronous IO operators, interact efficiently with external systems, and access external databases to query full historical data during stream data processing. Batch-stream fusion can support a typical Lambda architecture: on the one hand, stream data is processed in real time by a stream processing engine, and real-time results are generated and enter the stream data middleware for real-time query and display, while the stream data is written to the data storage middleware for full analysis; on the other hand, the stream data is stored in databases such as MongoDB or Redis through a batch processing engine, and the results of the batch processing engine are obtained by asynchronously querying the database during the process of the stream processing engine processing the stream data.

[0090] Reference Figure 6After the steps of constructing the execution environment according to the type of the job flow graph and setting the parameter configuration, the following steps are included:

[0091] Step S46, collecting data for parameter configuration;

[0092] Step S47, formatting and field operations are performed on the data.

[0093] In this embodiment, according to different job flows, the data that needs to be parameterized is formatted and field operated.

[0094] In this embodiment, an execution environment corresponding to different job flow graph types is constructed, and then parameters of the job flow graph are configured. A scenario based on batch job types and stream processing job types is proposed, which enables querying and using batch data during stream processing.

[0095] Reference Figure 7 , Figure 7 This is a flowchart of another embodiment of the present application. After the step of obtaining the operator of the canvas working area according to the user's dragging operation in the canvas, it includes:

[0096] Step S50, if the operator includes a user-defined operator;

[0097] In this embodiment, the operator can be dragged by the user to the working area of ​​the drawing board to perform a specific operation according to the operator in the executor. In an optional embodiment, the execution operation can be a specific operation, such as addition, subtraction, multiplication, division, etc., or it can be an operation of finding the maximum value, minimum value, average value, etc., or it can be an operation such as building a mathematical model through the operator, such as a loop operation model. It is understandable that in this system, the big data stream processing framework and API commonly used in processing log analysis are encapsulated into operators that can implement log analysis by dragging on the canvas, that is, they are designed in the toolbar area of ​​the canvas according to functional attributes. Custom operators are logs that users need to process. When the operators in the toolbar cannot meet their analysis needs, they drag the custom operators to the working area of ​​the canvas.

[0098] Step S60, obtaining the jar dependency file corresponding to the user-defined operator;

[0099] Step S70, storing the jar dependency file and writing the path into a Json file.

[0100] It is understandable that when a user needs to use a custom operator to complete log analysis, the custom operator does not exist in the system with the programming required for its log analysis, that is, there is no operation in the system that can be run on the executor corresponding to the operation required to be implemented by the custom operator. In this regard, the user can run the import command of the operation log analysis system, import the jar dependency file corresponding to the custom operator into the system, and write the storage path of the corresponding jar dependency file into the Json file, so that when parsing the Json file, the client program can submit the entire jar contained in the job flow to the cluster for resource allocation according to the resource request parameters in the parsed Json file.

[0101] In this embodiment, the user can complete the log analysis by importing custom operators, which is not limited to the operators already available in the system, and the operation is convenient.

[0102] In addition, in order to achieve the above-mentioned purpose, the present application also provides a canvas log analysis system based on a big data stream processing framework, characterized in that the system includes a canvas log analysis terminal based on a big data stream processing framework; wherein,

[0103] The canvas-type log analysis terminal based on the big data stream processing framework includes a memory, a processor, and a canvas-type log analysis program based on the big data stream processing framework stored in the memory and executable on the processor. When the canvas-type log analysis program based on the big data stream processing framework is executed by the processor, the following steps are implemented:

[0104] Obtain the operator of the canvas working area based on the user's drag operation on the canvas;

[0105] Forming a workflow for log analysis according to the operator;

[0106] Convert the workflow into a corresponding Json format file;

[0107] The Json format file is generated into a distributed program running on the executor, so that the executor executes the distributed program to analyze the log data.

[0108] In addition, in order to achieve the above-mentioned purpose, the present application also provides a canvas log analysis device based on a large data stream processing framework, the device comprising:

[0109] Get module, get the operator of canvas working area;

[0110] The engine module generates a corresponding Json format file according to the operator;

[0111] The executor module generates a distributed program running on the executor from the Json format file, so that the executor can analyze the parsed log data.

[0112] In addition, in order to achieve the above-mentioned purpose, the present application also provides a computer-readable storage medium, on which a canvas-style log analysis method based on a large data stream processing framework is stored. When the canvas-style log analysis program based on the large data stream processing framework is executed by a processor, the method as described above is implemented.

[0113] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0114] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0115] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0116] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0117] It should be noted that in the claims, any reference signs placed between brackets shall not be construed as limiting the claims. The word "comprising" does not exclude the presence of components or steps not listed in the claims. The word "a" or "an" preceding a component does not exclude the presence of a plurality of such components. The present application may be implemented by means of hardware comprising several different components and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by the same item of hardware. The use of the words first, second, and third etc. does not indicate any order. These words may be interpreted as names.

[0118] Although the preferred embodiments of the present application have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the present application.

[0119] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.

Claims

1. A canvas log analysis method based on a big data stream processing framework, characterized in that: The method comprises: Obtain the operator of the canvas working area based on the user's drag operation on the canvas; Forming a workflow for log analysis according to the operator; Convert the workflow into a corresponding Json format file; Convert the Json format file into a DSL description file; Generate a corresponding job flow graph according to the DSL description file, wherein the job flow graph is a data structure for describing jobs that is recognized by a data flow engine of a large data flow processing framework; Constructing an execution environment according to the type of the job flow graph and setting parameter configuration, including: judging the type of the job flow graph according to the source operators included in the job flow graph, if the type of the job flow graph is a batch processing type, constructing an execution environment corresponding to the batch processing, if the type of the job flow graph is a stream processing type, constructing an execution environment corresponding to the stream processing; A distributed program for execution by an executor is generated according to the job flow graph, so that the executor executes the distributed program to analyze the log data.

2. The canvas log analysis method based on the big data stream processing framework according to claim 1, characterized in that: Before the step of generating a distributed program for execution by an executor according to the job flow graph, the method includes: Operator integration, verification, and rule matching operations are performed on the job flow graph.

3. The canvas log analysis method based on the big data stream processing framework according to claim 1, characterized in that: After the steps of constructing the execution environment according to the type of the job flow diagram and setting the parameter configuration, the following steps are included: Collect data for parameter configuration; The data is formatted and field manipulated.

4. The canvas log analysis method based on a large data stream processing framework according to claim 1, characterized in that: After the step of obtaining the operator of the canvas working area according to the user's dragging operation in the canvas, the method includes: If the operator includes a custom operator; Get the jar dependency file corresponding to the custom operator; Store the jar dependency file and write the storage path into a Json file.

5. A canvas log analysis system based on a big data stream processing framework, characterized in that: The system includes a canvas log analysis terminal based on a large data stream processing framework; wherein, The canvas-type log analysis terminal based on the big data stream processing framework includes a memory, a processor, and a canvas-type log analysis program based on the big data stream processing framework stored in the memory and executable on the processor. When the canvas-type log analysis program based on the big data stream processing framework is executed by the processor, the following steps are implemented: Obtain the operator of the canvas working area based on the user's drag operation on the canvas; Forming a workflow for log analysis according to the operator; Convert the workflow into a corresponding Json format file; Convert the Json format file into a DSL description file; Generate a corresponding job flow graph according to the DSL description file, wherein the job flow graph is a data structure for describing jobs that is recognized by a data flow engine of a large data flow processing framework; Constructing an execution environment according to the type of the job flow graph and setting parameter configuration, including: judging the type of the job flow graph according to the source operators included in the job flow graph, if the type of the job flow graph is a batch processing type, constructing an execution environment corresponding to the batch processing, if the type of the job flow graph is a stream processing type, constructing an execution environment corresponding to the stream processing; A distributed program for execution by an executor is generated according to the job flow graph, so that the executor executes the distributed program to analyze the log data.

6. A canvas log analysis device based on a large data stream processing framework, characterized in that: The device comprises: The acquisition module acquires the operators in the canvas working area according to the user's dragging operation on the canvas; The engine module forms a workflow for log analysis according to the operator; converts the workflow into a corresponding Json format file; converts the Json format file into a DSL description file; generates a corresponding job flow graph according to the DSL description file, wherein the job flow graph is a data structure for describing jobs recognized by a data flow engine of a big data stream processing framework; constructs an execution environment according to the type of the job flow graph and sets parameter configuration, including: judging the type of the job flow graph according to the source operator contained in the job flow graph, if the type of the job flow graph is a batch processing type, constructing an execution environment corresponding to batch processing, and if the type of the job flow graph is a stream processing type, constructing an execution environment corresponding to stream processing; The executor module generates a distributed program to be run by the executor according to the job flow graph, so that the executor executes the distributed program to analyze the log data.

7. A computer-readable storage medium, characterized in that: The storage medium stores a canvas-style log analysis program based on a large data stream processing framework, and the canvas-style log analysis program based on the large data stream processing framework implements the method described in any one of claims 1 to 4 when executed by a processor.