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

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

Info

Publication number
CN113765694B
CN113765694B CN202110312578.0A CN202110312578A CN113765694B CN 113765694 B CN113765694 B CN 113765694B CN 202110312578 A CN202110312578 A CN 202110312578A CN 113765694 B CN113765694 B CN 113765694B
Authority
CN
China
Prior art keywords
log
server
internet protocol
log information
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.)
Active
Application number
CN202110312578.0A
Other languages
Chinese (zh)
Other versions
CN113765694A (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

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]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the disclosure discloses a log information display method, a log information display device, electronic equipment and a computer readable medium. One embodiment of the method comprises the following steps: and in response to receiving a start command to 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 the received log retrieval information through the 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 obtained log information. This embodiment may reduce the time consumed for querying log information. Thus, the display efficiency of the log information is improved.

Description

Log information display method, device, electronic equipment and computer readable medium
Technical Field
Embodiments of the present disclosure relate to the field of computer technology, and in particular, to a log information display method, apparatus, electronic device, and computer readable medium.
Background
The log information display method is a method for processing and displaying log information. At present, a common log information display method is that a log collection platform is built, then, log information stored in a plurality of servers is queried in sequence according to a user query command, and finally, the queried log information is displayed.
However, when the log information is displayed by the above method, there are often the following technical problems:
the cost of building the log collection platform is high, and secondly, the log collection platform sequentially inquires log information to be displayed from a plurality of servers, so that more time is consumed, and the log information display efficiency is reduced.
Disclosure of Invention
The disclosure is in part intended to introduce concepts in a simplified form that are further described below in the detailed description. The disclosure 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, the method including: and in response to receiving a start command to 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 the received log retrieval information through the 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 obtained log information.
Optionally, starting 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, 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 server internet protocol addresses in the server internet protocol address set.
Optionally, based on the server internet protocol address set in the script, starting a plurality of terminal windows and logging in a plurality of servers corresponding to the server internet protocol address set, and further including: logging in to a server indicated by a server internet protocol address corresponding to the server internet protocol address set based on each of the target number of terminal windows.
Optionally, based on the server internet protocol address set in the script, starting a plurality of terminal windows and logging in a plurality of servers corresponding to the server internet protocol address set, and the method further includes: and displaying the log catalog of the server indicated by the server log catalog path in the plurality of terminal windows.
Optionally, based on the server directory log path, obtaining log information corresponding to the log query operation includes: determining a log query condition corresponding to the log query operation; and 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.
Optionally, obtaining log information matched with the log query condition includes: and for each started terminal window, executing the log query operation in parallel to acquire log information matched with the log query conditions.
In a second aspect, some embodiments of the present disclosure provide a log information display apparatus, the apparatus including: a startup and login unit configured to start a terminal window based on a set of server internet protocol addresses included in a script in response to receiving a startup command for the script, wherein the script further includes: a server directory log path; an acquisition unit configured to acquire log information corresponding to the log inquiry operation based on the server internet protocol address set and the server directory log path in response to receiving log retrieval information through the initiated 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 above-mentioned 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 server internet protocol addresses in the server internet protocol address set.
Optionally, the above-mentioned starting and logging unit is further configured to: logging in to a server indicated by a server internet protocol address corresponding to the server internet protocol address set based on each of the target number of terminal windows.
Optionally, the starting and logging unit further includes: and a log list display unit configured to display, in the plurality of terminal windows, a log list of the server indicated by the server log list path.
Optionally, the above-mentioned acquisition unit is further configured to: determining a log query condition corresponding to the log query operation; and 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.
Optionally, the above-mentioned acquisition unit is further configured to: and for each started terminal window, executing the log query operation in parallel to acquire log information matched with the log query conditions.
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 causes the one or more processors to implement the method described in any of the implementations of the first aspect above.
In a fourth aspect, some embodiments of the present disclosure provide a computer readable medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the method described in any of the implementations of the first aspect above.
The above embodiments of the present disclosure have the following advantageous effects: by the log information display method of some embodiments of the present disclosure, costs can be reduced, and time consumed for querying log information can be reduced. Specifically, the cost of displaying log information is high, and the reason why the time for querying log information is long is that: the cost of building the log collection platform is high, and secondly, the log collection platform needs to inquire from a plurality of servers in sequence. Based on this, in order to avoid building a log collection platform, the log information display method according to some embodiments of the present disclosure first introduces a script for log information display, which is used to start a terminal window to directly query log information from a server. Thus, the construction of a log collection platform can be avoided. Thus, the problem of high cost can be avoided. Then, according to the internet protocol address of the server and the server directory log path included in the script, log information stored in a plurality of servers can be queried simultaneously. Compared with the common method for sequentially inquiring the log information to be displayed from a plurality of servers, the method can reduce the time consumed for inquiring the log information. Thus, the display efficiency of the log information is improved.
Drawings
The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. The same or similar reference numbers will be used throughout the drawings to refer to the same or like elements. It should be understood that the figures are schematic and that elements and components 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 chart of some embodiments of a log information display method according to the present disclosure;
FIG. 3 is a flow chart of other embodiments of log information display methods 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 diagram of the structure of some embodiments of a log information display device 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 should be understood that the present 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 so that this disclosure will be thorough and complete. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
It should be noted that, for convenience of description, only the portions related to the present invention are shown in the drawings. Embodiments of the present disclosure and features of embodiments may be combined with each other without conflict.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the various devices in the embodiments of the present disclosure are for illustrative purposes only and are not intended to limit the scope of such 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, a 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, where the script 102 includes: the server internet protocol address set 1021 and the server directory log path 1022 described above. By way of example, the script 102 name may be: py. Then, the start command of script 102 may be: "python a.py". The server internet protocol address may be: 192.120.12.1. the server ip address set 1021 may be: [192.120.12.1, 192.120.12.2]. Then, the computing device 101 may obtain, based on the server directory log path 1022, log information 105 corresponding to the log query operation in response to detecting the log query operation on the initiated terminal window 103. As an example, the above 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 obtained log information 105.
The computing device 101 may be hardware or software. When the computing device is hardware, the computing device may be implemented as a distributed cluster formed by a plurality of 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 listed above. It may be implemented as a plurality of software or software modules, for example, for providing distributed services, or as a single software or software module. The present invention 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 desired for an implementation.
With continued reference to fig. 2, a flow chart 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:
in step 201, in response to receiving the start command to the script, a plurality of terminal windows and a plurality of servers corresponding to the login server internet protocol address set are started based on the server internet protocol address set in the script.
In some embodiments, the execution body of the log information display method (such as the computing device 101 shown in fig. 1) may start a plurality of terminal windows and log in a plurality of servers corresponding to a server internet protocol address set in a script based on the server internet protocol address set in the script in response to receiving a start command for the script. Wherein, the script may include: the server internet protocol address set and the server directory log path described above. The number of the activated 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 internet protocol addresses in the server internet protocol address set may correspond to any two of the three terminal windows that are started, respectively. The initiated terminal window may be connected to the server according to the corresponding server internet protocol address. Then, the more than one terminal window can be used as a main query window for uniformly issuing log query commands to the terminal window.
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 body may obtain, based on the server directory log path, log information corresponding to the log query operation in response to detecting the log query operation on the initiated 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 the detected log query operation of the started terminal window. In addition, the log query operation may be a log query operation of the user on the terminal window. Specifically, the user may input a log query command (e.g., grep or eGrep for searching for a string in the file that meets the conditions) to the terminal window to query the log information.
In some optional implementations of some embodiments, the executing body may obtain, based on the server directory log path, log information corresponding to the log query operation, and may include the following steps:
First, determining the log query condition corresponding to the log query operation. The log query condition may be a parameter item in a log query command. For example, grep query commands with parameter entries of "-i" or "- -ignore-case" may not distinguish the case of characters in the queried log information. 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 conditions is queried from the log catalog through the log query conditions 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. Thus, the queried log information may not be case-sensitive to the character strings present in the log information.
In some optional implementations of some embodiments, the executing entity obtaining log information matched with the log query condition may include the following steps:
And for each started terminal window, executing the log query operation in parallel to acquire log information matched with the log query conditions. The log query operation may be executed in parallel by each initiated terminal window simultaneously querying log information from a corresponding server. The log information matched with the above log condition may be log information satisfying the above query condition.
And 203, displaying the log information in a terminal window corresponding to the obtained log information.
In some embodiments, the execution body may display the log information in a terminal window corresponding to the obtained log information. Since one terminal window may correspond to a log directory of one server. Therefore, when there is one terminal window to inquire the log information required by the user from the log catalog 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 advantageous effects: by the log information display method of some embodiments of the present disclosure, costs can be reduced, and time consumed for querying log information can be reduced. Specifically, the cost of displaying log information is high, and the reason why the time for querying log information is long is that: the cost of building the log collection platform is high, and secondly, the log collection platform needs to inquire from a plurality of servers in sequence. Based on this, in order to avoid building a log collection platform, the log information display method according to some embodiments of the present disclosure first introduces a script for log information display, which is used to start a terminal window to directly query log information from a server. Thus, the construction of a log collection platform can be avoided. Thus, the problem of high cost can be avoided. Then, according to the internet protocol address of the server and the server directory log path included in the script, log information stored in a plurality of servers can be queried simultaneously. Compared with the common method for sequentially inquiring the log information to be displayed from a plurality of servers, the method can reduce the time consumed for 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 to the script, starting a target number of terminal windows based on a set of server internet protocol addresses in the script.
In some embodiments, the executing entity may initiate the target number of terminal windows based on a set of server internet protocol addresses in the script in response to receiving a start command to the script. Wherein the target number is determined based on the number of server internet protocol addresses in the set of server internet protocol addresses.
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 launched terminal windows 402 may also be 2. Wherein each launched terminal window 402 may correspond to a server internet protocol address of the set of server internet protocol addresses 401.
Step 302, log in to a server indicated by a server internet protocol address corresponding to the server internet protocol address set based on each of the terminal windows of the target number of started terminal windows.
In some embodiments, the executing entity may log on to a server indicated by a server internet protocol address corresponding to the server internet protocol address set based on each of the target number of terminal windows for the startup. Wherein the launched terminal window may be in one-to-one correspondence with a server internet protocol address in the set of server internet protocol addresses. Logging into the server may be to connect each terminal window with the server indicated by the corresponding server internet protocol address in the set of server internet protocol addresses. Thus, the launched terminal window may be used to perform log query operations on 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 execution body may display the log directory of the server indicated by the server log directory path in the plurality of terminal windows. The log directory paths in different servers may be the same, so after the execution body starts the terminal window, the execution body may switch the query path of the terminal window to the server log directory and display the query path.
Step 304, 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 body may obtain, based on the server directory log path, log information corresponding to the log query operation in response to detecting the log query operation on the initiated terminal window. Any one of the started terminal windows can be used as a terminal window for detecting log query operation. After each terminal window is connected to the directory log path of the server, the user may input a log query command at any one of the terminal windows. Each initiated terminal window may then execute the log query command described above in parallel. Thus, log information is acquired. The above-described log query operation may correspond to a log query command. The queried log information may correspond to the above log operations.
And 305, displaying the log information in a terminal window corresponding to the acquired log information.
In some embodiments, the specific implementation manner of step 305 and the technical effects thereof may refer to step 203 in those embodiments corresponding to fig. 2, which are not described herein.
As can be seen from fig. 3, the flow 300 of the log information display method of some embodiments corresponding to fig. 3 embodies the step of further expanding the launch terminal window as compared to the description of some embodiments corresponding to fig. 2. Thus, the methods described by these embodiments may be implemented by launching the same number of terminal windows as the number of server internet protocol addresses in the set of server internet protocol addresses included in the script, and logging into different servers, respectively. Then, according to the server directory log path, the log directories in different servers can be queried in parallel. Thus, the query efficiency of the log information is improved.
With further reference to fig. 5, as an implementation of the method shown in the above figures, the present disclosure provides some embodiments of a log information display apparatus, which correspond to those method embodiments shown in fig. 2, and which are particularly applicable in various electronic devices.
As shown in fig. 5, the log information display apparatus 500 of some embodiments includes: a start-up and login unit 501, an acquisition unit 502 and a display unit 503. Wherein the startup and login unit 501 is configured to, in response to receiving a startup command for a script, start a terminal window based on a set of server internet protocol addresses included in the script, where the script further includes: a server directory log path; an obtaining unit 502 configured to obtain log information corresponding to the log inquiry operation based on the server internet protocol address set and the server directory log path in response to receiving log retrieval information through the initiated terminal window; and 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 launch and login 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 server internet protocol addresses in the server internet protocol address set.
In some optional implementations of some embodiments, the launch and login unit 501 is further configured to: logging in to a server indicated by a corresponding server internet protocol address in the server internet protocol address set based on each of the target number of terminal windows started.
In some optional implementations of some embodiments, the starting and logging unit 501 further includes: 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 acquiring unit 502 is further configured to: determining a log query condition corresponding to the log query operation; and 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.
In some optional implementations of some embodiments, the acquiring unit 502 is further configured to: and for each started terminal window, executing the log query operation in parallel to acquire log information matched with the log query conditions.
It will be appreciated that the elements described in the apparatus 500 correspond to the various steps in the method described with reference to fig. 2. Thus, the operations, features and resulting benefits described above with respect to the method are equally applicable to the apparatus 500 and the units contained therein, and are not described in detail herein.
As shown in fig. 6, the electronic device 600 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 601, which may perform various appropriate actions and processes according to 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 required 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 through a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
In general, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, and the like; an output device 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, magnetic 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 shows an electronic device 600 having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead. Each block shown in fig. 6 may represent one device or a plurality of devices as needed.
In particular, according to some embodiments of the present disclosure, the processes described above with reference to flowcharts 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 shown in the flow chart. In such embodiments, the computer program may be downloaded and installed from a network via communications device 609, or from storage device 608, or from ROM 602. The above-described functions defined in the methods of some embodiments of the present disclosure are performed when the computer program is executed by the processing device 601.
It should be noted that, in some embodiments of the present disclosure, the computer readable medium may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any 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 present 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, the computer-readable signal medium may comprise a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. 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, fiber optic cables, RF (radio frequency), and the like, 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 be interconnected with any form or medium of digital data communication (e.g., a communication 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 networks.
The computer readable medium may be contained in the electronic device; or may exist alone, and in response to receiving a start command to the script, start the terminal window based on a set of server internet protocol addresses included in the script, where the script further includes: a server directory log path; responding to the received log retrieval information through the 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 obtained log information.
Computer program code for carrying out operations for some embodiments of the present disclosure may be written in 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 kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts 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 means of software, or may be implemented by means of hardware. The described units may also be provided in a processor, for example, described as: a processor includes a startup unit, an acquisition unit, and a display unit. The names of these units do not constitute a limitation of the unit itself in some cases, and for example, the display unit may also be described as "a unit that displays the above-described log information in a terminal window corresponding to the acquired log information".
The functions described above herein 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: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being 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 technical features, but encompasses other technical features formed by any combination of the above technical features or their equivalents without departing from the spirit of the invention. Such as the above-described features, are mutually substituted with (but not limited to) the features having similar functions disclosed in the embodiments of the present disclosure.

Claims (10)

1. A log information display method, comprising:
In response to receiving a start command for 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 internet protocol address set and the server directory log path, each initiated terminal window corresponding to a server internet protocol address in the server internet protocol address set;
Responding to the detection of the 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 obtained log information.
2. The method of claim 1, wherein the launching a plurality of terminal windows and logging into 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 comprises:
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 server internet protocol addresses in the server internet protocol address set.
3. The method of claim 2, wherein the launching a plurality of terminal windows and logging into 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 server internet protocol address corresponding to the set of server internet protocol addresses based on each of the target number of terminal windows.
4. A method according to claim 3, wherein the method further comprises:
displaying the log catalog of the server indicated by the server log catalog 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 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 that matches the log query condition comprises:
And for each started terminal window, executing the log query operation in parallel to acquire log information matched with the log query condition.
7. A log information display device comprising:
A startup and login unit configured to start a plurality of terminal windows and login to a plurality of servers corresponding to a server internet protocol address set in a script based on the server internet protocol address set in the script in response to receiving a startup command for the script, wherein the script includes: the server internet protocol address set and the server directory log path, each initiated terminal window corresponding to a server internet protocol address in the server internet protocol address set;
An acquisition unit configured to acquire log information corresponding to a log query operation based on the server directory log path in response to detection of the log query operation on 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.
8. The log information display apparatus according to claim 7, wherein the acquisition unit is further configured to:
determining a log query condition corresponding to the log query operation;
and 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.
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, causes the one or more processors to implement the method of any of claims 1-6.
10. A computer readable medium having stored thereon a computer program, wherein the program when executed by a processor implements the method of any 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 CN113765694A (en) 2021-12-07
CN113765694B true 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 (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* 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

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN113765694A (en) 2021-12-07

Similar Documents

Publication Publication Date Title
WO2023061286A1 (en) Operating system booting method and apparatus, and electronic device
CN115757400B (en) Data table processing method, device, electronic equipment and computer readable medium
CN112965761B (en) Data processing method, system, electronic equipment and storage medium
US20120266186A1 (en) Providing inter-platform application launch in context
CN111625422B (en) Thread monitoring method, thread monitoring device, electronic equipment and computer readable storage medium
CN111309375A (en) Method, device, medium and electronic equipment for generating remote procedure call toolkit
CN110865846B (en) Application management method, device, terminal, system and storage medium
CN111309304B (en) Method, device, medium and electronic equipment for generating IDL file
CN114637703B (en) Data access device, method, readable medium and electronic equipment
CN114938395A (en) Service response method, device, equipment and storage medium
CN113765694B (en) Log information display method, device, electronic equipment and computer readable medium
CN111198853B (en) Data processing method, device, electronic equipment and computer readable storage medium
CN111596992A (en) Navigation bar display method and device and electronic equipment
CN111309367B (en) Method, device, medium and electronic equipment for managing service discovery
CN111782895B (en) Retrieval processing method and device, readable medium and electronic equipment
CN111460020B (en) Method, device, electronic equipment and medium for resolving message
CN110442403B (en) Method, device, electronic equipment and medium for calling functional component
CN110750424B (en) Resource inspection method and device
CN116360802A (en) Middleware processing method, middleware processing device, electronic equipment and storage medium
CN110377654B (en) Data request processing method and device, electronic equipment and computer-readable storage medium
CN111782549A (en) Test method and device and electronic equipment
CN116302140B (en) Method and device for starting computing terminal based on storage and calculation separation cloud primary number bin
CN112883697B (en) Workflow form generation method, device, electronic equipment and computer readable medium
CN111314457B (en) Method and device for setting virtual private cloud
CN114297157B (en) File processing method, device, equipment and 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
GR01 Patent grant