CN107453889A - The method for uploading and device of a kind of journal file - Google Patents

The method for uploading and device of a kind of journal file Download PDF

Info

Publication number
CN107453889A
CN107453889A CN201610379980.XA CN201610379980A CN107453889A CN 107453889 A CN107453889 A CN 107453889A CN 201610379980 A CN201610379980 A CN 201610379980A CN 107453889 A CN107453889 A CN 107453889A
Authority
CN
China
Prior art keywords
journal file
intended application
upload
server
terminal
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.)
Granted
Application number
CN201610379980.XA
Other languages
Chinese (zh)
Other versions
CN107453889B (en
Inventor
刘玉杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201610379980.XA priority Critical patent/CN107453889B/en
Publication of CN107453889A publication Critical patent/CN107453889A/en
Application granted granted Critical
Publication of CN107453889B publication Critical patent/CN107453889B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/069Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the present invention provides a kind of method for uploading and device of journal file, and method therein may include:Detect whether the upload demand that journal file be present, the abnormal conditions triggering that the upload demand is server push message trigger or terminal program is run;If there is the demand of upload, the target identification of the intended application of journal file to be uploaded is obtained;According to the target identification, the journal file of the intended application is obtained;The journal file is uploaded onto the server, so that the server analyzes and processes to the journal file.The journal file of intended application can be uploaded onto the server in time using the embodiment of the present invention, it is real-time.

Description

The method for uploading and device of a kind of journal file
Technical field
The present invention relates to communication technical field, and in particular to the method for uploading and device of a kind of journal file.
Background technology
With the development of the communication technology, terminal is integrated with increasing function, so that numerous systems More and more corresponding application programs are contained in function, some application programs can produce one in the process of running The log file or file set of a little record system Action Events, referred to as journal file.
At present it is most of application all can active collection program running log, occur in user is using application process During problem, it can be analyzed and orientation problem by journal file, so that using more perfect.It is but most Daily record using collection is to trigger submission server manually using user, therefore prior art depends on user Daily record is uploaded manually, if user does not upload daily record, developer can not obtain the running log of program, day The feedback of will file is not in time, it is impossible to solves a problem promptly.
The content of the invention
The embodiment of the present invention provides a kind of method for uploading and device of journal file, can be in time by intended application Journal file uploads onto the server, real-time.
First aspect present invention provides a kind of method for uploading of journal file, including:
The upload demand that journal file be present is detected whether, the upload demand is server push message trigger Or the abnormal conditions triggering of terminal program operation;
If there is the demand of upload, the target identification of the intended application of journal file to be uploaded is obtained;
According to the target identification, the journal file of the intended application is obtained;
The journal file is uploaded onto the server, so that the server is analyzed the journal file Processing.
Second aspect of the present invention provides a kind of upload device of journal file, including:
First detection module, for detecting whether the upload demand of journal file be present, the upload demand is Server push message trigger or the abnormal conditions triggering of terminal program operation;
First acquisition module, for if there is the demand of upload, obtaining the intended application of journal file to be uploaded Target identification;
Second acquisition module, for according to the target identification, obtaining the journal file of the intended application;
Uploading module, for the journal file to be uploaded onto the server, so that the server is to the day Will file is analyzed and processed.
Implement the embodiment of the present invention, have the advantages that:
The embodiment of the present invention, detects whether the upload demand that journal file be present, and the upload demand is server PUSH message triggers or the abnormal conditions triggering of terminal program operation, if there is the demand of upload, then obtains The target identification of the intended application of journal file to be uploaded, according to the target identification, obtain the day of intended application Will file, the journal file is uploaded onto the server, so that server analyzes and processes to journal file, The abnormal conditions that this mode triggers upload demand or terminal program operation by the PUSH message of server are touched Upload demand is sent out, the journal file of intended application can upload onto the server in time, it is real-time, it is convenient Developer's analyzing and positioning problem.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to implementing The required accompanying drawing used is briefly described in example or description of the prior art, it should be apparent that, describe below In accompanying drawing be only some embodiments of the present invention, for those of ordinary skill in the art, do not paying On the premise of going out creative work, other accompanying drawings can also be obtained according to these accompanying 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.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear Chu, it is fully described by, it is clear that described embodiment is only part of the embodiment of the present invention, rather than Whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creation Property work under the premise of the every other embodiment that is obtained, belong to the scope of protection of the invention.
Below in conjunction with accompanying drawing 1- accompanying drawings 3, the method for uploading of journal file provided in an embodiment of the present invention is carried out It is discussed in detail.
Fig. 1 is refer to, is a kind of flow chart of the method for uploading of journal file provided in an embodiment of the present invention;Should Method may include following steps S100- steps S103.
S100, detects whether the upload demand that journal file be present, and the upload demand disappears for server push Breath triggering or the abnormal conditions triggering of terminal program operation;
In the embodiment of the present invention, journal file is various application programs some caused records in the process of running The log file or file set of system operatio event, terminal detect whether the upload demand that journal file be present, It is that terminal detects whether to need to upload journal file.
Optionally, terminal detection mode can be to detect whether to receive the PUSH message of server transmission, i.e., The upload demand by server push message trigger, when research staff need to the installation of some terminal some During using being analyzed, you can the PUSH message for obtaining daily record is sent to the terminal by server.
Optionally, whether there are abnormal feelings when terminal detection mode can also be detection terminal operation application program Condition, for example dodge and move back or ask unsuccessfully etc., to be abnormal conditions triggering that the upload demand is run by numerous programs; If abnormal conditions be present, it is determined that the upload demand of journal file be present.
It should be noted that the detection mode for the upload demand that terminal detects whether to have journal file include but Above two mode is not limited to, can also be other modes, the present invention is 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, if depositing It is in the demand of upload, then automatic to upload, it is not necessary to which that, when user triggers feedback journal file, real-time is very strong.
S101, if there is the demand of upload, obtain the target identification of the intended application of journal file to be uploaded;
In the embodiment of the present invention, if detecting there is the upload demand of journal file in terminal, obtain to be uploaded The target identification of the intended application of journal file, intended application refer to the intelligent operating systems such as ios, android Third party application.The journal file that the journal file generally uploaded is applied for some, and the journal file It has recorded this and apply some caused system operatio events in program operation process, it is necessary to illustrate, May sometime there are multiple applications and need to upload journal file and (for example while multiple applications appearance be present There are abnormal conditions in abnormal conditions, or an application, another application receives the daily record of server push Obtain request), now need to obtain the target identification of the intended application of each journal file to be uploaded, one should With a corresponding journal file.
Answered it should be noted that the target identification of intended application is used for one that one terminal of unique mark is installed With, be same application when different terminals are installed, their mark is different, the institute of same terminal installation Have also different between the mark of application.
S102, according to the target identification, obtain the journal file of the intended application;
In the embodiment of the present invention, according to the target identification of the intended application of journal file to be uploaded, the mesh is obtained The journal file of application is marked, the journal file for all applications that the terminal is installed is stored in terminal local, The journal file of each application uses the application identities of the application when terminal local stores to the day of the application Will file is identified, therefore when terminal local searches the journal file of intended application, can be according to the mesh The target identification of mark application carries out matched and searched.
S103, the journal file is uploaded onto the server, so that the server enters to the journal file Row analyzing and processing.
In the embodiment of the present invention, after the journal file of intended application is found, it can be incited somebody to action by network connection The journal file uploads onto the server, and developer can analyze and process to the journal file, to determine This applies the operation conditions in terminal.
Optionally, if the journal file of the intended application is stored with different daily record ranks;
It is described that the journal file uploads onto the server, including:
According to the different daily record rank, the high daily record text of the daily record rank of the intended application is preferentially uploaded Part.
In the embodiment of the present invention, the journal file of usual intended application can be with different daily record rank progress Storage, there is the grade of unusual condition for identifying this using running in daily record rank, such as, daily record Rank can be including " FATAL level point out that each grave error event will cause moving back for application program Go out ", " although ERROR level point out the event of making a mistake, but still not influenceing continuing to run with for system ", " situation that WARN level show that latent fault occurs ", " INFO level show message in coarseness level The running of application program is highlighted on not " etc..
One application there may be the other journal file of multiple journal stages, when uploading journal file, it is preferential on The high journal file of the daily record rank of intended application is passed, daily record rank height is the other journal file of the journal stage The system event of record may cause serious consequence, for example cause the event of system crash, cause to apply journey Event that sequence exits etc., it is preferential to upload the high daily record text of daily record rank in the case where network bandwidth limits Part, the utilization rate of network bandwidth can be improved.
It is further alternative, before detecting whether to have the upload demand of journal file, in addition to step S104-S105;
S104, detection terminal whether installation targets application;
S105, it is the target to server request if the terminal has installed the intended application Using target identification of the distribution for the intended application of terminal described in unique mark, a mark corresponding one One application of individual terminal.
In the embodiment of the present invention, system detectio terminal whether installation targets application, if detecting terminal After being applied through installation targets, user can be to one globally unique mark of server application when using the intended application Know unique marks of the symbol GUID as the intended application of the terminal, a mark corresponds to the one of a terminal Individual application, be same application when different terminals are installed, apllied mark is different, and server can be It is in real time an application generation mark of a terminal according to preset algorithm, the mark can be numeral and/or word Mother's combination.User's meeting generating routine running log during using intended application, and it is saved in local daily record In file.
The embodiment of the present invention, detects whether the upload demand that journal file be present, and the upload demand is server PUSH message triggers or the abnormal conditions triggering of terminal program operation, if there is the demand of upload, then obtains The target identification of the intended application of journal file to be uploaded, according to the target identification, obtain the day of intended application Will file, the journal file is uploaded onto the server, so that server analyzes and processes to journal file, The abnormal conditions that this mode triggers upload demand or terminal program operation by the PUSH message of server are touched Upload demand is sent out, the journal file of intended application can upload onto the server in time, it is real-time, it is convenient Developer's analyzing and positioning problem.
Fig. 2 is refer to, is the flow chart of the method for uploading of another journal file provided in an embodiment of the present invention, As illustrated, this method may include following steps S200-S203;
S200, detect whether to receive the log acquisition request of server push;
In the embodiment of the present invention, when needing some intended application operation conditions to some terminal to analyze, Asked according to GUID of the intended application in the terminal to terminal push log acquisition request, the log acquisition Middle carrying GUID.Optionally, log acquisition request can be PUSH message caused by PUSH technologies, should PUSH message is used to inform that user needs to upload journal file.
It should be noted that PUSH technologies are a kind of mechanism of foundation on client-server, exactly by taking Business device actively sends information to the technology of client.
S201, if receiving the log acquisition request of the server push, asked from the log acquisition In parse journal file to be uploaded intended application target identification.
, please from the log acquisition if receiving the log acquisition request of server push in the embodiment of the present invention The target identification of the intended application of journal file to be uploaded is parsed in asking, optionally, from PUSH message GUID is parsed, so as to which terminal can navigate to the intended application of journal file to be uploaded.
S202, according to the target identification, obtain the journal file of the intended application;
S203, the journal file is uploaded onto the server, so that the server enters to the journal file Row analyzing and processing.
Step of embodiment of the present invention S202-S203 refer to Fig. 1 embodiment step S102-S103, herein not Repeat again.
The embodiment of the present invention, detects whether the upload demand that journal file be present, and the upload demand is server PUSH message triggers or the abnormal conditions triggering of terminal program operation, if there is the demand of upload, then obtains The target identification of the intended application of journal file to be uploaded, according to the target identification, obtain the day of intended application Will file, the journal file is uploaded onto the server, so that server analyzes and processes to journal file, The abnormal conditions that this mode triggers upload demand or terminal program operation by the PUSH message of server are touched Upload demand is sent out, the journal file of intended application can upload onto the server in time, it is real-time, it is convenient Developer's analyzing and positioning problem.
Fig. 3 is refer to, is the flow chart of the method for uploading of another journal file provided in an embodiment of the present invention, As illustrated, this method may include following steps S300-S303;
S300, it whether there is abnormal conditions in detection terminal application program running;
In the embodiment of the present invention, in addition, during terminal operating application program, there may be abnormal feelings Condition, for example dodge and move back, ask failure etc..Whether therefore system detects in application program running in real time deposits In abnormal conditions.
S301, if there is abnormal conditions, acquisition produces the target identification of the intended application of the abnormal conditions.
In the embodiment of the present invention, if abnormal conditions in program operation process be present, system obtains generation, and this is different The target identification of the intended application of reason condition is, it is necessary to which explanation, the intended application for producing abnormal conditions may More than one, it is therefore desirable to obtain the target identification for each intended application for producing abnormal conditions.
It should be noted that the intended application can be recorded in when producing abnormal conditions in intended application running Journal file in, therefore in order to preferably position produce abnormal conditions the reason for, can be by the intended application Journal file upload onto the server and analyzed, optionally, terminal actively uploads different according to daily record rank Journal file, it is preferential to upload the high journal file of daily record rank.
S302, according to the target identification, obtain the journal file of the intended application;
S303, the journal file is uploaded onto the server, so that the server enters to the journal file Row analyzing and processing.
Step of embodiment of the present invention S302-S303 refer to Fig. 1 embodiment step S102-S103, herein not Repeat again.
The embodiment of the present invention, detects whether the upload demand that journal file be present, and the upload demand is server PUSH message triggers or the abnormal conditions triggering of terminal program operation, if there is the demand of upload, then obtains The target identification of the intended application of journal file to be uploaded, according to the target identification, obtain the day of intended application Will file, the journal file is uploaded onto the server, so that server analyzes and processes to journal file, The abnormal conditions that this mode triggers upload demand or terminal program operation by the PUSH message of server are touched Upload demand is sent out, the journal file of intended application can upload onto the server in time, it is real-time, it is convenient Developer's analyzing and positioning problem.
It should be noted that Fig. 2 of the present invention embodiment and Fig. 3 embodiment can be coordinations, Can be condition choice relation, such as, terminal detects whether to receive the log acquisition request of server push, If receiving log acquisition request, according to described in Fig. 2 embodiment, parsed from log acquisition request The target identification of the intended application of journal file to be uploaded, journal file is obtained according to target identification, and then will Journal file uploads onto the server, if terminal does not receive the log acquisition request of server push, detects It whether there is abnormal conditions in end application operating standard, if there is abnormal conditions, then according to Fig. 3 Embodiment described in, obtain produce abnormal conditions intended application target identification, obtained according to target identification Journal file, and then journal file is uploaded onto the server.
Below in conjunction with accompanying drawing 4- accompanying drawings 5, to a kind of upload device of journal file provided in an embodiment of the present invention Describe in detail.
Fig. 4 is refer to, is a kind of structural representation of the upload device of journal file provided in an embodiment of the present invention Figure, as illustrated, the upload device of the journal file includes first detection module 100, the first acquisition module 101st, the second module 102 and uploading module 103;
First detection module 100, for detecting whether the upload demand of journal file be present, the upload demand The abnormal conditions triggering run for server push message trigger or terminal program;
In the embodiment of the present invention, journal file is various application programs some caused records in the process of running The log file or file set of system operatio event, terminal detect whether the upload demand that journal file be present, It is that terminal detects whether to need to upload journal file.
Optionally, terminal detection mode can be to detect whether to receive the PUSH message of server transmission, i.e., The upload demand by server push message trigger, when research staff need to the installation of some terminal some During using being analyzed, you can the PUSH message for obtaining daily record is sent to the terminal by server.
Optionally, whether there are abnormal feelings when terminal detection mode can also be detection terminal operation application program Condition, for example dodge and move back or ask unsuccessfully etc., to be abnormal conditions triggering that the upload demand is run by numerous programs; If abnormal conditions be present, it is determined that the upload demand of journal file be present.
It should be noted that the detection mode for the upload demand that terminal detects whether to have journal file include but Above two mode is not limited to, can also be other modes, the present invention is 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, if depositing It is in the demand of upload, then automatic to upload, it is not necessary to which that, when user triggers feedback journal file, real-time is very strong.
Optionally, the first detection module 100 is specifically used for detecting whether to receive the day of server push Will obtains request;
In the embodiment of the present invention, when needing some intended application operation conditions to some terminal to analyze, Asked according to GUID of the intended application in the terminal to terminal push log acquisition request, the log acquisition Middle carrying GUID.Optionally, log acquisition request can be PUSH message caused by PUSH technologies, should PUSH message is used to inform that user needs to upload journal file.
It should be noted that PUSH technologies are a kind of mechanism of foundation on client-server, exactly by taking Business device actively sends information to the technology of client.
Optionally, the first detection module 100 specifically for being in detection terminal application program running It is no abnormal conditions to be present;
In the embodiment of the present invention, in addition, during terminal operating application program, there may be abnormal feelings Condition, for example dodge and move back, ask failure etc..Whether therefore system detects in application program running in real time deposits In abnormal conditions.
First acquisition module 101, for if there is the demand of upload, the target for obtaining journal file to be uploaded should Target identification;
In the embodiment of the present invention, if detecting there is the upload demand of journal file in terminal, obtain to be uploaded The target identification of the intended application of journal file, intended application refer to the intelligent operating systems such as ios, android Third party application.The journal file that the journal file generally uploaded is applied for some, and the journal file It has recorded this and apply some caused system operatio events in program operation process, it is necessary to illustrate, May sometime there are multiple applications and need to upload journal file and (for example while multiple applications appearance be present There are abnormal conditions in abnormal conditions, or an application, another application receives the daily record of server push Obtain request), now need to obtain the target identification of the intended application of each journal file to be uploaded, one should With a corresponding journal file.
Answered it should be noted that the target identification of intended application is used for one that one terminal of unique mark is installed With, be same application when different terminals are installed, their mark is different, the institute of same terminal installation Have also different between the mark of application.
Optionally, if first acquisition module 101 is specifically used for the daily record for receiving the server push Request is obtained, the target mark of the intended application of journal file to be uploaded is parsed from log acquisition request Know.
, please from the log acquisition if receiving the log acquisition request of server push in the embodiment of the present invention The target identification of the intended application of journal file to be uploaded is parsed in asking, optionally, from PUSH message GUID is parsed, so as to which terminal can navigate to the intended application of journal file to be uploaded.
Optionally, if first acquisition module 101 is specifically used for abnormal conditions being present, obtain described in producing The target identification of the intended application of abnormal conditions.
In the embodiment of the present invention, if abnormal conditions in program operation process be present, system obtains generation, and this is different The target identification of the intended application of reason condition is, it is necessary to which explanation, the intended application for producing abnormal conditions may More than one, it is therefore desirable to obtain the target identification for each intended application for producing abnormal conditions.
It should be noted that the intended application can be recorded in when producing abnormal conditions in intended application running Journal file in, therefore in order to preferably position produce abnormal conditions the reason for, can be by the intended application Journal file upload onto the server and analyzed, optionally, terminal actively uploads different according to daily record rank Journal file, it is preferential to upload the high journal file of daily record rank.
Second acquisition module 102, for according to the target identification, obtaining the journal file of the intended application;
In the embodiment of the present invention, according to the target identification of the intended application of journal file to be uploaded, the mesh is obtained The journal file of application is marked, the journal file for all applications that the terminal is installed is stored in terminal local, The journal file of each application uses the application identities of the application when terminal local stores to the day of the application Will file is identified, therefore when terminal local searches the journal file of intended application, can be according to the mesh The target identification of mark application carries out matched and searched.
Uploading module 103, for the journal file to be uploaded onto the server, so that the server is to described Journal file is analyzed and processed.
In the embodiment of the present invention, after the journal file of intended application is found, it can be incited somebody to action by network connection The journal file uploads onto the server, and developer can analyze and process to the journal file, to determine This applies the operation conditions in terminal.
Optionally, if the journal file of the intended application is stored with different daily record ranks;
The uploading module 103 is specifically used for according to the different daily record rank, preferentially uploads the target The high journal file of the daily record rank of application.
In the embodiment of the present invention, the journal file of usual intended application can be with different daily record rank progress Storage, there is the grade of unusual condition for identifying this using running in daily record rank, such as, daily record Rank can be including " FATAL level point out that each grave error event will cause moving back for application program Go out ", " although ERROR level point out the event of making a mistake, but still not influenceing continuing to run with for system ", " situation that WARN level show that latent fault occurs ", " INFO level show message in coarseness level The running of application program is highlighted on not " etc..
One application there may be the other journal file of multiple journal stages, when uploading journal file, it is preferential on The high journal file of the daily record rank of intended application is passed, daily record rank height is the other journal file of the journal stage The system event of record may cause serious consequence, for example cause the event of system crash, cause to apply journey Event that sequence exits etc., it is preferential to upload the high daily record text of daily record rank in the case where network bandwidth limits Part, the utilization rate of network bandwidth can be improved.
The embodiment of the present invention, detects whether the upload demand that journal file be present, and the upload demand is server PUSH message triggers or the abnormal conditions triggering of terminal program operation, if there is the demand of upload, then obtains The target identification of the intended application of journal file to be uploaded, according to the target identification, obtain the day of intended application Will file, the journal file is uploaded onto the server, so that server analyzes and processes to journal file, The abnormal conditions that this mode triggers upload demand or terminal program operation by the PUSH message of server are touched Upload demand is sent out, the journal file of intended application can upload onto the server in time, it is real-time, it is convenient Developer's analyzing and positioning problem.
It should be noted that the optional embodiment of two kinds of first detection module 100 can be coordination, Can also be condition choice relation, such as, terminal first detection module 100 detects whether to receive server The log acquisition request of push, if receiving log acquisition request, according to described in Fig. 2 embodiment, from The target identification of the intended application of journal file to be uploaded is parsed in log acquisition request, according to target identification Journal file is obtained, and then journal file is uploaded onto the server, if terminal first detection module 100 does not connect The log acquisition request of server push is received, then the detection terminal application program of first detection module 100 is run It whether there is abnormal conditions in code, if there is abnormal conditions, then according to described in Fig. 3 embodiment, obtain The target identification for the intended application for producing abnormal conditions is taken, journal file is obtained according to target identification, and then will Journal file uploads onto the server.
Fig. 5 is refer to, is the structural representation of the upload device of another journal file provided in an embodiment of the present invention Figure, as illustrated, the upload device of the journal file of the embodiment of the present invention includes first detection module 200, the One acquisition module 201, the second acquisition module 202, uploading module 203, the second detection module 204 and please Modulus block 205, wherein, first detection module 200, the first acquisition module 201, the second acquisition module 202, Uploading module 203 refer to Fig. 4 description, will not be repeated here.
Second detection module 204, for detection terminal whether installation targets application;
Request module 205, if having installed the intended application for the terminal, asked to server Distribute the target identification of the intended application for terminal described in unique mark for the intended application, one One application of the corresponding terminal of mark.
In the embodiment of the present invention, system detectio terminal whether installation targets application, if detecting terminal After being applied through installation targets, user can be to one globally unique mark of server application when using the intended application Know unique marks of the symbol GUID as the intended application of the terminal, a mark corresponds to the one of a terminal Individual application, be same application when different terminals are installed, apllied mark is different, and server can be It is in real time an application generation mark of a terminal according to preset algorithm, the mark can be numeral and/or word Mother's combination.User's meeting generating routine running log during using intended application, and it is saved in local daily record In file.
The embodiment of the present invention, detects whether the upload demand that journal file be present, and the upload demand is server PUSH message triggers or the abnormal conditions triggering of terminal program operation, if there is the demand of upload, then obtains The target identification of the intended application of journal file to be uploaded, according to the target identification, obtain the day of intended application Will file, the journal file is uploaded onto the server, so that server analyzes and processes to journal file, The abnormal conditions that this mode triggers upload demand or terminal program operation by the PUSH message of server are touched Upload demand is sent out, the journal file of intended application can upload onto the server in time, it is real-time, it is convenient Developer's analyzing and positioning problem.
One of ordinary skill in the art will appreciate that all or part of flow in above-described embodiment method is realized, It is that by computer program the hardware of correlation can be instructed to complete, described program can be stored in a calculating In machine read/write memory medium, program corresponding to the upload device of journal file shown in accompanying drawing 4- accompanying drawings 5 can deposit Storage is in the readable storage medium storing program for executing of terminal, and by least one computing device in the terminal, with realization The method for uploading of journal file is stated, this method includes the flow described in embodiment of the method in Fig. 1-Fig. 3.Wherein, Described storage medium can be magnetic disc, CD, read-only memory (Read-Only Memory, ROM) Or random access memory (Random Access Memory, RAM) etc..
Above disclosure is only preferred embodiment of present invention, can not limit the present invention's with this certainly Interest field, therefore the equivalent variations made according to the claims in the present invention, still belong to the scope that the present invention is covered.

Claims (10)

  1. A kind of 1. method for uploading of journal file, it is characterised in that including:
    The upload demand that journal file be present is detected whether, the upload demand is server push message trigger Or the abnormal conditions triggering of terminal program operation;
    If there is the demand of upload, the target identification of the intended application of journal file to be uploaded is obtained;
    According to the target identification, the journal file of the intended application is obtained;
    The journal file is uploaded onto the server, so that the server is analyzed the journal file Processing.
  2. 2. the method as described in claim 1, it is characterised in that if the upload demand is server push Message trigger;
    The upload demand for detecting whether to have journal file, including:
    Detect whether that the log acquisition for receiving server push is asked;
    It is described if there is the demand of upload, obtain the target identification of the intended application of journal file to be uploaded, bag Include:
    If receiving the log acquisition request of the server push, parsed from log acquisition request Go out the target identification of the intended application of journal file to be uploaded.
  3. 3. the method as described in claim 1, it is characterised in that if the upload demand is transported for terminal program Capable abnormal conditions triggering;
    The upload demand for detecting whether to have journal file, including:
    It whether there is abnormal conditions in detection terminal application program running;
    It is described if there is the demand of upload, obtain the target identification of the intended application of journal file to be uploaded, bag Include:
    If there is abnormal conditions, acquisition produces the target identification of the intended application of the abnormal conditions.
  4. 4. the method as described in claim 1-3 any one, it is characterised in that described to detect whether exist Before the upload demand of journal file, in addition to:
    Detection terminal whether installation targets application;
    It is the intended application point to server request if the terminal has installed the intended application It is used in the target identification of the intended application of terminal described in unique mark, the corresponding terminal of a mark One application.
  5. 5. method as claimed in claim 4, it is characterised in that if the journal file of the intended application with Different daily record ranks are stored;
    It is described that the journal file uploads onto the server, including:
    According to the different daily record rank, the high daily record text of the daily record rank of the intended application is preferentially uploaded Part.
  6. A kind of 6. upload device of journal file, it is characterised in that including:
    First detection module, for detecting whether the upload demand of journal file be present, the upload demand is Server push message trigger or the abnormal conditions triggering of terminal program operation;
    First acquisition module, for if there is the demand of upload, obtaining the intended application of journal file to be uploaded Target identification;
    Second acquisition module, for according to the target identification, obtaining the journal file of the intended application;
    Uploading module, for the journal file to be uploaded onto the server, so that the server is to the day Will file is analyzed and processed.
  7. 7. device as claimed in claim 6, it is characterised in that if the upload demand is server push Message trigger;
    The first detection module is specifically used for detecting whether the log acquisition for receiving server push request;
    If first acquisition module is specifically used for the log acquisition request for receiving the server push, The target identification of the intended application of journal file to be uploaded is parsed from log acquisition request.
  8. 8. device as claimed in claim 6, it is characterised in that if the upload demand is transported for terminal program Capable abnormal conditions triggering;
    The first detection module is specifically used for whether there is abnormal feelings in detection terminal application program running Condition;
    First acquisition module is specifically used for, if there is abnormal conditions, obtaining and producing the abnormal conditions The target identification of intended application.
  9. 9. the device as described in claim 6-8 any one, it is characterised in that described device also includes:
    Second detection module, for detection terminal whether installation targets application;
    Request module, if having installed the intended application for the terminal, it is to server request The intended application distributes the target identification of the intended application for terminal described in unique mark, a mark Know an application of a corresponding terminal.
  10. 10. device as claimed in claim 9, it is characterised in that if the journal file of the intended application Stored with different daily record ranks;
    The uploading module is specifically used for according to the different daily record rank, preferentially uploads the intended application The high journal file of daily record rank.
CN201610379980.XA 2016-05-31 2016-05-31 A kind of method for uploading and device of journal file Active CN107453889B (en)

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 true CN107453889A (en) 2017-12-08
CN107453889B 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)

Cited By (14)

* Cited by examiner, † Cited by third party
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
CN108306771A (en) * 2018-02-09 2018-07-20 腾讯科技(深圳)有限公司 Log reporting method, apparatus and system
CN109039724A (en) * 2018-07-23 2018-12-18 北京奇艺世纪科技有限公司 Log method for uploading and device
CN109086158A (en) * 2018-08-29 2018-12-25 腾讯科技(深圳)有限公司 A kind of Analysis on Abnormal method, apparatus and server
CN109167681A (en) * 2018-08-07 2019-01-08 北京云迹科技有限公司 Method for monitoring state and device
CN110059064A (en) * 2019-03-20 2019-07-26 北京字节跳动网络技术有限公司 Journal file processing method, device and computer readable storage medium
CN110399350A (en) * 2018-04-19 2019-11-01 沪江教育科技(上海)股份有限公司 Processing method, device, storage medium and the electronic equipment of log information
CN110740447A (en) * 2019-10-22 2020-01-31 福州汇思博信息技术有限公司 remote log grabbing method for Android terminal
CN111147296A (en) * 2019-12-24 2020-05-12 北京奇艺世纪科技有限公司 Information acquisition method and device
CN111190755A (en) * 2019-08-01 2020-05-22 腾讯科技(深圳)有限公司 Application program function exception handling 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
CN112214463A (en) * 2019-07-12 2021-01-12 中科云谷科技有限公司 Monitoring method, device and system of GPS terminal and storage medium
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 (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101272276A (en) * 2008-04-22 2008-09-24 深圳国人通信有限公司 Log management implementing method
JP2009265823A (en) * 2008-04-23 2009-11-12 Yokogawa Digital Computer Corp Information terminal device and log data acquisition program
CN102368709A (en) * 2011-09-02 2012-03-07 深圳中兴网信科技有限公司 Log acquisition method and apparatus thereof
CN103973785A (en) * 2014-05-07 2014-08-06 Tcl集团股份有限公司 Log reading system based on P2P and method 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
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
CN105204969A (en) * 2014-06-30 2015-12-30 腾讯科技(深圳)有限公司 Abnormal log processing method and abnormal log processing device
WO2016045203A1 (en) * 2014-09-22 2016-03-31 深圳Tcl新技术有限公司 Terminal fault correction method and system

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101272276A (en) * 2008-04-22 2008-09-24 深圳国人通信有限公司 Log management implementing method
JP2009265823A (en) * 2008-04-23 2009-11-12 Yokogawa Digital Computer Corp Information terminal device and log data acquisition program
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
CN105204969A (en) * 2014-06-30 2015-12-30 腾讯科技(深圳)有限公司 Abnormal log processing method and abnormal log processing device
WO2016045203A1 (en) * 2014-09-22 2016-03-31 深圳Tcl新技术有限公司 Terminal fault correction method 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

Cited By (19)

* Cited by examiner, † Cited by third party
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
CN108306771A (en) * 2018-02-09 2018-07-20 腾讯科技(深圳)有限公司 Log reporting method, apparatus and system
CN110399350A (en) * 2018-04-19 2019-11-01 沪江教育科技(上海)股份有限公司 Processing method, device, storage medium and the electronic equipment of log information
CN109039724A (en) * 2018-07-23 2018-12-18 北京奇艺世纪科技有限公司 Log method for uploading and device
CN109039724B (en) * 2018-07-23 2022-02-01 北京奇艺世纪科技有限公司 Log uploading method and device
CN109167681A (en) * 2018-08-07 2019-01-08 北京云迹科技有限公司 Method for monitoring state 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
CN109086158A (en) * 2018-08-29 2018-12-25 腾讯科技(深圳)有限公司 A kind of Analysis on Abnormal method, apparatus and server
CN110059064A (en) * 2019-03-20 2019-07-26 北京字节跳动网络技术有限公司 Journal file processing method, 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
CN111190755A (en) * 2019-08-01 2020-05-22 腾讯科技(深圳)有限公司 Application program function exception handling method and device
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
CN111147296A (en) * 2019-12-24 2020-05-12 北京奇艺世纪科技有限公司 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
CN115277382B (en) * 2022-07-27 2024-06-04 腾讯音乐娱乐科技(深圳)有限公司 Log acquisition method, log platform and computer program product

Also Published As

Publication number Publication date
CN107453889B (en) 2019-06-07

Similar Documents

Publication Publication Date Title
CN107453889A (en) The method for uploading and device of a kind of journal file
CN106062719B (en) It is analyzed according to the service measure for the structuring logging mode for using data
CN110554930B (en) Data storage method and related equipment
CN111899016A (en) Quality data processing method and device based on block chain
EP3258653A1 (en) Message pushing method and device
CN112559475B (en) Data real-time capturing and transmitting method and system
CN112131050B (en) Disaster recovery switching method and device, storage medium and computer equipment
CN112737800B (en) Service node fault positioning method, call chain generating method and server
CN110063042B (en) Database fault response method and terminal thereof
CN113572757B (en) Server access risk monitoring method and device
CN103348557B (en) Field-responsive system
CN108228417B (en) Internet of vehicles log processing method and device
CN113411209A (en) Distributed password service full-link detection system and method
CN112256490A (en) Data processing method and device
CN113472881B (en) Statistical method and device for online terminal equipment
CN114492491B (en) Data management system for NFC label application
KR101288535B1 (en) Method for monitoring communication system and apparatus therefor
CN114416420A (en) Equipment problem feedback method and system
CN111427736A (en) Log monitoring method, device, equipment and computer readable storage medium
CN114416560A (en) Program crash analysis aggregation method and system
CN109491921B (en) Management method and system of buried point information
CN111611132A (en) Operation and maintenance analysis method, device, equipment and medium for service
CN117411929B (en) Business process monitoring method, device, equipment and storage medium
CN109559181A (en) Order data acquisition method and device
CN111061687B (en) Abnormal data positioning method, device and system

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