A log data screening method, device, equipment and storage medium

By obtaining and filtering the page number of log data, the target log data can be automatically located, which solves the problem of low log troubleshooting efficiency in existing technologies and achieves efficient log filtering and location.

CN116860704BActive Publication Date: 2026-01-09BONREE DATA TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310906589.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-07-21
Publication Date
2026-01-09
Estimated Expiration
2043-07-21

AI Technical Summary

Technical Problem

Existing log-based troubleshooting solutions require users to manually log in to the host to view log files, resulting in low efficiency in locating problems and a large amount of manual work.

Method used

By acquiring the raw log data, determining the page number of the target log data, and filtering the raw log data based on the page number and the target log data, the filtered log data and log filtering results are generated and directly displayed to the user, avoiding manual filtering.

Benefits of technology

It improves log filtering efficiency, reduces manual workload, and allows users to adjust filtering rules as needed, making it highly adaptable.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116860704B_ABST
    Figure CN116860704B_ABST
Patent Text Reader

Abstract

The application discloses a log data screening method and device, equipment and a storage medium. The method comprises the following steps: obtaining original log data, determining target log data based on each original log data; determining the number of pages of the target log data, screening the original log data according to the number of pages and the target log data to generate each screening log data; and generating a log screening result according to the target log data and each screening log data. The target log data selected by the user can be obtained from the original log data, the number of pages of the target log data is determined, and then the original log data is screened according to the number of pages and the target log data to generate each screening log data, and then the log screening result is generated, so that the log screening result can be directly displayed to the user, manual screening is avoided, the workload of manual work is reduced, the log screening efficiency is improved, and the user can adaptively adjust the log screening rule according to the need, and the adaptability is high.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of data processing, and in particular to a log data screening method and device, equipment and a storage medium. BACKGROUND

[0002] In a large-scale distributed system, logs are very important debugging and troubleshooting tools, and therefore, a log management platform supporting multiple systems and multiple data sources has emerged as the times require. After a certain error log is queried, the problem needs to be located according to the context of the log, and therefore, a method for quickly locating the context of the log is needed to improve the problem processing efficiency.

[0003] The log troubleshooting scheme in the prior art requires a user to manually log in to a host where a problem occurs, and view the context of a corresponding log file, which is a large amount of manual work and further leads to low problem locating efficiency. SUMMARY

[0004] The present application provides a log data screening method, device, equipment and a storage medium to quickly locate target log data and screen the context associated with the target log data.

[0005] According to an aspect of the present application, a log data screening method is provided, which comprises:

[0006] obtaining original log data, determining target log data based on each original log data;

[0007] determining the number of pages of the target log data, and screening the original log data according to the number of pages and the target log data to generate each screening log data;

[0008] generating a log screening result according to the target log data and each screening log data.

[0009] Optionally, determining the target log data based on each original log data comprises: displaying each original log data to a user to obtain log identification information input by the user; and matching each original log data according to the log identification information to obtain original log data corresponding to the log identification information as the target log data.

[0010] Optionally, screening the original log data according to the number of pages and the target log data to generate each screening log data comprises: determining whether the number of pages is the first page, if yes, determining the preceding log data and the subsequent log data according to the target log data, and taking the preceding log data and the subsequent log data as the screening log data; otherwise, determining the preceding log data according to the target log data, and taking the preceding log data as the screening log data.

[0011] Optionally, the determining the preceding log data according to the target log data comprises: determining a timestamp of each original log data and a target timestamp of the target log data; obtaining a specified time range input by a user based on the target timestamp, and screening each timestamp according to the specified time range to obtain original log data corresponding to the specified time range as the preceding log data; and screening the original log data according to the target timestamp and the timestamp to generate a log grouping, wherein the log grouping comprises original log data with a timestamp greater than the target timestamp.

[0012] Optionally, the determining the preceding log data according to the target log data comprises: determining a timestamp of each original log data and a target timestamp of the target log data; obtaining a specified time range input by a user based on the target timestamp, and screening each timestamp according to the specified time range to obtain original log data corresponding to the specified time range as the preceding log data.

[0013] Optionally, the generating the log screening result according to the target log data and each screening log data comprises: determining a timestamp corresponding to each screening log data, and arranging each screening log data according to the timestamp in descending order to generate each target screening log; marking the target log data according to a specified manner to generate marked target log data; and combining the marked target log data and each target screening log to generate the log screening result.

[0014] Optionally, after the generating the log screening result according to the target log data and each screening log data, the method further comprises: obtaining key information set by a user based on the log screening result; and sending the log screening result to a storage module for storage according to the key information.

[0015] According to another aspect of the present application, there is provided a log data screening device, which comprises:

[0016] a target log data determining module, configured to obtain original log data, and determine target log data based on each original log data;

[0017] a log data screening module, configured to determine a page number of the target log data, and screen the original log data according to the page number and the target log data to generate each screening log data;

[0018] a log screening result generating module, configured to generate a log screening result according to the target log data and each screening log data.

[0019] According to another aspect of the present application, there is provided an electronic device, which comprises:

[0020] at least one processor; and

[0021] a memory communicatively connected with the at least one processor; wherein

[0022] the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to perform the log data screening method according to any one of the embodiments of the present application.

[0023] According to another aspect of the present application, a computer readable storage medium is provided, which stores computer instructions for enabling a processor to implement the log data screening method according to any one of the embodiments of the present application when executed by the processor.

[0024] The technical solution of the embodiments of the present application can obtain target log data selected by a user from original log data, determine the number of pages of the target log data, and then screen the original log data according to the number of pages and the target log data to generate each screened log data, and further generate a log screening result, which can be directly displayed to the user, thereby avoiding manual screening and reducing the workload of the user, and further improving the log screening efficiency, and the user can adaptively adjust the log screening rules as needed, which has high adaptability.

[0025] It should be understood that the content described in this part is not intended to identify key or important features of the embodiments of the present application, nor is it used to limit the scope of the present application. Other features of the present application will become apparent from the following description. BRIEF DESCRIPTION OF DRAWINGS

[0026] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed in the embodiment description will be briefly introduced as follows. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.

[0027] Figure 1 is a flowchart of a log data screening method according to the first embodiment of the present application;

[0028] Figure 2 is a flowchart of another log data screening method according to the first embodiment of the present application;

[0029] Figure 3 is a flowchart of another log data screening method according to the second embodiment of the present application;

[0030] Figure 4 is a structural schematic diagram of a log data screening device according to an embodiment of the present application;

[0031] Figure 5 is a structural schematic diagram of an electronic device for implementing a log data screening method according to an embodiment of the present application. DETAILED DESCRIPTION

[0032] In order to make the personnel in the technical field better understand the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below in combination with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, but not all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work should belong to the scope of protection of the present application.

[0033] It should be noted that the terms "first", "second", and the like in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily have to be used to describe a specific order or sequence. It should be understood that the data thus used can be interchanged under appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "include" and "have" and any variations thereof are intended to cover non-exclusive inclusion, for example, a process, method, system, product or device including a series of steps or units does not have to be limited to those steps or units clearly listed, but can include other steps or units not clearly listed or inherent to these processes, methods, products or devices.

[0034] Embodiment one

[0035] Figure 1 A flowchart of a log data screening method according to an embodiment of the present application is provided, and the present embodiment can be applied to the case of log data screening of a log management platform with multiple systems and multiple data sources. The method can be executed by a log data screening device, which can be realized in the form of hardware and / or software, and can be configured in a computer. As shown in the figure, the method comprises: Figure 1

[0036] S110, obtaining original log data, and determining target log data based on each original log data.

[0037] ​The log data refers to process event record data generated in the running process of servers, network devices, security devices, databases, middleware and business systems in an IT production environment. The original log data refers to data originally generated by devices and business systems. The target log data refers to target data selected by a user. The target log data can be fault data. By taking the fault data as the target log data, the context of the fault data can be quickly located, so that the user can debug and troubleshoot, and the problem processing efficiency is improved.

[0038] Optionally, the target log data is determined based on the original log data, including: displaying the original log data to the user to obtain log identification information input by the user; and matching the original log data according to the log identification information to obtain original log data corresponding to the log identification information as the target log data.

[0039] Specifically, the controller can display the original log data to the user. The user can view the original log data through a client on a user terminal connected to the controller. The client refers to a log management platform, and the controller refers to a computer controller for processing log data. The user can select interested data through the log management platform. Specifically, the user can input log identification information. At this time, the controller can match the original log data according to the log identification information, and locate the corresponding target log data.

[0040] S120, determine the number of pages of the target log data, and filter the original log data according to the number of pages and the target log data to generate each filtered log data.

[0041] Specifically, based on the target log data, the log context can be located according to a timestamp, a corresponding device ID and a log path, and a number of minutes before and after the log to realize filtering of the original log data to generate filtered log data. The number of minutes and the number of logs can be configured and passed by a calling party.

[0042] Figure 2 A flowchart of a log data filtering method is provided for the first embodiment of the application. Step S120 mainly includes the following steps S121 to S124:

[0043] S121, determine the number of pages of the target log data.

[0044] S122, determine whether the number of pages is the first page. If yes, execute S123, otherwise, execute S124.

[0045] S123, determine the previous log data and the subsequent log data according to the target log data, and take the previous log data and the subsequent log data as the filtered log data.

[0046] Optionally, determining the preceding log data and the subsequent log data according to the target log data comprises: determining a timestamp of each original log data and a target timestamp of the target log data; obtaining a specified time range input by a user based on the target timestamp, and screening each timestamp according to the specified time range to obtain original log data corresponding to the specified time range as the preceding log data; and screening the original log data according to the target timestamp and the timestamp to generate a log group, wherein the log group comprises original log data with a timestamp greater than the target timestamp; arranging the original log data in the log group in ascending order of the timestamp to generate a sorted log group, and selecting a specified number of log data from the sorted log group as the subsequent log data.

[0047] Specifically, the controller first determines the number of pages of the target log data. The purpose of determining the number of pages is to ensure that the target log data is rendered on the first page, thereby facilitating user viewing.

[0048] Further, when the number of pages is the first page, the controller determines the preceding log data and the subsequent log data according to the target log data. The controller determines a timestamp of each original log data and a target timestamp of the target log data, and then screens the preceding log data based on a specified time range input by a user, wherein the specified time range can be 5 minutes. At this time, the controller queries data 5 minutes before the target log data as the preceding log data. The specified number can be set according to user needs, and the specified number can be 30. At this time, the controller queries the last 30 data greater than or equal to the target timestamp as the subsequent log data. For example, the controller can query a fixed number of data in ascending order of time greater than or equal to the current target timestamp, find the log according to the unique identifier id of the log, and exchange and flip the log with the first log in the set to obtain the subsequent log data.

[0049] S124, determining the preceding log data according to the target log data, and taking the preceding log data as the screening log data.

[0050] Optionally, determining the preceding log data according to the target log data comprises: determining a timestamp of each original log data and a target timestamp of the target log data; obtaining a specified time range input by a user based on the target timestamp, and screening each timestamp according to the specified time range to obtain original log data corresponding to the specified time range as the preceding log data.

[0051] Specifically, when the page number is not the first page, the controller will only determine the preceding log data according to the target log data. That is, the controller will determine the time stamp of each original log data and the target time stamp of the target log data, and then filter the preceding log data based on the specified time range input by the user, where the specified time range can be 5 minutes. At this time, the controller will query the data 5 minutes before the target log data as the preceding log data.

[0052] It should be noted that the technical scheme of the embodiment of the present application supports querying any number of logs after any log, any minute before, thereby flexibly adapting to different needs, and can support page query, starting from the second page without querying the number after, only querying the data of the minutes before, calculating the starting index by page.

[0053] S130, generating a log filtering result according to the target log data and each filtered log data.

[0054] Specifically, the controller can combine the target log data and the filtered log data to generate a log filtering result, and send the log filtering result to a user terminal for display. The user terminal refers to a mobile terminal connected to the controller, and includes but is not limited to mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players) and other mobile terminal devices.

[0055] Optionally, after generating the log filtering result according to the target log data and each filtered log data, it further includes: obtaining the key information set by the user based on the log filtering result; and sending the log filtering result to a storage module for storage according to the key information.

[0056] Specifically, the controller can also send the log filtering result to a storage module for storage. The storage module includes a storage device with storage function, which can be a computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. The controller can obtain the key information set by the user based on the log filtering result. The key information can be date, log name, log source or keyword. The purpose of setting the key information is to facilitate the user to subsequently retrieve the log filtering result. The controller can store the correspondence between the key information and the log filtering result in the storage module. When the user needs to read data later, the user can directly input the key information. At this time, the controller will display the corresponding log filtering result to the user.

[0057] The technical scheme of the embodiment of the present application can obtain target log data selected by a user through original log data, determine the number of pages of the target log data, and then generate each filtered log data by filtering the context of the original log data according to the number of pages and the target log data, and further generate a log filtering result, so that the log filtering result can be directly displayed to the user, manual filtering is avoided, the workload of manual work is reduced, and the log filtering efficiency is improved, and the user can adaptively adjust the log filtering rule according to needs, and the adaptability is high.

[0058] Embodiment two

[0059] Figure 3 A flowchart of a log data filtering method provided for the second embodiment of the present application, the embodiment adds a specific process of generating a log filtering result according to target log data and each filtered log data on the basis of the first embodiment. The specific content of steps S210-S220 is substantially the same as that of steps S110-S120 in the first embodiment, and therefore will not be described again in the present embodiment. As shown in the figure, the method comprises the following steps. Figure 3

[0060] S210, obtaining original log data, and determining target log data based on each original log data.

[0061] Optionally, determining the target log data based on each original log data comprises: displaying each original log data to the user to obtain log identification information input by the user; and matching each original log data according to the log identification information to obtain original log data corresponding to the log identification information as the target log data.

[0062] S220, determining the number of pages of the target log data, and filtering the original log data according to the number of pages and the target log data to generate each filtered log data.

[0063] Optionally, filtering the original log data according to the number of pages and the target log data to generate each filtered log data comprises: determining whether the number of pages is the first page, if yes, determining the preceding log data and the subsequent log data according to the target log data, and taking the preceding log data and the subsequent log data as the filtered log data; otherwise, determining the preceding log data according to the target log data, and taking the preceding log data as the filtered log data.

[0064] ​Optionally, the determining of the preceding log data according to the target log data comprises: determining a timestamp of each original log data and a target timestamp of the target log data; obtaining a specified time range input by a user based on the target timestamp, and screening each timestamp according to the specified time range to obtain original log data corresponding to the specified time range as the preceding log data; and screening the original log data according to the target timestamp and the timestamp to generate a log grouping, wherein the log grouping comprises original log data with a timestamp greater than the target timestamp.

[0065] Optionally, the determining of the preceding log data according to the target log data comprises: determining a timestamp of each original log data and a target timestamp of the target log data; obtaining a specified time range input by a user based on the target timestamp, and screening each timestamp according to the specified time range to obtain original log data corresponding to the specified time range as the preceding log data.

[0066] S230, determining a timestamp corresponding to each screened log data, and arranging each screened log data according to the timestamp in descending order to generate each target screened log.

[0067] Specifically, the controller arranges each screened log data according to the timestamp in descending order, and the purpose of the arrangement is to enable the user to master the occurrence time of the log, facilitate the positioning of the fault, and improve the problem positioning efficiency.

[0068] S240, marking the target log data according to a specified manner to generate marked target log data.

[0069] The specified manner refers to a log marking manner set by the user, and the user can set the specified manner on the controller according to the display requirement. The controller marks the target log data according to the specified manner. The specified manner can be highlight display, red marking, font bolding, and font enlarging, and when the specified manner selected by the user is highlight display, the controller highlights the target log data to generate the marked target log data.

[0070] S250, combining the marked target log data and each target screened log to generate a log screening result.

[0071] Optionally, after the log screening result is generated according to the target log data and each screened log data, the method further comprises: obtaining key information set by the user based on the log screening result; and sending the log screening result to a storage module for storage according to the key information.

[0072] The technical scheme of the embodiment of the present application can obtain target log data selected by a user through original log data, determine the number of pages of the target log data, and then generate each filtered log data by filtering the context of the original log data according to the number of pages and the target log data, and further generate a log filtering result, so that the log filtering result can be directly displayed to the user, manual filtering is avoided, the workload of manual work is reduced, and the log filtering efficiency is improved, and the user can adaptively adjust the log filtering rule according to needs, and the adaptability is high.

[0073] Embodiment three

[0074] Figure 4 A structural schematic diagram of a log data filtering device provided by the embodiment three of the present application is shown in FIG. 3. Figure 4 As shown in the figure, the device comprises: a target log data determination module 310 configured to obtain original log data, and determine target log data based on each original log data;

[0075] a log data filtering module 320 configured to determine the number of pages of the target log data, and filter the original log data according to the number of pages and the target log data to generate each filtered log data;

[0076] a log filtering result generation module 330 configured to generate a log filtering result according to the target log data and each filtered log data.

[0077] Optionally, the target log data determination module 310 specifically comprises: a target log data determination unit configured to: display each original log data to a user to obtain log identification information input by the user; and match each original log data according to the log identification information to obtain original log data corresponding to the log identification information as the target log data.

[0078] Optionally, the log data filtering module 320 specifically comprises: a number of pages determination unit configured to determine whether the number of pages is the first page; a preceding and subsequent log data determination unit configured to, when the number of pages is the first page, determine preceding log data and subsequent log data according to the target log data, and take the preceding log data and the subsequent log data as filtered log data; and a preceding log data determination unit configured to, when the number of pages is not the first page, determine preceding log data according to the target log data, and take the preceding log data as filtered log data.

[0079] Optionally, the pre-sequence and post-sequence log data determination unit is specifically configured to: determine the time stamp of each original log data and the target time stamp of the target log data; obtain a specified time range input by a user based on the target time stamp, filter each time stamp according to the specified time range, and obtain original log data corresponding to the specified time range as pre-sequence log data; and filter the original log data according to the target time stamp and the time stamp to generate a log grouping, wherein the log grouping includes original log data with a time stamp greater than the target time stamp; arrange the original log data in the log grouping in ascending order of the time stamp to generate a sorted log grouping, and select a specified number of log data from the sorted log grouping as post-sequence log data.

[0080] Optionally, the pre-sequence log data determination unit is specifically configured to: determine the time stamp of each original log data and the target time stamp of the target log data; obtain a specified time range input by a user based on the target time stamp, filter each time stamp according to the specified time range, and obtain original log data corresponding to the specified time range as pre-sequence log data.

[0081] Optionally, the log filtering result generation module 330 is specifically configured to: determine the time stamp corresponding to each filtered log data, arrange each target filtered log in descending order of the time stamp to generate each target filtered log; mark the target log data in a specified manner to generate marked target log data; and combine the marked target log data and each target filtered log to generate a log filtering result.

[0082] Optionally, the device further includes a filtering result storage module configured to, after generating the log filtering result according to the target log data and each filtered log data, obtain key information set by a user based on the log filtering result; and send the log filtering result to the storage module for storage according to the key information.

[0083] The technical scheme of the embodiment of the application can obtain target log data selected by a user through original log data, determine the number of pages of the target log data, filter the original log data according to the number of pages and the target log data to generate each filtered log data, and then generate a log filtering result, so that the log filtering result can be directly displayed to the user, manual filtering is avoided, the workload of manual work is reduced, the log filtering efficiency is improved, and the user can adaptively adjust the log filtering rule as needed, which is highly adaptive.

[0084] The log data filtering device provided in the embodiment of the application can execute the log data filtering method provided in any embodiment of the application, and has the corresponding function modules and beneficial effects of the execution method.

[0085] Embodiment four

[0086] Figure 5 A structural diagram of an electronic device 10 that can be used to implement embodiments of the present application is shown. The electronic device is intended to represent various forms of digital computers, such as laptops, desktops, tablets, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular telephones, smart phones, wearable devices (e.g., headsets, glasses, watches, etc.), and other similar computing devices. The components shown here, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the present application described and / or claimed in this document.

[0087] As shown in Figure 5 The electronic device 10 includes at least one processor 11, and a memory, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., connected to the at least one processor 11 in communication, where the memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes according to the computer programs stored in the read-only memory (ROM) 12 or loaded into the random access memory (RAM) 13 from the storage unit 18. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0088] Various 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, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a magnetic disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network, such as the Internet, and / or various telecommunications networks.

[0089] The processor 11 can be various general and / or special purpose processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, and the like. The processor 11 performs various methods and processes described above, such as a log data filtering method. That is, the processor 11 obtains raw log data, determines target log data based on the raw log data, determines a number of pages of the target log data, filters the raw log data according to the number of pages and the target log data to generate filtered log data, and generates a log filtering result according to the target log data and the filtered log data.

[0090] In some embodiments, a log data filtering method can be implemented as a computer program tangibly embodied in a computer readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program can 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 onto the RAM 13 and executed by the processor 11, one or more steps of a log data filtering method described above can be performed. Alternatively, in other embodiments, the processor 11 can be configured to perform a log data filtering method by any other appropriate means, such as by means of firmware.

[0091] Various implementations of the systems and techniques described above can be realized in digital electronic circuitry, integrated circuitry, a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on a chip (SOC), a programmable logic device (PLD), a computer hardware, firmware, software, and / or combinations thereof. These various implementations can include implementation in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which can be special or general purpose, coupled to receive data and instructions from, and to transmit data and instructions to, a storage system, at least one input device, and at least one output device.

[0092] Computer programs for implementing the methods of the present application can be written in any combination of one or more programming languages. These computer programs can be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer program, when executed, enables the functions / acts specified in the flowcharts and / or block diagrams to be implemented. The computer program can be executed entirely on a machine, partially on a machine, partially on a machine as a standalone software package and partially on a remote machine or entirely on a remote machine or server.

[0093] In the context of the present application, a computer-readable storage medium can 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 can 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, a computer-readable storage medium can be a machine-readable signal medium. More specific examples of a machine-readable storage medium will include one or more lines of electrical connections, 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.

[0094] 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 the user and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the electronic device. Other kinds of devices can be used to provide for interaction with a user as well; 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 can be received in any form, including acoustic, speech, or tactile input.

[0095] The systems and techniques described herein 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 herein, 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 a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0096] The computing system can 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. A server can be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system, to solve the defects of large management difficulty and weak business scalability in traditional physical host and VPS service.

[0097] It should be understood that the various forms of flow shown above can be re-ordered, added to, or deleted from without departing from the scope of the present disclosure. For example, the steps recited in the present disclosure can be executed in parallel, executed in sequence, or executed in different orders, as long as the desired results of the technical solutions of the present disclosure can be achieved, and the present disclosure is not limited herein.

[0098] The above detailed description does not constitute a limitation on the protection scope of the present application. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent replacements, and improvements made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A log data filtering method characterized by, The method comprises the following steps: acquiring original log data; displaying each of the original log data to a user to obtain log identification information input by the user; matching each of the original log data according to the log identification information to obtain original log data corresponding to the log identification information as target log data; determining the number of pages of the target log data; judging whether the number of pages is the first page, if yes, determining preceding log data and subsequent log data according to the target log data, and taking the preceding log data and the subsequent log data as screening log data; otherwise, determining preceding log data according to the target log data, and taking the preceding log data as the screening log data; generating a log screening result according to the target log data and each of the screening log data.

2. The method of claim 1, wherein, The step of determining the preceding log data and the subsequent log data according to the target log data comprises the following steps: determining the time stamp of each of the original log data and the target time stamp of the target log data; obtaining a specified time range input by the user based on the target time stamp, screening each of the time stamps according to the specified time range to obtain original log data corresponding to the specified time range as the preceding log data; screening the original log data according to the target time stamp and the time stamp to generate a log grouping, wherein the log grouping comprises original log data with a time stamp greater than the target time stamp; arranging the original log data in the log grouping in ascending order of the time stamp to generate a sorted log grouping, and selecting a specified number of log data from the sorted log grouping as the subsequent log data.

3. The method of claim 1, wherein, The step of determining the preceding log data according to the target log data comprises the following steps: determining the time stamp of each of the original log data and the target time stamp of the target log data; obtaining a specified time range input by the user based on the target time stamp, screening each of the time stamps according to the specified time range to obtain original log data corresponding to the specified time range as the preceding log data.

4. The method of claim 1, wherein, The step of generating a log screening result according to the target log data and each of the screening log data comprises the following steps: determining the time stamp corresponding to each of the screening log data, arranging each of the screening log data in descending order of the time stamp to generate a target screening log; marking the target log data in a specified manner to generate marked target log data; combining the marked target log data and each target screening log to generate the log screening result.

5. The method of claim 1, wherein, After the step of generating a log screening result according to the target log data and each of the screening log data, the method further comprises the following steps: obtaining key information set by the user based on the log screening result; sending the log screening result to a storage module for storage according to the key information.

6. A log data filtering apparatus characterized by comprising: The device comprises: a target log data determination module for acquiring original log data; the target log data determination module comprises a target log data determination unit; The target log data determination unit is configured to display each of the original log data to a user to obtain log identification information input by the user, and match each of the original log data according to the log identification information to obtain original log data corresponding to the log identification information as target log data. The log data screening module is configured to determine a page number of the target log data. The log data screening module comprises a page number determination unit, a preceding and subsequent log data determination unit, and a preceding log data determination unit. The page number determination unit is configured to determine whether the page number is a first page. The preceding and subsequent log data determination unit is configured to determine preceding log data and subsequent log data according to the target log data when the page number is the first page, and take the preceding log data and the subsequent log data as screening log data. The preceding log data determination unit is configured to determine preceding log data according to the target log data when the page number is not the first page, and take the preceding log data as the screening log data. The log screening result generation module is configured to generate a log screening result according to the target log data and each of the screening log data.

7. An electronic device, comprising: The electronic device comprises: at least one processor; and a memory connected with the at least one processor in communication; wherein the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor to enable the at least one processor to execute the method of any one of claims 1-5.

8. A computer storage medium, characterized in that The computer storage medium stores computer instructions for enabling a processor to implement the method of any one of claims 1-5 when executed by the processor.

Citation Information

Patent Citations

  • Log data processing method, device, equipment and storage medium

    CN110532347A

  • Log information processing method and device, electronic equipment and storage medium

    CN112148279A