CN113765694A - Log information display method and device, electronic equipment and computer readable medium - Google Patents

Log information display method and device, electronic equipment and computer readable medium Download PDF

Info

Publication number
CN113765694A
CN113765694A CN202110312578.0A CN202110312578A CN113765694A CN 113765694 A CN113765694 A CN 113765694A CN 202110312578 A CN202110312578 A CN 202110312578A CN 113765694 A CN113765694 A CN 113765694A
Authority
CN
China
Prior art keywords
log
server
log information
internet protocol
script
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.)
Granted
Application number
CN202110312578.0A
Other languages
Chinese (zh)
Other versions
CN113765694B (en
Inventor
陈文杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Tuoxian Technology Co Ltd
Original Assignee
Beijing Jingdong Tuoxian Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Tuoxian Technology Co Ltd filed Critical Beijing Jingdong Tuoxian Technology Co Ltd
Priority to CN202110312578.0A priority Critical patent/CN113765694B/en
Publication of CN113765694A publication Critical patent/CN113765694A/en
Application granted granted Critical
Publication of CN113765694B publication Critical patent/CN113765694B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/069Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]

Abstract

The embodiment of the disclosure discloses a log information display method and device, electronic equipment and a computer readable medium. One embodiment of the method comprises: responding to a received starting command of a script, starting a terminal window based on a server Internet protocol address set included in the script, wherein the script further comprises: a server directory log path; responding to log retrieval information received through a started terminal window, and acquiring log information corresponding to the log query operation based on the server Internet protocol address set and the server directory log path; and displaying the log information in a terminal window corresponding to the acquired log information. This embodiment may reduce the time consumed to query log information. Thus, the display efficiency of the log information is improved.

Description

Log information display method and device, electronic equipment and computer readable medium
Technical Field
The embodiment of the disclosure relates to the technical field of computers, in particular to a log information display method and device, electronic equipment and a computer readable medium.
Background
The log information display method is a method for processing and displaying log information. At present, a commonly used log information display method is to set up a log collection platform, sequentially query log information stored in a plurality of servers according to a user query command, and finally display the queried log information.
However, when the log information display is performed by the above method, there are often technical problems as follows:
the cost of building the log collection platform is high, and secondly, the log collection platform sequentially inquires the log information needing to be displayed from the plurality of servers, so that the log information display efficiency is reduced.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
Some embodiments of the present disclosure propose log information display methods, apparatuses, electronic devices, and computer readable media to solve one or more of the technical problems mentioned in the background section above.
In a first aspect, some embodiments of the present disclosure provide a log information display method, including: responding to a received starting command of a script, starting a terminal window based on a server Internet protocol address set included in the script, wherein the script further comprises: a server directory log path; responding to log retrieval information received through a started terminal window, and acquiring log information corresponding to the log query operation based on the server Internet protocol address set and the server directory log path; and displaying the log information in a terminal window corresponding to the acquired log information.
Optionally, starting a plurality of terminal windows and logging in a plurality of servers corresponding to the server ip address set based on the server ip address set in the script, including: and starting a target number of terminal windows based on the server Internet protocol address set in the script, wherein the target number is determined according to the number of the server Internet protocol addresses in the server Internet protocol address set.
Optionally, starting a plurality of terminal windows and logging in a plurality of servers corresponding to the server ip address set based on the server ip address set in the script, further comprising: and logging in to the server indicated by the server internet protocol address corresponding to the server internet protocol address set based on each terminal window in the target number of terminal windows.
Optionally, based on the server ip address set in the script, a plurality of terminal windows are started and a plurality of servers corresponding to the server ip address set are registered, where the method further includes: and displaying the log directory of the server indicated by the server log directory path in the plurality of terminal windows.
Optionally, obtaining log information corresponding to the log query operation based on the server directory log path includes: determining a log query condition corresponding to the log query operation; and acquiring the log information matched with the log query condition based on the log query condition and the log catalog displayed in the started terminal window.
Optionally, the obtaining of the log information matched with the log query condition includes: and executing the log query operation in parallel for each started terminal window to acquire log information matched with the log query condition.
In a second aspect, some embodiments of the present disclosure provide a log information display apparatus, the apparatus including: a starting and logging unit configured to start a terminal window based on a server internet protocol address set included in a script in response to receiving a starting command for the script, wherein the script further includes: a server directory log path; an obtaining unit configured to obtain log information corresponding to the log query operation based on the server ip address set and the server directory log path in response to receiving log retrieval information through the started terminal window; and the display unit is configured to display the log information in a terminal window corresponding to the acquired log information.
Optionally, the starting and logging unit is further configured to: and starting a target number of terminal windows based on the server Internet protocol address set in the script, wherein the target number is determined according to the number of the server Internet protocol addresses in the server Internet protocol address set.
Optionally, the starting and logging unit is further configured to: and logging in to the server indicated by the server internet protocol address corresponding to the server internet protocol address set based on each terminal window in the target number of terminal windows.
Optionally, the starting and logging unit further includes: and a log directory display unit configured to display a log directory of the server indicated by the server log directory path in the plurality of terminal windows.
Optionally, the obtaining unit is further configured to: determining a log query condition corresponding to the log query operation; and acquiring the log information matched with the log query condition based on the log query condition and the log catalog displayed in the started terminal window.
Optionally, the obtaining unit is further configured to: and executing the log query operation in parallel for each started terminal window to acquire log information matched with the log query condition.
In a third aspect, some embodiments of the present disclosure provide an electronic device, comprising: one or more processors; a storage device having one or more programs stored thereon, which when executed by one or more processors, cause the one or more processors to implement the method described in any of the implementations of the first aspect.
In a fourth aspect, some embodiments of the present disclosure provide a computer readable medium on which a computer program is stored, wherein the program, when executed by a processor, implements the method described in any of the implementations of the first aspect.
The above embodiments of the present disclosure have the following advantages: by the log information display method of some embodiments of the disclosure, the cost can be reduced, and the time consumed for inquiring the log information can be reduced. Specifically, the cost of displaying log information is high, and the reason why it takes much time to query log information is that: the cost of building the log collection platform is high, and secondly, the log collection platform needs to be inquired from a plurality of servers in sequence. Based on this, in the log information display method of some embodiments of the present disclosure, first, to avoid building a log collection platform, a script for log information display is introduced to start a terminal window to directly query log information from a server. Thus, the log collection platform can be avoided from being set up. Thus, the problem of high cost can be avoided. Then, log information stored in a plurality of servers can be simultaneously inquired according to the internet protocol address of the server and the server directory log path included in the script. Compared with the common method of sequentially inquiring the log information to be displayed from the plurality of servers, the method can reduce the time consumed by inquiring the log information. Thus, the display efficiency of the log information is improved.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and elements are not necessarily drawn to scale.
FIG. 1 is a schematic diagram of one application scenario of a log information display method according to some embodiments of the present disclosure
FIG. 2 is a flow diagram of some embodiments of a log information display method according to the present disclosure;
FIG. 3 is a flow diagram of further embodiments of a log information display method according to the present disclosure;
FIG. 4 is a schematic diagram of a startup terminal window in a log information display method according to some embodiments of the present disclosure;
FIG. 5 is a schematic block diagram of some embodiments of a log information display apparatus according to the present disclosure;
FIG. 6 is a schematic structural diagram of an electronic device suitable for use in implementing some embodiments of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be noted that, for convenience of description, only the portions related to the related invention are shown in the drawings. The embodiments and features of the embodiments in the present disclosure may be combined with each other without conflict.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 is a schematic diagram of an application scenario of a log information display method of some embodiments of the present disclosure.
In the application scenario of fig. 1, first, in response to receiving a start command for a script 102, the computing device 101 may start a plurality of terminal windows 103 and log in a plurality of servers 104 corresponding to a server internet protocol address set 1021 in the script 102 based on the server internet protocol address set 1021 in the script 102, where the script 102 includes: the set of server ip addresses 1021 and the server directory log path 1022. By way of example, the script 102 name may be: py. Then, the start command of the script 102 may be: py ". The server ip address may be: 192.120.12.1. the server ip address set 1021 may be: [192.120.12.1, 192.120.12.2]. Then, in response to detecting a log query operation on the started terminal window 103, the computing device 101 may acquire log information 105 corresponding to the log query operation based on the server directory log path 1022. As an example, the log information 105 may be: "2021/01/20/404 login server failed". The server directory log path 1022 may be: "project _ log _ path". Finally, the computing device 101 may display the log information 105 in the terminal window 1031 corresponding to the acquired log information 105.
The computing device 101 may be hardware or software. When the computing device is hardware, it may be implemented as a distributed cluster composed of multiple servers or terminal devices, or may be implemented as a single server or a single terminal device. When the computing device is embodied as software, it may be installed in the hardware devices enumerated above. It may be implemented, for example, as multiple software or software modules to provide distributed services, or as a single software or software module. And is not particularly limited herein.
It should be understood that the number of computing devices in FIG. 1 is merely illustrative. There may be any number of computing devices, as implementation needs dictate.
With continued reference to fig. 2, a flow diagram 200 of some embodiments of a log information display method according to the present disclosure is shown. The log information display method comprises the following steps:
step 201, in response to receiving a start command to the script, starting a plurality of terminal windows and a plurality of servers corresponding to the login server internet protocol address set based on the server internet protocol address set in the script.
In some embodiments, an executing entity (e.g., the computing device 101 shown in fig. 1) of the log information display method may start a plurality of terminal windows and log in a plurality of servers corresponding to the server internet protocol address set based on the server internet protocol address set in the script in response to receiving a start command to the script. Wherein, the script may include: the server ip address set and the server directory log path. The number of the above-mentioned started terminal windows may be a predetermined number. For example 3. The number of server ip addresses in the set of server ip addresses may be 2. Specifically, two server ip addresses in the server ip address set may respectively correspond to any two of the three terminal windows that are started. The initiated terminal window may connect to the server according to the corresponding server internet protocol address. Then, one more terminal window can be used as a main query window for uniformly issuing log query commands to the terminal windows.
Step 202, in response to detecting the log query operation on the started terminal window, obtaining log information corresponding to the log query operation based on the server directory log path.
In some embodiments, the executing entity may obtain log information corresponding to the log query operation based on the server directory log path in response to detecting the log query operation on the started terminal window. The script may connect the started terminal window to a directory log path of a server based on the directory log path, so that log query may be performed according to a detected log query operation on the started terminal window. In addition, the log query operation may be a log query operation of a user on a terminal window. Specifically, the user may input a log query command (e.g., Grep or eggrep for searching a string meeting a condition in a file) to the terminal window to query the log information.
In some optional implementation manners of some embodiments, the obtaining, by the execution main body, log information corresponding to the log query operation based on the server directory log path may include:
firstly, determining a log query condition corresponding to the log query operation. The log query condition may be a parameter item in the log query command. For example, when the parameter item in the Grep query command is "-i" or "- - - - -align-case", the case of the character in the queried log information may not be distinguished. The log query condition may also be a regular expression.
And secondly, acquiring log information matched with the log query condition based on the log query condition and the log catalog displayed in the started terminal window. Specifically, the log information meeting the log query condition is queried from the log directory according to the log query condition in the log query command.
As an example, the log query command may be: "grep-i project/log/path". Then, "-i" may be a parameter item of the log query command. Therefore, the queried log information can not distinguish the case of the character string existing in the log information.
In some optional implementations of some embodiments, the obtaining, by the execution main body, log information matching the log query condition may include:
and executing the log query operation in parallel for each started terminal window to acquire log information matched with the log query condition. The parallel execution of the log query operation may be that the started terminal windows query log information from corresponding servers at the same time. The log information that matches the log condition may be log information that satisfies the query condition.
And step 203, displaying the log information in a terminal window corresponding to the acquired log information.
In some embodiments, the executing body may display the log information in a terminal window corresponding to the acquired log information. Since one terminal window may correspond to a log directory of one server. Therefore, when there is a terminal window which inquires the log information required by the user from the log directory of the server, the inquired log information can be displayed on the terminal window corresponding to the log information.
The above embodiments of the present disclosure have the following advantages: by the log information display method of some embodiments of the disclosure, the cost can be reduced, and the time consumed for inquiring the log information can be reduced. Specifically, the cost of displaying log information is high, and the reason why it takes much time to query log information is that: the cost of building the log collection platform is high, and secondly, the log collection platform needs to be inquired from a plurality of servers in sequence. Based on this, in the log information display method of some embodiments of the present disclosure, first, to avoid building a log collection platform, a script for log information display is introduced to start a terminal window to directly query log information from a server. Thus, the log collection platform can be avoided from being set up. Thus, the problem of high cost can be avoided. Then, log information stored in a plurality of servers can be simultaneously inquired according to the internet protocol address of the server and the server directory log path included in the script. Compared with the common method of sequentially inquiring the log information to be displayed from the plurality of servers, the method can reduce the time consumed by inquiring the log information. Thus, the display efficiency of the log information is improved.
With continued reference to fig. 3, fig. 3 illustrates a flow 300 of some embodiments of a log information display method according to the present disclosure. The log information display method comprises the following steps:
step 301, in response to receiving a start command for the script, starting a target number of terminal windows based on the server ip address set in the script.
In some embodiments, the execution agent may start a target number of terminal windows based on a set of server internet protocol addresses in the script in response to receiving a start command for the script. Wherein the target number is determined according to the number of server IP addresses in the server IP address set.
As an example, as shown in fig. 4, the number of server internet protocol addresses in the server internet protocol address set 401 may be: 2. then the number of terminal windows 402 launched may also be 2. Wherein each enabled terminal window 402 may correspond to a server internet protocol address in the set of server internet protocol addresses 401.
And step 302, logging in a server indicated by a server internet protocol address corresponding to the server internet protocol address set based on each terminal window in the started target number of terminal windows.
In some embodiments, the executing agent may log in to a server indicated by a corresponding server internet protocol address in the server internet protocol address set based on each of the started target number of terminal windows. Wherein, the started terminal window may be in one-to-one correspondence with the server internet protocol address in the server internet protocol address set. Logging into the server may be by connecting each terminal window with the server indicated by the corresponding server internet protocol address in the set of server internet protocol addresses. Thus, the started terminal window can be used for executing log query operation to different servers in parallel.
Step 303, displaying the log directory of the server indicated by the server log directory path in a plurality of terminal windows.
In some embodiments, the executing entity may display a log directory of the server indicated by the server log directory path in the plurality of terminal windows. Since the log directory paths in different servers may be the same, the execution agent may switch the query path of the terminal window to the server log directory and display the query path after starting the terminal window.
And 304, in response to detecting the log query operation on the started terminal window, acquiring log information corresponding to the log query operation based on the server directory log path.
In some embodiments, the execution subject may obtain log information corresponding to a log query operation based on a server directory log path in response to detecting the log query operation on the started terminal window. Any one of the started terminal windows may be used as a terminal window for detecting a log inquiry operation. After each terminal window is connected to the directory log path of the server, the user can input a log query command at any one terminal window. Then, each of the started terminal windows may execute the log query command in parallel. Thereby, log information is acquired. The log query operation may correspond to a log query command. The queried log information may correspond to the log operation described above.
And 305, displaying the log information in a terminal window corresponding to the acquired log information.
In some embodiments, the specific implementation manner and technical effects of step 305 may refer to step 203 in those embodiments corresponding to fig. 2, and are not described herein again.
As can be seen from fig. 3, compared with the description of some embodiments corresponding to fig. 2, the process 300 of the log information display method of some embodiments corresponding to fig. 3 embodies a step of further expanding the start terminal window. Thus, the methods described in these embodiments can be used to log in to different servers by launching the same number of terminal windows as the number of server ip addresses in the set of server ip addresses included in the script, and separately. Then, according to the server directory log path, the log directories in different servers can be queried in parallel. Therefore, the query efficiency of the log information is improved.
With further reference to fig. 5, as an implementation of the methods shown in the above figures, the present disclosure provides some embodiments of a log information display apparatus, which correspond to those shown in fig. 2, and which may be particularly applied in various electronic devices.
As shown in fig. 5, the log information display apparatus 500 of some embodiments includes: a startup and login unit 501, an acquisition unit 502, and a display unit 503. The starting and logging unit 501 is configured to, in response to receiving a starting command for a script, start a terminal window based on a server ip address set included in the script, where the script further includes: a server directory log path; an obtaining unit 502 configured to, in response to receiving log retrieval information through the started terminal window, obtain log information corresponding to the log query operation based on the server ip address set and the server directory log path; a display unit 503 configured to display the log information in a terminal window corresponding to the acquired log information.
In some optional implementations of some embodiments, the starting and logging unit 501 is further configured to: and starting a target number of terminal windows based on the server Internet protocol address set in the script, wherein the target number is determined according to the number of the server Internet protocol addresses in the server Internet protocol address set.
In some optional implementations of some embodiments, the starting and logging unit 501 is further configured to: and logging in a server indicated by a server internet protocol address corresponding to the server internet protocol address set based on each terminal window in the started target number of terminal windows.
In some optional implementations of some embodiments, the starting and logging unit 501 further includes: and a log directory display unit (not shown in the figure) configured to display the log directory of the server indicated by the server log directory path in the started terminal window.
In some optional implementations of some embodiments, the obtaining unit 502 is further configured to: determining a log query condition corresponding to the log query operation; and acquiring the log information matched with the log query condition based on the log query condition and the log catalog displayed in the started terminal window.
In some optional implementations of some embodiments, the obtaining unit 502 is further configured to: and executing the log query operation in parallel for each started terminal window to acquire log information matched with the log query condition.
It will be understood that the elements described in the apparatus 500 correspond to various steps in the method described with reference to fig. 2. Thus, the operations, features and resulting advantages described above with respect to the method are also applicable to the apparatus 500 and the units included therein, and are not described herein again.
As shown in fig. 6, electronic device 600 may include a processing means (e.g., central processing unit, graphics processor, etc.) 601 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM603, various programs and data necessary for the operation of the electronic apparatus 600 are also stored. The processing device 601, the ROM 602, and the RAM603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; output devices 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. While fig. 6 illustrates an electronic device 600 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided. Each block shown in fig. 6 may represent one device or may represent multiple devices as desired.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, some embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In some such embodiments, the computer program may be downloaded and installed from a network through the communication device 609, or installed from the storage device 608, or installed from the ROM 602. The computer program, when executed by the processing device 601, performs the above-described functions defined in the methods of some embodiments of the present disclosure.
It should be noted that the computer readable medium described above in some embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In some embodiments of the disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In some embodiments of the present disclosure, however, a computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network Protocol, such as HTTP (HyperText Transfer Protocol), and may interconnect with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately, and in response to receiving a start command for a script, start a terminal window based on a server internet protocol address set included in the script, where the script further includes: a server directory log path; responding to log retrieval information received through a started terminal window, and acquiring log information corresponding to the log query operation based on the server Internet protocol address set and the server directory log path; and displaying the log information in a terminal window corresponding to the acquired log information.
Computer program code for carrying out operations for embodiments of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in some embodiments of the present disclosure may be implemented by software, and may also be implemented by hardware. The described units may also be provided in a processor, and may be described as: a processor includes a start unit, an acquisition unit, and a display unit. Here, the names of these units do not constitute a limitation to the unit itself in some cases, and for example, the display unit may also be described as "a unit that displays the above log information in a terminal window corresponding to the acquired log information".
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the invention in the embodiments of the present disclosure is not limited to the specific combination of the above-mentioned features, but also encompasses other embodiments in which any combination of the above-mentioned features or their equivalents is made without departing from the inventive concept as defined above. For example, the above features and (but not limited to) technical features with similar functions disclosed in the embodiments of the present disclosure are mutually replaced to form the technical solution.

Claims (10)

1. A log information display method includes:
in response to receiving a starting command of a script, starting a plurality of terminal windows and logging in a plurality of servers corresponding to a server internet protocol address set based on the server internet protocol address set in the script, wherein the script comprises: the server IP address set and server directory log path;
responding to the detection of log query operation on the started terminal window, and acquiring log information corresponding to the log query operation based on the server directory log path;
and displaying the log information in a terminal window corresponding to the acquired log information.
2. The method of claim 1, wherein the launching a plurality of terminal windows and logging in a plurality of servers corresponding to the server internet protocol address set based on the server internet protocol address set in the script comprises:
starting a target number of terminal windows based on the server internet protocol address set in the script, wherein the target number is determined according to the number of server internet protocol addresses in the server internet protocol address set.
3. The method of claim 2, wherein the initiating a plurality of terminal windows and logging in a plurality of servers corresponding to the set of server internet protocol addresses based on the set of server internet protocol addresses in the script further comprises:
logging in to a server indicated by a corresponding server internet protocol address in the set of server internet protocol addresses based on each of the target number of terminal windows.
4. The method of claim 3, wherein the method further comprises:
and displaying the log directory of the server indicated by the server log directory path in the plurality of terminal windows.
5. The method of claim 4, wherein the obtaining log information corresponding to the log query operation based on the server directory log path comprises:
determining a log query condition corresponding to the log query operation;
and acquiring the log information matched with the log query condition based on the log query condition and the log catalog displayed in the started terminal window.
6. The method of claim 5, wherein the obtaining log information matching the log query condition comprises:
and executing the log query operation in parallel for each started terminal window to acquire log information matched with the log query condition.
7. A log information display apparatus comprising:
the starting and logging unit is configured to respond to a received starting command of a script, and based on a server Internet protocol address set in the script, a plurality of terminal windows are started and a plurality of servers corresponding to the server Internet protocol address set are logged in, wherein the script comprises: the server IP address set and server directory log path;
an acquisition unit configured to acquire, in response to detection of a log query operation on the started terminal window, log information corresponding to the log query operation based on the server directory log path;
and the display unit is configured to display the log information in a terminal window corresponding to the acquired log information.
8. The log information display device of claim 7, wherein the obtaining unit is further configured to:
determining a log query condition corresponding to the log query operation;
and acquiring the log information matched with the log query condition based on the log query condition and the log catalog displayed in the started terminal window.
9. An electronic device, comprising:
one or more processors;
a storage device having one or more programs stored thereon,
when executed by the one or more processors, cause the one or more processors to implement the method of any one of claims 1-6.
10. A computer-readable medium, on which a computer program is stored, wherein the program, when executed by a processor, implements the method of any one of claims 1-6.
CN202110312578.0A 2021-03-24 2021-03-24 Log information display method, device, electronic equipment and computer readable medium Active CN113765694B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110312578.0A CN113765694B (en) 2021-03-24 2021-03-24 Log information display method, device, electronic equipment and computer readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110312578.0A CN113765694B (en) 2021-03-24 2021-03-24 Log information display method, device, electronic equipment and computer readable medium

Publications (2)

Publication Number Publication Date
CN113765694A true CN113765694A (en) 2021-12-07
CN113765694B CN113765694B (en) 2024-04-19

Family

ID=78786749

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110312578.0A Active CN113765694B (en) 2021-03-24 2021-03-24 Log information display method, device, electronic equipment and computer readable medium

Country Status (1)

Country Link
CN (1) CN113765694B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080065617A1 (en) * 2005-08-18 2008-03-13 Yahoo! Inc. Search entry system with query log autocomplete
CN103853743A (en) * 2012-11-29 2014-06-11 百度在线网络技术(北京)有限公司 Distributed system and log query method thereof
CN107784050A (en) * 2016-12-14 2018-03-09 平安科技(深圳)有限公司 Log information lookup method and device
CN107819616A (en) * 2017-10-30 2018-03-20 杭州安恒信息技术有限公司 Automatically extract the method, apparatus and system of daily record
CN108737467A (en) * 2017-04-19 2018-11-02 腾讯科技(深圳)有限公司 A kind of server log inspection method, device and system
CN109800223A (en) * 2018-12-12 2019-05-24 平安科技(深圳)有限公司 Log processing method, device, electronic equipment and storage medium
CN110781143A (en) * 2019-11-05 2020-02-11 北纬通信科技南京有限责任公司 Method and device for querying and extracting server logs

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080065617A1 (en) * 2005-08-18 2008-03-13 Yahoo! Inc. Search entry system with query log autocomplete
CN103853743A (en) * 2012-11-29 2014-06-11 百度在线网络技术(北京)有限公司 Distributed system and log query method thereof
CN107784050A (en) * 2016-12-14 2018-03-09 平安科技(深圳)有限公司 Log information lookup method and device
CN108737467A (en) * 2017-04-19 2018-11-02 腾讯科技(深圳)有限公司 A kind of server log inspection method, device and system
CN107819616A (en) * 2017-10-30 2018-03-20 杭州安恒信息技术有限公司 Automatically extract the method, apparatus and system of daily record
CN109800223A (en) * 2018-12-12 2019-05-24 平安科技(深圳)有限公司 Log processing method, device, electronic equipment and storage medium
CN110781143A (en) * 2019-11-05 2020-02-11 北纬通信科技南京有限责任公司 Method and device for querying and extracting server logs

Also Published As

Publication number Publication date
CN113765694B (en) 2024-04-19

Similar Documents

Publication Publication Date Title
CN115757400B (en) Data table processing method, device, electronic equipment and computer readable medium
WO2023065749A1 (en) Distributed database embedding method and apparatus, and device and storage medium
CN111857720A (en) Method and device for generating user interface state information, electronic equipment and medium
CN111596992B (en) Navigation bar display method and device and electronic equipment
CN112748962A (en) Application loading method and device, electronic equipment and computer readable medium
CN113765694B (en) Log information display method, device, electronic equipment and computer readable medium
CN110750424B (en) Resource inspection method and device
CN111309367B (en) Method, device, medium and electronic equipment for managing service discovery
CN111460020B (en) Method, device, electronic equipment and medium for resolving message
CN111782549A (en) Test method and device and electronic equipment
CN109271310B (en) Development testing method and device for network function of mobile application program
CN112464039A (en) Data display method and device of tree structure, electronic equipment and medium
CN111447298A (en) Method, device, equipment and medium for acquiring network address in application program
CN112311840A (en) Multi-terminal data synchronization method, device, equipment and medium
CN114693313B (en) Identification code-based warehousing equipment detection method and device, electronic equipment and medium
CN111314457B (en) Method and device for setting virtual private cloud
CN115756636A (en) Process instance configuration method, device, electronic equipment, medium and program product
CN116820354B (en) Data storage method, data storage device and data storage system
CN112311833B (en) Data updating method and device
CN110046171B (en) System, method and apparatus for obtaining information
CN114398098A (en) Application script execution method and device, electronic equipment and computer readable medium
CN116886531A (en) Service processing method, device, medium and electronic equipment
CN113760921A (en) Method and device for creating dictionary value
CN114428805A (en) Page display method, device, equipment and computer readable medium
CN114430364A (en) Information display method and device, electronic equipment and computer readable 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
GR01 Patent grant