CN115687004A - Host log obtaining method and device and computer equipment - Google Patents
Host log obtaining method and device and computer equipment Download PDFInfo
- Publication number
- CN115687004A CN115687004A CN202211245234.3A CN202211245234A CN115687004A CN 115687004 A CN115687004 A CN 115687004A CN 202211245234 A CN202211245234 A CN 202211245234A CN 115687004 A CN115687004 A CN 115687004A
- Authority
- CN
- China
- Prior art keywords
- log
- host
- job
- target
- query
- 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
Images
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The application relates to a method, a device, a computer device, a storage medium and a computer program product for acquiring a host log. The application relates to the field of intelligent operation and maintenance, and the method comprises the following steps: responding to a first query request initiated to a target job, and calling a target host to run a job log acquisition program so as to execute log query operation; the log query operation is used for calling a job information display panel of the target host to acquire a host job log corresponding to the target job; responding to a downloading request of the host machine job log, and calling a target host machine to run a job log acquisition program so as to execute log downloading operation; the log downloading operation is used for writing the host operation log into a host log file in a target text format and returning the host log file to the server; and responding to the acquisition request of the host log file, and sending the host log file to the client. By adopting the method, the process of acquiring the host log can be simplified.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for obtaining a host log, a computer device, a storage medium, and a computer program product.
Background
With the development of computer technology, developers often develop information systems with different functions on a host according to different data processing requirements to store and process various data. Some information systems have a function of processing data in batches, and can improve information processing efficiency.
At present, the batch processing process of the information system often implies some hidden risks, and when an error occurs in the batch processing process, analysis and investigation are often required to be performed through a batch processing log on an analysis host. However, when the traditional technology acquires the host logs, a single manual acquisition mode is often adopted, the acquisition process is too complicated, great inconvenience is brought to the whole test analysis, a great deal of time is consumed for business personnel and technical personnel, and unnecessary waiting time is also brought to the development analysis problem.
Therefore, the problem that the host log obtaining process is too complicated exists in the traditional technology.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a host log obtaining method, device, computer apparatus, computer-readable storage medium, and computer program product capable of simplifying a host log obtaining process.
A host log obtaining method is applied to a server and comprises the following steps:
responding to a first query request initiated to a target job, and calling a target host to run a job log acquisition program so as to execute log query operation; the log query operation is used for calling a job information display panel of the target host to acquire a host job log corresponding to the target job;
responding to a downloading request of the host job log, and calling a target host to run a job log acquisition program so as to execute log downloading operation; the log downloading operation is used for writing the host operation log into a host log file in a target text format and returning the host log file to the server;
and responding to the acquisition request of the host log file, and sending the host log file to the client.
In one embodiment, the method further comprises:
responding to a second query request initiated to the target operation, and calling the target host to run an operation log acquisition program so as to execute log query operation; the log query operation is used for calling a job information display panel of the target host to acquire host job log parameters corresponding to the target job;
and sending the host job log parameters corresponding to the target job to the server.
In one embodiment, the job log obtaining program includes a job log query subprogram, and in response to a first query request initiated for a target job, the job log obtaining program is called by a target host to execute a log query operation, and the job log obtaining program includes:
in response to a first query request initiated for a target job, calling the target host to run a job log query subprogram so as to call a job information display panel of the target host;
screening at least one job identification corresponding to the job name of the target job from a current queue of the job information display panel;
and writing the job log content corresponding to the screened job identification into the host job log.
In one embodiment, the job log obtaining program further includes a job log downloading subprogram for calling the target host to execute the job log obtaining program to execute the log downloading operation in response to a downloading request for the job log of the host, including:
responding to a downloading request of the host machine job log, and calling the target host machine to run a job log downloading subprogram so as to call a job information display panel of the target host machine;
writing the host operation log into a host log file in a target text format through an operation information display panel;
and sending the host log file in the target text format to the server.
In one embodiment, sending the master log file to the client in response to the request for obtaining the master log file includes:
and responding to the acquisition request of the host log file, and sending the host log file to the client in a character stream mode.
A host log obtaining method is characterized by comprising the following steps:
responding to the access operation of the host log query system, and displaying a host log query interface;
displaying at least one host log file in a host log query interface in response to a query operation performed on the host log query interface; the host log file is generated according to the host job log; the host job log is determined by the server responding to the third query request and calling a target host to control a job log acquisition program to execute log query operation; the log query operation is used for calling a job information display panel of the target host to acquire a host job log corresponding to the target job; the third query request is a request initiated by the client to the target operation;
and responding to the downloading operation of the at least one host log file, and downloading the host log file to the local directory.
In one embodiment, downloading the host log file to the local directory in response to a download operation of the at least one host log file comprises:
in response to a download operation of at least one host log file, sending a download request to a server; the downloading request is used for indicating the server to call the target host to run the job log acquisition program so as to execute log downloading operation; the log downloading operation is used for writing the host operation log into a host log file in a target text format and returning the host log file to the server;
responding to the opening operation of the host log file, and sending a downloading request to a server; the download request is to a local directory that instructs the server to send the host log file to the client in a character stream.
A host log retrieving apparatus, comprising:
the system comprises a calling module, a log query module and a log query module, wherein the calling module is used for calling a target host to run a job log acquisition program so as to execute log query operation in response to a first query request initiated to a target job; the log query operation is used for calling a job information display panel of the target host to acquire a host job log corresponding to the target job;
the downloading module is used for responding to a downloading request of the host job log, and calling the target host to run a job log acquisition program so as to execute log downloading operation; the log downloading operation is used for writing the host operation log into a host log file in a target text format and returning the host log file to the server;
and the sending module is used for responding to the acquisition request of the host log file and sending the host log file to the client.
A host log retrieving apparatus, comprising:
the display module is used for responding to the access operation of the host log query system and displaying a host log query interface;
the query module is used for responding to query operation implemented on the master log query interface and displaying at least one master log file in the master log query interface; the host log file is generated according to a host job log; the host job log is determined by the server responding to the third query request and calling a target host to control a job log acquisition program to execute log query operation; the log query operation is used for calling a job information display panel of the target host to acquire a host job log corresponding to the target job; the third query request is a request initiated by the client to the target operation;
and the downloading module is used for responding to the downloading operation of at least one host log file and downloading the host log file to the local directory.
A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor realizes the steps of the above-mentioned method when executing the computer program.
A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program realizes the steps of the above-mentioned method when being executed by a processor.
A computer program product comprising a computer program, characterized in that the computer program realizes the steps of the above-mentioned method when executed by a processor.
According to the host log obtaining method, the host log obtaining device, the computer equipment, the computer readable storage medium and the computer program product, the target host is called to run the job log obtaining program to execute log query operation by responding to the first query request initiated to the target job, so that the job information display panel of the target host is called to obtain the host job log corresponding to the target job; in response to a downloading request of the host job log, calling the target host to run a job log acquisition program to execute log downloading operation so as to write the host job log into a host log file in a target text format and return the host log file to the server; responding to the request for acquiring the host log file, and sending the host log file to the client; therefore, the method can realize that the target host is called to operate the host side to acquire the operation log acquisition program corresponding to the query request by responding to the query request of the target operation, the operation log content related to the target operation is sent to the server, the required operation log information does not need to be manually consulted, the complex manual operation process is avoided, the operation log information of the host can be acquired at any time in a self-service manner, the time for testing and analyzing the daily service problems is favorably shortened, and great convenience is brought to daily operation and maintenance work of the host.
Drawings
FIG. 1 is a diagram of an application environment for a method for obtaining logs of a host in one embodiment;
FIG. 2 is a flow diagram illustrating a method for obtaining a master log in one embodiment;
FIG. 3 is a functional block diagram of a system of a self-service query system for logs of a host under an embodiment;
FIG. 4 is a flow chart illustrating a host log obtaining process corresponding to a host log obtaining method in an embodiment;
FIG. 5 is a logical processing diagram of a method for obtaining logs for a host in one embodiment;
FIG. 6 is a flow diagram illustrating another method for obtaining logs for a host in one embodiment;
FIG. 7 is a front-end page initial state diagram of a host log querying system, in one embodiment;
FIG. 8 is a diagram of a front end page of a specified job output query module, in one embodiment;
FIG. 9 is a query results diagram that specifies a job query module in one embodiment;
FIG. 10 is a diagram of a lookup interface of a hosted log querying system in one embodiment;
FIG. 11 is a diagram of a validation information window of a host log querying system in one embodiment;
FIG. 12 is a diagram of a download complete alert window of a hosted log querying system, in one embodiment;
FIG. 13 is a diagram of details of a local directory of a server in one embodiment;
FIG. 14 is a flow diagram illustrating another method for obtaining logs for a host in one embodiment;
FIG. 15 is a block diagram of a host log obtaining apparatus, according to one embodiment;
FIG. 16 is a block diagram of an alternative embodiment of a host log retrieving device;
FIG. 17 is a diagram of the internal structure of a computer device in one embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of and not restrictive on the broad application.
It should be noted that the host log obtaining method, device, computer device, storage medium, and computer program product disclosed in the present application may be applied to the field of intelligent operation and maintenance, and may also be applied to any field except the field of intelligent operation and maintenance.
The method for acquiring the master log provided by the embodiment of the application can be applied to the application environment shown in fig. 1. Wherein the terminal 102 communicates with the server 104 via a network. The server 104 calls a target host to run a job log acquisition program to execute log query operation in response to a first query request initiated for a target job; the log query operation is used for calling a job information display panel of the target host to acquire a host job log corresponding to the target job; the server 104 responds to a downloading request of the host job log, and calls a target host to run a job log acquisition program so as to execute log downloading operation; the log downloading operation is used for writing the host job log into a host log file in a target text format and returning the host log file to the server; the server 104 sends the master log file to the client in response to the acquisition request for the master log file. In practical applications, the server 104 may be implemented by a stand-alone server or a server cluster composed of a plurality of servers. The terminal 102 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices.
In one embodiment, as shown in fig. 2, a method for obtaining a master log is provided, which is described by taking the method as an example applied to the server 104 in fig. 1, and includes the following steps:
step S202, responding to a first query request initiated to a target job, and calling a target host to run a job log acquisition program to execute log query operation; the log query operation is used for calling a job information display panel of the target host to acquire a host job log corresponding to the target job.
The target job may be a running task for the running process of the host system.
The first query request may be a query request with a filtering condition, which is queried for job information of a target job.
Among them, the job log acquisition program may be a program that can be used to acquire a specified job log to a target host. For example, the job log acquisition program may be an REXX (programming language) program on the host side, and the acquisition of the host log may be completed.
The job information display panel may be a panel that displays job information currently running or completed on the host. For example, the job information presentation panel may be a subsystem ST panel (status of jobs) of a host SDSF (system Display and Search facility). Where the SDSF may provide the user with information about monitoring, managing and controlling the Z/OS system, the ST panel may present the user with job information that the host is currently running or running is completed, including job name, job ID, submitting user, etc.
The host job log may be a job log in which operation information of each operation task in the host system operation process is recorded.
In the specific implementation, a client acquires a log query request for a target job, a server responds to the log query request, the server calls a target host to operate a job log acquisition program corresponding to the host side, and the host displays a target job corresponding to the log query request through an information display panel by a system display and search tool.
For example, on a large-scale host deployed with multiple service processing functions, a service person at a client needs to obtain system operation process job information of a certain service, the service person sets service log query conditions such as an environment, a trigger user, a job name, a start date, an end date and the like at the client, a server responds to a log query request corresponding to the log query condition from the client, the server completes communication with the large-scale host through net.socket (a special inter-process communication for data transmission between a kernel-mode process and a user-mode process), finds a REXX program on the host side, which can be used for obtaining a host log meeting the log query condition, and the host calls an SDSF subsystem ST panel on the large-scale host through the REXX program to display the host job log meeting the log query condition of the client.
Step S204, responding to a downloading request of the host job log, and calling a target host to run a job log acquisition program so as to execute log downloading operation; the log downloading operation is used for writing the host job log into a host log file in a target text format and returning the host log file to the server.
The download request may be a request to return the target job to the server in a host log file in a specific text format.
The target text format may be various file formats capable of recording the text of the host job task running information. For example, the target text format may be a txt text format, a csv text format, and the like.
The host log file may be a file in which a host job log is recorded.
In the specific implementation, a client acquires a log downloading request of a host job log corresponding to a target job, a server responds to the log downloading request, the server calls a target host to operate a log acquisition program corresponding to a host side, the host calls a system display and search tool through the log acquisition program, the host job log corresponding to the log downloading request is written into a host log file in a specified text format, and the host returns the host log file to the server.
For example, on a large host deployed with multiple service processing functions, a service person at a client needs to download a host job log, the service person triggers a log downloading request for the host job log at the client, a server responds to the log downloading request from the host job log at the client, the server communicates with the large host through net.socket to find a REXX program on the host side that can be used to obtain the host log meeting a log query condition, and the host calls an SDSF subsystem ST panel on the large host through the REXX program to write the corresponding host job log into a txt-format file and place the corresponding host job log into a corresponding FTP server (a computer providing file storage and access services, which provides services according to an FTP protocol).
Step S206, in response to the request for obtaining the host log file, sends the host log file to the client.
In the specific implementation, the client side obtains a log obtaining request for the host log file, the server responds to the log obtaining request, and the server sends the host log file to the client side.
For example, in the case where the host log file already exists in the FTP server, the server transmits the host log file to the local directory in response to an acquisition request for the host log file.
According to the host log obtaining method, the host log obtaining device, the computer equipment, the computer readable storage medium and the computer program product, the target host is called to run the job log obtaining program to execute log query operation by responding to the first query request initiated to the target job, so that the job information display panel of the target host is called to obtain the host job log corresponding to the target job; in response to a downloading request of the host operation log, calling the target host to run an operation log acquisition program to execute log downloading operation so as to write the host operation log into a host log file in a target text format and return the host log file to the server; responding to the request for acquiring the host log file, and sending the host log file to the client; therefore, the method can realize that the target host is called to operate the host side to obtain the operation log acquisition program corresponding to the query request by responding to the query request of the target operation, the operation log content related to the target operation is sent to the server, the required operation log information does not need to be obtained by manual lookup, the complex manual operation process is avoided, the service of obtaining the operation log information of the host at any time in a self-service mode can be provided, the time for testing and analyzing the frequently-occurring service problems is reduced, and great convenience is brought to daily operation and maintenance work.
In another embodiment, the method further comprises: responding to a second query request initiated to the target operation, and calling the target host to run an operation log acquisition program so as to execute log query operation; the log query operation is used for calling a job information display panel of the target host to acquire host job log parameters corresponding to the target job; and sending the host job log parameters corresponding to the target job to the server.
The host job log parameter may be a key parameter corresponding to the target job.
The second query request may be a query request with a filtering condition for the target job key parameter, which is obtained by the client, where the filtering condition may be a keyword input by the client user.
In the specific implementation, a client acquires a log parameter query request for a target job, a server responds to the log parameter query request, the server calls a target host to run a job log acquisition program corresponding to a host side, and the host calls a system display and search tool through the job log acquisition program and sends host job log parameters corresponding to the host job log query parameter request to the server.
For example, on a large host deployed with multiple service processing functions, service personnel at a client needs to obtain key parameters of system operation process operation information of a certain service, the service personnel sets log query conditions such as a job name, an environment, a user, a job ID or other keywords at the client, a server responds to a log query request corresponding to the log query conditions from the client, the server completes communication with the large host through net.
According to the technical scheme, the log parameter of the target operation is acquired by calling the system display and search tool of the target host to respond to the log parameter query request of the target operation, and the log parameter of the target operation is sent to the server, so that the function of browsing the log parameter of the target operation on line can be provided, great convenience is brought to daily operation and maintenance work of the host for technicians, in addition, as the query request of the key parameter of the target operation can contain the keyword query automatically input by the user, the query is more flexible, and the query efficiency of the log of the host is effectively improved.
In order to facilitate understanding of those skilled in the art, fig. 3 further exemplarily provides a system function module diagram of a self-service query system for a host log corresponding to the host log obtaining method, where the host log query system includes two modules, namely, a specified job output query module and a query job specified content module, the specified job output query module may provide a download service, and the query job specified content module may provide an online browsing service. Meanwhile, fig. 4 also exemplarily provides a flow chart for obtaining a mainframe log corresponding to the method for obtaining a mainframe log, wherein after a client user opens a mainframe self-service log obtaining system according to url links, a designated job output query module or a job designated content query module is selected as needed, when the designated job output query module is selected, a related job log can be obtained through selecting relevant options such as an environment, a job name, an execution user, and the like, and the related job log can be downloaded and opened for viewing, and when the job designated content query module is selected, key parameters of the job log can be browsed on a page of the mainframe self-service obtaining system on line through inputting relevant contents such as the environment, the job name, a job ID, parameters, and the like.
In another embodiment, the job log obtaining program includes a job log query subprogram for, in response to a first query request initiated for a target job, invoking a target host to execute the job log obtaining program to perform a log query operation, including: in response to a first query request initiated for a target job, calling the target host to run a job log query subprogram so as to call a job information display panel of the target host; screening at least one job identification corresponding to the job name of the target job from a current queue of the job information display panel; and writing the job log content corresponding to the screened job identification into the host job log.
Wherein, the job log query subprogram may be a program for calling the job information presentation panel of the target host to write the job log content of the target job into the host job log.
Where the current queue may be a job task queue that the target host is running or running is done.
The job identifier may be a job (execution unit submitted by the computer operator to the operating system) id corresponding to each job task in the job task queue of the target host.
In the specific implementation, a client acquires a log query request for a target job, a server responds to the log query request, the server calls a target host to operate a job log query subprogram on a host side, the target host calls a job information display panel of a system display and search tool through the job log query subprogram, the target host screens out a job identifier matched with the log query request from a current queue of the job information display panel according to the log query request, and the target host writes job log content corresponding to the target job into a host job log according to the job identifier.
For example, the client obtains a log query request for a target job, the server responds to the log query request, the server calls the target host to run an REXX program on the host side so as to call an ST panel of the SDSF, the target host screens all job ids corresponding to the job name of the target job in a current queue of the ST panel according to the job name of the target job, and writes job log contents corresponding to each job id into a job log of the host.
According to the technical scheme, the pre-developed job log query subprogram is called on the host side by responding to the log query request of the target job, so that the job log content of the target job is written into the job log of the host, the step of manually exporting the job log content is avoided, and the job log content is more convenient to obtain.
In another embodiment, the job log obtaining program further includes a job log downloading sub-program that, in response to a download request for the job log of the host, calls the target host to execute the job log obtaining program to perform a log downloading operation, including: responding to a downloading request of the host job log, calling the target host to run a job log downloading subprogram so as to call a job information display panel of the target host; writing the host operation log into a host log file in a target text format through an operation information display panel; and sending the host log file in the target text format to the server.
The job log downloading sub program may be a program for calling a job information presentation panel of the target host to send a host log file in the target text format to the server.
In the specific implementation, the client side obtains a log downloading request for a host job log, the server responds to the log downloading request, the server calls the target host to run a job log downloading subprogram so that the host calls a job information display panel, the host writes the host job log into a host log file in a specified format through the job information display panel, and the host sends the host log file in the specified format to the server.
For example, the client side acquires a log downloading request for a host job log, the server responds to the log query request, the server calls a target host to run an REXX program on the host side so as to call an ST panel of the SDSF, the host writes the host job log into a host log file in a txt format, and then the host log file in the txt format is sent to the FTP server.
According to the technical scheme, the log query request of the target operation is responded, the pre-developed operation log downloading subprogram is called on the host side, the operation log of the host is written into the host log file with the specific format, the host log file is not required to be stored manually, and the host log file is more convenient to obtain.
For the understanding of those skilled in the art, fig. 5 further provides a logic processing diagram of a host log obtaining method by way of example, where the server receives a request for an ASP file, and transmits the request to an ASP.
In another embodiment, sending the master log file to the client in response to the retrieval request for the master log file comprises: and responding to the acquisition request of the host log file, and sending the host log file to the client in a character stream mode.
Wherein, the character stream may refer to a data transmission form.
In the specific implementation, a client acquires an acquisition request for a host log file, a server responds to the acquisition request for the host log file, and the server sends the host log file to a local directory in a character stream mode so as to provide the host log file to the client.
According to the technical scheme, the host log file is sent to the local directory in the form of the character stream, so that the data transmission speed is increased, and the transmission efficiency of the host log file can be improved.
In one embodiment, as shown in FIG. 6, another host log obtaining method is provided, comprising the steps of:
step S602, in response to the access operation to the master log query system, displaying a master log query interface.
Step S604, responding to the query operation implemented on the host log query interface, and displaying at least one host log file in the host log query interface; the host log file is generated according to the host job log; the host job log is determined by the server responding to the third query request and calling a target host control job log acquisition program to execute log query operation; the log query operation is used for calling a job information display panel of the target host to acquire a host job log corresponding to the target job; the third query request is a request initiated by the client for the target job.
Step S606, in response to the downloading operation of the at least one host log file, downloading the host log file to the local directory.
It should be noted that, for the specific limitations of the above steps, reference may be made to the above specific limitations of a host log obtaining method.
In the host log obtaining method, a host log query interface is displayed by responding to the access operation of a host log query system; displaying at least one host log file in the host log query interface by responding to query operation implemented on the host log query interface; downloading the host log file to a local directory in response to the downloading operation of at least one host log file; therefore, the required host log file can be acquired through the lookup interface of the foreground host log query system, the technical threshold for acquiring the host log is reduced, the dependence of the host log acquisition process on technicians is eliminated, and the embarrassment that the technicians must log in the host and can only acquire the host log manually is relieved.
In order to facilitate understanding of those skilled in the art, fig. 7 further exemplarily provides a front-end page initial state diagram of a host log query system, wherein the host log query system has two functional modules, one is a designated job query module including a text box into which corresponding information can be filled, such as an environment, a user name, a job name, a start time, an expiration time, and the like, and further including a "designated job query" button, and the other is a content query module including a text box into which corresponding information can be filled, such as a job name, an environment, a user, a job ID, a parameter, and the like, and further including a "designated parameter query" button. When the user selects the designated job query module to perform query, as shown in fig. 8, the user first selects the specific environment to be tested in the pull-down menu, defaults to PT1, then inputs the name of the executing user corresponding to the pre-query job (or may not input, the system displays all log lists on which the job name is executed), then inputs the most important job name, and finally inputs the time range (beijing time) of the job operation, and then the user clicks the "designated job query" button, and the designated job query module displays the log file information meeting the query conditions, as shown in fig. 9.
In another embodiment, downloading the host log file to the local directory in response to a download operation of the at least one host log file comprises: in response to a download operation of at least one host log file, sending a download request to a server; the downloading request is used for indicating the server to call the target host to run the job log acquisition program so as to execute log downloading operation; the log downloading operation is used for writing the host job log into a host log file in a target text format and returning the host log file to the server; responding to the opening operation of the host log file, and sending a downloading request to a server; the download request is to a local directory that instructs the server to send the host log file to the client in a character stream.
In the specific implementation, a client receives a downloading operation of a host log file, sends a downloading request to a server, the server responds to the downloading request, calls a target host to write a host log job into the host log file in a target text format, the target host returns the host log file to the server, the client sends the downloading request to the server under the condition that the client receives an opening operation of the host log file, and the server responds to the downloading request of the host log file and sends the host log file to a local directory of the client in a character stream mode.
For example, when a user clicks a "download" button in a lookup interface of a foreground host log query system, a server responds to a download request and completes a download operation by calling a target host, when the user clicks an "open" button in the lookup interface of the foreground host log query system, an open event is triggered, and the server downloads a local directory of a client in a character stream form through a LinkButton control (a component at the server end). The server responds to the opening request, and sends the host log file to the local directory of the client, and the user can obtain the host log file in a default download path of the local directory.
To facilitate understanding of those skilled in the art, fig. 10 further exemplarily provides a query interface diagram of a host log query system, where the query interface diagram shows a "download success" prompt window appearing after a user clicks a "download" button of a corresponding job log in a specified job query module on a query interface, the user may click a "confirm" button to confirm, then, the user may click an "open" button of the corresponding job log in the specified job query module on the query interface, and after clicking the "open" button, a confirmation information window for an open operation or a save operation appears, as shown in fig. 11, the user may click an "open", "save", or "cancel" button in the confirmation information window, and after clicking the "open" or "save" button, the query interface may appear a download completion prompt window, as shown in fig. 12, which indicates that the job log is downloaded, and finally, the user may find the corresponding job log in a local directory, as shown in fig. 13, and the user may select the corresponding job log as needed to obtain.
According to the technical scheme, a user can obtain the complete operation log by self by only operating the host log query interface and clicking the corresponding 'download' and 'open' buttons, and convenience is brought to daily development and test work.
In another embodiment, as shown in fig. 14, a host log obtaining method is provided, which is described by taking the method as an example applied to the server 104 in fig. 1, and includes the following steps:
step S1402, in response to the first query request initiated for the target job, invokes the target host to run the job log query subroutine to invoke the job information presentation panel of the target host.
In step S1404, at least one job id corresponding to the job name of the target job is screened out from the current queue of the job information display panel.
In step S1406, the job log content corresponding to the screened job identifier is written into the host job log.
Step S1408, in response to the download request for the job log of the host, calling the target host to run the job log obtaining program to perform a log download operation; the log downloading operation is used for writing the host job log into a host log file in a target text format and returning the host log file to the server.
Step S1410, in response to the request for obtaining the host log file, sending the host log file to the client.
It should be noted that, for the specific limitations of the above steps, reference may be made to the above specific limitations of a host log obtaining method, and details are not described herein again.
It should be understood that, although the steps in the flowcharts related to the embodiments as described above are sequentially displayed as indicated by arrows, the steps are not necessarily performed sequentially as indicated by the arrows. The steps are not limited to being performed in the exact order illustrated and, unless explicitly stated herein, may be performed in other orders. Moreover, at least a part of the steps in the flowcharts related to the embodiments described above may include multiple steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, and the execution order of the steps or stages is not necessarily sequential, but may be rotated or alternated with other steps or at least a part of the steps or stages in other steps.
Based on the same inventive concept, the embodiment of the present application further provides a host log obtaining apparatus for implementing the above-mentioned host log obtaining method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the method, so the specific limitations in one or more embodiments of the host log obtaining device provided below may refer to the limitations on the host log obtaining method in the foregoing, and details are not described here.
In one embodiment, as shown in fig. 15, there is provided a host log obtaining apparatus including:
a calling module 1502, configured to, in response to a first query request initiated for a target job, call a target host to run a job log obtaining program to perform a log query operation; the log query operation is used for calling a job information display panel of the target host to acquire a host job log corresponding to the target job;
a downloading module 1504, configured to, in response to a downloading request for the job log of the host, invoke a target host to run a job log obtaining program to perform a log downloading operation; the log downloading operation is used for writing the host job log into a host log file in a target text format and returning the host log file to the server;
the sending module 1506 is configured to send the host log file to the client in response to the request for obtaining the host log file.
In one embodiment, the apparatus further comprises: the execution module is used for responding to a second query request initiated to the target operation, and calling the target host to run an operation log acquisition program so as to execute log query operation; the log query operation is used for calling a job information display panel of the target host to acquire host job log parameters corresponding to the target job; and sending the host job log parameters corresponding to the target job to the server.
In one embodiment, the job log obtaining program includes a job log query subprogram for invoking the target host to run the job log obtaining program to perform a log query operation in response to a first query request initiated for the target job, and the invoking module 1502 is specifically configured to invoke the target host to run the job log query subprogram to invoke the job information display panel of the target host in response to the first query request initiated for the target job; screening at least one job identification corresponding to the job name of the target job from a current queue of the job information display panel; and writing the job log content corresponding to the screened job identification into the host job log.
In one embodiment, the job log obtaining program further includes a job log downloading sub-program for, in response to a downloading request for the job log of the host, invoking the target host to run the job log obtaining program to perform a log downloading operation, and the downloading module 1504 is specifically configured to, in response to a downloading request for the job log of the host, invoke the target host to run the job log downloading sub-program to invoke the job information display panel of the target host; writing the host operation log into a host log file in a target text format through an operation information display panel; and sending the host log file in the target text format to a server.
In one embodiment, in response to the request for obtaining the host log file, the sending module 1506 is specifically configured to send the host log file to the client in a form of a character stream in response to the request for obtaining the host log file.
In one embodiment, as shown in fig. 16, there is provided another host log obtaining apparatus including:
a display module 1602, configured to display a log query interface of a host in response to an access operation on the log query system of the host;
a query module 1604 for displaying at least one host log file in the host log query interface in response to a query operation performed on the host log query interface; the host log file is generated according to the host job log; the host job log is determined by the server responding to the third query request and calling a target host to control a job log acquisition program to execute log query operation; the log query operation is used for calling a job information display panel of the target host to acquire a host job log corresponding to the target job; the third query request is a request initiated by the client to the target operation;
a downloading module 1606, configured to download the host log file to the local directory in response to a downloading operation of the at least one host log file.
In one embodiment, the downloading module 1606 is specifically configured to send a download request to the server in response to a download operation on the at least one host log file, where the download operation is performed on the at least one host log file; the downloading request is used for indicating the server to call the target host to run the job log acquisition program so as to execute log downloading operation; the log downloading operation is used for writing the host job log into a host log file in a target text format and returning the host log file to the server; responding to the opening operation of the host log file, and sending a downloading request to a server; the download request is to a local directory instructing the server to send the host log file to the client in a character stream.
The modules in the above-mentioned host log obtaining apparatus may be wholly or partially implemented by software, hardware, or a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 17. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing the host log acquisition data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a host log retrieval method.
Those skilled in the art will appreciate that the architecture shown in fig. 17 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, causes the processor to perform the steps of a host log retrieving method as described above. Here, the steps of a master log obtaining method may be steps in a master log obtaining method according to the foregoing embodiments.
In one embodiment, a computer-readable storage medium is provided, storing a computer program that, when executed by a processor, causes the processor to perform the steps of a host log retrieving method as described above. Here, the steps of a host log obtaining method may be steps in a host log obtaining method according to the above embodiments.
In one embodiment, a computer program product is provided, comprising a computer program which, when executed by a processor, causes the processor to perform the steps of a host log acquisition method as described above. Here, the steps of a host log obtaining method may be steps in a host log obtaining method according to the above embodiments.
It should be noted that, the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, presented data, etc.) referred to in the present application are information and data authorized by the user or sufficiently authorized by each party.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high-density embedded nonvolatile Memory, resistive Random Access Memory (ReRAM), magnetic Random Access Memory (MRAM), ferroelectric Random Access Memory (FRAM), phase Change Memory (PCM), graphene Memory, and the like. Volatile Memory can include Random Access Memory (RAM), external cache Memory, and the like. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM), for example. The databases referred to in various embodiments provided herein may include at least one of relational and non-relational databases. The non-relational database may include, but is not limited to, a block chain based distributed database, and the like. The processors referred to in the embodiments provided herein may be general purpose processors, central processing units, graphics processors, digital signal processors, programmable logic devices, quantum computing based data processing logic devices, etc., without limitation.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, and these are all within the scope of protection of the present application. Therefore, the protection scope of the present application should be subject to the appended claims.
Claims (12)
1. A method for obtaining a master log is applied to a server, and comprises the following steps:
responding to a first query request initiated to a target job, and calling a target host to run a job log acquisition program so as to execute log query operation; the log query operation is used for calling a job information display panel of the target host to acquire a host job log corresponding to the target job;
responding to a downloading request of the host job log, and calling the target host to run the job log acquisition program to execute log downloading operation; the log downloading operation is used for writing the host job log into a host log file in a target text format and returning the host log file to the server;
and responding to the acquisition request of the host log file, and sending the host log file to a client.
2. The method of claim 1, further comprising:
responding to a second query request initiated to the target operation, and calling the target host to run an operation log acquisition program so as to execute log query operation; the log query operation is used for calling a job information display panel of the target host to acquire host job log parameters corresponding to the target job;
and sending the host job log parameters corresponding to the target job to the server.
3. The method according to claim 1, wherein the job log obtaining program comprises a job log query subprogram, and the invoking the target host to run the job log obtaining program to perform the log query operation in response to the first query request initiated for the target job comprises:
in response to a first query request initiated for a target job, calling the target host to run the job log query subprogram so as to call a job information display panel of the target host;
screening out at least one job identification corresponding to the job name of the target job from the current queue of the job information display panel;
and writing the job log content corresponding to the screened job identification into a host job log.
4. The method according to claim 1, wherein the job log obtaining program further includes a job log downloading sub-program that, in response to a download request for the job log of the host, calls the target host to execute the job log obtaining program to perform a log downloading operation, including:
responding to a downloading request of the host job log, calling the target host to run the job log downloading subprogram so as to call a job information display panel of the target host;
writing the host job log into a host log file in a target text format through the job information display panel;
and sending the host log file in the target text format to the server.
5. The method of claim 1, wherein sending the master log file to a client in response to the request for obtaining the master log file comprises:
and responding to the acquisition request of the host log file, and sending the host log file to a client in a character stream mode.
6. A method for obtaining a master log, the method comprising:
responding to the access operation of the host log query system, and displaying a host log query interface;
displaying at least one mainframe log file in the mainframe log query interface in response to a query operation implemented in the mainframe log query interface; the host log file is generated according to the host job log; the host job log is determined by the server responding to the third query request and calling a target host to control a job log acquisition program to execute log query operation; the log query operation is used for calling a job information display panel of the target host to acquire a host job log corresponding to the target job; the third query request is a request initiated by the client to the target operation;
and responding to the downloading operation of at least one host log file, and downloading the host log file to a local directory.
7. The method of claim 6, wherein downloading the master log file to a local directory in response to the downloading of the at least one master log file comprises:
responding to a downloading operation of at least one host log file, and sending a downloading request to a server; the downloading request is used for instructing a server to call the target host to run the job log acquisition program so as to execute log downloading operation; the log downloading operation is used for writing the host job log into a host log file in a target text format and returning the host log file to the server;
responding to the opening operation of the host log file, and sending a downloading request to a server; and the downloading request is sent to the local directory for instructing the server to send the host log file to the client in a character stream mode.
8. A host log obtaining apparatus, the apparatus comprising:
the system comprises a calling module, a target host and a log query module, wherein the calling module is used for responding to a first query request initiated to a target job and calling the target host to run a job log acquisition program so as to execute log query operation; the log query operation is used for calling a job information display panel of the target host to acquire a host job log corresponding to the target job;
the downloading module is used for responding to a downloading request of the host job log, and calling the target host to run the job log acquisition program so as to execute log downloading operation; the log downloading operation is used for writing the host job log into a host log file in a target text format and returning the host log file to the server;
and the sending module is used for responding to the acquisition request of the host log file and sending the host log file to a client.
9. A host log obtaining apparatus, the apparatus comprising:
the display module is used for responding to the access operation of the host log query system and displaying a host log query interface;
the query module is used for responding to query operation implemented on the host log query interface and displaying at least one host log file in the host log query interface; the host log file is generated according to the host job log; the host job log is determined by the server responding to the third query request and calling a target host to control a job log acquisition program to execute log query operation; the log query operation is used for calling a job information display panel of the target host to acquire a host job log corresponding to the target job; the third query request is a request initiated by the client to the target operation;
and the downloading module is used for responding to the downloading operation of at least one host log file and downloading the host log file to a local directory.
10. A computer device comprising a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the method of any of claims 1 to 7.
11. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
12. A computer program product comprising a computer program, characterized in that the computer program realizes the steps of the method of any one of claims 1 to 7 when executed by a processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211245234.3A CN115687004A (en) | 2022-10-12 | 2022-10-12 | Host log obtaining method and device and computer equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211245234.3A CN115687004A (en) | 2022-10-12 | 2022-10-12 | Host log obtaining method and device and computer equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115687004A true CN115687004A (en) | 2023-02-03 |
Family
ID=85065184
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211245234.3A Pending CN115687004A (en) | 2022-10-12 | 2022-10-12 | Host log obtaining method and device and computer equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115687004A (en) |
-
2022
- 2022-10-12 CN CN202211245234.3A patent/CN115687004A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US12067007B1 (en) | Analyzing a pipelined search to determine data on which to execute the pipelined search | |
US11593400B1 (en) | Automatic triage model execution in machine data driven monitoring automation apparatus | |
US20220121410A1 (en) | Technology add-on interface | |
US20220083572A1 (en) | Extraction rule generation using clustering | |
US10942960B2 (en) | Automatic triage model execution in machine data driven monitoring automation apparatus with visualization | |
US11829330B2 (en) | Log data extraction from data chunks of an isolated execution environment | |
US8812546B1 (en) | State management for user interfaces | |
US11086974B2 (en) | Customizing a user behavior analytics deployment | |
US6714928B1 (en) | Development system providing HTML database control object | |
US20170286455A1 (en) | Technology Add-On Packages Controlling a Data Input and Query System | |
US8645760B2 (en) | Alternate procedures assisting computer users in solving problems related to error and informational messages | |
US7480898B2 (en) | System and method for building full batch test environments | |
US9495376B2 (en) | Content migration tool and method associated therewith | |
US20190098068A1 (en) | Customizable load balancing in a user behavior analytics deployment | |
US11921799B1 (en) | Generating and using alert definitions | |
US20070157100A1 (en) | System and method for organization and retrieval of files | |
US11875275B1 (en) | Custom time series models in computer analytics systems | |
WO2021072742A1 (en) | Assessing an impact of an upgrade to computer software | |
US10534588B2 (en) | Data processing simulator with simulator module and data elements | |
CN115687004A (en) | Host log obtaining method and device and computer equipment | |
US11113301B1 (en) | Generating metadata for events based on parsed location information of data chunks of an isolated execution environment | |
US20200120183A1 (en) | Method, device and program product for accessing backup server through office software | |
CN116506540A (en) | Page data request method and device, electronic equipment and readable storage medium | |
CN117312307A (en) | Service data processing method, device, computer equipment and storage medium | |
CN116456021A (en) | Page data request method and device, electronic equipment and readable storage medium |
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 |