CN107453889B - A kind of method for uploading and device of journal file - Google Patents
A kind of method for uploading and device of journal file Download PDFInfo
- Publication number
- CN107453889B CN107453889B CN201610379980.XA CN201610379980A CN107453889B CN 107453889 B CN107453889 B CN 107453889B CN 201610379980 A CN201610379980 A CN 201610379980A CN 107453889 B CN107453889 B CN 107453889B
- Authority
- CN
- China
- Prior art keywords
- journal file
- application
- target
- terminal
- server
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/02—Standardisation; Integration
- H04L41/0246—Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/069—Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
Abstract
The embodiment of the present invention provides the method for uploading and device of a kind of journal file, method therein can include: detects whether that the upload demand there are journal file, the upload demand are server push message trigger or the abnormal conditions triggering that terminal program is run;If there is the demand of upload, the target identification of the target application of journal file to be uploaded is obtained;According to the target identification, the journal file of the target application is obtained;The journal file is uploaded to server, so that the server is analyzed and processed the journal file.The journal file of target application can be uploaded in time by server, strong real-time using the embodiment of the present invention.
Description
Technical field
The present invention relates to fields of communication technology, and in particular to a kind of method for uploading and device of journal file.
Background technique
With the development of communication technology, terminal is integrated with more and more functions, so that in numerous system functions
More and more corresponding application programs are contained, some application programs can generate some record system operatio things in the process of running
The record file or file set of part, referred to as journal file.
Most of applications at present all can active collection program running log, in user using going wrong in application process
When, it can be analyzed by journal file and orientation problem, to keep application more perfect.But the log that majority application is collected is equal
Be using user trigger manually submit server, therefore the prior art depend on user upload log manually, if user not on
Log is passed, developer can not obtain the running log of program, and the feedback of journal file not in time, can not solve to ask in time
Topic.
Summary of the invention
The embodiment of the present invention provides the method for uploading and device of a kind of journal file, can be in time by the log text of target application
Part is uploaded to server, strong real-time.
First aspect present invention provides a kind of method for uploading of journal file, comprising:
Detect whether that the upload demand there are journal file, the upload demand are server push message trigger or end
Hold the abnormal conditions triggering of program operation;
If there is the demand of upload, the target identification of the target application of journal file to be uploaded is obtained;
According to the target identification, the journal file of the target application is obtained;
The journal file is uploaded to server, so that the server is analyzed and processed the journal file.
Second aspect of the present invention provides a kind of upload device of journal file, comprising:
First detection module, for detecting whether the upload demand is server there are the upload demand of journal file
The abnormal conditions triggering of PUSH message triggering or terminal program operation;
First obtains module, for obtaining the target of the target application of journal file to be uploaded if there is the demand of upload
Mark;
Second obtains module, for obtaining the journal file of the target application according to the target identification;
Uploading module, for the journal file to be uploaded to server, so that the server is to the journal file
It is analyzed and processed.
The implementation of the embodiments of the present invention has the following beneficial effects:
The embodiment of the present invention detects whether the upload demand there are journal file, which disappears for server push
The abnormal conditions triggering of breath triggering or terminal program operation then obtains journal file to be uploaded if there is the demand of upload
The target identification of target application obtains the journal file of target application according to the target identification, which is uploaded to clothes
Business device, so that server is analyzed and processed journal file, this mode is uploaded by the PUSH message triggering of server and is needed
It asks or the abnormal conditions of terminal program operation triggers upload demand, the journal file of target application can be uploaded to clothes in time
Business device, strong real-time facilitate developer's analyzing and positioning problem.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
It obtains other drawings based on these drawings.
Fig. 1 is a kind of flow chart of the method for uploading of journal file provided in an embodiment of the present invention;
Fig. 2 is the flow chart of the method for uploading of another journal file provided in an embodiment of the present invention;
Fig. 3 is the flow chart of the method for uploading of another journal file provided in an embodiment of the present invention;
Fig. 4 is a kind of upload apparatus structure schematic diagram of journal file provided in an embodiment of the present invention;
Fig. 5 is the upload apparatus structure schematic diagram of another journal file provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Below in conjunction with attached drawing 1- attached drawing 3, the method for uploading of journal file provided in an embodiment of the present invention is carried out detailed
It introduces.
Fig. 1 is please referred to, is a kind of flow chart of the method for uploading of journal file provided in an embodiment of the present invention;This method can
Include the following steps S100- step S103.
S100 detects whether that the upload demand there are journal file, the upload demand are server push message trigger
Or the abnormal conditions triggering of terminal program operation;
In the embodiment of the present invention, journal file is some record systems behaviour that various application programs generate in the process of running
Make the record file or file set of event, terminal detects whether the upload demand there are journal file, is that terminal detection is
It is no to need to upload journal file.
Optionally, terminal detection mode can be to detect whether to receive the PUSH message of server transmission, be on this
Biography demand is by server push message trigger, when some application that research staff needs to install some terminal is analyzed,
The PUSH message for obtaining log can be sent to the terminal by server.
Optionally, terminal detection mode is also possible to whether abnormal conditions occur when detecting terminal operating application program, than
It such as dodges and moves back or request unsuccessfully to be that the upload demand is triggered by the abnormal conditions that numerous programs are run;Abnormal conditions if it exists,
Then determine that there are the upload demands of journal file.
It should be noted that terminal detects whether that the detection mode of the upload demand there are journal file includes but is not limited to
Above two mode can also be that other modes, the present invention are not construed as limiting.
The embodiment of the present invention is that whether there is the upload demand of journal file by terminal active detecting, is uploaded if it exists
Demand, then it is automatic to upload, it needs not wait for user and triggers feedback journal file, real-time is very strong.
S101 obtains the target identification of the target application of journal file to be uploaded if there is the demand of upload;
In the embodiment of the present invention, if detecting upload demand of the terminal there are journal file, log text to be uploaded is obtained
The target identification of the target application of part, target application refer to the third party application of the intelligent operating systems such as ios, android.
The journal file usually uploaded is the journal file of some application, and the journal file has recorded this and applies in program operation process
Some system operatio events of middle generation, it should be noted that need to upload day may sometime there is multiple applications
Will file (for example exist simultaneously multiple applications and abnormal conditions or an application occur there are abnormal conditions, another application connects
Receive the log acquisition request of server push), need to obtain the target of the target application of each journal file to be uploaded at this time
Mark, the corresponding journal file of an application.
It should be noted that an application of the target identification of target application for the installation of one terminal of unique identification, i.e.,
It is same application in different terminals installation, their mark is different, between the mark of all applications of the same terminal installation
Also different.
S102 obtains the journal file of the target application according to the target identification;
In the embodiment of the present invention, according to the target identification of the target application of journal file to be uploaded, the target application is obtained
Journal file, store the journal file for all applications that the terminal is installed in terminal local, the log text of each application
The application identities that part is all made of the application when terminal local stores are identified the journal file of the application, therefore in terminal
When the local journal file for searching target application, matched and searched can be carried out according to the target identification of the target application.
The journal file is uploaded to server by S103, so that the server analyzes the journal file
Processing.
It, can be by being connected to the network the log after finding the journal file of target application in the embodiment of the present invention
File is uploaded to server, and developer can be analyzed and processed the journal file, to determine that this applies the fortune in terminal
Row situation.
Optionally, if the journal file of the target application is stored with different log ranks;
It is described that the journal file is uploaded to server, comprising:
According to the different log rank, the high journal file of the log rank of the target application is preferentially uploaded.
In the embodiment of the present invention, the journal file of usual target application can be to be stored with different log ranks
, there is the grade of unusual condition using operational process for identifying this in log rank, for example, log rank may include
" FATAL level points out that each grave error event will will lead to exiting for application program ", " though ERROR level is pointed out
So occur error event, but still do not influence continuing to run for system ", " WARN level shows the feelings that will appear latent fault
Shape ", " INFO level shows that message highlights the operational process of application program on coarse grain level " etc..
One preferentially uploads target when uploading journal file using there may be the other journal files of multiple journal stages
The high journal file of the log rank of application, log rank height is the system event of the other journal file record of the journal stage can
It can lead to serious consequence, for example lead to the event of system crash, the event etc. for causing application program to exit, in network bandwidth
It is preferential to upload the high journal file of log rank in the case where restriction, the utilization rate of network bandwidth can be improved.
It is further alternative, detecting whether that there are before the upload demand of journal file, further include step S104-
S105;
Whether S104 detects terminal installation targets application;
S105 is the target application point to server request if the terminal has installed the target application
It is used in the target identification of the target application of terminal described in unique identification, one for identifying a corresponding terminal answers
With.
In the embodiment of the present invention, whether the installation targets application of system detection terminal, if detecting, terminal has been installed
After target application, user uses one globally unique identifier GUID of target application Shi Huixiang server application as the end
The unique identification of the target application at end, it is same application at different ends that one, which identifies an application of a corresponding terminal,
When the installation of end, applied mark is different, and it is that an application of a terminal is given birth to according to preset algorithm that server can be in real time
At mark, which can be number and/or monogram.User can generating routine operation day during using target application
Will, and be saved in local log file.
The embodiment of the present invention detects whether the upload demand there are journal file, which disappears for server push
The abnormal conditions triggering of breath triggering or terminal program operation then obtains journal file to be uploaded if there is the demand of upload
The target identification of target application obtains the journal file of target application according to the target identification, which is uploaded to clothes
Business device, so that server is analyzed and processed journal file, this mode is uploaded by the PUSH message triggering of server and is needed
It asks or the abnormal conditions of terminal program operation triggers upload demand, the journal file of target application can be uploaded to clothes in time
Business device, strong real-time facilitate developer's analyzing and positioning problem.
It referring to figure 2., is the flow chart of the method for uploading of another journal file provided in an embodiment of the present invention, as schemed institute
Show, this method may include following steps S200-S203;
S200 detects whether the log acquisition request for receiving server push;
In the embodiment of the present invention, when needing some target application operation conditions to some terminal to analyze, according to
The target application is requested in the GUID of the terminal to terminal push log acquisition, carries GUID in log acquisition request.It is optional
, log acquisition request can be the PUSH message of PUSH technology generation, and the PUSH message is for informing that user needs to upload
Journal file.
It should be noted that PUSH technology is a kind of mechanism of the foundation on client-server, it is exactly by server master
The dynamic technology for sending information to client.
S201 is parsed from log acquisition request if receiving the log acquisition request of the server push
The target identification of the target application of journal file to be uploaded out.
In the embodiment of the present invention, if receiving the log acquisition request of server push, solved from log acquisition request
The target identification of the target application of journal file to be uploaded is precipitated, optionally, GUID is parsed from PUSH message, thus terminal
The target application of journal file to be uploaded can be navigated to.
S202 obtains the journal file of the target application according to the target identification;
The journal file is uploaded to server by S203, so that the server analyzes the journal file
Processing.
Step of embodiment of the present invention S202-S203 please refers to the embodiment step S102-S103 of Fig. 1, and details are not described herein.
The embodiment of the present invention detects whether the upload demand there are journal file, which disappears for server push
The abnormal conditions triggering of breath triggering or terminal program operation then obtains journal file to be uploaded if there is the demand of upload
The target identification of target application obtains the journal file of target application according to the target identification, which is uploaded to clothes
Business device, so that server is analyzed and processed journal file, this mode is uploaded by the PUSH message triggering of server and is needed
It asks or the abnormal conditions of terminal program operation triggers upload demand, the journal file of target application can be uploaded to clothes in time
Business device, strong real-time facilitate developer's analyzing and positioning problem.
It referring to figure 3., is the flow chart of the method for uploading of another journal file provided in an embodiment of the present invention, as schemed institute
Show, this method may include following steps S300-S303;
S300 is detected and be whether there is abnormal conditions in end application operational process;
In the embodiment of the present invention, in addition, may have abnormal conditions during terminal operating application program, such as
Sudden strain of a muscle moves back, requests failure etc..Therefore it whether there is abnormal conditions in system real-time detection application program operational process.
S301 obtains the target identification for generating the target application of the abnormal conditions if there is abnormal conditions.
In the embodiment of the present invention, if system, which obtains, generates the abnormal conditions there are abnormal conditions in program operation process
Target application target identification, it should be noted that the target application for generating abnormal conditions may more than one, it is therefore desirable to
Obtain the target identification for generating each target application of abnormal conditions.
It should be noted that will record the log in the target application when generating abnormal conditions in target application operational process
In file, therefore in order to preferably position the reason of generating abnormal conditions, the journal file of the target application can be uploaded to
Server is analyzed, and optionally, terminal actively uploads different journal files according to log rank, preferential to upload log rank
High journal file.
S302 obtains the journal file of the target application according to the target identification;
The journal file is uploaded to server by S303, so that the server analyzes the journal file
Processing.
Step of embodiment of the present invention S302-S303 please refers to the embodiment step S102-S103 of Fig. 1, and details are not described herein.
The embodiment of the present invention detects whether the upload demand there are journal file, which disappears for server push
The abnormal conditions triggering of breath triggering or terminal program operation then obtains journal file to be uploaded if there is the demand of upload
The target identification of target application obtains the journal file of target application according to the target identification, which is uploaded to clothes
Business device, so that server is analyzed and processed journal file, this mode is uploaded by the PUSH message triggering of server and is needed
It asks or the abnormal conditions of terminal program operation triggers upload demand, the journal file of target application can be uploaded to clothes in time
Business device, strong real-time facilitate developer's analyzing and positioning problem.
It should be noted that the embodiment of Fig. 2 of the present invention and the embodiment of Fig. 3 can be coordination, it is also possible to item
Part choice relation is asked for example, terminal detects whether to receive the log acquisition request of server push if receiving log acquisition
It asks, then described in the embodiment according to Fig. 2, the target of the target application of journal file to be uploaded is parsed from log acquisition request
Mark obtains journal file according to target identification, and then journal file is uploaded to server, if terminal does not receive server
The log acquisition of push is requested, then is detected with the presence or absence of abnormal conditions in end application operating standard, if there is exception
Situation then described in the embodiment according to Fig. 3, obtains the target identification for generating the target application of abnormal conditions, according to target identification
Journal file is obtained, and then journal file is uploaded to server.
Below in conjunction with attached drawing 4- attached drawing 5, to a kind of upload device progress of journal file provided in an embodiment of the present invention
It is discussed in detail.
Referring to figure 4., it is a kind of structural schematic diagram of the upload device of journal file provided in an embodiment of the present invention, such as schemes
It is shown, the upload device of the journal file include first detection module 100, first obtain module 101, the second module 102 and
Uploading module 103;
First detection module 100, for detecting whether the upload demand is service there are the upload demand of journal file
The abnormal conditions triggering of the triggering of device PUSH message or terminal program operation;
In the embodiment of the present invention, journal file is some record systems behaviour that various application programs generate in the process of running
Make the record file or file set of event, terminal detects whether the upload demand there are journal file, is that terminal detection is
It is no to need to upload journal file.
Optionally, terminal detection mode can be to detect whether to receive the PUSH message of server transmission, be on this
Biography demand is by server push message trigger, when some application that research staff needs to install some terminal is analyzed,
The PUSH message for obtaining log can be sent to the terminal by server.
Optionally, terminal detection mode is also possible to whether abnormal conditions occur when detecting terminal operating application program, than
It such as dodges and moves back or request unsuccessfully to be that the upload demand is triggered by the abnormal conditions that numerous programs are run;Abnormal conditions if it exists,
Then determine that there are the upload demands of journal file.
It should be noted that terminal detects whether that the detection mode of the upload demand there are journal file includes but is not limited to
Above two mode can also be that other modes, the present invention are not construed as limiting.
The embodiment of the present invention is that whether there is the upload demand of journal file by terminal active detecting, is uploaded if it exists
Demand, then it is automatic to upload, it needs not wait for user and triggers feedback journal file, real-time is very strong.
Optionally, the first detection module 100 is specifically used for detecting whether to receive the log acquisition of server push
Request;
In the embodiment of the present invention, when needing some target application operation conditions to some terminal to analyze, according to
The target application is requested in the GUID of the terminal to terminal push log acquisition, carries GUID in log acquisition request.It is optional
, log acquisition request can be the PUSH message of PUSH technology generation, and the PUSH message is for informing that user needs to upload
Journal file.
It should be noted that PUSH technology is a kind of mechanism of the foundation on client-server, it is exactly by server master
The dynamic technology for sending information to client.
Optionally, the first detection module 100 is specifically used for whether there is in detection end application operational process
Abnormal conditions;
In the embodiment of the present invention, in addition, may have abnormal conditions during terminal operating application program, such as
Sudden strain of a muscle moves back, requests failure etc..Therefore it whether there is abnormal conditions in system real-time detection application program operational process.
First obtains module 101, for obtaining the mesh of the target application of journal file to be uploaded if there is the demand of upload
Mark mark;
In the embodiment of the present invention, if detecting upload demand of the terminal there are journal file, log text to be uploaded is obtained
The target identification of the target application of part, target application refer to the third party application of the intelligent operating systems such as ios, android.
The journal file usually uploaded is the journal file of some application, and the journal file has recorded this and applies in program operation process
Some system operatio events of middle generation, it should be noted that need to upload day may sometime there is multiple applications
Will file (for example exist simultaneously multiple applications and abnormal conditions or an application occur there are abnormal conditions, another application connects
Receive the log acquisition request of server push), need to obtain the target of the target application of each journal file to be uploaded at this time
Mark, the corresponding journal file of an application.
It should be noted that an application of the target identification of target application for the installation of one terminal of unique identification, i.e.,
It is same application in different terminals installation, their mark is different, between the mark of all applications of the same terminal installation
Also different.
Optionally, if the log acquisition that the first acquisition module 101 is specifically used for receiving the server push is asked
It asks, the target identification of the target application of journal file to be uploaded is parsed from log acquisition request.
In the embodiment of the present invention, if receiving the log acquisition request of server push, solved from log acquisition request
The target identification of the target application of journal file to be uploaded is precipitated, optionally, GUID is parsed from PUSH message, thus terminal
The target application of journal file to be uploaded can be navigated to.
Optionally, described first module 101 is obtained specifically for abnormal conditions if it exists, obtain and generate the abnormal conditions
Target application target identification.
In the embodiment of the present invention, if system, which obtains, generates the abnormal conditions there are abnormal conditions in program operation process
Target application target identification, it should be noted that the target application for generating abnormal conditions may more than one, it is therefore desirable to
Obtain the target identification for generating each target application of abnormal conditions.
It should be noted that will record the log in the target application when generating abnormal conditions in target application operational process
In file, therefore in order to preferably position the reason of generating abnormal conditions, the journal file of the target application can be uploaded to
Server is analyzed, and optionally, terminal actively uploads different journal files according to log rank, preferential to upload log rank
High journal file.
Second obtains module 102, for obtaining the journal file of the target application according to the target identification;
In the embodiment of the present invention, according to the target identification of the target application of journal file to be uploaded, the target application is obtained
Journal file, store the journal file for all applications that the terminal is installed in terminal local, the log text of each application
The application identities that part is all made of the application when terminal local stores are identified the journal file of the application, therefore in terminal
When the local journal file for searching target application, matched and searched can be carried out according to the target identification of the target application.
Uploading module 103, for the journal file to be uploaded to server, so that the server is to the log text
Part is analyzed and processed.
It, can be by being connected to the network the log after finding the journal file of target application in the embodiment of the present invention
File is uploaded to server, and developer can be analyzed and processed the journal file, to determine that this applies the fortune in terminal
Row situation.
Optionally, if the journal file of the target application is stored with different log ranks;
The uploading module 103 is specifically used for preferentially uploading the target application according to the different log rank
The high journal file of log rank.
In the embodiment of the present invention, the journal file of usual target application can be to be stored with different log ranks
, there is the grade of unusual condition using operational process for identifying this in log rank, for example, log rank may include
" FATAL level points out that each grave error event will will lead to exiting for application program ", " though ERROR level is pointed out
So occur error event, but still do not influence continuing to run for system ", " WARN level shows the feelings that will appear latent fault
Shape ", " INFO level shows that message highlights the operational process of application program on coarse grain level " etc..
One preferentially uploads target when uploading journal file using there may be the other journal files of multiple journal stages
The high journal file of the log rank of application, log rank height is the system event of the other journal file record of the journal stage can
It can lead to serious consequence, for example lead to the event of system crash, the event etc. for causing application program to exit, in network bandwidth
It is preferential to upload the high journal file of log rank in the case where restriction, the utilization rate of network bandwidth can be improved.
The embodiment of the present invention detects whether the upload demand there are journal file, which disappears for server push
The abnormal conditions triggering of breath triggering or terminal program operation then obtains journal file to be uploaded if there is the demand of upload
The target identification of target application obtains the journal file of target application according to the target identification, which is uploaded to clothes
Business device, so that server is analyzed and processed journal file, this mode is uploaded by the PUSH message triggering of server and is needed
It asks or the abnormal conditions of terminal program operation triggers upload demand, the journal file of target application can be uploaded to clothes in time
Business device, strong real-time facilitate developer's analyzing and positioning problem.
It, can also be with it should be noted that the optional embodiment of two kinds of first detection module 100 can be coordination
It is condition choice relation, for example, terminal first detection module 100 detects whether that the log acquisition for receiving server push is asked
It asks, if receiving log acquisition request, described in the embodiment according to Fig. 2, parses day to be uploaded from log acquisition request
The target identification of the target application of will file obtains journal file according to target identification, and then journal file is uploaded to service
Device, if terminal first detection module 100 does not receive the log acquisition request of server push, first detection module 100 is examined
It surveys and whether there is abnormal conditions in end application operating standard, if there is abnormal conditions, then according to the embodiment institute of Fig. 3
It states, obtains the target identification for generating the target application of abnormal conditions, journal file is obtained according to target identification, and then log is literary
Part is uploaded to server.
It referring to figure 5., is the structural schematic diagram of the upload device of another journal file provided in an embodiment of the present invention, such as
Shown in figure, the upload device of the journal file of the embodiment of the present invention includes that first detection module 200, first obtains module 201, the
Two obtain module 202, uploading module 203, the second detection module 204 and request module 205, wherein first detection module
200, first module 201, second acquisition module 202, the description of uploading module 203 referring to figure 4. are obtained, details are not described herein.
Second detection module 204, for detecting terminal whether installation targets application;
Request module 205 is described to server request if having installed the target application for the terminal
Target identification of the target application distribution for the target application of terminal described in unique identification, the corresponding terminal of a mark
One application.
In the embodiment of the present invention, whether the installation targets application of system detection terminal, if detecting, terminal has been installed
After target application, user uses one globally unique identifier GUID of target application Shi Huixiang server application as the end
The unique identification of the target application at end, it is same application at different ends that one, which identifies an application of a corresponding terminal,
When the installation of end, applied mark is different, and it is that an application of a terminal is given birth to according to preset algorithm that server can be in real time
At mark, which can be number and/or monogram.User can generating routine operation day during using target application
Will, and be saved in local log file.
The embodiment of the present invention detects whether the upload demand there are journal file, which disappears for server push
The abnormal conditions triggering of breath triggering or terminal program operation then obtains journal file to be uploaded if there is the demand of upload
The target identification of target application obtains the journal file of target application according to the target identification, which is uploaded to clothes
Business device, so that server is analyzed and processed journal file, this mode is uploaded by the PUSH message triggering of server and is needed
It asks or the abnormal conditions of terminal program operation triggers upload demand, the journal file of target application can be uploaded to clothes in time
Business device, strong real-time facilitate developer's analyzing and positioning problem.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in a computer-readable storage medium
In, the corresponding program of upload device of journal file shown in attached drawing 4- attached drawing 5 is storable in the readable storage medium storing program for executing of terminal, and
It is executed by least one processor in the terminal, to realize the method for uploading of above-mentioned journal file, this method includes Fig. 1-Fig. 3
Process described in middle embodiment of the method.Wherein, the storage medium can be magnetic disk, CD, read-only memory (Read-
Only Memory, ROM) or random access memory (Random Access Memory, RAM) etc..
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly
It encloses, therefore equivalent changes made in accordance with the claims of the present invention, is still within the scope of the present invention.
Claims (2)
1. a kind of method for uploading of journal file characterized by comprising
Detect terminal whether installation targets application;If the terminal has installed the target application, to server
Request is target identification of the target application distribution for the target application of terminal described in unique identification, a mark pair
One of a terminal is answered to apply;Wherein, server is that an application of a terminal generates mark according to preset algorithm in real time,
The mark is number and/or monogram;
Detect whether that the upload demand there are journal file, the upload demand are server push message trigger;The push
Message is pushed through push technology in the target identification of the terminal according to the target application by the server and is generated;Wherein,
The upload demand detected whether there are journal file, comprising: detect whether that the log acquisition for receiving server push is asked
It asks;
If there is the demand of upload, the target identification of the target application of journal file to be uploaded is obtained;Wherein, it is described if there is
Upload demand obtains the target identification of the target application of journal file to be uploaded, comprising: if receiving the server push
Log acquisition request, from the log acquisition request in parse journal file to be uploaded target application target identification;
According to the target identification, the journal file of the target application is obtained;The journal file of the target application is with difference
Log rank stored;Wherein, the journal file for all applications that the terminal is installed is stored in terminal local, it is each
The application identities that the journal file of application is all made of the application when terminal local stores mark the journal file of the application
Know, the log rank grade of unusual condition occurs using operational process for identifying this;
According to the different log rank, the high journal file of the log rank of the target application is preferentially uploaded, so that institute
Server is stated to be analyzed and processed the journal file;
If the upload demand of the journal file of server push message trigger is not detected, detects end application and ran
It whether there is abnormal conditions in journey;
If there is abnormal conditions, the target identification of the target application of journal file to be uploaded is obtained;
According to the target identification, the journal file of the target application is obtained;The journal file of the target application is with difference
Log rank stored;
According to the different log rank, the high journal file of the log rank of the target application is preferentially uploaded, so that institute
Server is stated to be analyzed and processed the journal file.
2. a kind of upload device of journal file characterized by comprising
Second detection module, for detecting terminal whether installation targets application;
Request module is that the target is answered to server request if having installed the target application for the terminal
Target identification with distribution for the target application of terminal described in unique identification, one of the corresponding terminal of a mark
Using;Wherein, server is that an application of a terminal generates mark according to preset algorithm in real time, the mark be number and/
Or monogram;
First detection module, for detecting whether the upload demand is server push there are the upload demand of journal file
Message trigger;The PUSH message by the server according to the target application the terminal target identification through push skill
Art push generates;Wherein, the first detection module is specifically used for detecting whether that the log acquisition for receiving server push is asked
It asks;
First obtains module, for obtaining the target identification of the target application of journal file to be uploaded if there is the demand of upload;
Wherein, if the first acquisition module is specifically used for receiving the log acquisition request of the server push, from the day
The target identification of the target application of journal file to be uploaded is parsed in will acquisition request;
Second obtains module, for obtaining the journal file of the target application according to the target identification;The target application
Journal file stored with different log ranks;Wherein, it all is answered what terminal local stored that the terminal installed
The journal file of journal file, each application is all made of the application identities of the application to the application when terminal local stores
Journal file be identified, there is the grade of unusual condition using operational process for identifying this in the log rank;
Uploading module, for preferentially uploading the log rank of the target application high day according to the different log rank
Will file, so that the server is analyzed and processed the journal file;
The first detection module is also used in the upload demand that the journal file of server push message trigger is not detected
When, it detects and whether there is abnormal conditions in end application operational process;
Described first obtains module, is also used to obtain the target application for generating the abnormal conditions if there is abnormal conditions
Target identification.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610379980.XA CN107453889B (en) | 2016-05-31 | 2016-05-31 | A kind of method for uploading and device of journal file |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610379980.XA CN107453889B (en) | 2016-05-31 | 2016-05-31 | A kind of method for uploading and device of journal file |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107453889A CN107453889A (en) | 2017-12-08 |
CN107453889B true CN107453889B (en) | 2019-06-07 |
Family
ID=60484695
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610379980.XA Active CN107453889B (en) | 2016-05-31 | 2016-05-31 | A kind of method for uploading and device of journal file |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107453889B (en) |
Families Citing this family (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108124252A (en) * | 2017-12-29 | 2018-06-05 | 深圳市金立通信设备有限公司 | A kind of method, terminal and computer readable storage medium for obtaining information |
CN108306771B (en) * | 2018-02-09 | 2021-06-18 | 腾讯科技(深圳)有限公司 | Log reporting method, device and system |
CN110399350A (en) * | 2018-04-19 | 2019-11-01 | 沪江教育科技(上海)股份有限公司 | Processing method, device, storage medium and the electronic equipment of log information |
CN109039724B (en) * | 2018-07-23 | 2022-02-01 | 北京奇艺世纪科技有限公司 | Log uploading method and device |
CN109167681B (en) * | 2018-08-07 | 2021-08-17 | 北京云迹科技有限公司 | State monitoring method and device |
CN109086158B (en) * | 2018-08-29 | 2021-06-25 | 腾讯科技(深圳)有限公司 | Abnormal cause analysis method and device and server |
CN110059064B (en) * | 2019-03-20 | 2020-10-09 | 北京字节跳动网络技术有限公司 | Log file processing method and device and computer readable storage medium |
CN112214463A (en) * | 2019-07-12 | 2021-01-12 | 中科云谷科技有限公司 | Monitoring method, device and system of GPS terminal and storage medium |
CN111190755B (en) * | 2019-08-01 | 2022-03-08 | 腾讯科技(深圳)有限公司 | Application program function exception handling method and device |
CN110740447A (en) * | 2019-10-22 | 2020-01-31 | 福州汇思博信息技术有限公司 | remote log grabbing method for Android terminal |
CN111147296B (en) * | 2019-12-24 | 2023-04-18 | 北京奇艺世纪科技有限公司 | Information acquisition method and device |
CN112052135A (en) * | 2020-07-30 | 2020-12-08 | 许继集团有限公司 | Client program user operation record and exception reporting method based on C/S architecture |
CN115223269A (en) * | 2021-09-06 | 2022-10-21 | 广州汽车集团股份有限公司 | Automobile log uploading method and device, computer equipment and automobile |
CN115277382A (en) * | 2022-07-27 | 2022-11-01 | 腾讯音乐娱乐科技(深圳)有限公司 | Log acquisition method, log platform and computer program product |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102368709A (en) * | 2011-09-02 | 2012-03-07 | 深圳中兴网信科技有限公司 | Log acquisition method and apparatus thereof |
CN103973770A (en) * | 2013-02-06 | 2014-08-06 | 株式会社理光 | Information processing system |
CN103973785A (en) * | 2014-05-07 | 2014-08-06 | Tcl集团股份有限公司 | Log reading system based on P2P and method thereof |
CN104217346A (en) * | 2013-06-03 | 2014-12-17 | 陈亚斌 | Precision advertising equipment and precision advertising method |
CN104253704A (en) * | 2013-06-28 | 2014-12-31 | 腾讯科技(深圳)有限公司 | Terminal log reporting method, device and system |
CN104598369A (en) * | 2014-12-23 | 2015-05-06 | 北京畅游天下网络技术有限公司 | Method and device for monitoring software in mobile device |
CN104618474A (en) * | 2015-01-27 | 2015-05-13 | 杭州华三通信技术有限公司 | Equipment information storing method and device |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101272276B (en) * | 2008-04-22 | 2011-10-26 | 深圳国人通信有限公司 | Log management implementing method |
JP2009265823A (en) * | 2008-04-23 | 2009-11-12 | Yokogawa Digital Computer Corp | Information terminal device and log data acquisition program |
CN105204969B (en) * | 2014-06-30 | 2018-10-30 | 腾讯科技(深圳)有限公司 | Abnormal log processing method and abnormal log processing unit |
CN105511973B (en) * | 2014-09-22 | 2018-11-23 | 深圳Tcl新技术有限公司 | Terminal fault restorative procedure and system |
-
2016
- 2016-05-31 CN CN201610379980.XA patent/CN107453889B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102368709A (en) * | 2011-09-02 | 2012-03-07 | 深圳中兴网信科技有限公司 | Log acquisition method and apparatus thereof |
CN103973770A (en) * | 2013-02-06 | 2014-08-06 | 株式会社理光 | Information processing system |
CN104217346A (en) * | 2013-06-03 | 2014-12-17 | 陈亚斌 | Precision advertising equipment and precision advertising method |
CN104253704A (en) * | 2013-06-28 | 2014-12-31 | 腾讯科技(深圳)有限公司 | Terminal log reporting method, device and system |
CN103973785A (en) * | 2014-05-07 | 2014-08-06 | Tcl集团股份有限公司 | Log reading system based on P2P and method thereof |
CN104598369A (en) * | 2014-12-23 | 2015-05-06 | 北京畅游天下网络技术有限公司 | Method and device for monitoring software in mobile device |
CN104618474A (en) * | 2015-01-27 | 2015-05-13 | 杭州华三通信技术有限公司 | Equipment information storing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN107453889A (en) | 2017-12-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107453889B (en) | A kind of method for uploading and device of journal file | |
CN110262807B (en) | Cluster creation progress log acquisition system, method and device | |
CN109918349A (en) | Log processing method, device, storage medium and electronic device | |
EP3258653A1 (en) | Message pushing method and device | |
CN111787345B (en) | Interactive resource processing method and device based on network live broadcast room, server and storage medium | |
CN109462490B (en) | Video monitoring system and fault analysis method | |
CN109039724B (en) | Log uploading method and device | |
CN106470123A (en) | Log collecting method, client, server and electronic equipment | |
CN111221793A (en) | Data mining method, platform, computer equipment and storage medium | |
CN107168844B (en) | Performance monitoring method and device | |
CN112925648A (en) | Service policy issuing method and device | |
CN112825525B (en) | Method and apparatus for processing transactions | |
CN111367795A (en) | Performance test method based on benchmark service and related equipment | |
CN110737655A (en) | Method and device for reporting data | |
US20130179569A1 (en) | Systems and methods for gateway status information handling | |
CN105956889A (en) | Advertisement monitoring method, device and system | |
CN113472850B (en) | Link data acquisition method, device, system, electronic equipment and storage medium | |
CN111930548B (en) | Fault simulation system for multi-cluster distributed service | |
CN113778709A (en) | Interface calling method, device, server and storage medium | |
CN112685252A (en) | Micro-service monitoring method, device, equipment and storage medium | |
CN110362464B (en) | Software analysis method and equipment | |
CN116028444B (en) | File fingerprint generation method, device and system, electronic equipment and storage medium | |
CN106851703B (en) | Method and device for processing alarm information by cloud access controller | |
CN113434406B (en) | Function test method and device, storage medium and electronic equipment | |
CN115794365A (en) | Database cluster access method, device, equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |