CN111198861A - Logic log processing method and device and electronic equipment - Google Patents

Logic log processing method and device and electronic equipment Download PDF

Info

Publication number
CN111198861A
CN111198861A CN202010012303.0A CN202010012303A CN111198861A CN 111198861 A CN111198861 A CN 111198861A CN 202010012303 A CN202010012303 A CN 202010012303A CN 111198861 A CN111198861 A CN 111198861A
Authority
CN
China
Prior art keywords
target
log
category
logic
product line
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
CN202010012303.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 ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202010012303.0A priority Critical patent/CN111198861A/en
Publication of CN111198861A publication Critical patent/CN111198861A/en
Pending legal-status Critical Current

Links

Images

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/18File system types
    • G06F16/1805Append-only file systems, e.g. using logs or journals to store data
    • G06F16/1815Journaling file systems
    • 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
    • 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/17Details of further file system functions
    • G06F16/172Caching, prefetching or hoarding of files

Abstract

The embodiment of the disclosure provides a method and a device for processing a logic log and an electronic device, belonging to the technical field of computers, wherein the method comprises the following steps: collecting a target logic log; determining a target category of the target logic log according to a preset classification rule; and storing the target logic log to a storage space corresponding to the target category. By the scheme, classification and storage of important logic logs are realized, and a corresponding query mechanism is established. Therefore, when problems occur, the system can use the user as a dimension to quickly locate the log. In addition, the user request can be reproduced through the log, so that the problem determination is accelerated.

Description

Logic log processing method and device and electronic equipment
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for processing a logic log, and an electronic device.
Background
The existing log processing scheme mainly aims at processing a system log, wherein the system log refers to a message log which is inserted into a code for the purpose of quickly positioning problems, and the message log includes but is not limited to a general message log, a warning message log, an error message log and the like. Such logs are numerous and complicated, and often many system logs are made in one request. Therefore, when a problem really occurs, a research and development staff does not know the rule according to which the log search should be carried out, and even if a specific log is searched, the critical information is difficult to be quickly positioned.
Therefore, the existing log processing scheme has the technical problems of high log searching difficulty and poor problem positioning performance.
Disclosure of Invention
In view of the above, the embodiments of the present disclosure provide a processing scheme for a logical log, which at least partially solves the problems in the prior art.
In a first aspect, an embodiment of the present disclosure provides a method for processing a logical log, including:
collecting a target logic log;
determining a target category of the target logic log according to a preset classification rule;
and storing the target logic log to a storage space corresponding to the target category.
According to a specific implementation manner of the embodiment of the present disclosure, after the step of mapping the target logical log to the storage space corresponding to the target category, the method further includes:
receiving a target problem to be solved;
determining a target category of a target logic log corresponding to the target problem;
and retrieving the target logic log in the storage space according to the target category.
According to a specific implementation manner of the embodiment of the present disclosure, the step of determining the target category of the target logic log according to a preset classification rule includes:
searching a target product line corresponding to the target logic log;
and determining the target category corresponding to the target logic log as the log category corresponding to the target product line.
According to a specific implementation manner of the embodiment of the present disclosure, the step of determining that the target category corresponding to the target logic log is the log category corresponding to the target product line further includes:
searching a target object operated correspondingly to the target logic log, wherein the target object is user information or role information;
and determining that the target category corresponding to the target logic log is the log category corresponding to the target object under the target product line.
According to a specific implementation manner of the embodiment of the present disclosure, the step of determining that the target category corresponding to the target logic log is the log category corresponding to the target object under the target product line includes:
searching a target operation corresponding to the target logic log, wherein the target operation is any one of addition, deletion, modification and query;
and determining the target type corresponding to the target logic log as the log type corresponding to the target object and the target operation under the target product line.
According to a specific implementation manner of the embodiment of the present disclosure, after the step of determining that the target category corresponding to the target logic log is the log category corresponding to the target product line, the method further includes:
and taking the product line ID of the target product line corresponding to the target logic log as the index of the target logic log.
According to a specific implementation manner of the embodiment of the present disclosure, the step of determining that the target category corresponding to the target logic log is the log category corresponding to the target object under the target product line includes:
and taking the product line ID of the target product line corresponding to the target logic log and the ID of the target object as the index of the target logic log.
According to a specific implementation manner of the embodiment of the present disclosure, the step of using the product line ID of the target product line and the ID of the target object corresponding to the target logic log as the index of the target logic log includes:
and taking the product line ID of the target product line corresponding to the target logic log as a primary index, taking the ID of the target object as a secondary index under the primary index, and taking the name of the target operation as a tertiary index under the secondary index.
According to a specific implementation manner of the embodiment of the present disclosure, the step of mapping the target logic log to a storage space corresponding to the target category includes:
and storing keywords contained in the target logic log into a storage space corresponding to the target category, wherein the keywords comprise request information, operator names and log record information.
According to a specific implementation manner of the embodiment of the present disclosure, the step of storing the target logic log in a storage space corresponding to the target category includes:
storing the data in a storage space corresponding to the target category by adopting a storage mode based on tree merging and searching;
the step of retrieving the target logical log in the storage space according to the target category includes:
and in the parallel tree search, according to the log category, using a multi-layer dimensional index in the storage space to obtain the target logic log.
In a second aspect, an embodiment of the present disclosure provides a processing apparatus for a logical log, including:
the acquisition module is used for acquiring a target logic log;
the determining module is used for determining the target category of the target logic log according to a preset classification rule;
and the storage module is used for storing the target logic log into a storage space corresponding to the target category.
In a third aspect, an embodiment of the present disclosure further provides an electronic device, where the electronic device includes:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of processing a logic log according to the first aspect or any implementation manner of the first aspect.
In a fourth aspect, the disclosed embodiments also provide a non-transitory computer-readable storage medium storing computer instructions for causing a computer to execute the method for processing a logic log in the first aspect or any implementation manner of the first aspect.
In a fifth aspect, the present disclosure also provides a computer program product, which includes a computer program stored on a non-transitory computer-readable storage medium, where the computer program includes program instructions, and when the program instructions are executed by a computer, the computer executes the method for processing the logic log in the foregoing first aspect or any implementation manner of the first aspect.
The processing scheme of the logic log in the embodiment of the disclosure comprises the following steps: collecting a target logic log; determining a target category of the target logic log according to a preset classification rule; and storing the target logic log to a storage space corresponding to the target category. By the scheme, classification and storage of important logic logs are realized, and a corresponding query mechanism is established. Therefore, when problems occur, the system can use the user as a dimension to quickly locate the log. In addition, user requests can be reproduced through logs, and therefore problem positioning is accelerated.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings needed to be used in 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 disclosure, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flowchart of a method for processing a logical log according to an embodiment of the present disclosure;
fig. 2 is a partial flowchart of another method for processing a logical log according to an embodiment of the present disclosure;
fig. 3 is a partial flowchart of another method for processing a logical log according to an embodiment of the present disclosure;
fig. 4 is a schematic diagram illustrating a classification of logical logs according to the logical log provided by the embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of a processing apparatus for a logical log according to an embodiment of the present disclosure;
fig. 6 is a schematic view of an electronic device provided in an embodiment of the present disclosure.
Detailed Description
The embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.
The embodiments of the present disclosure are described below with specific examples, and other advantages and effects of the present disclosure will be readily apparent to those skilled in the art from the disclosure in the specification. It is to be understood that the described embodiments are merely illustrative of some, and not restrictive, of the embodiments of the disclosure. The disclosure may be embodied or carried out in various other specific embodiments, and various modifications and changes may be made in the details within the description without departing from the spirit of the disclosure. It is to be noted that the features in the following embodiments and examples may be combined with each other without conflict. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
It is noted that various aspects of the embodiments are described below within the scope of the appended claims. It should be apparent that the aspects described herein may be embodied in a wide variety of forms and that any specific structure and/or function described herein is merely illustrative. Based on the disclosure, one skilled in the art should appreciate that one aspect described herein may be implemented independently of any other aspects and that two or more of these aspects may be combined in various ways. For example, an apparatus may be implemented and/or a method practiced using any number of the aspects set forth herein. Additionally, such an apparatus may be implemented and/or such a method may be practiced using other structure and/or functionality in addition to one or more of the aspects set forth herein.
It should be noted that the drawings provided in the following embodiments are only for illustrating the basic idea of the present disclosure, and the drawings only show the components related to the present disclosure rather than the number, shape and size of the components in actual implementation, and the type, amount and ratio of the components in actual implementation may be changed arbitrarily, and the layout of the components may be more complicated.
In addition, in the following description, specific details are provided to facilitate a thorough understanding of the examples. However, it will be understood by those skilled in the art that the aspects may be practiced without these specific details.
The embodiment of the disclosure provides a method for processing a logic log. The processing method of the logic log provided by the embodiment can be executed by a computing device, the computing device can be implemented as software, or implemented as a combination of software and hardware, and the computing device can be integrated in a server, a terminal device and the like.
Referring to fig. 1, a method for processing a logical log according to an embodiment of the present disclosure includes:
s101, collecting a target logic log;
the method for processing the logic log provided by the embodiment is used for processing the logic log in the log system. The logs in the log system are divided into two types, namely a system log and a logic log. The system log is a message log that is inserted in the code for quickly locating the problem, and includes, but is not limited to, a general message log, a warning message log, an error message log, and the like. Such logs are numerous and complicated, and often many system logs are made in one request. The logical log is recorded information when a user requests to perform a corresponding processing operation, and "who is where and what is done" is recorded in the logical log.
According to the processing scheme of the logic log provided by the embodiment, the system log and the logic log are stripped, and the logic log is processed.
S102, determining a target category of the target logic log according to a preset classification rule;
before storing the collected target log, a target category corresponding to the target logic log is obtained according to a preset classification rule. The information according to the preset classification rule may be content with a large correlation with the problem key information, such as a product line where the logic log is located, an executed operation type, an operation object, and the like, without limitation.
S103, storing the target logic log into a storage space corresponding to the target category.
And opening a corresponding storage space for the logs of each category in advance, and after determining the target category corresponding to the target logic log according to the steps, performing corresponding storage according to the target category corresponding to the target logic log, so that the search is facilitated.
On the basis of the foregoing embodiment, an embodiment of the present invention further provides a specific implementation manner, and as shown in fig. 2, after the step of corresponding the target logical log to the storage space corresponding to the target category, the method may further include:
s201, receiving a target problem to be solved;
s202, determining a target category of a target logic log corresponding to the target problem;
s203, retrieving the target logic log in the storage space according to the target category.
And correspondingly storing all the collected logic logs or part of the collected important logic logs according to the determined categories, determining the target category corresponding to the target logic log to be referred to for solving the target problem according to the target problem when the target problem to be solved is received, searching the target logic log in the corresponding storage space according to the target category, and determining the incentive or the solution of the target problem according to the searched information in the target logic log.
According to a specific implementation manner of the embodiment of the present disclosure, as shown in fig. 3 and 4, the step of determining the target category of the target logical log according to the preset classification rule includes:
s301, searching a target product line corresponding to the target logic log;
and determining the target category corresponding to the target logic log as the log category corresponding to the target product line.
Correspondingly, after the step of determining that the target category corresponding to the target logic log is the log category corresponding to the target product line, the method further includes:
and taking the product line ID of the target product line corresponding to the target logic log as the index of the target logic log.
Further, the step of determining that the target category corresponding to the target logic log is the log category corresponding to the target product line further includes:
s302, searching a target object operated correspondingly to the target logic log, wherein the target object is user information or role information;
and determining that the target category corresponding to the target logic log is the log category corresponding to the target object under the target product line.
Correspondingly, the step of determining that the target category corresponding to the target logic log is the log category corresponding to the target object under the target product line includes:
and taking the product line ID of the target product line corresponding to the target logic log and the ID of the target object as the index of the target logic log.
Further, the step of determining that the target category corresponding to the target logic log is the log category corresponding to the target object under the target product line includes:
s303, searching a target operation corresponding to the target logic log, wherein the target operation is any one of addition, deletion, modification and query;
s304, determining the target type corresponding to the target logic log as the log type corresponding to the target object and the target operation under the target product line.
Correspondingly, the step of using the product line ID of the target product line and the ID of the target object corresponding to the target logical log as the index of the target logical log includes:
and taking the product line ID of the target product line corresponding to the target logic log as a primary index, taking the ID of the target object as a secondary index under the primary index, and taking the name of the target operation as a tertiary index under the secondary index.
In a specific implementation, the step of corresponding the target logic log to the storage space corresponding to the target category may include:
and storing keywords contained in the target logic log into a storage space corresponding to the target category, wherein the keywords comprise request information, operator names and log record information.
According to a specific implementation manner of the embodiment of the present disclosure, the step of storing the target logic log in a storage space corresponding to the target category includes:
storing the data in a storage space corresponding to the target category by adopting a storage mode based on tree merging and searching;
the step of retrieving the target logical log in the storage space according to the target category includes:
and in the parallel tree search, according to the log category, using a multi-layer dimensional index in the storage space to obtain the target logic log.
In particular implementations, the logical logs are ranked. Because the log system is a full product line log system, the primary classification is a product line classification. The secondary classification is a log identification classification set in the log system. For example, in the account service, if the information of the user is operated, the log identification is classified as the ID of the user, and if the information of a certain type of role is operated, the log identification is classified as the role ID. The tertiary classification is a user-defined sub-classification under the secondary classification. For example, if a user operates a name change operation, the second-level classification is a user ID, and the third-level classification is an update operation. If the information of a certain user is newly created, the three-level classification is an adding operation.
The log hierarchical storage and query are carried out, so that the query efficiency and readability of the log can be greatly improved. The log system is different from the traditional log system classified by log grades of Error, Warning, Info and Debug, and the traditional log system is not beneficial to positioning of a single problem because the traditional log is inconvenient to search the content of the log, and if the log of 'who does what in which' is expected to be queried is desired, the operation recording system is more efficient.
The operation recording system performs the disk-dropping processing on the operation record, theoretically, the storage time of the log can be infinite, and the size of a magnetic disk occupied by the whole storage can be reduced. At the logging level, the system is used to store only one record that is most useful to the logic, and this record may contain the detail information requested by the user. Thus, when a problem is followed, the current user request can be repeated instead of looking at a complicated system log for analysis.
In the storage layer, the system adopts storage based on the parallel search tree, which is different from the traditional relational database, and the storage can greatly increase the searching efficiency of the log. Even if the operation recording system is only used for storing logical logs and omits a large amount of system logs, the storage amount of data is considerable after years of use. Because the system also supports searching by using information such as operator names, log recording time and the like, the traditional index query is embarrassing.
In the face of efficient retrieval of a large number of logs, a plurality of layers of low-dimensional depth indexes and all possible results of Merge are used in tree merging and searching, so that data can be returned within 1 second when more than 1 hundred million data are faced, and the data processing flow and the problem positioning and solving are greatly improved.
The log system based on the tree merging and searching provided by the embodiment of the invention performs the storage of important logic logs in a disk-falling mode and establishes a corresponding query mechanism. When problems occur, the system can quickly locate the log by taking the user as a dimension; further, user requests can be replicated through logs, thereby speeding up the location of problems. After the operation recording system is adopted, the positioning and solving time of the problem can be reduced by 50%.
Corresponding to the above method embodiment, referring to fig. 5, an embodiment of the present disclosure further provides a processing apparatus 50 for a logical log, including:
the acquisition module 501 is used for acquiring a target logic log;
a determining module 502, configured to determine a target category of the target logical log according to a preset classification rule;
a storage module 503, configured to store the target logic log in a storage space corresponding to the target category.
The apparatus shown in fig. 5 may correspondingly execute the content in the above method embodiment, and details of the part not described in detail in this embodiment refer to the content described in the above method embodiment, which is not described again here.
Referring to fig. 6, an embodiment of the present disclosure also provides an electronic device 60, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of processing the logic log in the above method embodiments.
The disclosed embodiments also provide a non-transitory computer-readable storage medium storing computer instructions for causing the computer to execute the method for processing the logic log in the foregoing method embodiments.
The disclosed embodiments also provide a computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions that, when executed by a computer, cause the computer to perform the method of processing a logic log in the aforementioned method embodiments.
Referring now to FIG. 6, a schematic diagram of an electronic device 60 suitable for use in implementing embodiments of the present disclosure is shown. The electronic devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., car navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 6 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 6, the electronic device 60 may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 601 that may perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)602 or a program loaded from a storage means 608 into a Random Access Memory (RAM) 603. In the RAM 603, various programs and data necessary for the operation of the electronic apparatus 60 are also stored. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input/output (I/O) interface 605 is also connected to bus 604.
Generally, the following devices may be connected to the I/O interface 605: input devices 606 including, for example, a touch screen, touch pad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; output devices 607 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 608 including, for example, tape, hard disk, etc.; and a communication device 609. The communication means 609 may allow the electronic device 60 to communicate with other devices wirelessly or by wire to exchange data. While the figures illustrate an electronic device 60 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 609, or may be installed from the storage means 608, or may be installed from the ROM 602. The computer program, when executed by the processing device 601, performs the above-described functions defined in the methods of the embodiments of the present disclosure.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
The computer readable medium carries one or more programs which, when executed by the electronic device, enable the electronic device to implement the schemes provided by the method embodiments.
Alternatively, the computer readable medium carries one or more programs, which when executed by the electronic device, enable the electronic device to implement the schemes provided by the method embodiments.
Computer program code for carrying out operations for aspects of the present disclosure may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of a unit does not in some cases constitute a limitation of the unit itself, for example, the first retrieving unit may also be described as a "unit for retrieving at least two internet protocol addresses".
It should be understood that portions of the present disclosure may be implemented in hardware, software, firmware, or a combination thereof.
The above description is only for the specific embodiments of the present disclosure, but the scope of the present disclosure is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present disclosure should be covered within the scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the protection scope of the claims.

Claims (13)

1. A method for processing a logic log is characterized by comprising the following steps:
collecting a target logic log;
determining a target category of the target logic log according to a preset classification rule;
and storing the target logic log to a storage space corresponding to the target category.
2. The method of claim 1, wherein after the step of mapping the target logical log to a storage space corresponding to the target category, the method further comprises:
receiving a target problem to be solved;
determining a target category of a target logic log corresponding to the target problem;
and retrieving the target logic log in the storage space according to the target category.
3. The method according to claim 1 or 2, wherein the step of determining the target category of the target logical log according to a preset classification rule comprises:
searching a target product line corresponding to the target logic log;
and determining the target category corresponding to the target logic log as the log category corresponding to the target product line.
4. The method of claim 3, wherein the step of determining the target category corresponding to the target logical log is a log category corresponding to the target product line further comprises:
searching a target object operated correspondingly to the target logic log, wherein the target object is user information or role information;
and determining that the target category corresponding to the target logic log is the log category corresponding to the target object under the target product line.
5. The method of claim 4, wherein the step of determining that the target category corresponding to the target logical log is the log category corresponding to the target object under the target product line comprises:
searching a target operation corresponding to the target logic log, wherein the target operation is any one of addition, deletion, modification and query;
and determining the target type corresponding to the target logic log as the log type corresponding to the target object and the target operation under the target product line.
6. The method of claim 5, wherein after the step of determining that the target category corresponding to the target logical log is the log category corresponding to the target product line, the method further comprises:
and taking the product line ID of the target product line corresponding to the target logic log as the index of the target logic log.
7. The method of claim 6, wherein the step of determining that the target category corresponding to the target logical log is the log category corresponding to the target object under the target product line comprises:
and taking the product line ID of the target product line corresponding to the target logic log and the ID of the target object as the index of the target logic log.
8. The method according to claim 7, wherein the step of using the product line ID of the target product line and the ID of the target object corresponding to the target logical log as the index of the target logical log comprises:
and taking the product line ID of the target product line corresponding to the target logic log as a primary index, taking the ID of the target object as a secondary index under the primary index, and taking the name of the target operation as a tertiary index under the secondary index.
9. The method of claim 8, wherein the step of mapping the target logical log to a storage space corresponding to the target category comprises:
and storing keywords contained in the target logic log into a storage space corresponding to the target category, wherein the keywords comprise request information, operator names and log record information.
10. The method of claim 9, wherein the step of storing the target logical log in a storage space corresponding to the target category comprises:
storing the data in a storage space corresponding to the target category by adopting a storage mode based on tree merging and searching;
the step of retrieving the target logical log in the storage space according to the target category includes:
and in the parallel tree search, according to the log category, using a multi-layer dimensional index in the storage space to obtain the target logic log.
11. An apparatus for processing a logical log, comprising:
the acquisition module is used for acquiring a target logic log;
the determining module is used for determining the target category of the target logic log according to a preset classification rule;
and the storage module is used for storing the target logic log into a storage space corresponding to the target category.
12. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of processing a logic log of any of the preceding claims 1-10.
13. A non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the method of processing a logic log of any of the preceding claims 1-10.
CN202010012303.0A 2020-01-07 2020-01-07 Logic log processing method and device and electronic equipment Pending CN111198861A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010012303.0A CN111198861A (en) 2020-01-07 2020-01-07 Logic log processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010012303.0A CN111198861A (en) 2020-01-07 2020-01-07 Logic log processing method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN111198861A true CN111198861A (en) 2020-05-26

Family

ID=70747108

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010012303.0A Pending CN111198861A (en) 2020-01-07 2020-01-07 Logic log processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN111198861A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112214465A (en) * 2020-10-19 2021-01-12 珠海金山网络游戏科技有限公司 Log storage system and method
CN112465691A (en) * 2020-11-25 2021-03-09 北京旷视科技有限公司 Image processing method, image processing device, electronic equipment and computer readable medium
CN114548324A (en) * 2022-04-22 2022-05-27 芯华章科技股份有限公司 Method and equipment for classifying simulation errors of logic system design

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080294670A1 (en) * 2007-05-21 2008-11-27 Lazar Borissov Method and system for hierarchical logging
CN101459557A (en) * 2008-11-29 2009-06-17 成都市华为赛门铁克科技有限公司 Secure logging centralized storage method and device
CN104778188A (en) * 2014-02-24 2015-07-15 贵州电网公司信息通信分公司 Distributed device log collection method
CN107622084A (en) * 2017-08-10 2018-01-23 深圳前海微众银行股份有限公司 Blog management method, system and computer-readable recording medium
CN109726091A (en) * 2018-12-28 2019-05-07 乐蜜有限公司 A kind of blog management method and relevant apparatus
CN109885546A (en) * 2019-02-15 2019-06-14 北京金山云网络技术有限公司 User behaviors log storage method, device and electronic equipment
CN110263004A (en) * 2019-05-08 2019-09-20 北京字节跳动网络技术有限公司 Log recording method, device, electronic equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080294670A1 (en) * 2007-05-21 2008-11-27 Lazar Borissov Method and system for hierarchical logging
CN101459557A (en) * 2008-11-29 2009-06-17 成都市华为赛门铁克科技有限公司 Secure logging centralized storage method and device
CN104778188A (en) * 2014-02-24 2015-07-15 贵州电网公司信息通信分公司 Distributed device log collection method
CN107622084A (en) * 2017-08-10 2018-01-23 深圳前海微众银行股份有限公司 Blog management method, system and computer-readable recording medium
CN109726091A (en) * 2018-12-28 2019-05-07 乐蜜有限公司 A kind of blog management method and relevant apparatus
CN109885546A (en) * 2019-02-15 2019-06-14 北京金山云网络技术有限公司 User behaviors log storage method, device and electronic equipment
CN110263004A (en) * 2019-05-08 2019-09-20 北京字节跳动网络技术有限公司 Log recording method, device, electronic equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112214465A (en) * 2020-10-19 2021-01-12 珠海金山网络游戏科技有限公司 Log storage system and method
CN112465691A (en) * 2020-11-25 2021-03-09 北京旷视科技有限公司 Image processing method, image processing device, electronic equipment and computer readable medium
CN114548324A (en) * 2022-04-22 2022-05-27 芯华章科技股份有限公司 Method and equipment for classifying simulation errors of logic system design

Similar Documents

Publication Publication Date Title
CN111198861A (en) Logic log processing method and device and electronic equipment
CN109471851B (en) Data processing method, device, server and storage medium
CN111813804B (en) Data query method and device, electronic equipment and storage medium
CN110781658B (en) Resume analysis method, resume analysis device, electronic equipment and storage medium
CN111950857A (en) Index system management method and device based on service indexes and electronic equipment
CN111857720B (en) User interface state information generation method and device, electronic equipment and medium
CN113157731A (en) Symbol analysis method, device, equipment and storage medium
CN109508361A (en) Method and apparatus for output information
CN111738316A (en) Image classification method and device for zero sample learning and electronic equipment
CN116628049B (en) Information system maintenance management system and method based on big data
CN110287338B (en) Industry hotspot determination method, device, equipment and medium
CN111930684A (en) Small file processing method, device and equipment based on HDFS (Hadoop distributed File System) and storage medium
CN111241137A (en) Data processing method and device, electronic equipment and storage medium
CN111309988B (en) Character string retrieval method and device based on coding and electronic equipment
CN110955709B (en) Data processing method and device and electronic equipment
CN111641690B (en) Session message processing method and device and electronic equipment
CN111813667B (en) Method, device, medium and equipment for collecting application running track
CN111143355B (en) Data processing method and device
CN109284350B (en) Method and device for updating search content, storage medium and electronic equipment
CN110888839A (en) Data storage and data search method and device
CN112860784B (en) Blood margin analysis method, apparatus, electronic device, and computer-readable storage medium
CN117076515B (en) Metadata tracing method and device in medical management system, server and storage medium
CN111581490A (en) Information searching method and device, storage medium and electronic equipment
CN117251146A (en) Business object naming method, device, electronic equipment and readable storage medium
CN111897827B (en) Data updating method and system for data warehouse and electronic equipment

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