CN105868040A - Log collection method and collection terminal - Google Patents
Log collection method and collection terminal Download PDFInfo
- Publication number
- CN105868040A CN105868040A CN201610189051.2A CN201610189051A CN105868040A CN 105868040 A CN105868040 A CN 105868040A CN 201610189051 A CN201610189051 A CN 201610189051A CN 105868040 A CN105868040 A CN 105868040A
- Authority
- CN
- China
- Prior art keywords
- log
- information
- terminal
- acquisition
- description information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error 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/0766—Error or fault reporting or storing
- G06F11/0778—Dumping, i.e. gathering error/state information after a fault for later diagnosis
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Biomedical Technology (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a log collection method. The method comprises the steps that when a tested terminal has an exception, a collection terminal receives exception description information input by a user and sends a log obtaining request to the tested terminal; the collection terminal receives the log information reported by the tested terminal according to the log obtaining request; the collection terminal sends the exception description information and the log information to a log server, and therefore the log server positions the fault according to the exception description information and the log information. The invention further discloses the collection terminal. By the adoption of the log collection method and the collection terminal, the exception description information and the log information of the tested terminal can be sent to the log server at the same time, and therefore the log server can rapidly and accurately position the fault of the tested terminal.
Description
Technical field
The present invention relates to field of information processing, particularly relate to a kind of log collection method and acquisition terminal.
Background technology
Along with various terminal units, such as smart mobile phone, intelligent television, intelligent sound box (WIFI audio amplifier)
Development is with universal, and the application program that can run on the terminal device also gets more and more, i.e. user can download respectively
Plant application program to be installed on terminal unit.Existing terminal unit the most all possesses the function of daily record, note
The log information during operation respectively applied in record terminal unit, at present, when terminal unit is tested,
Only read all log informations in test period, and do not collect user and the exception of terminal unit is retouched
State information, cause testing efficiency low, it is impossible to fast and accurately terminal unit is carried out fault location.
Foregoing is only used for auxiliary and understands technical scheme, does not represent and recognizes that foregoing is
Prior art.
Summary of the invention
Present invention is primarily targeted at a kind of log collection method of offer and acquisition terminal, it is intended to solve existing
Have in technology, low to the testing efficiency of equipment under test, it is impossible to fast and accurately equipment under test to be carried out fault
The technical problem of location.
For achieving the above object, the present invention provides a kind of log collection method, and described method includes:
When measured terminal occurs abnormal, the non-conformance description information of acquisition terminal reception user's input, and to
Measured terminal sends log acquisition request;
Described acquisition terminal receives the daily record letter that described measured terminal reports according to the request of described log acquisition
Breath;
Described non-conformance description information and log information are sent to log server by described acquisition terminal, for institute
State log server and carry out fault location according to described non-conformance description information and log information.
Preferably, while acquisition terminal sends log acquisition request to measured terminal, described method is also wrapped
Include:
Described acquisition terminal sends apparatus information acquiring request to measured terminal;
Described acquisition terminal receives the equipment that described measured terminal returns according to the request of described apparatus information acquiring
Information;
Described non-conformance description information, log information and facility information are sent to daily record clothes by described acquisition terminal
Business device, is carried out according to described non-conformance description information, log information and facility information for described log server
Fault location.
Preferably, described non-conformance description information is Word message or acoustic information.
Preferably, described when measured terminal occurs abnormal, acquisition terminal receives the exception of user's input and retouches
State information, and before measured terminal sends the step of log acquisition request, described method also include:
Described acquisition terminal and described measured terminal set up wireless connections.
Preferably, described non-conformance description information and log information are sent to log services by described acquisition terminal
Device, carries out the step of fault location for described log server according to described non-conformance description information and log information
Suddenly include:
Described acquisition terminal is according to the filtering rule preset, it is judged that whether the log information of reception is effectively to believe
Breath;
If the log information received is effective information, then this log information and non-conformance description information are sent to
Log server, carries out fault for described log server according to described non-conformance description information and log information
Location.
Additionally, for achieving the above object, the present invention also provides for a kind of acquisition terminal, described acquisition terminal bag
Include:
Receiver module, for when measured terminal occurs abnormal, receiving the non-conformance description information of user's input;
First transceiver module, for when measured terminal occurs abnormal, sending log acquisition to measured terminal
Request, and receive the log information that described measured terminal asks to report according to described log acquisition;
Second transceiver module, for described non-conformance description information and log information are sent to log server,
Fault location is carried out according to described non-conformance description information and log information for described log server.
Preferably, described first transceiver module, it is additionally operable to when measured terminal occurs abnormal, to tested end
End sends apparatus information acquiring request, and receives described measured terminal and ask according to described apparatus information acquiring
The facility information returned;
Described second transceiver module, is additionally operable to described non-conformance description information, log information and facility information
Be sent to log server, for described log server according to described non-conformance description information, log information and
Facility information carries out fault location.
Preferably, described non-conformance description information is Word message or acoustic information.
Preferably, described acquisition terminal also includes:
Connection establishment module, for setting up wireless connections by described acquisition terminal and described measured terminal.
Preferably, described second transceiver module includes:
Judging unit, for according to the filtering rule preset, it is judged that whether the log information of reception is effective
Information;
Transmit-Receive Unit, for when the log information received is effective information, by this log information and exception
Description information is sent to log server, for described log server according to described non-conformance description information and day
Will information carries out fault location.
The log collection method of the present invention and acquisition terminal, this acquisition method includes: occur at measured terminal
Time abnormal, acquisition terminal receives the non-conformance description information of user's input, and obtains to measured terminal transmission daily record
Take request;Described acquisition terminal receives the daily record that described measured terminal asks to report according to described log acquisition
Information;Described non-conformance description information and log information are sent to log server by described acquisition terminal, supply
Described log server carries out fault location according to described non-conformance description information and log information;Can simultaneously by
The non-conformance description information of measured terminal and log information are sent to log server so that log server can
Fast and accurately measured terminal is carried out fault location.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of the first embodiment of log collection method of the present invention;
Fig. 2 is the schematic flow sheet of the second embodiment of log collection method of the present invention;
Fig. 3 is the schematic flow sheet of the 3rd embodiment of log collection method of the present invention;
Fig. 4 is the schematic flow sheet of the 4th embodiment of log collection method of the present invention;
Fig. 5 is the structural representation of the first embodiment of acquisition terminal of the present invention;
Fig. 6 is the structural representation of the second embodiment of acquisition terminal of the present invention.
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, do referring to the drawings further
Explanation.
Detailed description of the invention
Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not used to limit
Determine the present invention.
With reference to the schematic flow sheet of the first embodiment that Fig. 1, Fig. 1 are log collection method of the present invention, the party
Method includes:
S10, when measured terminal occurs abnormal, acquisition terminal receives the non-conformance description information of user's input,
And send log acquisition request to measured terminal.
This measured terminal is the terminal with communication function, if this measured terminal is smart mobile phone, Intelligent electric
Depending on, intelligent sound box etc., wherein, this intelligent sound box can be WIFI audio amplifier.This acquisition terminal is logical for having
The terminal of telecommunication function, if this acquisition terminal is smart mobile phone etc., in the present invention, this acquisition terminal is with intelligence
As a example by energy mobile phone.
When this measured terminal occurs abnormal, i.e. user is artificially finding that this measured terminal occurs extremely intuitively
Time, when being intelligent television such as this measured terminal, the user discover that the current broadcasting pictures of this intelligent television obscures,
Then it is believed that this intelligent television occurs abnormal, and for example the user discover that this intelligent television is broadcast currently without sound
Go out, then it is believed that this intelligent television occurs abnormal;When being WIFI audio amplifier such as this measured terminal, Yong Hufa
Now this WIFI audio amplifier is when playing, and sends the noise of " thunderbolt crack ", then it is believed that this WIFI sound
Case occurs abnormal.In this step, this measured terminal occurs extremely to be determined by user's subjectivity.
When measured terminal occurs abnormal, acquisition terminal receives the non-conformance description information of user's input, and this is different
Often description information is Word message or acoustic information.
In one embodiment, when this non-conformance description information is Word message, this acquisition terminal provides input circle
Face, user inputs non-conformance description information at this inputting interface, concrete, can provide different at this inputting interface
Often describing information selective listing, user can select appropriate exception from this non-conformance description information selective listing
Description information, as this non-conformance description information list includes: fuzzy pictures, display screen blank screen, anon-normal are the normally off
The shake of machine, sound, unexpected voiceless sound etc., there is noise etc., the user discover that sound occurs in current measured terminal
The abnormal phenomena of shake, then user can select sound to shake, then at this from this non-conformance description information list
In step, it is sound shake that this acquisition terminal receives the non-conformance description information of user's input;Concrete, can
There is provided at this inputting interface and be manually entered region, recall input method and supply user's inputting word information, such as user
Input word " sound shake ", this input method can be spelling input method or five-stroke input method or other are existing
Input method, is manually entered region restriction character number at this, is up to 30 as limited character number.
In one embodiment, when this non-conformance description information is acoustic information, this acquisition terminal is by recording mould
Block gathers the sound of user, and as the user discover that, current measured terminal occurs that sound is shaken, then user sends sound
Sound " sound shake ", this acquisition terminal collects the sound of user " sound shake " by recording module.
Optionally, the step of the non-conformance description information that this acquisition terminal receives user's input includes: this collection
Terminal provides login interface, reminds user to sign in the client of correspondence, signs in the visitor of correspondence user
After the end of family, this acquisition terminal receives the non-conformance description information of user's input.
In this step, this acquisition terminal sends log acquisition request, optionally, this day to measured terminal
Will obtains request and includes log acquisition strategy, and wherein, this log acquisition strategy includes separately obtaining daily record plan
Omit and concentrate and obtain daily record strategy.During this measured terminal is asked according to the log acquisition that this acquisition terminal sends
Log acquisition strategy report log information to this acquisition terminal, when this log acquisition plan slightly diverges acquisition
During daily record strategy, each application in this measured terminal records self log information respectively, and respectively to
Acquisition terminal reports the log information of record, as this measured terminal includes the first application and the second application, then
This first application records the log information of self, and this second application records the log information of self, and this is first years old
The log information that application is recorded reports acquisition terminal, the log information that this second application is recorded
Report acquisition terminal;When this log acquisition strategy obtains daily record strategy for concentrating, in this measured terminal
Each application record self log information respectively, and each log information of record is packaged,
Log information after encapsulation is reported acquisition terminal.Concrete, can be according to this acquisition terminal and tested end
The network bandwidth between end, determines log acquisition strategy, the net between this acquisition terminal and measured terminal
When network bandwidth is more than or equal to the network bandwidth threshold values preset, this log acquisition strategy obtains daily record for concentrating
Strategy;When the network bandwidth between this acquisition terminal and measured terminal is less than the network bandwidth threshold values preset,
This log acquisition plan slightly diverges acquisition daily record strategy.
In this step, this acquisition terminal sends log acquisition request, optionally, this day to measured terminal
Will obtains request and includes the type of daily record to be obtained, and the type of daily record as to be obtained in this includes application program day
Will, system journal.Wherein, the ruuning situation of the key node of Application Logging application program,
System journal record cpu usage, internal memory service condition etc..In measured terminal, provide one guard
Process, for detecting and collect the system journal of measured terminal;There is provided in measured terminal one special
Application log interface, is used for detecting and collecting application log.
S11, this acquisition terminal receive the log information that this measured terminal asks to report according to this log acquisition.
This this measured terminal of acquisition terminal real-time reception asks the log information reported according to this log acquisition,
Concrete, the log information of reception can be saved in journal file by this acquisition terminal, this journal file
Title is determined by unique mark of this measured terminal, and e.g., this journal file is with unique mark of this measured terminal
Know name, as being uniquely designated audio amplifier 001, the then entitled audio amplifier of this journal file when this measured terminal
001。
This non-conformance description information and log information are sent to log server by S12, this acquisition terminal, for being somebody's turn to do
Log server carries out fault location according to this non-conformance description information and log information.
Optionally, this log server can be Cloud Server.This acquisition terminal is set up with Cloud Server to be had
Line or wireless connections.
This non-conformance description information and log information are sent to log server by this acquisition terminal, optionally,
This non-conformance description information and log information can be encapsulated in a packet, then the exception after encapsulation is retouched
State information and log information is sent to Cloud Server;Optionally, also can be to the non-conformance description information after encapsulation
Being compressed processing with log information, non-conformance description information and log information after then compression being processed are sent out
Give Cloud Server, bandwidth resources can be saved, reduce flow waste;Optionally, can be to this non-conformance description
Information and log information are first encrypted, then by the non-conformance description information after encryption and daily record
Information encapsulation is in a packet, then the non-conformance description information after encapsulation and log information are sent to cloud
Server, can increase the reliability of data transmission.
This non-conformance description information and log information that this log server sends according to acquisition terminal carry out fault
Location, sorts out this non-conformance description information and log information, determines the fault of correspondence, to distribute to
Corresponding analysis personnel are analyzed processing.Further, this log server is different to this by analysis personnel
Often the analysis processing result of description information and log information feeds back to acquisition terminal, and this acquisition terminal receives should
The analysis processing result that log server returns.
Using above-described embodiment, when measured terminal occurs abnormal, acquisition terminal receives the different of user's input
Often describe information, and send log acquisition request to measured terminal;This acquisition terminal receives this measured terminal
The log information reported is asked according to this log acquisition;This acquisition terminal is by this non-conformance description information and daily record
Information is sent to log server, enters according to this non-conformance description information and log information for this log server
Row fault location;Non-conformance description information and the log information of measured terminal can be sent to log services simultaneously
Device so that log server can carry out fault location to measured terminal fast and accurately.
Schematic flow sheet with reference to the second embodiment that Fig. 2, Fig. 2 are log collection method of the present invention.
S20, when measured terminal occurs abnormal, acquisition terminal receives the non-conformance description information of user's input,
And send log acquisition request to measured terminal.
This step S20 is identical with above-mentioned steps S10, is not repeated herein.
S21, acquisition terminal to measured terminal send log acquisition request while, acquisition terminal is to tested
Terminal sends apparatus information acquiring request.
The request of this apparatus information acquiring includes device configuration information, it is also possible to include that equipment identities identifies.
S22, this acquisition terminal receive the log information that this measured terminal asks to report according to this log acquisition,
And receive the facility information that this measured terminal returns according to the request of this apparatus information acquiring.
This acquisition terminal receives the step of the log information that this measured terminal reports according to the request of this log acquisition
Identical with above-mentioned steps S11, it is not repeated herein.
This acquisition terminal receives the facility information that measured terminal returns according to the request of this apparatus information acquiring, should
Facility information includes device configuration information, it is also possible to include that equipment identities identifies, as in one embodiment,
This equipment under test is WIFI audio amplifier, and this device configuration information includes hardware configuration and the software of WIFI audio amplifier
Configuration, the equipment identities of this WIFI audio amplifier is designated the MAC Address of this WIFI audio amplifier or No. SN (Serial
Number, SN, product ID).
This non-conformance description information, log information and facility information are sent to daily record clothes by S23, this acquisition terminal
Business device, carries out fault for this log server according to this non-conformance description information, log information and facility information
Location.
Optionally, this log server can be Cloud Server.This acquisition terminal is set up with Cloud Server to be had
Line or wireless connections.
This non-conformance description information, log information and facility information are sent to log server by this acquisition terminal,
Optionally, this non-conformance description information, log information and facility information can be encapsulated in a packet,
Again non-conformance description information, log information and the facility information after encapsulation is sent to Cloud Server;Optionally,
Also can be compressed processing to non-conformance description information, log information and the facility information after encapsulation, then will
Non-conformance description information, log information and facility information after compression processes are sent to Cloud Server, can save
Bandwidth resources, reduce flow waste;Optionally, can be to this non-conformance description information, log information and equipment
Information is first encrypted, then by non-conformance description information, log information and the equipment after encryption
Information encapsulation is in a packet, then is believed by non-conformance description information, log information and the equipment after encapsulation
Breath is sent to Cloud Server, can increase the reliability of data transmission.
Optionally, this acquisition terminal can be first according to the filtering rule preset, it is judged that receive from measured terminal
Whether log information is effective information, if the log information received is effective information, then by this non-conformance description
Information, log information and facility information are sent to log server, abnormal according to this for this log server
Description information, log information and facility information carry out fault location.
This filtering rule can be arranged as required to, and e.g., this filtering rule is temporal filtering rule.Time mistake
Filter rule is: if the logging time in this log information is in time range set in advance, then judging should
Log information is effective, otherwise judges that this log information is invalid, and this time range can be arranged as required to, as
This time range is nearest one day.
Non-conformance description information, log information and facility information that this Cloud Server sends according to acquisition terminal enter
Row fault location, sorts out this non-conformance description information, log information and facility information, determines correspondence
Fault, with distribute to correspondence analysis personnel be analyzed process.
Schematic flow sheet with reference to the 3rd embodiment that Fig. 3, Fig. 3 are log collection method of the present invention.
First embodiment based on above-mentioned log collection method or the second embodiment, in step S10 or step
Before S20, the method also includes:
S30, acquisition terminal and this measured terminal set up wireless connections.
This acquisition terminal and this measured terminal are in same LAN, this acquisition terminal and this tested end
End sets up communication connection by WIFI mode, when being WIFI sound equipment such as this measured terminal, and this acquisition terminal
Set up by WIFI mode with WIFI sound equipment and be connected.
Optionally, this acquisition terminal is based on SSDP SSDP (Simple Service
Discovery Protocol, SSDP) equipment under test in network sends and finds message, and receive from
The response message of equipment under test, it is achieved equipment finds;The equipment under test of this acquisition terminal and discovery sets up nothing
Line connects.
Schematic flow sheet with reference to the 4th embodiment that Fig. 4, Fig. 4 are log collection method of the present invention.
First embodiment based on above-mentioned log collection method, this step S12 includes:
S121, this acquisition terminal are according to the filtering rule preset, it is judged that whether the log information of reception is for having
Effect information, if the log information received is effective information, then performs step S122.
This filtering rule can be arranged as required to, and e.g., this filtering rule is temporal filtering rule.Time mistake
Filter rule is: if the logging time in this log information is in time range set in advance, then judging should
Log information is effective, otherwise judges that this log information is invalid, and this time range can be arranged as required to, as
This time range is nearest one day.
S122, this log information and non-conformance description information are sent to log server, for this log services
Device carries out fault location according to this non-conformance description information and log information.
In this step, effectively log information and non-conformance description information log server will be sent to,
Avoid invalid log information is sent to log server, cause network bandwidth waste and take daily record clothes
The storage resource of business device.
With reference to the structural representation of the first embodiment that Fig. 5, Fig. 5 are acquisition terminal of the present invention, this collection is eventually
End includes:
Receiver module 10, for when measured terminal occurs abnormal, receives the non-conformance description letter of user's input
Breath;
First transceiver module 20, for when measured terminal occurs abnormal, sends daily record to measured terminal and obtains
Take request, and receive the log information that this measured terminal asks according to this log acquisition to report;
Second transceiver module 30, for this non-conformance description information and log information are sent to log server,
Fault location is carried out according to this non-conformance description information and log information for this log server.
This measured terminal is the terminal with communication function, if this measured terminal is smart mobile phone, Intelligent electric
Depending on, intelligent sound box etc., wherein, this intelligent sound box can be WIFI audio amplifier.This acquisition terminal is logical for having
The terminal of telecommunication function, if this acquisition terminal is smart mobile phone etc., in the present invention, this acquisition terminal is with intelligence
As a example by energy mobile phone.
When this measured terminal occurs abnormal, i.e. user is artificially finding that this measured terminal occurs extremely intuitively
Time, when being intelligent television such as this measured terminal, the user discover that the current broadcasting pictures of this intelligent television obscures,
Then it is believed that this intelligent television occurs abnormal, and for example the user discover that this intelligent television is broadcast currently without sound
Go out, then it is believed that this intelligent television occurs abnormal;When being WIFI audio amplifier such as this measured terminal, Yong Hufa
Now this WIFI audio amplifier is when playing, and sends the noise of " thunderbolt crack ", then it is believed that this WIFI sound
Case occurs abnormal.This measured terminal occurs extremely to be determined by user's subjectivity.
When measured terminal occurs abnormal, this receiver module 10 receives the non-conformance description information of user's input,
This non-conformance description information is Word message or acoustic information.
In one embodiment, when this non-conformance description information is Word message, this acquisition terminal provides input circle
Face, user inputs non-conformance description information at this inputting interface, concrete, can provide different at this inputting interface
Often describing information selective listing, user can select appropriate exception from this non-conformance description information selective listing
Description information, as this non-conformance description information list includes: fuzzy pictures, display screen blank screen, anon-normal are the normally off
The shake of machine, sound, unexpected voiceless sound etc., there is noise etc., the user discover that sound occurs in current measured terminal
The abnormal phenomena of shake, then user can select sound to shake from this non-conformance description information list, then this connects
It is sound shake that receipts module 10 receives the non-conformance description information of user's input;Concrete, can be in this input circle
Face provides and is manually entered region, recalls input method and supplies user's inputting word information, as user inputs word " sound
Sound is shaken ", this input method can be spelling input method or five-stroke input method or other existing input methods, at this
It is manually entered region and limits character number, be up to 30 as limited character number.
In one embodiment, when this non-conformance description information is acoustic information, this receiver module 10 is by recording
Module gathers the sound of user, and as the user discover that, current measured terminal occurs that sound is shaken, then user sends
Sound " sound shake ", this receiver module 10 collects the sound of user by recording module, and " sound is trembled
Dynamic ".
Optionally, this receiver module 10 receive user input non-conformance description information include: this receiver module
10 provide login interface, remind user to sign in the client of correspondence, sign in the client of correspondence user
After end, this receiver module 10 receives the non-conformance description information of user's input.
This first transceiver module 20 sends log acquisition request, optionally, this log acquisition to measured terminal
Request includes log acquisition strategy, and wherein, this log acquisition strategy includes separately obtaining daily record strategy and collection
Middle acquisition daily record strategy.Daily record in the log acquisition request that this measured terminal sends according to this acquisition terminal
Acquisition strategy reports log information to this acquisition terminal, when this log acquisition plan slightly diverges acquisition daily record plan
Time slightly, each application in this measured terminal records the log information of self respectively, and respectively to gathering eventually
End reports the log information of record, as this measured terminal includes the first application and the second application, then this first
Application records the log information of self, and this second application records the log information of self, and this first application will
The log information of its record reports acquisition terminal, and the log information that this second application is recorded reports
Acquisition terminal;When this log acquisition strategy obtains daily record strategy for concentrating, each in this measured terminal
Application records the log information of self respectively, and is packaged by each log information of record, will encapsulation
After log information report acquisition terminal.Concrete, can be according between this acquisition terminal and measured terminal
The network bandwidth, determine log acquisition strategy, the network bandwidth between this acquisition terminal and measured terminal
During more than or equal to the network bandwidth threshold values preset, this log acquisition strategy obtains daily record strategy for concentrating;
When the network bandwidth between this acquisition terminal and measured terminal is less than the network bandwidth threshold values preset, this day
Will acquisition strategy is for separately obtaining daily record strategy.
This first transceiver module 20 sends log acquisition request, optionally, this log acquisition to measured terminal
Request includes the type of daily record to be obtained, and the type of daily record as to be obtained in this includes application log, is
System daily record.Wherein, the ruuning situation of the key node of Application Logging application program, system day
Will record cpu usage, internal memory service condition etc..One finger daemon is provided in measured terminal,
For detecting and collect the system journal of measured terminal;One special application day is provided in measured terminal
Will interface, is used for detecting and collecting application log.
This second transceiver module 30 this measured terminal of real-time reception asks the daily record reported according to this log acquisition
Information, concrete, the log information of reception can be saved in journal file by this second transceiver module 30,
The title of this journal file is determined by unique mark of this measured terminal, and e.g., this journal file is tested with this
Terminal uniquely identify name, as being uniquely designated audio amplifier 001, then this journal file when this measured terminal
Entitled audio amplifier 001.
Optionally, this log server can be Cloud Server.This acquisition terminal is set up with Cloud Server to be had
Line or wireless connections.
This non-conformance description information and log information are sent to log server by this second transceiver module 30, can
Choosing, this non-conformance description information and log information can be encapsulated in a packet, then by after encapsulation
Non-conformance description information and log information are sent to Cloud Server;Optionally, also the exception after encapsulation can be retouched
State information and log information is compressed processing, the non-conformance description information after then compression being processed and daily record
Information is sent to Cloud Server, can save bandwidth resources, reduces flow waste;Optionally, can be different to this
Often description information and log information are first encrypted, then by the non-conformance description information after encryption
It is encapsulated in a packet with log information, then the non-conformance description information after encapsulation and log information are sent out
Give Cloud Server, the reliability of data transmission can be increased.
This non-conformance description information and log information that this log server sends according to acquisition terminal carry out fault
Location, sorts out this non-conformance description information and log information, determines the fault of correspondence, to distribute to
Corresponding analysis personnel are analyzed processing.This log server by analysis personnel to this non-conformance description information
Acquisition terminal is fed back to the analysis processing result of log information, this second transceiver module 30, it is additionally operable to connect
Receive the analysis processing result that this log server returns.
Further, this second transceiver module 30 includes:
Judging unit, for according to the filtering rule preset, it is judged that whether the log information of reception is effective
Information;
Transmit-Receive Unit, for when the log information received is effective information, by this log information and exception
Description information is sent to log server, believes according to this non-conformance description information and daily record for this log server
Breath carries out fault location.
This filtering rule can be arranged as required to, and e.g., this filtering rule is temporal filtering rule.Time mistake
Filter rule is: if the logging time in this log information is in time range set in advance, then judging should
Log information is effective, otherwise judges that this log information is invalid, and this time range can be arranged as required to, as
This time range is nearest one day.
Effective log information and non-conformance description information are sent to log server by this Transmit-Receive Unit, it is to avoid
Invalid log information is sent to log server, causes network bandwidth waste and take log server
Storage resource.
Further, this first transceiver module 20, it is additionally operable to when measured terminal occurs abnormal, to tested
Terminal send apparatus information acquiring request, and receive this measured terminal according to this apparatus information acquiring request return
The facility information returned;
This second transceiver module 30, is additionally operable to send out this non-conformance description information, log information and facility information
Give log server, believe according to this non-conformance description information, log information and equipment for this log server
Breath carries out fault location.
The request of this apparatus information acquiring includes device configuration information, it is also possible to include that equipment identities identifies.
This first transceiver module 20 receives the equipment letter that measured terminal returns according to the request of this apparatus information acquiring
Breath, this facility information includes device configuration information, it is also possible to include that equipment identities identifies, as implemented one
In example, this equipment under test is WIFI audio amplifier, and this device configuration information includes the hardware configuration of WIFI audio amplifier
And software arrangements, the equipment identities of this WIFI audio amplifier is designated MAC Address or the SN of this WIFI audio amplifier
Number (Serial Number, SN, product ID).
This non-conformance description information, log information and facility information are sent to daily record by this second transceiver module 30
Server, optionally, can be encapsulated in a number by this non-conformance description information, log information and facility information
According to bag in, then will encapsulation after non-conformance description information, log information and facility information be sent to Cloud Server;
Optionally, also can be compressed processing to non-conformance description information, log information and the facility information after encapsulation,
Then non-conformance description information, log information and facility information after compression being processed are sent to Cloud Server,
Bandwidth resources can be saved, reduce flow waste;Optionally, can be to this non-conformance description information, log information
First it is encrypted with facility information, then by the non-conformance description information after encryption, log information
Be encapsulated in a packet with facility information, then will encapsulation after non-conformance description information, log information and
Facility information is sent to Cloud Server, can increase the reliability of data transmission.
Optionally, this second transceiver module 30 can be first according to the filtering rule preset, it is judged that from measured terminal
Whether the log information received is effective information, if the log information received is effective information, then this is different
Often description information, log information and facility information are sent to log server, for this log server according to
This non-conformance description information, log information and facility information carry out fault location.
This filtering rule can be arranged as required to, and e.g., this filtering rule is temporal filtering rule.Time mistake
Filter rule is: if the logging time in this log information is in time range set in advance, then judging should
Log information is effective, otherwise judges that this log information is invalid, and this time range can be arranged as required to, as
This time range is nearest one day.
Non-conformance description information, log information and facility information that this Cloud Server sends according to acquisition terminal enter
Row fault location, sorts out this non-conformance description information, log information and facility information, determines correspondence
Fault, with distribute to correspondence analysis personnel be analyzed process.
Structural representation with reference to the second embodiment that Fig. 6, Fig. 6 are acquisition terminal of the present invention.
First embodiment based on above-mentioned acquisition terminal, this acquisition terminal also includes:
Connection establishment module 40, for setting up wireless connections by this acquisition terminal and this measured terminal.
This acquisition terminal and this measured terminal are in same LAN, and this acquisition terminal is built by connection
Formwork erection block 40 and this measured terminal set up communication connection by WIFI mode, if this measured terminal is WIFI
During sound equipment, this acquisition terminal and WIFI sound equipment are set up by WIFI mode and are connected.
Optionally, this connection establishment module 40 is based on SSDP SSDP (Simple Service
Discovery Protocol, SSDP) equipment under test in network sends and finds message, and receive from
The response message of equipment under test, it is achieved equipment finds;This acquisition terminal is by connection establishment module 40 and sends out
Existing equipment under test sets up wireless connections.
These are only the preferred embodiments of the present invention, not thereby limit the scope of the claims of the present invention, every
Utilize equivalent structure or equivalence flow process conversion that description of the invention and accompanying drawing content made, or directly or
Connect and be used in other relevant technical fields, be the most in like manner included in the scope of patent protection of the present invention.
Claims (10)
1. a log collection method, it is characterised in that the method includes:
When measured terminal occurs abnormal, the non-conformance description information of acquisition terminal reception user's input, and to
Measured terminal sends log acquisition request;
Described acquisition terminal receives the daily record letter that described measured terminal reports according to the request of described log acquisition
Breath;
Described non-conformance description information and log information are sent to log server by described acquisition terminal, for institute
State log server and carry out fault location according to described non-conformance description information and log information.
2. log collection method as claimed in claim 1, it is characterised in that acquisition terminal is to tested end
While end sends log acquisition request, described method also includes:
Described acquisition terminal sends apparatus information acquiring request to measured terminal;
Described acquisition terminal receives the equipment that described measured terminal returns according to the request of described apparatus information acquiring
Information;
Described non-conformance description information, log information and facility information are sent to daily record clothes by described acquisition terminal
Business device, is carried out according to described non-conformance description information, log information and facility information for described log server
Fault location.
3. log collection method as claimed in claim 1 or 2, it is characterised in that described non-conformance description
Information is Word message or acoustic information.
4. log collection method as claimed in claim 1 or 2, it is characterised in that described at tested end
When end occurs abnormal, acquisition terminal receives the non-conformance description information of user's input, and sends to measured terminal
Before the step of log acquisition request, described method also includes:
Described acquisition terminal and described measured terminal set up wireless connections.
5. log collection method as claimed in claim 1, it is characterised in that described acquisition terminal is by institute
State non-conformance description information and log information is sent to log server, for described log server according to described
Non-conformance description information and log information carry out the step of fault location and include:
Described acquisition terminal is according to the filtering rule preset, it is judged that whether the log information of reception is effectively to believe
Breath;
If the log information received is effective information, then this log information and non-conformance description information are sent to
Log server, carries out fault for described log server according to described non-conformance description information and log information
Location.
6. an acquisition terminal, it is characterised in that described acquisition terminal includes:
Receiver module, for when measured terminal occurs abnormal, receiving the non-conformance description information of user's input;
First transceiver module, for when measured terminal occurs abnormal, sending log acquisition to measured terminal
Request, and receive the log information that described measured terminal asks to report according to described log acquisition;
Second transceiver module, for described non-conformance description information and log information are sent to log server,
Fault location is carried out according to described non-conformance description information and log information for described log server.
7. acquisition terminal as claimed in claim 6, it is characterised in that described first transceiver module, also
For when measured terminal occurs abnormal, send apparatus information acquiring request to measured terminal, and receive institute
State the facility information that measured terminal returns according to the request of described apparatus information acquiring;
Described second transceiver module, is additionally operable to described non-conformance description information, log information and facility information
Be sent to log server, for described log server according to described non-conformance description information, log information and
Facility information carries out fault location.
Acquisition terminal the most as claimed in claims 6 or 7, it is characterised in that described non-conformance description information
For Word message or acoustic information.
Acquisition terminal the most as claimed in claims 6 or 7, it is characterised in that described acquisition terminal also wraps
Include:
Connection establishment module, for setting up wireless connections by described acquisition terminal and described measured terminal.
10. acquisition terminal as claimed in claim 6, it is characterised in that described second transceiver module bag
Include:
Judging unit, for according to the filtering rule preset, it is judged that whether the log information of reception is effective
Information;
Transmit-Receive Unit, for when the log information received is effective information, by this log information and exception
Description information is sent to log server, for described log server according to described non-conformance description information and day
Will information carries out fault location.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610189051.2A CN105868040A (en) | 2016-03-29 | 2016-03-29 | Log collection method and collection terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610189051.2A CN105868040A (en) | 2016-03-29 | 2016-03-29 | Log collection method and collection terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN105868040A true CN105868040A (en) | 2016-08-17 |
Family
ID=56626919
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610189051.2A Pending CN105868040A (en) | 2016-03-29 | 2016-03-29 | Log collection method and collection terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105868040A (en) |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107547500A (en) * | 2017-05-12 | 2018-01-05 | 新华三信息安全技术有限公司 | A kind of information collecting method and device |
CN108235083A (en) * | 2018-01-16 | 2018-06-29 | 青岛海信电器股份有限公司 | TV log information acquisition methods and device |
CN108989425A (en) * | 2018-07-17 | 2018-12-11 | 深圳齐心集团股份有限公司 | A kind of cloud binder and its failure information obtaining method |
WO2019071611A1 (en) * | 2017-10-13 | 2019-04-18 | 华为技术有限公司 | Fault processing method for terminal device and terminal device |
CN110046073A (en) * | 2019-03-29 | 2019-07-23 | 厦门网宿有限公司 | A kind of log collection method and device, equipment, storage medium |
CN110209639A (en) * | 2019-04-16 | 2019-09-06 | 深圳绿米联创科技有限公司 | Information processing method, apparatus and system |
WO2020001138A1 (en) * | 2018-06-29 | 2020-01-02 | 深圳市同泰怡信息技术有限公司 | Server system log collection method |
CN112180783A (en) * | 2020-09-17 | 2021-01-05 | 刘小霞 | Information monitoring management method and device based on Internet |
CN112307276A (en) * | 2020-08-31 | 2021-02-02 | 北京沃东天骏信息技术有限公司 | Log collection method, device and system |
CN112395126A (en) * | 2020-11-20 | 2021-02-23 | 北京百度网讯科技有限公司 | Fault log processing method and device, electronic equipment and storage medium |
CN112463429A (en) * | 2020-12-03 | 2021-03-09 | 北京五八信息技术有限公司 | Information processing method and device |
CN114422340A (en) * | 2020-10-12 | 2022-04-29 | 华为技术有限公司 | Log reporting method, electronic device and storage medium |
CN114598904A (en) * | 2020-11-20 | 2022-06-07 | 中国移动通信集团广东有限公司 | Fault positioning method and device for IPTV service |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130166791A1 (en) * | 2011-12-26 | 2013-06-27 | Hiroshi Kobayashi | Output device, log collecting method for output device, and storage medium |
CN103699111A (en) * | 2013-09-26 | 2014-04-02 | 青岛海信网络科技股份有限公司 | Failure detection method and device for distributed monitoring system |
CN103838637A (en) * | 2014-03-03 | 2014-06-04 | 江苏智联天地科技有限公司 | Terminal automatic fault diagnosis and restoration method on basis of data mining |
CN104065699A (en) * | 2013-03-21 | 2014-09-24 | 歌乐株式会社 | Vehicle-onboard Apparatus System, Portable Terminal, And Vehicle-onboard Machine |
-
2016
- 2016-03-29 CN CN201610189051.2A patent/CN105868040A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130166791A1 (en) * | 2011-12-26 | 2013-06-27 | Hiroshi Kobayashi | Output device, log collecting method for output device, and storage medium |
CN104065699A (en) * | 2013-03-21 | 2014-09-24 | 歌乐株式会社 | Vehicle-onboard Apparatus System, Portable Terminal, And Vehicle-onboard Machine |
CN103699111A (en) * | 2013-09-26 | 2014-04-02 | 青岛海信网络科技股份有限公司 | Failure detection method and device for distributed monitoring system |
CN103838637A (en) * | 2014-03-03 | 2014-06-04 | 江苏智联天地科技有限公司 | Terminal automatic fault diagnosis and restoration method on basis of data mining |
Cited By (20)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107547500A (en) * | 2017-05-12 | 2018-01-05 | 新华三信息安全技术有限公司 | A kind of information collecting method and device |
WO2019071611A1 (en) * | 2017-10-13 | 2019-04-18 | 华为技术有限公司 | Fault processing method for terminal device and terminal device |
CN110709822A (en) * | 2017-10-13 | 2020-01-17 | 华为技术有限公司 | Fault processing method of terminal equipment and terminal equipment |
US11138062B2 (en) | 2017-10-13 | 2021-10-05 | Huawei Technologies Co., Ltd. | Terminal device troubleshooting method and terminal device |
CN108235083B (en) * | 2018-01-16 | 2021-08-24 | 海信视像科技股份有限公司 | Television log information acquisition method and device |
CN108235083A (en) * | 2018-01-16 | 2018-06-29 | 青岛海信电器股份有限公司 | TV log information acquisition methods and device |
WO2020001138A1 (en) * | 2018-06-29 | 2020-01-02 | 深圳市同泰怡信息技术有限公司 | Server system log collection method |
CN108989425A (en) * | 2018-07-17 | 2018-12-11 | 深圳齐心集团股份有限公司 | A kind of cloud binder and its failure information obtaining method |
CN110046073A (en) * | 2019-03-29 | 2019-07-23 | 厦门网宿有限公司 | A kind of log collection method and device, equipment, storage medium |
CN110046073B (en) * | 2019-03-29 | 2022-10-18 | 厦门网宿有限公司 | Log collection method and device, equipment and storage medium |
CN110209639B (en) * | 2019-04-16 | 2022-05-20 | 深圳绿米联创科技有限公司 | Information processing method, device and system |
CN110209639A (en) * | 2019-04-16 | 2019-09-06 | 深圳绿米联创科技有限公司 | Information processing method, apparatus and system |
CN112307276A (en) * | 2020-08-31 | 2021-02-02 | 北京沃东天骏信息技术有限公司 | Log collection method, device and system |
CN112180783A (en) * | 2020-09-17 | 2021-01-05 | 刘小霞 | Information monitoring management method and device based on Internet |
CN114422340A (en) * | 2020-10-12 | 2022-04-29 | 华为技术有限公司 | Log reporting method, electronic device and storage medium |
CN114422340B (en) * | 2020-10-12 | 2023-10-10 | 华为技术有限公司 | Log reporting method, electronic equipment and storage medium |
CN112395126A (en) * | 2020-11-20 | 2021-02-23 | 北京百度网讯科技有限公司 | Fault log processing method and device, electronic equipment and storage medium |
CN114598904A (en) * | 2020-11-20 | 2022-06-07 | 中国移动通信集团广东有限公司 | Fault positioning method and device for IPTV service |
CN114598904B (en) * | 2020-11-20 | 2023-06-30 | 中国移动通信集团广东有限公司 | Fault positioning method and device for IPTV service |
CN112463429A (en) * | 2020-12-03 | 2021-03-09 | 北京五八信息技术有限公司 | Information processing method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105868040A (en) | Log collection method and collection terminal | |
CN110635965B (en) | IPv6 network quality monitoring method, equipment and storage medium | |
CN108363662A (en) | A kind of applied program testing method, storage medium and terminal device | |
CN111400127B (en) | Service log monitoring method and device, storage medium and computer equipment | |
CN100466560C (en) | Method, system, device for detecting service quality, and charging and fault detecting system | |
CN104301161A (en) | Computing method, computing device and communication system for business quality index | |
CN112333044A (en) | Shunting equipment performance test method, device and system, electronic equipment and medium | |
CN113225339B (en) | Network security monitoring method and device, computer equipment and storage medium | |
CN110659481A (en) | Vulnerability scanning method based on agent | |
CN102271331B (en) | Method and system for detecting reliability of service provider (SP) site | |
CN113207146B (en) | Wireless communication network quality monitoring system and method | |
CN113067710A (en) | Online user query method and device, computer equipment and storage medium | |
CN102469450B (en) | Method and device for recognizing virus characteristics of mobile phone | |
CN101834749A (en) | Method and device for acquiring data, method and device for monitoring business service quality | |
CN112688924A (en) | Network protocol analysis system | |
CN111741007A (en) | Financial business real-time monitoring system and method based on network layer message analysis | |
CN111130948A (en) | Network quality detection method and device | |
CN110650220A (en) | MAC address acquisition method and detection device | |
CN113965447B (en) | Online cloud diagnosis method, device, system, equipment and storage medium | |
CN111935316B (en) | Method and device for acquiring front-end equipment catalog | |
CN211630177U (en) | Equipment data acquisition system | |
CN110120895B (en) | Method, device, medium and electronic equipment for testing communication of mobile terminal | |
CN114585011A (en) | Network quality testing method and device | |
CN106936938A (en) | Domain name analytic method and system | |
CN110808845A (en) | MAC address information acquisition system and method based on WiFi equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20160817 |
|
RJ01 | Rejection of invention patent application after publication |