CN116860704A - Log data screening method, device, equipment and storage medium - Google Patents

Log data screening method, device, equipment and storage medium Download PDF

Info

Publication number
CN116860704A
CN116860704A CN202310906589.0A CN202310906589A CN116860704A CN 116860704 A CN116860704 A CN 116860704A CN 202310906589 A CN202310906589 A CN 202310906589A CN 116860704 A CN116860704 A CN 116860704A
Authority
CN
China
Prior art keywords
log data
log
target
screening
original
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
CN202310906589.0A
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 Bo Hongyuan Data Polytron Technologies Inc
Original Assignee
Beijing Bo Hongyuan Data Polytron Technologies Inc
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 Bo Hongyuan Data Polytron Technologies Inc filed Critical Beijing Bo Hongyuan Data Polytron Technologies Inc
Priority to CN202310906589.0A priority Critical patent/CN116860704A/en
Publication of CN116860704A publication Critical patent/CN116860704A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • G06F16/148File search processing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0706Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
    • G06F11/0709Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in a distributed system consisting of a plurality of standalone computer nodes, e.g. clusters, client-server systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/0766Error or fault reporting or storing
    • G06F11/0787Storage of error reports, e.g. persistent data storage, storage using memory protection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • G06F16/156Query results presentation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Library & Information Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Quality & Reliability (AREA)
  • Computer Hardware Design (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a log data screening method, device, equipment and storage medium. Comprising the following steps: acquiring original log data, and determining target log data based on each original log data; determining the paging number of target log data, and screening the original log data according to the paging number and the target log data to generate screened log data; and generating a log screening result according to the target log data and each screening log data. The method has the advantages that the target log data selected by the user can be obtained through the original log data, the paging number of the target log data is determined, then, the context screening is carried out on the original log data according to the paging number and the target log data to generate each screening log data, further, a log screening result is generated, the log screening result can be directly displayed to the user, manual screening is avoided, the manual workload is reduced, further, the log screening efficiency is improved, the user can adaptively adjust the log screening rule according to requirements, and the suitability is high.

Description

Log data screening method, device, equipment and storage medium
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method, an apparatus, a device, and a storage medium for screening log data.
Background
In a large-scale distributed system, the log is a very important debugging and troubleshooting tool, so that a log management platform supporting multiple systems and multiple data sources is generated, and after a certain error log is queried, the problem needs to be positioned according to the context of the log, so that a method for quickly positioning the context of the log is needed to improve the problem processing efficiency.
The log obstacle removing scheme in the prior art needs a user to log in a host computer with a problem manually, the context of the corresponding log file is checked, the manual workload is large, and the problem locating efficiency is low.
Disclosure of Invention
The invention provides a log data screening method, a device, equipment and a storage medium, which are used for realizing rapid positioning of target log data and screening out a context associated with the target log data.
According to an aspect of the present invention, there is provided a log data screening method, including:
acquiring original log data, and determining target log data based on each original log data;
determining the paging number of target log data, and screening the original log data according to the paging number and the target log data to generate screened log data;
and generating a log screening result according to the target log data and each screening log data.
Optionally, determining the target log data based on each original log data includes: displaying each original log data to a user to acquire log identification information input by the user; and matching each original log data according to the log identification information to obtain the original log data corresponding to the log identification information as target log data.
Optionally, filtering the original log data according to the number of pages and the target log data to generate each filtered log data, including: judging whether the number of pages is a first page or not, if so, determining the preamble log data and the follow-up log data according to the target log data, and taking the preamble log data and the follow-up log data as screening log data; otherwise, determining the preamble log data according to the target log data, and taking the preamble log data as screening log data.
Optionally, determining the preamble log data and the successor log data according to the target log data includes: determining the time stamp of each original log data and the target time stamp of the target log data; acquiring a specified time range input by a user based on a target time stamp, screening each time stamp according to the specified time range, and acquiring original log data corresponding to the specified time range as preamble log data; screening the original log data according to the target time stamp and the time stamp to generate a log packet, wherein the log packet comprises the original log data with the time stamp larger than the target time stamp; the original log data in the log packets are arranged according to the sequence of the time stamps from small to large to generate ordered log packets, and a specified number of log data are selected from the ordered log packets to serve as subsequent log data.
Optionally, determining the preamble log data according to the target log data includes: determining the time stamp of each original log data and the target time stamp of the target log data; and acquiring a specified time range input by a user based on the target time stamp, and screening each time stamp according to the specified time range to acquire original log data corresponding to the specified time range as preamble log data.
Optionally, generating a log filtering result according to the target log data and each filtering log data includes: determining a time stamp corresponding to each piece of screening log data, and arranging the screening log data according to the sequence from big to small of the time stamp to generate each target screening log; marking the target log data according to a specified mode to generate marked target log data; and combining the marked target log data with each target screening log to generate a log screening result.
Optionally, after generating the log filtering result according to the target log data and each filtering log data, the method further includes: acquiring key information set by a user based on a log screening result; and sending the log screening result to a storage module for storage according to the key information.
According to another aspect of the present invention, there is provided a log data screening apparatus including:
the target log data determining module is used for acquiring original log data and determining target log data based on the original log data;
the log data screening module is used for determining the paging number of the target log data, and screening the original log data according to the paging number and the target log data to generate screened log data;
and the log screening result generation module is used for generating log screening results according to the target log data and each screening log data.
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 memory stores a computer program executable by the at least one processor to enable the at least one processor to perform a log data screening method according to any one of the embodiments of the present invention.
According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to implement a log data screening method according to any one of the embodiments of the present invention when executed.
According to the technical scheme, the target log data selected by the user can be obtained through the original log data, the paging number of the target log data is determined, then, context screening is conducted on the original log data according to the page number and the target log data to generate each screened log data, further, log screening results are generated, the log screening results can be directly displayed to the user, manual screening is avoided, manual workload is reduced, log screening efficiency is improved, the user can adaptively adjust log screening rules according to requirements, and suitability is high.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is apparent that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a log data screening method according to a first embodiment of the present invention;
FIG. 2 is a flowchart of another log data screening method according to a first embodiment of the present invention;
FIG. 3 is a flowchart of another log data screening method according to a second embodiment of the present invention;
fig. 4 is a schematic structural diagram of a log data screening device according to a third embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device for implementing a log data screening method according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise 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 1
Fig. 1 is a flowchart of a log data screening method according to an embodiment of the present invention, where the method may be implemented by a log data screening device, and the log data screening device may be implemented in hardware and/or software, and the log data screening device may be configured in a computer. As shown in fig. 1, the method includes:
s110, acquiring original log data, and determining target log data based on each original log data.
The log data refers to procedural event record data generated in the running process of servers, network equipment, security equipment, databases, middleware and business systems in an IT production environment. The original log data is data originally generated by the equipment and the service system, the target log data is target data selected by a user, the target log data can be fault data, and the fault data is used as the target log data, so that the user can be helped to quickly locate the context of the fault data, the user can debug and troubleshoot the fault, and the problem processing efficiency is improved.
Optionally, determining the target log data based on each original log data includes: displaying each original log data to a user to acquire log identification information input by the user; and matching each original log data according to the log identification information to obtain the original log data corresponding to the log identification information as target log data.
Specifically, the controller can display each original log number to a user, the user can check through a client on a user terminal connected with the controller, wherein the client refers to a log management platform, and the controller refers to a computer controller for log data processing. The user can select interested data through the log management platform, particularly through a mode of inputting log identification information, at the moment, the controller can match each original log data according to the log identification information, and then the corresponding target log data can be positioned.
S120, determining the paging number of the target log data, and screening the original log data according to the paging number and the target log data to generate screened log data.
Specifically, based on the target log data, the log context can be positioned according to the time stamp, the corresponding equipment ID and how many minutes before the log is queried by the log path, so as to realize screening of the original log data to generate screened log data, wherein the minutes and the number of the logs are configurable and are transmitted by the calling party.
Fig. 2 is a flowchart of a log data screening method according to an embodiment of the present invention, and step S120 mainly includes steps S121 to S124 as follows:
s121, determining the paging number of the target log data.
S122, judging whether the number of divided pages is the first page, if yes, executing S123, otherwise, executing S124.
S123, determining the preamble log data and the follow-up log data according to the target log data, and taking the preamble log data and the follow-up log data as screening log data.
Optionally, determining the preamble log data and the successor log data according to the target log data includes: determining the time stamp of each original log data and the target time stamp of the target log data; acquiring a specified time range input by a user based on a target time stamp, screening each time stamp according to the specified time range, and acquiring original log data corresponding to the specified time range as preamble log data; screening the original log data according to the target time stamp and the time stamp to generate a log packet, wherein the log packet comprises the original log data with the time stamp larger than the target time stamp; the original log data in the log packets are arranged according to the sequence of the time stamps from small to large to generate ordered log packets, and a specified number of log data are selected from the ordered log packets to serve as subsequent log data.
Specifically, the controller determines the page number of the target log data first, and the purpose of determining the page number is to ensure that the target log data is rendered on the first page, so that the target log data is convenient for a user to view.
Further, when the number of divided pages is the first page, the controller determines the preamble log data and the following log data according to the target log data. The controller determines the time stamp of each original log data and the target time stamp of the target log data, and then screens out the preamble log data based on a specified time range input by the user, wherein the specified time range may be 5 minutes, and at this time, the controller queries the data 5 minutes before the target log data as the preamble log data. The designated number can be set according to the needs of the user, and the designated number can be 30, and at the moment, the controller can inquire the last 30 pieces of data which are greater than or equal to the target timestamp as subsequent log data. For example, the controller may query a fixed number of logs in ascending order according to time according to the current target timestamp or more, find the log in the number of the logs according to the unique id of the log, and exchange and flip the log with the log at the first position of the set to obtain the subsequent log data.
S124, determining the preamble log data according to the target log data, and taking the preamble log data as screening log data.
Optionally, determining the preamble log data according to the target log data includes: determining the time stamp of each original log data and the target time stamp of the target log data; and acquiring a specified time range input by a user based on the target time stamp, and screening each time stamp according to the specified time range to acquire original log data corresponding to the specified time range as preamble log data.
Specifically, when the number of divided pages is not the first page, the controller determines the preamble log data only from the target log data. That is, the controller determines the time stamp of each original log data and the target time stamp of the target log data, and then screens out the preamble log data based on a specified time range input by the user, wherein the specified time range may be 5 minutes, and at this time, the controller queries the data 5 minutes before the target log data as the preamble log data.
It should be noted that, the technical solution of the embodiment of the present invention supports any number of logs after any log is queried and any number of logs before any minute, so as to flexibly adapt to different requirements, and can support paging query, and the number of logs after no query is started from the second page, only the data of the previous minute is queried, and the starting index is calculated according to paging.
S130, generating a log screening result according to the target log data and each screening log data.
Specifically, the controller may combine the target log data with the filtered log data to generate a log filtering result, and send the log filtering result to the user terminal for display, where the user terminal refers to a mobile terminal connected to the controller, and the user terminal includes, but is not limited to, mobile terminal devices such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet personal computer), and a PMP (portable multimedia player).
Optionally, after generating the log filtering result according to the target log data and each filtering log data, the method further includes: acquiring key information set by a user based on a log screening result; and sending the log screening result to a storage module for storage according to the key information.
Specifically, the controller may also send the log screening result to a storage module for storage, where the storage module includes a storage device with a storage function, where the storage device may 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. The controller can acquire key information set by a user based on the log screening result, the key information can be date, log name, log source or key word, the purpose of setting the key information is to facilitate the subsequent retrieval of the log screening result by the user, the controller can store the corresponding relation between the key information and the log screening result in the storage module, and the controller can directly input the key information when the subsequent user needs to read data, and at the moment, the controller can display the corresponding log screening result to the user.
According to the technical scheme, the target log data selected by the user can be obtained through the original log data, the paging number of the target log data is determined, then, context screening is conducted on the original log data according to the page number and the target log data to generate each screened log data, further, log screening results are generated, the log screening results can be directly displayed to the user, manual screening is avoided, manual workload is reduced, log screening efficiency is improved, the user can adaptively adjust log screening rules according to requirements, and suitability is high.
Example two
Fig. 3 is a flowchart of a log data screening method according to a second embodiment of the present invention, where a specific process of generating a log screening result according to target log data and each screened log data is added on the basis of the first embodiment. The specific contents of steps S210 to S220 are substantially the same as steps S110 to S120 in the first embodiment, and thus, a detailed description is omitted in this embodiment. As shown in fig. 3, the method includes:
s210, acquiring original log data, and determining target log data based on each original log data.
Optionally, determining the target log data based on each original log data includes: displaying each original log data to a user to acquire log identification information input by the user; and matching each original log data according to the log identification information to obtain the original log data corresponding to the log identification information as target log data.
S220, determining the paging number of the target log data, and screening the original log data according to the paging number and the target log data to generate screened log data.
Optionally, filtering the original log data according to the number of pages and the target log data to generate each filtered log data, including: judging whether the number of pages is a first page or not, if so, determining the preamble log data and the follow-up log data according to the target log data, and taking the preamble log data and the follow-up log data as screening log data; otherwise, determining the preamble log data according to the target log data, and taking the preamble log data as screening log data.
Optionally, determining the preamble log data and the successor log data according to the target log data includes: determining the time stamp of each original log data and the target time stamp of the target log data; acquiring a specified time range input by a user based on a target time stamp, screening each time stamp according to the specified time range, and acquiring original log data corresponding to the specified time range as preamble log data; screening the original log data according to the target time stamp and the time stamp to generate a log packet, wherein the log packet comprises the original log data with the time stamp larger than the target time stamp; the original log data in the log packets are arranged according to the sequence of the time stamps from small to large to generate ordered log packets, and a specified number of log data are selected from the ordered log packets to serve as subsequent log data.
Optionally, determining the preamble log data according to the target log data includes: determining the time stamp of each original log data and the target time stamp of the target log data; and acquiring a specified time range input by a user based on the target time stamp, and screening each time stamp according to the specified time range to acquire original log data corresponding to the specified time range as preamble log data.
S230, determining the time stamp corresponding to each piece of screening log data, and arranging the screening log data according to the order of the time stamps from big to small to generate each target screening log.
Specifically, the controller can arrange each screening log data according to the sequence from big to small of the time stamp, and the arrangement purpose is to enable a user to grasp the occurrence time of the log, so that faults can be conveniently located, and the problem locating efficiency is improved.
S240, marking the target log data according to a specified mode to generate marked target log data.
The appointed mode is a log marking mode set by a user, the user can set the log marking mode at the controller according to the display requirement, and the controller marks the target log data according to the appointed mode. The designated mode may be highlighting, redmarking, font thickening, font enlarging, etc., and when the designated mode selected by the user is highlighting, the controller will highlight the target log data to generate the marked target log data.
S250, combining the marked target log data with each target screening log to generate a log screening result.
Optionally, after generating the log filtering result according to the target log data and each filtering log data, the method further includes: acquiring key information set by a user based on a log screening result; and sending the log screening result to a storage module for storage according to the key information.
According to the technical scheme, the target log data selected by the user can be obtained through the original log data, the paging number of the target log data is determined, then, context screening is conducted on the original log data according to the page number and the target log data to generate each screened log data, further, log screening results are generated, the log screening results can be directly displayed to the user, manual screening is avoided, manual workload is reduced, log screening efficiency is improved, the user can adaptively adjust log screening rules according to requirements, and suitability is high.
Example III
Fig. 4 is a schematic structural diagram of a log data screening device according to a third embodiment of the present invention. As shown in fig. 4, the apparatus includes: a target log data determining module 310, configured to obtain original log data, and determine target log data based on each original log data;
the log data screening module 320 is 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 screened log data;
the log filtering result generating module 330 is configured to generate a log filtering result according to the target log data and each filtering log data.
Optionally, the target log data determining module 310 specifically includes: a target log data determining unit configured to: displaying each original log data to a user to acquire log identification information input by the user; and matching each original log data according to the log identification information to obtain the original log data corresponding to the log identification information as target log data.
Optionally, the log data filtering module 320 specifically includes: the paging number judging unit is used for: the system comprises a first page judgment unit, a first and a subsequent log data determination unit, a second page judgment unit and a first and a second page judgment unit, wherein the first page judgment unit is used for judging whether the number of the divided pages is a first page or not, and the first and the subsequent log data determination unit is used for determining the first and the subsequent log data according to target log data when the number of the divided pages is the first page, and taking the first and the subsequent log data as screening log data; and the preamble log data determining unit is used for determining preamble log data according to the target log data when the number of pages is not the first page, and taking the preamble log data as screening log data.
Optionally, the preamble and postamble log data determining unit is specifically configured to: determining the time stamp of each original log data and the target time stamp of the target log data; acquiring a specified time range input by a user based on a target time stamp, screening each time stamp according to the specified time range, and acquiring original log data corresponding to the specified time range as preamble log data; screening the original log data according to the target time stamp and the time stamp to generate a log packet, wherein the log packet comprises the original log data with the time stamp larger than the target time stamp; the original log data in the log packets are arranged according to the sequence of the time stamps from small to large to generate ordered log packets, and a specified number of log data are selected from the ordered log packets to serve as subsequent log data.
Optionally, the preamble log data determining unit is specifically configured to: determining the time stamp of each original log data and the target time stamp of the target log data; and acquiring a specified time range input by a user based on the target time stamp, and screening each time stamp according to the specified time range to acquire original log data corresponding to the specified time range as preamble log data.
Optionally, the log filtering result generating module 330 is specifically configured to: determining a time stamp corresponding to each piece of screening log data, and arranging the screening log data according to the sequence from big to small of the time stamp to generate each target screening log; marking the target log data according to a specified mode to generate marked target log data; and combining the marked target log data with each target screening log to generate a log screening result.
Optionally, the apparatus further comprises: the screening result storage module is used for acquiring key information set by a user based on the log screening result after generating the log screening result according to the target log data and each piece of screening log data; and sending the log screening result to a storage module for storage according to the key information.
According to the technical scheme, the target log data selected by the user can be obtained through the original log data, the paging number of the target log data is determined, then, context screening is conducted on the original log data according to the page number and the target log data to generate each screened log data, further, log screening results are generated, the log screening results can be directly displayed to the user, manual screening is avoided, manual workload is reduced, log screening efficiency is improved, the user can adaptively adjust log screening rules according to requirements, and suitability is high.
The log data screening device provided by the embodiment of the invention can execute the log data screening method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example IV
Fig. 5 shows a schematic diagram of the structure 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. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, 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. 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., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM12 and the RAM13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
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, 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, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as a log data screening method. Namely: acquiring original log data, and determining target log data based on each original log data; determining the paging number of target log data, and screening the original log data according to the paging number and the target log data to generate screened log data; and generating a log screening result according to the target log data and each screening log data.
In some embodiments, a log data screening method may be implemented as a computer program tangibly embodied on 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 ROM12 and/or the communication unit 19. When the computer program is loaded into RAM13 and executed by processor 11, one or more steps of a log data screening method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform a log data screening method in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On 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, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out 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 implemented. The computer program may execute entirely on the 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. The 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 portable 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) through 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 may 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 input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background 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 background, 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. The client and server are typically 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 hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (10)

1. A log data screening method, comprising:
acquiring original log data, and determining target log data based on each original log data;
determining the paging number of the target log data, and screening the original log data according to the paging number and the target log data to generate screened log data;
and generating a log screening result according to the target log data and each screening log data.
2. The method of claim 1, wherein said determining target log data based on each of said raw log data comprises:
displaying each original log data to a user so as to acquire log identification information input by the user;
and matching each original log data according to the log identification information to obtain the original log data corresponding to the log identification information as the target log data.
3. The method of claim 1, wherein the filtering the original log data according to the number of pages and the target log data to generate each filtered log data comprises:
judging whether the paging number is the first page, if so, determining the preamble log data and the follow-up log data according to the target log data, and taking the preamble log data and the follow-up log data as the screening log data;
otherwise, determining the preamble log data according to the target log data, and taking the preamble log data as the screening log data.
4. A method according to claim 3, wherein said determining of the leading log data and the trailing log data from the target log data comprises:
determining the time stamp of each original log data and the target time stamp of the target log data;
acquiring a specified time range input by a user based on the target time stamp, and screening each time stamp according to the specified time range to acquire original log data corresponding to the specified time range as the preamble log data;
screening the original log data according to the target time stamp and the time stamp to generate a log packet, wherein the log packet comprises the original log data with the time stamp larger than the target time stamp;
the original log data in the log packets are arranged according to the sequence from small to large of the time stamps to generate ordered log packets, and the log data with the specified quantity are selected from the ordered log packets to serve as the subsequent log data.
5. A method according to claim 3, wherein said determining preamble log data from said target log data comprises:
determining the time stamp of each original log data and the target time stamp of the target log data;
and acquiring a specified time range input by a user based on the target time stamp, and screening each time stamp according to the specified time range to acquire original log data corresponding to the specified time range as the preamble log data.
6. The method of claim 1, wherein generating a log screening result from the target log data and each of the screening log data comprises:
determining a time stamp corresponding to each piece of screening log data, and arranging the screening log data according to the sequence from big to small of the time stamp to generate each target screening log;
marking the target log data according to a specified mode to generate marked target log data;
and combining the marked target log data with each target screening log to generate the log screening result.
7. The method of claim 1, further comprising, after said generating log screening results from said target log data and each of said screening log data:
acquiring 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.
8. A log data screening apparatus, comprising:
the target log data determining module is used for acquiring original log data and determining target log data based on the original log data;
the log data screening module is used for determining the paging number of the target log data, and screening the original log data according to the paging number and the target log data to generate screened log data;
and the log screening result generation module is used for generating log screening results according to the target log data and each piece of screening log data.
9. An electronic device, the electronic device comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
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 storage medium storing computer instructions for causing a processor to perform the method of any one of claims 1-7 when executed.
CN202310906589.0A 2023-07-21 2023-07-21 Log data screening method, device, equipment and storage medium Pending CN116860704A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310906589.0A CN116860704A (en) 2023-07-21 2023-07-21 Log data screening method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310906589.0A CN116860704A (en) 2023-07-21 2023-07-21 Log data screening method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116860704A true CN116860704A (en) 2023-10-10

Family

ID=88226766

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310906589.0A Pending CN116860704A (en) 2023-07-21 2023-07-21 Log data screening method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116860704A (en)

Similar Documents

Publication Publication Date Title
CN116611411A (en) Business system report generation method, device, equipment and storage medium
CN113220710B (en) Data query method, device, electronic equipment and storage medium
CN116074183B (en) C3 timeout analysis method, device and equipment based on rule engine
CN117195809A (en) Silk screen import method, device, equipment and storage medium
CN116185389A (en) Code generation method and device, electronic equipment and medium
CN116860704A (en) Log data screening method, device, equipment and storage medium
CN115905322A (en) Service processing method and device, electronic equipment and storage medium
CN116149933B (en) Abnormal log data determining method, device, equipment and storage medium
CN115858325B (en) Project log adjusting method, device, equipment and storage medium
CN117573561B (en) Automatic test system, method, electronic equipment and storage medium
CN117539840B (en) Log acquisition method, device, equipment and medium
CN117331475A (en) Task creation method, device, equipment and storage medium
CN116401269A (en) Data query method and device, electronic equipment and storage medium
CN115099435A (en) Work order processing method, work order processing device, electronic equipment and medium
CN116860522A (en) Automatic backup method, device, equipment and medium of jenkins system
CN116050371A (en) Report generation method, device, equipment and program product
CN118132533A (en) Data processing method, device, equipment and storage medium
CN116796711A (en) Information summarizing method, device, equipment and medium based on vehicle parts
CN116821217A (en) Data distribution conversion method, device, equipment and storage medium
CN115544418A (en) Webpage data synchronization method and device, electronic equipment and storage medium
CN117827840A (en) Index creation method and device, electronic equipment and storage medium
CN116708478A (en) Sea-land communication-based data synchronous transmission system, method, equipment and medium
CN117251196A (en) Data maintenance method, device, equipment and storage medium
CN117453747A (en) Data quality detection method and device, electronic equipment and storage medium
CN118035511A (en) Recommendation platform, recommendation method, electronic 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