CN112506692A - Method and device for processing log information - Google Patents

Method and device for processing log information Download PDF

Info

Publication number
CN112506692A
CN112506692A CN202011478612.3A CN202011478612A CN112506692A CN 112506692 A CN112506692 A CN 112506692A CN 202011478612 A CN202011478612 A CN 202011478612A CN 112506692 A CN112506692 A CN 112506692A
Authority
CN
China
Prior art keywords
information
log information
log
error
test
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
CN202011478612.3A
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.)
Shanghai Longcheer Technology Co Ltd
Original Assignee
Shanghai Longcheer 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 Shanghai Longcheer Technology Co Ltd filed Critical Shanghai Longcheer Technology Co Ltd
Priority to CN202011478612.3A priority Critical patent/CN112506692A/en
Publication of CN112506692A publication Critical patent/CN112506692A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • 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/0736Error 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 functional embedded systems, i.e. in a data processing system designed as a combination of hardware and software dedicated to performing a certain function
    • 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/0751Error or fault detection not based on redundancy
    • 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/0793Remedial or corrective actions

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application aims to provide a method and equipment for log information processing. Compared with the prior art, the method and the device have the advantages that log information generated in the test is automatically captured in the test process; when the system cache corresponding to the log information is full, automatically storing the log information; if the log information is detected to have error information, the log information and the related attribute information are sent to network equipment; if the log information has no error information, acquiring the corresponding log information when the next system cache is full, and judging whether the error information exists or not until the test is finished. Through the mode, the problem of the intelligent equipment can be found in time, and a high-efficiency foundation is improved for subsequent problem solving.

Description

Method and device for processing log information
Technical Field
The application relates to the technical field of computers, in particular to a technology for processing log information of intelligent equipment.
Background
Along with the development of smart machine, more and more people use smart machine, however, smart machine can have some problems inevitable, can not discover smart machine's problem in time in the current mode, causes the inefficiency of solution problem.
Disclosure of Invention
The application aims to provide a method and equipment for log information processing.
According to one aspect of the application, a method for processing log information on an intelligent device side is provided, wherein the method comprises the following steps:
in the test process, automatically capturing log information generated in the test;
when the system cache corresponding to the log information is full, automatically storing the log information;
if the log information is detected to have error information, the log information and the related attribute information are sent to network equipment; if the log information has no error information, acquiring the corresponding log information when the next system cache is full, and judging whether the error information exists or not until the test is finished.
Further, the sending the log information and the related attribute information to the network device if it is detected that the log information has error information includes:
and if the log information is detected to have error information and the preset condition is met, sending the log information and the related attribute information to network equipment.
Further, the meeting of the preset condition comprises at least any one of the following:
the system load is lower than a preset threshold;
reaching a preset time interval;
the system test is completed;
usage information of the smart device by the user is not detected.
Further, wherein the method further comprises:
identifying abnormal type information corresponding to the error information;
wherein the sending the log information and the related attribute information to the network device includes:
and sending the log information, the abnormal type information and the related attribute information to network equipment.
Further, in the test process, automatically capturing log information generated in the test includes:
in the testing process, if the fact that the user opens the automatic detection key is detected, log information generated in the testing process is automatically captured.
According to another aspect of the present application, there is also provided a method for processing log information at a network device, where the method includes:
receiving log information containing error information sent by intelligent equipment during testing, wherein the error information is determined by automatic detection of the log information through the intelligent equipment;
identifying abnormal type information corresponding to the error information, and determining corresponding repair equipment based on the abnormal type information;
and sending the abnormal type information and the log information containing the error information to the repair equipment so as to repair the error information.
Further, wherein the method further comprises:
receiving repair information sent by the repair equipment;
and sending the repair information to the intelligent equipment so as to capture log information when the intelligent equipment tests again for automatic detection.
Further, wherein the method further comprises:
and counting abnormal type information corresponding to the log information of all the intelligent devices to be tested.
According to yet another aspect of the present application, there is also provided a computer readable medium having computer readable instructions stored thereon, the computer readable instructions being executable by a processor to implement the operations of the method as described above.
Compared with the prior art, the method and the device have the advantages that log information generated in the test is automatically captured in the test process; when the system cache corresponding to the log information is full, automatically storing the log information; if the log information is detected to have error information, the log information and the related attribute information are sent to network equipment; if the log information has no error information, acquiring the corresponding log information when the next system cache is full, and judging whether the error information exists or not until the test is finished. Through the mode, the problem of the intelligent equipment can be found in time, and a high-efficiency foundation is improved for subsequent problem solving.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments made with reference to the following drawings:
FIG. 1 illustrates a flow diagram of a method for log information processing at a smart device in accordance with an aspect of the subject application;
FIG. 2 illustrates a flow diagram of a method for log information processing at a network device in accordance with another aspect of the subject application;
the same or similar reference numbers in the drawings identify the same or similar elements.
Detailed Description
The present invention is described in further detail below with reference to the attached drawing figures.
In a typical configuration of the present application, the terminal, the device serving the network, and the trusted party each include one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.
Computer-readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include non-transitory computer readable media (transient media), such as modulated data signals and carrier waves.
In order to further explain the technical means and effects adopted by the present application, the following description clearly and completely describes the technical solution of the present application with reference to the accompanying drawings and preferred embodiments.
Fig. 1 shows a flowchart of a method for processing log information at an intelligent device according to an aspect of the present application, where the method includes:
s11, automatically capturing log information generated in the test process;
s12, when the system cache corresponding to the log information is full, automatically saving the log information;
s13, if detecting that the log information has error information, sending the log information and the related attribute information to network equipment; if the log information has no error information, acquiring the corresponding log information when the next system cache is full, and judging whether the error information exists or not until the test is finished.
In this embodiment, in the step S11, during the test, the smart device automatically captures the log information generated during the test. Wherein the log information includes, but is not limited to, a system log of the smart device. Specifically, the intelligent device captures the log information through a log grabber.
Preferably, wherein the step S11 includes: in the testing process, if the fact that the user opens the automatic detection key is detected, log information generated in the testing process is automatically captured. In this embodiment, whether log information is automatically captured may be set by a user, for example, an automatic capture button may be set, when the user opens the automatic capture button, the smart device may automatically capture the log information, and when the button is not opened, the smart device may not automatically capture the log information. By the method, the user can control the capture of the log information, and the user experience is improved.
In this embodiment, in step S12, when the system cache corresponding to the log information is full, the log information is automatically saved. Specifically, when the system is running, the log information will be automatically stored in the corresponding system cache, and when the system cache is full, the log information in the system cache will be stored.
Continuing in this embodiment, in step S13, the saved log information is detected, and it is determined whether there is error information in the log information, for example, the error information includes, but is not limited to, error, coast, total, panc, excepting, and so on. The intelligent device can detect when the system cache is full and the log information is saved each time.
Specifically, the keyword information corresponding to different error information may be set in the smart device, and whether the log information includes the keyword information is detected to determine the corresponding error information. Preferably, the intelligent device may periodically request the network device for the corresponding keyword information, or when the keyword information is updated, the network device may also periodically and automatically send the keyword information to the intelligent device, so that the intelligent device updates the keyword information and should detect the error information.
And when detecting that the log information has error information, sending the log information with the error information and the related attribute information to the network equipment, wherein when detecting that the error information exists, the log information and the related attribute information can be sent to the network equipment in real time. The related attribute information includes, but is not limited to, at least any one of a system version number, an intelligent device model, intelligent device memory information, kernel log information, and the like. If the log information has no error information, acquiring the corresponding log information when the next system cache is full, and judging whether the error information exists or not until the test is finished.
Preferably, the sending the log information and the related attribute information to the network device if it is detected that the log information has error information includes: and if the log information is detected to have error information and the preset condition is met, sending the log information and the related attribute information to network equipment.
In this embodiment, even if the presence of error information is detected, the log information and the related attribute information including the error information are transmitted to the network device only when a preset condition is satisfied.
Preferably, wherein the meeting of the preset condition includes but is not limited to at least any one of the following: the system load is lower than a preset threshold; reaching a preset time interval; the system test is completed; usage information of the smart device by the user is not detected. For example, a preset threshold value about the system load may be preset, and if the system load is too high, the transmission is not performed, and only if the system load is lower than the preset threshold value, the transmission is performed; for another example, a certain time interval may be set, and the transmission may be performed only when the time interval is reached; or, the transmission is carried out only after the whole system test is finished; or the intelligent device can be sent when the use information of the user on the intelligent device is not detected, and the user experience can be met in this way.
The meeting of the preset conditions is only an example, and other existing or future meeting manners of the preset conditions, such as those applicable to the present application, are also included in the scope of the present application, and are herein incorporated by reference.
Preferably, wherein the method further comprises: s14 (not shown) identifying abnormality type information corresponding to the error information; wherein the sending the log information and the related attribute information to the network device includes: and sending the log information, the abnormal type information and the related attribute information to network equipment.
In this embodiment, the smart device may locally identify the error information as the anomaly type information. For example, the exception type information includes a kernel exception, a system exception restart, or the like, and specifically, the exception type information may be classified in advance for different error information, and when detecting, the error information may be compared with the different exception type information to determine corresponding exception type information, where the manner of identifying the exception type information is merely an example, and other manners as applicable should be included in the scope of the present application, and are included herein by reference.
Fig. 2 is a flowchart illustrating a method for processing log information at a network device according to another aspect of the present application, where the method includes:
s21, receiving log information containing error information sent by the intelligent device during testing, wherein the error information is determined by the intelligent device through automatic detection of the log information;
s22, identifying abnormal type information corresponding to the error information, and determining a corresponding repair device based on the abnormal type information;
s23 sends the abnormality type information and log information including error information to the repair device to repair the error information.
In this embodiment, in step S21, log information containing error information sent by the smart device at the time of testing is received, where the error information is determined by the smart device automatically detecting the log information. Wherein the error information includes, but is not limited to, error, coast, fault, panic, exception, etc.
Specifically, the network device may receive log information including error information sent by the smart device during a test, where the log information including the error information is determined after the smart device detects the log information, and the smart device may send the log information including the error information multiple times during a system test, for example, when the smart device may upload the log information with the error information detected in real time, for example, when a system cache in which the smart device stores the log information is full, the log information in the system cache is stored and whether the log information includes the error information is detected, or the smart device may send the log information including the error information to the network device after the whole system test is completed.
Continuing in this embodiment, in step S22, the network device identifies the anomaly type information corresponding to the error information, and determines the corresponding user device based on the anomaly type information.
The network device may identify the error information as exception type information. For example, the exception type information includes a kernel exception, a system exception restart, or the like, and specifically, the exception type information may be classified in advance for different error information, and when detecting, the error information may be compared with the different exception type information to determine corresponding exception type information, where the manner of identifying the exception type information is merely an example, and other manners as applicable should be included in the scope of the present application, and are included herein by reference.
After the abnormal type information is determined, different repairing devices can be determined according to the different abnormal type information, wherein the repairing devices comprise pc-end devices corresponding to research and development personnel, and the repairing of error information reflected by the log information can be achieved. For example, different developers may be responsible for processing different types of abnormal information, so that the attribute information of the repair device corresponding to different types of abnormal information may be stored in the network device in advance, so as to feed back the abnormal information to the developers for repair in real time.
In this embodiment, in step S23, the abnormality type information and the log information including the error information are sent to the repair device to repair the error information.
Specifically, the network device may generate a list of the abnormal type information, and the network device may transmit the list and log information including error information to the repair device to repair the error information.
Preferably, wherein the method further comprises: s24 (not shown) receiving repair information sent by the repair device; s25 (not shown) sends the repair information to the smart device, so that the log information of the retest can be captured by the smart device for automatic detection.
In this embodiment, after the research and development staff completes the repair based on the abnormal type information, the corresponding repair information is submitted, and therefore, the network device receives the repair information sent by the research and development staff through the repair device. Further, the network device sends the repair information to the intelligent device submitting the error information, so that the intelligent device performs retesting based on the repair information, and performs automatic detection of the error information by capturing log information during retesting.
Preferably, wherein the method further comprises: s26 (not shown) counts the abnormal type information corresponding to the log information of all the intelligent devices under test. In this embodiment, the network device may count all the intelligent devices under test, for example, the number of intelligent devices with abnormal problems and/or the number of times of abnormal problems, etc. may be counted for after-sales analysis. In particular, the chart data may be formed for presentation to facilitate visual presentation and analysis.
The scheme can save after-sale cost and test cost and accelerate the efficiency of the developers for processing problems.
Compared with the prior art, the method and the device have the advantages that log information generated in the test is automatically captured in the test process; when the system cache corresponding to the log information is full, automatically storing the log information; if the log information is detected to have error information, the log information and the related attribute information are sent to network equipment; if the log information has no error information, acquiring the corresponding log information when the next system cache is full, and judging whether the error information exists or not until the test is finished. Through the mode, the problem of the intelligent equipment can be found in time, and a high-efficiency foundation is improved for subsequent problem solving.
According to another aspect of the present application, there is also provided a computer readable medium having stored thereon computer readable instructions executable by a processor to implement the foregoing method.
According to still another aspect of the present application, there is also provided an intelligent device for log information processing, wherein the network device includes:
one or more processors; and
a memory storing computer readable instructions that, when executed, cause the processor to perform operations of the method as previously described.
For example, the computer readable instructions, when executed, cause the one or more processors to: in the test process, automatically capturing log information generated in the test; when the system cache corresponding to the log information is full, automatically storing the log information; if the log information is detected to have error information, the log information and the related attribute information are sent to network equipment; if the log information has no error information, acquiring the corresponding log information when the next system cache is full, and judging whether the error information exists or not until the test is finished.
According to still another aspect of the present application, there is also provided a network device for log information processing, wherein the network device includes:
one or more processors; and
a memory storing computer readable instructions that, when executed, cause the processor to perform operations of the method as previously described.
For example, the computer readable instructions, when executed, cause the one or more processors to: receiving log information containing error information sent by intelligent equipment during testing, wherein the error information is determined by automatic detection of the log information through the intelligent equipment; identifying abnormal type information corresponding to the error information, and determining corresponding repair equipment based on the abnormal type information; and sending the abnormal type information and the log information containing the error information to the repair equipment so as to repair the error information.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the apparatus claims may also be implemented by one unit or means in software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.

Claims (11)

1. A method for processing log information on an intelligent device side, wherein the method comprises the following steps:
in the test process, automatically capturing log information generated in the test;
when the system cache corresponding to the log information is full, automatically storing the log information;
if the log information is detected to have error information, the log information and the related attribute information are sent to network equipment; if the log information has no error information, acquiring the corresponding log information when the next system cache is full, and judging whether the error information exists or not until the test is finished.
2. The method of claim 1, wherein the sending the log information and the related attribute information to a network device if it is detected that the log information has error information comprises:
and if the log information is detected to have error information and the preset condition is met, sending the log information and the related attribute information to network equipment.
3. The method of claim 1, wherein the satisfaction of the preset condition comprises at least any one of:
the system load is lower than a preset threshold;
reaching a preset time interval;
the system test is completed;
usage information of the smart device by the user is not detected.
4. The method of any of claims 1-3, wherein the method further comprises:
identifying abnormal type information corresponding to the error information;
wherein the sending the log information and the related attribute information to the network device includes:
and sending the log information, the abnormal type information and the related attribute information to network equipment.
5. The method of any one of claims 1 to 4, wherein automatically crawling log information generated in the test during the test comprises:
in the testing process, if the fact that the user opens the automatic detection key is detected, log information generated in the testing process is automatically captured.
6. A method for processing log information at a network equipment side, wherein the method comprises the following steps:
receiving log information containing error information sent by intelligent equipment during testing, wherein the error information is determined by automatic detection of the log information through the intelligent equipment;
identifying abnormal type information corresponding to the error information, and determining corresponding repair equipment based on the abnormal type information;
and sending the abnormal type information and the log information containing the error information to the repair equipment so as to repair the error information.
7. The method of claim 6, wherein the method further comprises:
receiving repair information sent by the repair equipment;
and sending the repair information to the intelligent equipment so as to capture log information when the intelligent equipment tests again for automatic detection.
8. The method of claim 6, wherein the method further comprises:
and counting abnormal type information corresponding to the log information of all the intelligent devices to be tested.
9. A computer readable medium having computer readable instructions stored thereon which are executable by a processor to implement the method of any one of claims 1 to 8.
10. An intelligent device for log information processing, wherein the intelligent device comprises:
one or more processors; and
memory storing computer readable instructions that, when executed, cause the processor to perform the operations of the method of any of claims 1 to 5.
11. A network device for log information processing, wherein the smart device comprises:
one or more processors; and
memory storing computer readable instructions that, when executed, cause the processor to perform the operations of the method of any of claims 6 to 8.
CN202011478612.3A 2020-12-15 2020-12-15 Method and device for processing log information Pending CN112506692A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011478612.3A CN112506692A (en) 2020-12-15 2020-12-15 Method and device for processing log information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011478612.3A CN112506692A (en) 2020-12-15 2020-12-15 Method and device for processing log information

Publications (1)

Publication Number Publication Date
CN112506692A true CN112506692A (en) 2021-03-16

Family

ID=74973774

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011478612.3A Pending CN112506692A (en) 2020-12-15 2020-12-15 Method and device for processing log information

Country Status (1)

Country Link
CN (1) CN112506692A (en)

Similar Documents

Publication Publication Date Title
US9189348B2 (en) High availability database management system and database management method using same
CN110650036A (en) Alarm processing method and device and electronic equipment
CN101593146A (en) Page automated testing method and device
CN108038039A (en) The method and micro services system of record log
CN110267215A (en) A kind of data detection method, equipment and storage medium
CN114415973A (en) Slow disk detection method and device, electronic equipment and storage medium
CN110134538A (en) Method, apparatus, medium and the electronic equipment of quick positioning question log
CN107153601B (en) Unit performance test method and device
CN115904883B (en) RPA flow execution visual abnormity monitoring method, device and medium
CN112506692A (en) Method and device for processing log information
CN116755024A (en) Method and device for testing electric energy meter communication interface and readable storage medium
CN116185706A (en) Data backup method and device, computing and storage medium and electronic equipment
CN114064510A (en) Function testing method and device, electronic equipment and storage medium
CN112860469A (en) Method, device, equipment and storage medium for collecting information of katon log
CN108234196B (en) Fault detection method and device
CN112286792A (en) Interface testing method, device, equipment and storage medium
CN108845932B (en) Unit testing method and device of network library, storage medium and terminal
CN112948634A (en) Method and equipment for determining surveillance video of target object
CN112181821A (en) Interface test coverage detection method and device, electronic device and storage medium
CN108710573A (en) It is a kind of that test method, device, storage medium and terminal a little are buried based on daily record
CN115629950B (en) Extraction method of performance test asynchronous request processing time point
CN112612882B (en) Review report generation method, device, equipment and storage medium
CN110516439B (en) Detection method, device, server and computer readable medium
CN116886556A (en) Test terminal and method for communication data of multiple robots
CN116089266A (en) Method and device for detecting abnormal processing of application interface

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