CN115794744A - Log display method, device, equipment and storage medium - Google Patents

Log display method, device, equipment and storage medium Download PDF

Info

Publication number
CN115794744A
CN115794744A CN202211644385.6A CN202211644385A CN115794744A CN 115794744 A CN115794744 A CN 115794744A CN 202211644385 A CN202211644385 A CN 202211644385A CN 115794744 A CN115794744 A CN 115794744A
Authority
CN
China
Prior art keywords
log
logs
inflection point
acquisition
attribute information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211644385.6A
Other languages
Chinese (zh)
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 Youtejie Information Technology Co ltd
Original Assignee
Beijing Youtejie Information 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 Youtejie Information Technology Co ltd filed Critical Beijing Youtejie Information Technology Co ltd
Priority to CN202211644385.6A priority Critical patent/CN115794744A/en
Publication of CN115794744A publication Critical patent/CN115794744A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a log display method, a log display device, log display equipment and a log display storage medium. The method comprises the following steps: arranging all the acquisition logs in an ascending order according to the time stamps to obtain a log sequence; receiving a reference field input by a user, and determining attribute information of each acquisition log in a log sequence related to the reference field; determining an inflection point log from the log sequence according to the attribute information; and determining a target log to be displayed according to the inflection point log, and displaying the target log. The method comprises the steps of sequencing acquisition logs in an ascending order according to time stamps so as to ensure the time relevance among the acquisition logs, acquiring inflection point logs in a log sequence according to attribute information determined by a reference field input by a user, determining key logs with state change in the acquisition logs with the time relevance, and synchronously displaying the logs with the time relevance critical to the inflection point logs during displaying, so that the user can quickly and accurately determine the key information of state switching in a large amount of logs.

Description

Log display method, device, equipment and storage medium
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a log display method, apparatus, device, and storage medium.
Background
The detailed operation process of the log data recording equipment has the characteristics of large data volume, high repeatability and more invalid noise data. When effective key information is extracted from a large amount of log data to be displayed, a mode of key word filtering, mode clustering and special logic combing is generally adopted.
But the keyword filtering can only display the log content of the hit keyword, which can cause other content not to be displayed; although the pattern clustering can aggregate and drop repetitive log contents to form a log pattern, the sequential relationship of the logs is lost due to aggregation compression; a large amount of log samples need to be collected for specific logic combing, a filtering rule, a compression rule and a presentation style are configured according to business operation logic, and the logic is difficult to reuse, so that large-scale batch popularization cannot be realized. Therefore, at present, no effective method is available for rapidly and accurately extracting key information from a large number of logs for a user to check.
Disclosure of Invention
The invention provides a method, a device, equipment and a storage medium for generating a service global serial number, which are used for generating the global service serial number.
According to a first aspect of the present invention, a method for generating a service global serial number is provided, including: acquiring attribute information of transaction service, wherein the attribute information comprises transaction time, service type and receiving end identification;
acquiring a designated serial number from a cache unit according to the service type of the transaction service;
and generating a global serial number aiming at the transaction service according to the attribute information and the specified serial number.
According to another aspect of the present invention, an apparatus for generating a service global serial number is provided, including: the attribute information acquisition module is used for acquiring attribute information of transaction service, wherein the attribute information comprises transaction time, service type and receiving end identification;
the appointed sequence number acquisition module is used for acquiring an appointed sequence number from the cache unit according to the service type of the transaction service;
and the global serial number generating module is used for generating a global serial number aiming at the transaction service according to the attribute information and the specified serial number.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the first and the second end of the pipe are connected with each other,
the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform the method according to any of the embodiments of the invention.
According to another aspect of the present invention, there is provided a computer-readable storage medium having stored thereon computer instructions for causing a processor to execute a method according to any one of the embodiments of the present invention.
According to the technical scheme of the embodiment of the invention, after the attribute information of the transaction service is obtained, the specified serial number is directly obtained from the cache unit without calling from the database, and the global serial number is generated according to the attribute information and the sequence obtained from the cache, so that the strong dependence of the generation of the global serial number on the database is relieved, and the normal operation of the service is not influenced even if the database has short-term faults.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present invention, nor do they necessarily limit the scope of the invention. Other features of the present invention will become apparent from the following description.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a flowchart of a log displaying method according to an embodiment of the present invention;
FIG. 2 is a flowchart of a log displaying method according to a second embodiment of the present invention;
FIG. 3 is a schematic structural diagram of a log displaying apparatus according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to a fourth embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example one
Fig. 1 is a flowchart of a log displaying method according to an embodiment of the present invention, where the method is applicable to a case where logs are displayed in an overview manner, and the method may be executed by a log displaying apparatus, and the apparatus may be implemented in a form of hardware and/or software. As shown in fig. 1, the method includes:
and S101, arranging the acquisition logs in an ascending order according to the time stamps to acquire a log sequence.
Optionally, before the acquiring logs are arranged in an ascending order according to the time stamps to obtain the log sequence, the method further includes: receiving a query condition input by a user, wherein the query condition comprises a data range and a time range; and carrying out log collection according to the query conditions to obtain each collection log.
Specifically, in this embodiment, the query condition input by the user is obtained, where the query condition may specifically include a data range and a time range, for example, the data range is specifically device monitoring log data, and the time range is specifically the current day, so that log collection is performed according to the obtained query condition to obtain a collection log matched with the query condition, for example, the collection log is specifically a log related to device monitoring on the current day. It is to be understood that this embodiment is merely an example, and the specific contents of the query conditions are not limited.
After the acquisition logs are acquired, the time stamps in the acquisition logs are extracted, and the acquisition logs are sorted in an ascending order according to the time stamps to acquire a log sequence, so that the acquisition logs in the log sequence are time-associated.
Step S102, a reference field input by a user is received, and attribute information of each acquisition log in the log sequence and the reference field is determined.
Optionally, determining attribute information associated with the reference field and each acquisition log in the log sequence includes: extracting a first numerical value matched with a reference field from each acquisition log, wherein the reference field comprises an event level, an event state or an event return code; determining a last row of logs adjacent to the collection logs from the log sequence, and extracting a second numerical value matched with the reference field from the last row of logs; and combining the first numerical value and the second numerical value, and taking the combined result as the attribute information of the collection log associated with the reference field.
Specifically, in the embodiment, a reference field that needs to be subjected to overview analysis and is input by a user is received, where the reference field may include an event level, an event state, or an event return code, and the reference field is included in each collection log. For example, a first value matching the event level field is extracted from the current log line, a log in the previous line adjacent to the current log line is determined from the log sequence, a second value matching the reference field is extracted from the log in the previous line, the second value is assigned to the current log line, and the first value and the second value are combined to serve as attribute information of the current log line, wherein the attribute information is associated with the reference field, namely the time level field. The method for acquiring the attribute information of other log lines is approximately the same as the method, values of the log line related to the reference field are assigned to the next log line in sequence, each log line not only contains the values of the log line related to the reference field, but also contains the values of the log line related to the reference field, and the values of the log line related to the reference field can be assigned to be null. Table 1 below is an example of a log sequence given attribute information:
TABLE 1
Figure BDA0004009138810000051
The attribute information corresponding to each row of logs comprises a first numerical value of a self-reference field and a second numerical value of a previous row of log reference fields. Due to space limitation, the log sequence of the service attribute information is only illustrated in the embodiment, and the specific number of the collection logs included in the log sequence is not limited.
And step S103, determining an inflection point log from the log sequence according to the attribute information.
Optionally, determining an inflection point log from the log sequence according to the attribute information includes: screening out acquisition logs with different first numerical values and second numerical values in the attribute information from the log sequence; and taking the screened acquisition logs as inflection point logs.
Optionally, the method further comprises: screening a head-line log and a tail-line log in a log sequence; and taking the first-line log and the last-line log as inflection point logs.
Specifically, if the values of the reference fields in the uplink and downlink acquisition logs are not consistent, it is described that the event has changed, which indicates that the user needs to pay a heavy attention to the log line, and the attribute information of each acquisition log indicates the change condition, so in order to facilitate the user to intuitively acquire the event switching condition in the acquisition logs, the acquisition logs in which the first value and the second value in the attribute information in the log sequence are different are used as inflection point logs, and the inflection point logs are used for indicating that the event state has changed. In addition, in the present embodiment, the head line and the tail line in the log sequence do not participate in the determination of the attribute information, and the head line and the tail line are directly used as inflection point logs. As shown in Table 2 below, an example of an obtained corner log:
TABLE 2
Figure BDA0004009138810000061
Figure BDA0004009138810000071
And step S104, determining a target log to be displayed according to the inflection point log, and displaying the target log.
Optionally, determining a target log to be displayed according to the inflection point log includes: screening a first type of acquisition logs which are positioned before the specified time range of the inflection point logs from the log sequence; screening a second type of collection logs located after the specified time range of the inflection point logs from the log sequence; and taking the inflection point log, the first-class acquisition log and the second-class acquisition log as target logs.
Specifically, in the present embodiment, after a plurality of inflection point logs shown in table 2 are acquired, for each inflection point log, a first type of collected log located before a specified time range of the inflection point log is screened out from the log sequence, and a second type of collected log located after the specified time range of the inflection point log is screened out. For example, with reference to the timestamp T of the inflection point log, the logs in the log sequence that are within a range of 1 second before T are taken as the first-type collection logs, and the logs within a range of 1 second after T are taken as the second-type collection logs.
The inflection point log in the embodiment indicates that the event state changes, and the first-type collection log and the second-type collection log have logs strongly related to the inflection point log in time, so that a user can conveniently analyze a specific process causing the event change by displaying the first-type log and the second-type log.
According to the embodiment of the invention, the time relevance among the acquisition logs is ensured by sequencing the acquisition logs in an ascending order according to the time stamps, the inflection point logs in the log sequence are acquired according to the attribute information determined by the reference field input by the user, the key logs with state change are determined from the acquisition logs with time relevance, and the logs with time relevance critical to the inflection point logs are synchronously displayed during displaying, so that the user can quickly and accurately determine the key information of state switching from a large number of logs.
Example two
Fig. 2 is a flowchart of a log display method according to a second embodiment of the present invention, where after displaying a target log, the present embodiment further includes determining the number of inflection point logs, and generating a dynamic switching level of the log according to the number of inflection point logs; and displaying the dynamic switching grade of the log. As shown in fig. 2, the method includes:
step S201, arranging the collection logs in ascending order according to the time stamps to obtain a log sequence.
Optionally, before the acquiring the log sequences by arranging the collection logs in an ascending order according to the time stamps, the method further includes: receiving a query condition input by a user, wherein the query condition comprises a data range and a time range; and carrying out log collection according to the query conditions to obtain each collection log.
Step S202, a reference field input by a user is received, and attribute information of each acquisition log in the log sequence and the reference field is determined.
Optionally, determining attribute information associated with the reference field and each acquisition log in the log sequence includes: extracting a first numerical value matched with a reference field from each acquisition log, wherein the reference field comprises an event level, an event state or an event return code; determining a log in the previous row adjacent to the collection log from the log sequence, and extracting a second numerical value matched with the reference field from the log in the previous row; and combining the first numerical value and the second numerical value, and taking the combined result as the attribute information of the collection log associated with the reference field.
And step S203, determining an inflection point log from the log sequence according to the attribute information.
Optionally, determining an inflection point log from the log sequence according to the attribute information includes: screening out collected logs with different first numerical values and second numerical values in the attribute information from the log sequence; and taking the screened acquisition logs as inflection point logs.
Optionally, the method further comprises: screening a head row log and a tail row log in a log sequence; and taking the first-line log and the last-line log as inflection point logs.
And step S204, determining a target log to be displayed according to the inflection point log, and displaying the target log.
Optionally, determining a target log to be displayed according to the inflection point log includes: screening a first type of acquisition logs which are positioned before the specified time range of the inflection point logs from the log sequence; screening a second type of acquisition logs located after the specified time range of the inflection point logs from the log sequence; and taking the inflection point log, the first-class acquisition log and the second-class acquisition log as target logs.
Step S205, determining the quantity of the inflection point logs, generating a log dynamic switching grade according to the quantity of the inflection point logs, and displaying the log dynamic switching grade.
Specifically, in the embodiment, the number of the inflection point logs is counted, and in the embodiment, a mapping relationship between the number of the inflection point logs and the dynamic switching level of the logs is pre-established, so that after the number of the inflection point logs is obtained, the corresponding dynamic switching level can be obtained by inquiring the mapping relationship, and in the embodiment, the number of the inflection point logs and the dynamic switching level of the logs are in a true-proportion mapping relationship, that is, the greater the number of the inflection point logs, the higher the dynamic switching level of the logs is. For example, the number of the inflection point logs is 100-200, and the corresponding logs are dynamically switched into one level; the quantity of the inflection point logs is 201-300, and the corresponding logs are dynamically switched into two levels; the quantity of the inflection point logs is 301-400, and the corresponding logs are dynamically switched into three levels. Of course, this embodiment is merely an example, and the specific numerical values of the number of inflection point logs and the dynamic log switching level are not limited.
In the embodiment, after the dynamic switching level of the log is acquired, the dynamic switching level of the log is also displayed, so that a user can intuitively acquire the state switching condition of each acquired log in the log sequence according to the displayed dynamic switching level of the log. And when the dynamic log switching grade is higher, the number of inflection point logs in the log sequence is more, namely the collected logs are frequently switched in state, and the abnormal operation of the equipment is possibly caused at the moment, so that a user can pay attention to the monitoring and maintenance of the abnormal operation process in time, and the operation efficiency of the equipment is improved.
According to the embodiment of the invention, the time relevance among the collection logs is ensured by sequencing the collection logs in an ascending order according to the time stamps, the inflection point logs in the log sequence are obtained according to the attribute information determined by the reference field input by the user, the key logs with state change are determined from the collection logs with time relevance, and the logs with time relevance critical to the inflection point logs are synchronously displayed during displaying, so that the user can quickly and accurately determine the key information of state switching from a large number of logs. By displaying the dynamic switching levels of the logs, a user can conveniently and visually acquire the state switching condition of each acquired log in the log sequence according to the displayed dynamic switching levels of the logs, and the user can conveniently focus on the log sequence when the dynamic switching level of the logs is higher, so that the abnormal operation process can be monitored and maintained in time, and the operation efficiency of equipment is improved.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a log displaying apparatus according to a third embodiment of the present invention. As shown in fig. 3, the apparatus includes: a log sequence acquisition module 310, a log attribute information determination module 320, a knee log determination module 330, and a target log presentation module 340.
The log sequence acquiring module 310 is configured to arrange the acquisition logs in an ascending order according to the time stamps to acquire a log sequence;
the log attribute information determining module 320 is configured to receive a reference field input by a user, and determine attribute information of each acquired log in a log sequence, where the attribute information includes a first numerical value of the reference field of the log and a second numerical value of the reference field of the log in an adjacent previous row;
the inflection point log determining module 330 is configured to determine an inflection point log from the log sequence according to the attribute information;
and the target log display module 340 is configured to determine a target log to be displayed according to the inflection point log, and display the target log.
Optionally, the device further includes an acquisition log obtaining module, configured to receive a query condition input by a user, where the query condition includes a data range and a time range;
and carrying out log collection according to the query conditions to obtain each collection log.
Optionally, the log attribute information determining module is configured to extract a first numerical value matched with a reference field from each collected log, where the reference field includes an event level, an event state, or an event return code;
determining a last row of logs adjacent to the collection logs from the log sequence, and extracting a second numerical value matched with the reference field from the last row of logs;
and combining the first numerical value and the second numerical value, and taking the combined result as the attribute information of the collection log associated with the reference field.
Optionally, the inflection point log determining module is configured to sieve out, from the log sequence, a collection log in which the first numerical value and the second numerical value in the attribute information are different;
and taking the screened acquisition logs as inflection point logs.
Optionally, the inflection point log determining module is further configured to screen out a head-row log and a tail-row log in the log sequence;
and taking the first-line log and the last-line log as inflection point logs.
Optionally, the target log display module is configured to screen out a first type of collected logs located before a specified time range of the inflection point log from the log sequence;
screening a second type of acquisition logs located after the specified time range of the inflection point logs from the log sequence;
and taking the inflection point log, the first-class acquisition log and the second-class acquisition log as target logs.
Optionally, the apparatus further includes a log dynamic switching level module, configured to determine a number of inflection point logs, and generate a log dynamic switching level according to the number of inflection point logs;
and displaying the dynamic switching grade of the log.
The log display device provided by the embodiment of the invention can execute the log display method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
Example four
FIG. 4 shows a schematic block diagram of an electronic device 10 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smart phones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 4, the electronic device 10 includes at least one processor 11, and a memory communicatively connected to the at least one processor 11, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, and the like, wherein the memory stores a computer program executable by the at least one processor, and the processor 11 can perform various suitable actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from a storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data necessary for the operation of the electronic apparatus 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
A number of components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, or the like; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, or the like. The processor 11 performs the various methods and processes described above, such as the log presentation method.
In some embodiments, the log presentation method may be implemented as a computer program tangibly embodied in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the log presentation method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the log exposure method by any other suitable means (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be performed. A computer program can execute entirely on a machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. A computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on 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 compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the Internet.
The computing system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service are overcome.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present invention may be executed in parallel, sequentially, or in different orders, and are not limited herein as long as the desired results of the technical solution of the present invention can be achieved.
The above-described embodiments should not be construed as limiting the scope of the invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A log presentation method is characterized by comprising the following steps:
arranging all the acquisition logs in an ascending order according to the time stamps to obtain a log sequence;
receiving a reference field input by a user, and determining attribute information of each acquisition log in the log sequence and associated with the reference field, wherein the attribute information comprises a first numerical value of the reference field of the acquisition log and a second numerical value of the reference field of the log in the previous row;
determining an inflection point log from the log sequence according to the attribute information;
and determining a target log to be displayed according to the inflection point log, and displaying the target log.
2. The method of claim 1, wherein prior to the obtaining the log sequence by ascending the collection logs by time stamp, further comprising:
receiving a query condition input by a user, wherein the query condition comprises a data range and a time range;
and carrying out log collection according to the query conditions to obtain each collection log.
3. The method of claim 1, wherein the determining attribute information associated with the reference field for each collection log in the log sequence comprises:
extracting a first numerical value matched with the reference field from each acquisition log, wherein the reference field comprises an event level, an event state or an event return code;
determining a log in the last row adjacent to the collection log from the log sequence, and extracting a second numerical value matched with the reference field from the log in the last row;
and combining the first numerical value and the second numerical value, and taking a combined result as attribute information of the collection log associated with the reference field.
4. The method of claim 1, wherein determining a corner log from the log sequence based on the attribute information comprises:
screening out acquisition logs with different first numerical values and second numerical values in the attribute information from the log sequence;
and taking the screened acquisition log as the inflection point log.
5. The method of claim 1, further comprising:
screening out a head row log and a tail row log in the log sequence;
and taking the first line log and the last line log as the inflection point log.
6. The method of claim 1, wherein the determining the target log to be presented according to the inflection point log comprises:
screening a first type of collection log which is positioned before the specified time range of the inflection point log from the log sequence;
screening a second type of acquisition logs which are positioned after the specified time range of the inflection point logs from the log sequence;
and taking the inflection point log, the first-class acquisition log and the second-class acquisition log as the target log.
7. The method of claim 1, wherein after exposing the target log, further comprising:
determining the quantity of the inflection point logs, and generating a dynamic switching grade of the logs according to the quantity of the inflection point logs;
and displaying the dynamic switching grade of the log.
8. A log presentation apparatus, comprising:
the log sequence acquisition module is used for arranging the acquisition logs in an ascending order according to the time stamps to acquire a log sequence;
the log attribute information determining module is used for receiving a reference field input by a user and determining attribute information of each acquired log in the log sequence and associated with the reference field, wherein the attribute information comprises a first numerical value of the reference field of the log and a second numerical value of the reference field of the log in the previous row;
the inflection point log determining module is used for determining an inflection point log from the log sequence according to the attribute information;
and the target log display module is used for determining a target log to be displayed according to the inflection point log and displaying the target log.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-7.
10. A computer-readable storage medium storing computer instructions for causing a processor to perform the method of any one of claims 1-7 when executed.
CN202211644385.6A 2022-12-20 2022-12-20 Log display method, device, equipment and storage medium Pending CN115794744A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211644385.6A CN115794744A (en) 2022-12-20 2022-12-20 Log display method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211644385.6A CN115794744A (en) 2022-12-20 2022-12-20 Log display method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115794744A true CN115794744A (en) 2023-03-14

Family

ID=85427482

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211644385.6A Pending CN115794744A (en) 2022-12-20 2022-12-20 Log display method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115794744A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117762950A (en) * 2024-02-20 2024-03-26 北京优特捷信息技术有限公司 Log data analysis processing method, device and medium based on tree structure

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111078455A (en) * 2019-12-24 2020-04-28 北京优特捷信息技术有限公司 Abnormal behavior sequence correlation processing method and device based on time axis, equipment and storage medium
CN111786814A (en) * 2020-06-05 2020-10-16 腾讯科技(深圳)有限公司 Log processing method and device
CN114416685A (en) * 2021-12-22 2022-04-29 北京百度网讯科技有限公司 Log processing method, system and storage medium
CN115128473A (en) * 2022-07-19 2022-09-30 上海玫克生储能科技有限公司 Lithium analysis monitoring method and device for lithium battery

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111078455A (en) * 2019-12-24 2020-04-28 北京优特捷信息技术有限公司 Abnormal behavior sequence correlation processing method and device based on time axis, equipment and storage medium
CN111786814A (en) * 2020-06-05 2020-10-16 腾讯科技(深圳)有限公司 Log processing method and device
CN114416685A (en) * 2021-12-22 2022-04-29 北京百度网讯科技有限公司 Log processing method, system and storage medium
CN115128473A (en) * 2022-07-19 2022-09-30 上海玫克生储能科技有限公司 Lithium analysis monitoring method and device for lithium battery

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117762950A (en) * 2024-02-20 2024-03-26 北京优特捷信息技术有限公司 Log data analysis processing method, device and medium based on tree structure
CN117762950B (en) * 2024-02-20 2024-05-03 北京优特捷信息技术有限公司 Log data analysis processing method, device and medium based on tree structure

Similar Documents

Publication Publication Date Title
CN115033463B (en) System exception type determining method, device, equipment and storage medium
CN115794744A (en) Log display method, device, equipment and storage medium
CN116074183B (en) C3 timeout analysis method, device and equipment based on rule engine
CN115509797A (en) Method, device, equipment and medium for determining fault category
CN115048352B (en) Log field extraction method, device, equipment and storage medium
CN115687406A (en) Sampling method, device and equipment of call chain data and storage medium
CN115344495A (en) Data analysis method and device for batch task test, computer equipment and medium
CN115408236A (en) Log data auditing system, method, equipment and medium
CN115344627A (en) Data screening method and device, electronic equipment and storage medium
CN115168509A (en) Processing method and device of wind control data, storage medium and computer equipment
CN115328898A (en) Data processing method and device, electronic equipment and medium
CN115080607A (en) Method, device, equipment and storage medium for optimizing structured query statement
CN116149933B (en) Abnormal log data determining method, device, equipment and storage medium
CN116340831B (en) Information classification method and device, electronic equipment and storage medium
CN115858325B (en) Project log adjusting method, device, equipment and storage medium
CN116627695B (en) Alarm event root cause recommendation method, device, equipment and storage medium
CN116070601B (en) Data splicing method and device, electronic equipment and storage medium
CN115658510A (en) Test data generation method and device, electronic equipment and storage medium
CN115827743A (en) Auditing method, device, equipment and storage medium
CN116467198A (en) Method, device, electronic equipment and storage medium for determining performance actual measurement necessity
CN116431809A (en) Text labeling method, device and storage medium based on bank customer service scene
CN117290306A (en) Log data display method, device, equipment and storage medium
CN116401269A (en) Data query method and device, electronic equipment and storage medium
CN114818635A (en) Data report generation method and device, electronic equipment and storage medium
CN115801589A (en) Event topological relation determining method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20230314

RJ01 Rejection of invention patent application after publication