CN112416876A - Log monitoring method and device of universal interface - Google Patents
Log monitoring method and device of universal interface Download PDFInfo
- Publication number
- CN112416876A CN112416876A CN202011457202.0A CN202011457202A CN112416876A CN 112416876 A CN112416876 A CN 112416876A CN 202011457202 A CN202011457202 A CN 202011457202A CN 112416876 A CN112416876 A CN 112416876A
- Authority
- CN
- China
- Prior art keywords
- log
- monitoring
- log data
- preset
- target
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000012544 monitoring process Methods 0.000 title claims abstract description 145
- 238000000034 method Methods 0.000 title claims abstract description 69
- 238000006243 chemical reaction Methods 0.000 claims description 8
- 238000012806 monitoring device Methods 0.000 claims description 7
- 238000012545 processing Methods 0.000 claims description 5
- 230000008569 process Effects 0.000 abstract description 15
- 230000006870 function Effects 0.000 description 18
- 238000007726 management method Methods 0.000 description 9
- 238000011161 development Methods 0.000 description 6
- 238000012423 maintenance Methods 0.000 description 5
- 239000000126 substance Substances 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 238000004806 packaging method and process Methods 0.000 description 3
- 238000013519 translation Methods 0.000 description 3
- 238000004458 analytical method Methods 0.000 description 2
- 230000000977 initiatory effect Effects 0.000 description 2
- 230000010354 integration Effects 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 238000013075 data extraction Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005538 encapsulation Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 230000008571 general function Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 238000004080 punching Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/17—Details of further file system functions
- G06F16/1734—Details of monitoring file system events, e.g. by the use of hooks, filter drivers, logs
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/18—File system types
- G06F16/1805—Append-only file systems, e.g. using logs or journals to store data
- G06F16/1815—Journaling file systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/06—Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
- G06Q10/063—Operations research, analysis or management
- G06Q10/0631—Resource planning, allocation, distributing or scheduling for enterprises or organisations
- G06Q10/06311—Scheduling, planning or task assignment for a person or group
- G06Q10/063114—Status monitoring or status determination for a person or group
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Human Resources & Organizations (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Economics (AREA)
- Entrepreneurship & Innovation (AREA)
- Databases & Information Systems (AREA)
- Strategic Management (AREA)
- Data Mining & Analysis (AREA)
- General Engineering & Computer Science (AREA)
- Game Theory and Decision Science (AREA)
- Educational Administration (AREA)
- Development Economics (AREA)
- Marketing (AREA)
- Operations Research (AREA)
- Quality & Reliability (AREA)
- Tourism & Hospitality (AREA)
- General Business, Economics & Management (AREA)
- Debugging And Monitoring (AREA)
Abstract
The invention discloses a log monitoring method and a device of a universal interface, which pre-customize a preset log table template, wherein the preset log table template comprises the following steps: input parameters, return parameters/messages, and at least one call atomic service, the method comprising: under the condition that a log monitoring request for a target system is received, obtaining log data of the target system from a preset database, wherein the log data comprises: basic information, technical information, step information and return parameters/information of the target system, wherein log data are obtained by monitoring the target system through a log monitoring platform; converting the log data into a target preset log table based on the preset log table template; and monitoring the monitoring log of the target system based on the target preset log table. In the process, no matter what monitoring request is, the corresponding log data can be converted into the target preset log table, so that the reusability is realized, and the log table does not need to be set independently.
Description
Technical Field
The invention relates to the technical field of enterprise resource planning, in particular to a log monitoring method and device of a universal interface.
Background
At present, most of interface logs called externally by SAP ERP are system-level logs, such as connection information, interruption information and other pure technical information, which can be understood by professional basic environment personnel
In the implementation of the SAP ERP project, most of the log records are to create an interface log table for a specific interface and develop a program separately for log display or interface retransmission. However, creating different log tables separately for different interface services results in too many log tables and is difficult to maintain and locate for analysis, and custom development of different log query functions and log tables is difficult to reuse.
Disclosure of Invention
In view of this, the present invention provides a log monitoring method and device for a universal interface, which are used to solve the problem that in the implementation of an SAP ERP project, most log records respectively create an interface log table for a specific interface and then independently develop a program to perform log display or perform interface retransmission. However, separately creating different log tables for different interface services may cause too many log tables and is difficult to maintain and perform positioning analysis, and the problem that different log query functions and log tables are developed in a customized manner and are difficult to reuse is solved, and the specific scheme is as follows:
a log monitoring method of a universal interface is characterized in that a preset log table template is customized in advance, wherein the preset log table template comprises the following steps: input parameters, return parameters/messages, and at least one call atomic service, the method comprising:
under the condition that a log monitoring request for a target system is received, obtaining log data of the target system from a preset database, wherein the log data comprises: basic information, technical information, step information and return parameters/information of the target system, wherein log data are obtained by monitoring the target system through a log monitoring platform;
converting the log data into a target preset log table based on the preset log table template;
and monitoring the monitoring log of the target system based on the target preset log table.
Optionally, the method for obtaining the log data of the target system from the preset database includes:
analyzing the log monitoring request to obtain a monitoring identifier in the log monitoring request;
searching log data which is the same as the monitoring identification in the preset database;
and taking the log data which is the same as the monitoring identification as the log data of the target system.
Optionally, the method for converting the log data into the target preset log table based on the preset log table template includes:
dividing the log data according to the input parameters, the return parameters/messages and the at least one calling atomic service to obtain each divided log data;
and adding each divided log data into the preset log table template according to the type of the log data to obtain a target preset log table.
Optionally, in the method, monitoring the monitoring log of the target system based on the target preset log table includes:
acquiring a query condition in the log monitoring request;
searching a keyword matched with the query condition in the target preset log table based on the query condition;
and acquiring target log data corresponding to the keywords, and displaying the target log data.
The above method, optionally, further includes:
and when a cancellation instruction of the current log data is received, canceling the current log data.
The utility model provides a log monitoring device of general interface, customizes predetermined log table template in advance, wherein, predetermine the log table template and include: input parameters, return parameters/messages, and at least one call atomic service, the apparatus comprising:
the system comprises an acquisition module and a processing module, wherein the acquisition module is used for acquiring log data of a target system from a preset database under the condition of receiving a log monitoring request of the target system, and the log data comprises: basic information, technical information, step information and return parameters/information of the target system, wherein log data are obtained by monitoring the target system through a log monitoring platform;
the conversion module is used for converting the log data into a target preset log table based on the preset log table template;
and the monitoring module is used for monitoring the monitoring log of the target system based on the target preset log table.
The above apparatus, optionally, the obtaining module includes:
the identification acquisition unit is used for analyzing the log monitoring request and acquiring the monitoring identification in the log monitoring request;
the first searching unit is used for searching the log data which is the same as the monitoring identification in the preset database;
and the determining unit is used for taking the log data which is the same as the monitoring identifier as the log data of the target system.
The above apparatus, optionally, the conversion module includes:
the dividing unit is used for dividing the log data according to the input parameters, the return parameters/messages and the at least one calling atomic service to obtain each divided log data;
and the adding unit is used for adding each divided log data into the preset log table template according to the type of the divided log data to obtain a target preset log table.
The above apparatus, optionally, the monitoring module includes:
the condition acquisition unit is used for acquiring the query condition in the log monitoring request;
the first searching unit is used for searching a keyword matched with the query condition in the target preset log table based on the query condition;
and the acquisition and display unit is used for acquiring target log data corresponding to the keywords and displaying the target log data.
The above apparatus, optionally, further comprises:
and the offset module is used for offsetting the current log data when receiving an offset instruction of the current log data.
Compared with the prior art, the invention has the following advantages:
the invention discloses a log monitoring method and a log monitoring device of a universal interface, which are used for customizing a preset log table template in advance, wherein the preset log table template comprises the following steps: input parameters, return parameters/messages, and at least one call atomic service, the method comprising: under the condition that a log monitoring request for a target system is received, obtaining log data of the target system from a preset database, wherein the log data comprises: basic information, technical information, step information and return parameters/information of the target system, wherein log data are obtained by monitoring the target system through a log monitoring platform; converting the log data into a target preset log table based on the preset log table template; and monitoring the monitoring log of the target system based on the target preset log table. In the process, no matter what monitoring request is, the corresponding log data can be converted into the target preset log table, so that the reusability is realized, and the log table does not need to be set independently.
Of course, it is not necessary for any product in which the invention is practiced to achieve all of the above-described advantages at the same time.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of a log monitoring method of a generic interface disclosed in an embodiment of the present application;
fig. 2 is a block diagram of a service interface structure disclosed in an embodiment of the present application;
fig. 3 is a block diagram of a log monitoring apparatus with a generic interface according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The invention discloses a log monitoring method and device of a universal interface, which are applied to the monitoring process of an SAP ERP system, aiming at the complex service requirements, a plurality of internal service systems are possibly involved, and the systems inevitably need to be frequently interacted with the ERP system. The result and process monitoring of interface service operation are very important, and especially for daily debugging of developers and operation and maintenance personnel, the effect of making statistics on business transaction amount is achieved with half the effort, wherein SAP ERP: ERP software products from SAP, Inc., include SAP R/3, SAP ECC, SAP S/4HANA, and the like. Interface service: the externally provided interface service can be SAP standard BAPI or customer-defined ZBIAPI, and is packaged according to a certain principle.
In the enterprise-level business operation and maintenance and operation scenes, logs play an increasingly important role, and whether functions of a complete log monitoring system are rich and whether log display is detailed often depends on whether log records are complete or not in the execution process of interface services. The log monitoring provides service for analyzing service log data in real time, visually displaying a monitoring chart and alarming. At present, in most SAP implementation projects, a unified log monitoring and management platform is not specially used for a background service interface, and even if the unified log monitoring and management platform exists, the unified log monitoring and management platform is too simple and dispersive, and the unified log monitoring and management platform is not well combined with business data, and the unified log monitoring and management platform is specifically represented in the following aspects:
(1) creating different log tables separately for different interface services can result in log tables that are too numerous and difficult to maintain and locate
(2) Customized development of different log query functions and specific tables is difficult to reuse
(3) The application range is more biased to background operation and maintenance personnel, so the content in the log is more biased to technical information and ignores service data information
(4) The transaction code is maintained too much, operation and maintenance personnel and service personnel are difficult to remember, and the working efficiency is influenced
(5) Aiming at a complex integrated interface, the execution condition of the internal steps of the call chain can not be accurately tracked
(6) Interface transaction integrity is not well considered and exception handling (reimbursement and reimbursement) is not possible
In view of the above problems, an embodiment of the present invention provides a log monitoring method for a universal interface, which is used to solve the above problems, where the universal interface requires a developer to package an interface service that meets standard package according to a uniform interface development specification and a uniform process when packaging the interface, where an integrated service framework of the universal interface is complete, and a core system software hierarchy may be divided into four layers, including a channel layer, a process layer, an integrated layer, and a core service layer. The combined service corresponds to an integration layer, namely the outmost layer of a product layer, and is the only interface for online transaction with a channel layer.
Further, the integrated service interface package input and output parameter specification ensures that all integrated service interfaces have uniform CONTROL _ DATA (common CONTROL information) and RETURN (RETURN message) therein.
The internal code hierarchy of the integrated service must ensure that all integrated services are realized by adopting SAP ABAP OO object-oriented programming technology, and the internal code hierarchy is as follows:
first, an integrated service is in its physical form, namely a SAP Remote Function Module (RFM). Second, the implementation of an integrated service is also hierarchical.
(1) Proxy Implementation Layer (Proxy Implementation Layer)
The proxy implementation layer implements general functions such as serial number determination and processing, message translation, and the like.
(2) Service Implementation Layer (Service Implementation Layer)
The service implementation layer organizes the service adapters to implement functions. Additionally, transaction control is implemented at this layer.
(3) Base Layer (Foundation Layer)
The integrated services framework provides a number of common programs to implement these functions. These utilities themselves combine a layer, called the "base layer".
The integrated service framework provides a whole set of matched public programs to simplify and standardize the behavior of the integrated service, and comprises the following steps: the flow number management handle, message handle, exception class, and exception message translation handle.
These common programs, which are all directly callable during development, are exemplified as shown in table 1.
TABLE 1
In the embodiment of the present invention, the service method of the adapter class is implemented, which is described by taking a method "EXECUTE" as an example, and the interface parameters of the method "EXECUTE" are as follows: initially only CONTROL _ DATA and RETURN are available in the interface, and the rest is completed against the interface of the integration service ZCS _ DEMO _ ADDR _ CHG. For example, in this example, the integrated service has 4 inner table interfaces, which may correspond to inner table transport interfaces for defining adapter classes. Implementation of the method 'EXECUTE': and calling an atomic BAPI in a forward service implementation method 'EXECUTE' to implement a service function.
The associated methods IN the self-proxy implementation class 'ZCL DEMO IN PI ADDR CHG' are implemented as needed, as shown IN table 2,
TABLE 2
IN the embodiment of the invention, the 'EXECUTE' method IN the class 'ZCL _ DEMO _ IN _ SI _ ADDR _ CHG' is realized according to the requirement, and the specific service realization is realized IN the method. In the initial state, the method is realized to be empty, the 'EXECUTE' method of the adapter class is directly called in the method, if one integrated service relates to the calling of a plurality of steps, the sequential calling can be carried out in the service realizing class
The adapter class of each step can record the entry of each step before calling. And after the calling is finished, calling a sentence handle class ZCL _ FND _ TRANSACTION _ CONTROL- > RECORD _ WORK () method, and recording a calling stack of the step. This stack is used when the ROLLBACK _ WORK () method is called in case of problems with the subsequent step execution. And simultaneously calling a ZCL _ FND _ TRANSACTION _ CONTROL- > COMMIT _ WORK () method to submit the saved data.
Based on the above general interface, an embodiment of the present invention provides a log monitoring method for a general interface, where a preset log table template is customized in advance, where the preset log table template includes: the execution flow of the monitoring method is shown in figure 1, and comprises the following steps:
s101, under the condition that a log monitoring request for a target system is received, obtaining log data of the target system from a preset database, wherein the log data comprises: basic information, technical information, step information and return parameters/information of the target system, wherein log data are obtained by monitoring the target system through a log monitoring platform;
in an embodiment of the present invention, the log data includes: basic information, technical information, step information and return parameters/messages of the target system, wherein the basic information comprises: the technical information comprises the following technical information, such as flow, date, time, service name, operation user, execution result and the like, wherein the technical information comprises: interface technical name, caller system, interface external input and return parameters, service initiating unit, user and affiliated mechanism, etc., wherein the step information comprises: executing information such as atomic service names, input and return parameters, execution results and the like in the steps, wherein the return parameters/information comprise: error or success messages, etc. The log data is obtained by monitoring the target system through a log monitoring platform, and a user of the log monitoring platform monitors the target system, wherein the target system can be a specific application or a system formed by a plurality of applications. Under the condition that a log monitoring request for a target system is received, acquiring log data of the target system from a preset database, wherein the acquisition process comprises the following steps: analyzing the log monitoring request to obtain a monitoring identifier in the log monitoring request; in the embodiment of the invention, the specific existence form of the monitoring identifier is not limited, and the log data same as the monitoring identifier is searched in the preset database; and taking the log data which is the same as the monitoring identification as the log data of the target system. The database table names included in the preset database are shown in table 3.
TABLE 3
S102, converting the log data into a target preset log table based on the preset log table template;
in the embodiment of the present invention, because different system log data exist in different forms, for example, multiplexing of different system monitoring processes is realized, in the embodiment of the present invention, a log table template is pre-established, the log table template can satisfy log monitoring of different systems, and a process of converting the log data into a target preset log table based on the preset log table template is as follows: dividing the log data according to the input parameters, the return parameters/messages and the at least one calling atomic service to obtain each divided log data; and adding each divided log data into the preset log table template according to the type of the log data to obtain a target preset log table.
S103, monitoring the monitoring log of the target system based on the target preset log table.
In the embodiment of the present invention, monitoring logs of the target system are monitored based on the target preset log table, and query conditions in the log monitoring request are obtained, where the query conditions include: searching keywords matched with the query conditions in the target preset log table based on the query conditions, wherein the keywords comprise date, time, operation user, state, service name, state and the like; and acquiring target log data corresponding to the keywords, and displaying the target log data.
The invention discloses a log monitoring method of a universal interface, which customizes a preset log table template in advance, wherein the preset log table template comprises the following steps: input parameters, return parameters/messages, and at least one call atomic service, the method comprising: under the condition that a log monitoring request for a target system is received, obtaining log data of the target system from a preset database, wherein the log data comprises: basic information, technical information, step information and return parameters/information of the target system, wherein log data are obtained by monitoring the target system through a log monitoring platform; converting the log data into a target preset log table based on the preset log table template; and monitoring the monitoring log of the target system based on the target preset log table. In the process, no matter what monitoring request is, the corresponding log data can be converted into the target preset log table, so that the reusability is realized, and the log table does not need to be set independently.
In the embodiment of the present invention, the general interface is taken as an example to exemplify the above process, a structural block diagram of the service interface is shown in fig. 2, a log monitoring platform monitors basic information, technical information, step information and parameters/messages of a system in real time, performs data extraction and then stores the extracted data in a database, a set of general log storage tables is designed on a database level, and which log types need to be recorded and stored in a configurable manner. And the interface uniformly stores the related log information to the corresponding base table according to the configuration in the called operation process to finish the uniform management of the data of each type of log. Considering that in the future, with the increase of traffic, 12 backup tables are designed according to months for each type of log table, and when a monitoring platform is prepared for running of subsequent backup data, data are extracted from various different types of log tables in real time for filtering, processing, analyzing and counting, and then visualized display is carried out. Integrating service monitoring platform function transaction codes: ZCSMON, the user can run the function in the portal or SAP background according to the operation authority. Inputting query conditions, inquiring interface execution records by single or combined search conditions such as date, time, operation user, state, service name, state and the like, clicking a 'start query' button, loading basic information, step information and return information data from a business flow information table, an interface step information table, a MESSAGE and other related tables in real time by the system, displaying by utilizing an SAP ALV list function and storing related log information, integrating an exception handling button on a monitoring platform, and finding out an input and output parameter of the interface according to a forward flow number when a user selects a successful flow for carrying out cancellation (cancellation is carried out immediately, SAP provides a function equivalent to 'remorse', such as bank transfer, and the sum is returned to a remitter account in the original way), and carrying out dynamic cancellation according to the pre-configured cancellation service. Similarly, when the subsequent compensation service is performed on the service, the interface is simulated again according to the historical parameter data recorded in the log.
The main improvement points of the socket log monitoring method and other traditional log management platforms are as follows:
the functions of the monitoring platform are rich and perfect and are closely connected with the interface packaging specification, so that enterprises can conveniently follow the unified service interface development management and restrict the development criteria. A set of universal interface operation monitoring platform is developed on the basis of following the unified specification during interface packaging, and the following main functions can be realized:
the method supports the search condition query interface execution records such as date, time, operation user, state, service name and the like;
and (3) displaying organization structure information: a service initiating unit, a user and a unit to which the user belongs;
and (3) displaying technical information: the method comprises the following steps: the service name, the calling system, the interface incoming parameter and the interface outgoing information support the function of exporting the information (XML);
the interface internally executes the step information display: aiming at complex integrated interface service, a plurality of ERP systems or non-ERP system atomic services can be possibly integrated in the complex integrated interface service, and the complex integrated interface service can support the recording of input and output information and execution results of each step according to a calling sequence.
The monitoring platform records support automatic refreshing;
displaying error reporting messages: message LOG-LOG;
message translation: because the service meanings of messages reported by some standard BAPI in ERP are not clear, the mapping of original messages into messages after custom conversion is supported;
the integrated service interface which follows the standardized encapsulation has the following advantages:
a unified external calling mode;
unified flow state control and flow log recording;
unified transaction control, message processing and exception handling;
a unified straightening mechanism;
the monitoring platform has the functions of 'monitoring', and can be used as a main tool for business statistics of business personnel and daily debugging and exception handling of operation and maintenance personnel.
Based on the above log monitoring method of the universal interface, an embodiment of the present invention provides a log monitoring device of a universal interface, which customizes a preset log table template in advance, where the preset log table template includes: the structural block diagram of the monitoring device is shown in fig. 3, and the monitoring device comprises:
an acquisition module 201, a conversion module 202 and a monitoring module 203.
Wherein the content of the first and second substances,
the obtaining module 201 is configured to obtain log data of a target system from a preset database when a log monitoring request for the target system is received, where the log data includes: basic information, technical information, step information and return parameters/information of the target system, wherein log data are obtained by monitoring the target system through a log monitoring platform;
the conversion module 202 is configured to convert the log data into a target preset log table based on the preset log table template;
the monitoring module 203 is configured to monitor a monitoring log of the target system based on the target preset log table.
The invention discloses a log monitoring device with a universal interface, which customizes a preset log table template in advance, wherein the preset log table template comprises the following components: input parameters, return parameters/messages, and at least one call atomic service, the method comprising: under the condition that a log monitoring request for a target system is received, obtaining log data of the target system from a preset database, wherein the log data comprises: basic information, technical information, step information and return parameters/information of the target system, wherein log data are obtained by monitoring the target system through a log monitoring platform; converting the log data into a target preset log table based on the preset log table template; and monitoring the monitoring log of the target system based on the target preset log table. In the process, no matter what monitoring request is, the corresponding log data can be converted into the target preset log table, so that the reusability is realized, and the log table does not need to be set independently.
In this embodiment of the present invention, the obtaining module 201 includes:
an identity acquisition unit 204, a first lookup unit 205 and a determination unit 206.
Wherein the content of the first and second substances,
the identifier obtaining unit 204 is configured to parse the log monitoring request, and obtain a monitoring identifier in the log monitoring request;
the first searching unit 205 is configured to search the preset database for log data that is the same as the monitoring identifier;
the determining unit 206 is configured to use the log data identical to the monitoring identifier as the log data of the target system.
In this embodiment of the present invention, the conversion module 202 includes:
a dividing unit 207 and an adding unit 208.
Wherein the content of the first and second substances,
the dividing unit 207 is configured to divide the log data according to the input parameter, the return parameter/message, and the at least one call atomic service to obtain each divided log data;
the adding unit 208 is configured to add each divided log data to the preset log table template according to the type to which the divided log data belongs, so as to obtain a target preset log table.
In this embodiment of the present invention, the monitoring module 203 includes:
a condition acquisition unit 209, a first lookup unit 210 and an acquisition and presentation unit 211.
Wherein the content of the first and second substances,
the condition obtaining unit 209 is configured to obtain an inquiry condition in the log monitoring request;
the first searching unit 210 is configured to search, based on the query condition, a keyword matched with the query condition in the target preset log table;
the obtaining and displaying unit 211 is configured to obtain target log data corresponding to the keyword, and display the target log data.
In an embodiment of the present invention, the monitoring apparatus further includes: and a punching module 212.
Wherein the content of the first and second substances,
the offset module 212 is configured to offset the current log data when an offset instruction for the current log data is received.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the device-like embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functions of the units may be implemented in the same software and/or hardware or in a plurality of software and/or hardware when implementing the invention.
From the above description of the embodiments, it is clear to those skilled in the art that the present invention can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
The above is a detailed description of the log monitoring method and apparatus of a universal interface provided by the present invention, and a specific example is applied in this document to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understand the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.
Claims (10)
1. The log monitoring method of the universal interface is characterized in that a preset log table template is customized in advance, wherein the preset log table template comprises the following steps: input parameters, return parameters/messages, and at least one call atomic service, the method comprising:
under the condition that a log monitoring request for a target system is received, obtaining log data of the target system from a preset database, wherein the log data comprises: basic information, technical information, step information and return parameters/information of the target system, wherein log data are obtained by monitoring the target system through a log monitoring platform;
converting the log data into a target preset log table based on the preset log table template;
and monitoring the monitoring log of the target system based on the target preset log table.
2. The method of claim 1, wherein obtaining log data of the target system in a predetermined database comprises:
analyzing the log monitoring request to obtain a monitoring identifier in the log monitoring request;
searching log data which is the same as the monitoring identification in the preset database;
and taking the log data which is the same as the monitoring identification as the log data of the target system.
3. The method of claim 1, wherein converting the log data into a target preset log table based on the preset log table template comprises:
dividing the log data according to the input parameters, the return parameters/messages and the at least one calling atomic service to obtain each divided log data;
and adding each divided log data into the preset log table template according to the type of the log data to obtain a target preset log table.
4. The method of claim 1, wherein monitoring the target system based on the target preset log table comprises:
acquiring a query condition in the log monitoring request;
searching a keyword matched with the query condition in the target preset log table based on the query condition;
and acquiring target log data corresponding to the keywords, and displaying the target log data.
5. The method of claim 1, further comprising:
and when a cancellation instruction of the current log data is received, canceling the current log data.
6. The utility model provides a log monitoring device of general interface which characterized in that, customizes in advance and predetermines log table template, wherein, predetermine log table template and include: input parameters, return parameters/messages, and at least one call atomic service, the apparatus comprising:
the system comprises an acquisition module and a processing module, wherein the acquisition module is used for acquiring log data of a target system from a preset database under the condition of receiving a log monitoring request of the target system, and the log data comprises: basic information, technical information, step information and return parameters/information of the target system, wherein log data are obtained by monitoring the target system through a log monitoring platform;
the conversion module is used for converting the log data into a target preset log table based on the preset log table template;
and the monitoring module is used for monitoring the monitoring log of the target system based on the target preset log table.
7. The apparatus of claim 6, wherein the obtaining module comprises:
the identification acquisition unit is used for analyzing the log monitoring request and acquiring the monitoring identification in the log monitoring request;
the first searching unit is used for searching the log data which is the same as the monitoring identification in the preset database;
and the determining unit is used for taking the log data which is the same as the monitoring identifier as the log data of the target system.
8. The apparatus of claim 6, wherein the conversion module comprises:
the dividing unit is used for dividing the log data according to the input parameters, the return parameters/messages and the at least one calling atomic service to obtain each divided log data;
and the adding unit is used for adding each divided log data into the preset log table template according to the type of the divided log data to obtain a target preset log table.
9. The apparatus of claim 6, wherein the monitoring module comprises:
the condition acquisition unit is used for acquiring the query condition in the log monitoring request;
the first searching unit is used for searching a keyword matched with the query condition in the target preset log table based on the query condition;
and the acquisition and display unit is used for acquiring target log data corresponding to the keywords and displaying the target log data.
10. The apparatus of claim 6, further comprising:
and the offset module is used for offsetting the current log data when receiving an offset instruction of the current log data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011457202.0A CN112416876A (en) | 2020-12-10 | 2020-12-10 | Log monitoring method and device of universal interface |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011457202.0A CN112416876A (en) | 2020-12-10 | 2020-12-10 | Log monitoring method and device of universal interface |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112416876A true CN112416876A (en) | 2021-02-26 |
Family
ID=74775970
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011457202.0A Pending CN112416876A (en) | 2020-12-10 | 2020-12-10 | Log monitoring method and device of universal interface |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112416876A (en) |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109408337A (en) * | 2018-10-31 | 2019-03-01 | 京东方科技集团股份有限公司 | A kind of method and device of interface O&M |
CN109739730A (en) * | 2019-01-14 | 2019-05-10 | 平安科技(深圳)有限公司 | Monitoring method, device, equipment and the readable storage medium storing program for executing of multisystem daily record data |
-
2020
- 2020-12-10 CN CN202011457202.0A patent/CN112416876A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109408337A (en) * | 2018-10-31 | 2019-03-01 | 京东方科技集团股份有限公司 | A kind of method and device of interface O&M |
CN109739730A (en) * | 2019-01-14 | 2019-05-10 | 平安科技(深圳)有限公司 | Monitoring method, device, equipment and the readable storage medium storing program for executing of multisystem daily record data |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7526490B2 (en) | Method of and system for providing positional based object to XML mapping | |
US7886278B2 (en) | Object reference monitoring | |
US20120066218A1 (en) | Solution search for software support | |
US20100058113A1 (en) | Multi-layer context parsing and incident model construction for software support | |
US20060282400A1 (en) | Apparatus, system, and method for encapsulating logical units of work using business objects | |
CN114925045B (en) | PaaS platform for big data integration and management | |
CN103514223A (en) | Data synchronism method and system of database | |
US7272776B2 (en) | Master data quality | |
WO2006026918A1 (en) | Web service registry and method of operation | |
US8275739B2 (en) | User interface display for monitoring a database load engine | |
CN110032594B (en) | Customizable data extraction method and device for multi-source database and storage medium | |
EP2530608A1 (en) | Semantic terminology importer | |
US7865461B1 (en) | System and method for cleansing enterprise data | |
CN112651218A (en) | Automatic generation method and management method of bidding document, medium and computer | |
CN103810272A (en) | Data processing method and system | |
CN111160658A (en) | Collaborative manufacturing resource optimization method, system and platform | |
CN111143391A (en) | Data sharing exchange method and system | |
CN107704256A (en) | The method that Python relies on system library automation installation is realized on a kind of Ubuntu | |
US6917930B1 (en) | Database integrity in an internet e-commerce environment | |
US8406401B2 (en) | Interactive voice response system to business application interface | |
CN112416876A (en) | Log monitoring method and device of universal interface | |
US20030208720A1 (en) | Method and apparatus for generating electronic document definitions | |
US20230195792A1 (en) | Database management methods and associated apparatus | |
US7283989B1 (en) | System and method for use of application metadata | |
US7325000B2 (en) | System and method for performance measurement quality assurance |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |