CN104184599A - Log level-based log file uploading method and device - Google Patents

Log level-based log file uploading method and device Download PDF

Info

Publication number
CN104184599A
CN104184599A CN201310190987.3A CN201310190987A CN104184599A CN 104184599 A CN104184599 A CN 104184599A CN 201310190987 A CN201310190987 A CN 201310190987A CN 104184599 A CN104184599 A CN 104184599A
Authority
CN
China
Prior art keywords
journal file
tcp
daily record
short connection
connection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201310190987.3A
Other languages
Chinese (zh)
Inventor
刘振桂
罗星
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Baidu Online Network Technology Beijing Co Ltd
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201310190987.3A priority Critical patent/CN104184599A/en
Publication of CN104184599A publication Critical patent/CN104184599A/en
Pending legal-status Critical Current

Links

Abstract

The invention provides a log level-based log file uploading method and a device. Through determining a to-be-uploaded log file, the log level of the log file is thus acquired, and the log file is uploaded to cloud equipment through TCP-based long connection or TCP-based short connection built with the cloud equipment according to the log level. As the uploading path is selected according to the log level of the log file, the client can flexibly select whether to upload the log file through TCP-based long connection or through TCP-based short connection, and uploading flexibility is thus improved.

Description

Based on daily record level other journal file method for uploading and device
[technical field]
The present invention relates to journal file uploading file, relate in particular to a kind of based on daily record level other journal file method for uploading and device.
[background technology]
Along with the development of the communication technology, increasing function that terminal is integrated, thus make to have comprised in the systemic-function of terminal more and more corresponding application programs.The client of some application program can produce some log files for register system Action Events or file set in running, is called journal file, for example, and Baidu's map, Baidu's search etc.
In prior art, client can be passed through the short connection of HTML (Hypertext Markup Language) (Hypertext Transfer Protocol, HTTP), to high in the clouds equipment, uploads the journal file that this client produces.This mode of uploading, flexibility is not high.
[summary of the invention]
It is a kind of based on daily record level other journal file method for uploading and device that many aspects of the present invention provide, in order to improve the flexibility of uploading.
An aspect of of the present present invention, provides a kind of based on other journal file method for uploading of daily record level, comprising:
Determine journal file to be uploaded;
Obtain the daily record rank of described journal file;
According to described daily record rank, by with high in the clouds equipment between set up based on TCP long, be connected or short connection based on TCP, to described high in the clouds equipment, upload described journal file.
Aspect as above and arbitrary possible implementation, further provide a kind of implementation, and described long connection the based on TCP comprises that the long connection of TCP or HTTP length connect.
Aspect as above and arbitrary possible implementation, further provide a kind of implementation, and the described short connection based on TCP comprises the short connection of TCP or the short connection of HTTP.
Aspect as above and arbitrary possible implementation, further provide a kind of implementation, and described definite journal file to be uploaded, comprising:
According to filter condition, determine the journal file that does not meet described filter condition, using as journal file to be uploaded; Or
According to constraints, determine the journal file that meets described constraints, using as journal file to be uploaded.
Aspect as above and arbitrary possible implementation, further provide a kind of implementation, and described method also comprises:
Receive the described filter condition that described high in the clouds equipment sends by described long connection or described short connection; Or
Receive the described constraints that described high in the clouds equipment sends by described long connection or described short connection.
Aspect as above and arbitrary possible implementation, a kind of implementation is further provided, described according to described daily record rank, by with high in the clouds equipment between set up based on TCP long, be connected or short connection based on TCP, before uploading described journal file to described high in the clouds equipment, also comprise:
Receive described high in the clouds equipment by described long connection or the daily record rank of described short connection transmission and the corresponding relation of connected mode, described connected mode comprises long connection or short connection.
Aspect as above and arbitrary possible implementation, a kind of implementation is further provided, described according to described daily record rank, by with high in the clouds equipment between set up based on TCP long, be connected or short connection based on TCP, to described high in the clouds equipment, upload described journal file, comprising:
According to described corresponding relation and described daily record rank, determine the connected mode corresponding with described daily record rank;
According to described connected mode, by with high in the clouds equipment between set up based on TCP long, be connected or short connection based on TCP, to described high in the clouds equipment, upload described journal file.
Another aspect of the present invention, provides a kind of and uploads device based on other journal file of daily record level, comprising:
Determining unit, for determining journal file to be uploaded;
Obtain unit, for obtaining the daily record rank of described journal file;
Uploading unit, for according to described daily record rank, by with high in the clouds equipment between set up based on TCP long, be connected or short connection based on TCP, to described high in the clouds equipment, upload described journal file.
Aspect as above and arbitrary possible implementation, further provide a kind of implementation, and described long connection the based on TCP comprises that the long connection of TCP or HTTP length connect.
Aspect as above and arbitrary possible implementation, further provide a kind of implementation, and the described short connection based on TCP comprises the short connection of TCP or the short connection of HTTP.
Aspect as above and arbitrary possible implementation, further provide a kind of implementation, described determining unit, specifically for
According to filter condition, determine the journal file that does not meet described filter condition, using as journal file to be uploaded; Or
According to constraints, determine the journal file that meets described constraints, using as journal file to be uploaded.
Aspect as above and arbitrary possible implementation, further provide a kind of implementation, and described device also comprises condition reception unit, for
Receive the described filter condition that described high in the clouds equipment sends by described long connection or described short connection; Or
Receive the described constraints that described high in the clouds equipment sends by described long connection or described short connection.
Aspect as above and arbitrary possible implementation, further provide a kind of implementation, and described device also comprises and be related to receiving element, for
Receive described high in the clouds equipment by described long connection or the daily record rank of described short connection transmission and the corresponding relation of connected mode, described connected mode comprises long connection or short connection.
Aspect as above and arbitrary possible implementation, further provide a kind of implementation, described uploading unit, specifically for
According to described corresponding relation and described daily record rank, determine the connected mode corresponding with described daily record rank; And according to described connected mode, by with high in the clouds equipment between set up based on TCP long, be connected or short connection based on TCP, to described high in the clouds equipment, upload described journal file.
As shown from the above technical solution, the embodiment of the present invention is by determining journal file to be uploaded, and then obtain the daily record rank of described journal file, make it possible to according to described daily record rank, by with high in the clouds equipment between set up based on TCP long, be connected or short connection based on TCP, to described high in the clouds equipment, upload described journal file, due to according to the daily record rank of journal file, to uploading path, select, therefore, it is to upload journal file by long connection the based on TCP that client can be selected neatly, or upload journal file by the short connection based on TCP, thereby improved the flexibility of uploading.
[accompanying drawing explanation]
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The schematic flow sheet based on other journal file method for uploading of daily record level that Fig. 1 provides for one embodiment of the invention;
Fig. 2 uploads the structural representation of device for what another embodiment of the present invention provided based on other journal file of daily record level;
Fig. 3 uploads the structural representation of device for what another embodiment of the present invention provided based on other journal file of daily record level;
Fig. 4 uploads the structural representation of device for what another embodiment of the present invention provided based on other journal file of daily record level.
[embodiment]
For making object, technical scheme and the advantage of the embodiment of the present invention clearer, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
It should be noted that, in the embodiment of the present invention, related terminal can include but not limited to mobile phone, personal digital assistant (Personal Digital Assistant, PDA), wireless handheld device, wireless Internet access basis, PC, portable computer, MP3 player, MP4 player etc.
In addition, term "and/or", is only a kind of incidence relation of describing affiliated partner herein, and expression can exist three kinds of relations, and for example, A and/or B, can represent: individualism A exists A and B, these three kinds of situations of individualism B simultaneously.In addition, character "/", generally represents that forward-backward correlation is to liking a kind of relation of "or" herein.
The schematic flow sheet based on other journal file method for uploading of daily record level that Fig. 1 provides for one embodiment of the invention, as shown in Figure 1.
101, determine journal file to be uploaded.
102, obtain the daily record rank of described journal file.
103, according to described daily record rank, by and high in the clouds equipment between set up based on transmission control protocol (Transmission Control Protocol, TCP) long, connect or short connection based on TCP, to described high in the clouds equipment, upload described journal file.
It should be noted that, 101~103 executive agent can be log processing device, can be arranged in local client.
Be understandable that, described client can be mounted in the application program in terminal, or can also be a webpage of browser, if can provide service objective reality form can, the present embodiment does not limit this.
It should be noted that, described client, refers to that unique user ID such as utilizing same user account or user identity carries out registered user at network side, the client of using, and being not limited to is to operate in same terminal, the present embodiment does not limit this.
Like this, by determining journal file to be uploaded, and then obtain the daily record rank of described journal file, make it possible to according to described daily record rank, by with high in the clouds equipment between set up based on TCP long, be connected or short connection based on TCP, to described high in the clouds equipment, upload described journal file, due to according to the daily record rank of journal file, to uploading path, select, therefore, it is to upload journal file by long connection the based on TCP that client can be selected neatly, or upload journal file by the short connection based on TCP, thereby improved the flexibility of uploading.
In addition, adopt technical scheme provided by the invention, can to uploading path, select according to the daily record rank of journal file, making to upload journal file by the long connection based on TCP becomes possibility, like this, can further improve the real-time of uploading.
So-called based on the long of TCP, connect, refer to after setting up socket (SOCKET) connects no matter whether use and all keeps connection, that is to say, in a connection, can send continuously a plurality of packets, during connecting maintenance, if there is no Packet Generation, need both sides to send out link detecting bag.For example, TCP is long connects or the isometric connection of the long connection of HTTP.Keep connecting having saved as each request and set up the new required time that connects, also saved bandwidth.Compare with long connection of HTTP, adopt long connection of TCP to upload journal file, without the protocol header data of extra package application layer, for example, HTTP data, therefore, can further reduce the data volume of uploading.
The so-called short connection based on TCP, refer to after receiving data after sending after setting up SOCKET connects and disconnect at once, that is to say, refer to when communicating pair has data interaction, just set up a connection, after data are sent completely, disconnect this and connect, i.e. each connection only completes the transmission of a business.For example, the short connection of TCP comprises the short connections such as the short connection of TCP or the short connection of HTTP.
Alternatively, in one of the present embodiment possible implementation, in 101, can adopt filter type to carry out determining of journal file to be uploaded.Specifically can determine the journal file that does not meet described filter condition according to filter condition, using as journal file to be uploaded.
Further, carrying out before 101, can also further receive described high in the clouds equipment by the described filter condition that described length connects or described short connection sends.For example, receive the cloud instruction that high in the clouds equipment sends, in described cloud instruction, comprise filtration (Filter) field, be used to indicate described filter condition.
Alternatively, in one of the present embodiment possible implementation, in 101, can adopt screening mode to carry out determining of journal file to be uploaded.Specifically can also determine the journal file that meets described constraints according to constraints, using as journal file to be uploaded.
Further, carrying out before 101, can also further receive described high in the clouds equipment by the described constraints that described length connects or described short connection sends.For example, receive the cloud instruction that high in the clouds equipment sends, in described cloud instruction, comprise bind field, be used to indicate described constraints.
Particularly, the journal file in the present embodiment can be divided three classes, as follows:
Log Types 1: first kind journal file, for the operational circumstances of recording user, as click certain function button etc.;
Log Types 2: Equations of The Second Kind journal file, for the ruuning situation of logging software, as debugging situation, alarm situation, error situation etc.;
3: the three class journal files of Log Types, for the performance situation of logging software, as page load time etc.
For example, described filter condition can so that the journal file that meets described filter condition is filtered out, thereby be determined the journal file not being filtered for the Log Types of needs filtration, usings as journal file to be uploaded.
Or more for example, the Log Types that described constraints can be uploaded for needs, so that the journal file that meets described constraints is filtered out, thereby determines the journal file filtering out, and usings as journal file to be uploaded.
Alternatively, in one of the present embodiment possible implementation, before 103, the daily record rank that further the described high in the clouds of reception equipment sends by described long connection or described short connection and the corresponding relation of connected mode, described connected mode comprises long connection or short connection.For example, receive the cloud instruction that high in the clouds equipment sends, in described cloud instruction, comprise rank (Level) field, be used to indicate described corresponding relation, concrete form is key & value couple, key (key) is corresponding daily record rank, other connected mode of value (value) daily record level for this reason.
Wherein, the corresponding relation of described daily record rank and connected mode can be as shown in the table.
The corresponding relation of table daily record rank and connected mode
It should be noted that, in the present embodiment, specifically can arrange the daily record rank of journal file by client and high in the clouds equipment, or by operating personnel, be arranged the daily record rank of journal file, the present embodiment does not limit this.
Like this, in 103, specifically can, according to described corresponding relation and described daily record rank, determine the connected mode corresponding with described daily record rank.Then, can be further according to described connected mode, by with high in the clouds equipment between set up based on TCP long, be connected or short connection based on TCP, to described high in the clouds equipment, upload described journal file.
Be understandable that, in same cloud instruction, can comprise a plurality of fields, to indicate different information.For example, in same cloud instruction, comprise filtration (Filter) field and rank (Level) field, to indicate filter condition and corresponding relation,
In above-mentioned example, filter condition is the journal file that need to filter Log Types 1 and 2, and corresponding relation is the corresponding connected mode 1 of daily record rank 1, the corresponding connected mode 2 of daily record rank 3.
It should be noted that, the form of the journal file in the present embodiment can self-defining be the form that various both sides can identify, and the present embodiment does not limit this.
The form of the journal file of for example, uploading by the short connection of HTTP can be as follows:
{"head":{"pd":"map","os":"android","mb":"T1301","sv":"2.0.0","ov":"2.3.0","im":"35080000000001","sw":400,"sh":800,"ch":1001,"ver":1},"log":[{"tm":"1329408180","lt":1,"act":"open?Navigation"},{"tm":"1329408190","lt":1,"act":"close?Navigation"},{…}]};
Or, more for example, by TCP grow connect the form of the journal file of uploading can be as follows:
{"sv":"4.6.0","deviceid":"354286012c53983b13ec604396fc77a0","os":"iph?one","sw":320,"ch":"1099a","pd":"map","mb":"x86_64","sh":480,"ov":"5.000000","ver":"2","log":{"lt":1,"tm":1363656449,"net":1,"act":"map_paopao_detail_se?arch"}}。
In the present embodiment, by determining journal file to be uploaded, and then obtain the daily record rank of described journal file, make it possible to according to described daily record rank, by with high in the clouds equipment between set up based on TCP long, be connected or short connection based on TCP, to described high in the clouds equipment, upload described journal file, due to according to the daily record rank of journal file, to uploading path, select, therefore, it is to upload journal file by long connection the based on TCP that client can be selected neatly, or upload journal file by the short connection based on TCP, thereby improved the flexibility of uploading.
In addition, adopt technical scheme provided by the invention, can to uploading path, select according to the daily record rank of journal file, making to upload journal file by the long connection based on TCP becomes possibility, like this, can further improve the real-time of uploading.
It should be noted that, for aforesaid each embodiment of the method, for simple description, therefore it is all expressed as to a series of combination of actions, but those skilled in the art should know, the present invention is not subject to the restriction of described sequence of movement, because according to the present invention, some step can adopt other orders or carry out simultaneously.Secondly, those skilled in the art also should know, the embodiment described in specification all belongs to preferred embodiment, and related action and module might not be that the present invention is necessary.
In the above-described embodiments, the description of each embodiment is all emphasized particularly on different fields, in certain embodiment, there is no the part of detailed description, can be referring to the associated description of other embodiment.
Fig. 2 uploads the structural representation of device for what another embodiment of the present invention provided based on other journal file of daily record level, as shown in Figure 2.The uploading device based on other journal file of daily record level and can comprise determining unit 21, obtain unit 22 and uploading unit 23 of the present embodiment.Wherein, determining unit 21, for determining journal file to be uploaded; Obtain unit 22, for obtaining the daily record rank of described journal file; Uploading unit 23, for according to described daily record rank, by with high in the clouds equipment between set up based on TCP long, be connected or short connection based on TCP, to described high in the clouds equipment, upload described journal file.
It should be noted that, the device that the present embodiment provides can be log processing device, can be arranged in local client.
Be understandable that, described client can be mounted in the application program in terminal, or can also be a webpage of browser, if can provide service objective reality form can, the present embodiment does not limit this.
It should be noted that, described client, refers to that unique user ID such as utilizing same user account or user identity carries out registered user at network side, the client of using, and being not limited to is to operate in same terminal, the present embodiment does not limit this.
Like this, by determining unit, determine journal file to be uploaded, and then obtain the daily record rank of described journal file, make the uploading unit can be according to described daily record rank, by with high in the clouds equipment between set up based on TCP long, be connected or short connection based on TCP, to described high in the clouds equipment, upload described journal file, due to according to the daily record rank of journal file, to uploading path, select, therefore, it is to upload journal file by long connection the based on TCP that client can be selected neatly, or upload journal file by the short connection based on TCP, thereby improved the flexibility of uploading.
In addition, adopt technical scheme provided by the invention, can to uploading path, select according to the daily record rank of journal file, making to upload journal file by the long connection based on TCP becomes possibility, like this, can further improve the real-time of uploading.
So-called based on the long of TCP, connect, refer to after setting up socket (SOCKET) connects no matter whether use and all keeps connection, that is to say, in a connection, can send continuously a plurality of packets, during connecting maintenance, if there is no Packet Generation, need both sides to send out link detecting bag.For example, TCP is long connects or the isometric connection of the long connection of HTTP.Keep connecting having saved as each request and set up the new required time that connects, also saved bandwidth.Compare with long connection of HTTP, adopt long connection of TCP to upload journal file, without the protocol header data of extra package application layer, for example, HTTP data, therefore, can further reduce the data volume of uploading.
The so-called short connection based on TCP, refer to after receiving data after sending after setting up SOCKET connects and disconnect at once, that is to say, refer to when communicating pair has data interaction, just set up a connection, after data are sent completely, disconnect this and connect, i.e. each connection only completes the transmission of a business.For example, the short connection of TCP comprises the short connections such as the short connection of TCP or the short connection of HTTP.
Alternatively, in one of the present embodiment possible implementation, described determining unit 21 can adopt filter type to carry out determining of journal file to be uploaded.Described determining unit 21 specifically can be determined the journal file that does not meet described filter condition according to filter condition, usings as journal file to be uploaded.
Further, as shown in Figure 3, the present embodiment provides uploads device based on other journal file of daily record level and can further include condition reception unit 31, for receiving described high in the clouds equipment by described long connection or described filter condition that described short connection sends.For example, described condition reception unit 31 receives the cloud instruction that high in the clouds equipment sends, and comprises filtration (Filter) field in described cloud instruction, is used to indicate described filter condition.
Alternatively, in one of the present embodiment possible implementation, described determining unit 21 can adopt screening mode to carry out determining of journal file to be uploaded.Described determining unit 21 specifically can also be determined the journal file that meets described constraints according to constraints, usings as journal file to be uploaded.
Further, described condition reception unit 31, or the described constraints that can also send by described long connection or described short connection for receiving described high in the clouds equipment.For example, described condition reception unit 31 receives the cloud instruction that high in the clouds equipment sends, and in described cloud instruction, comprises bind field, is used to indicate described constraints.
Particularly, the journal file in the present embodiment can be divided three classes, as follows:
Log Types 1: first kind journal file, for the operational circumstances of recording user, as click certain function button etc.;
Log Types 2: Equations of The Second Kind journal file, for the ruuning situation of logging software, as debugging situation, alarm situation, error situation etc.;
3: the three class journal files of Log Types, for the performance situation of logging software, as page load time etc.
For example, described filter condition can so that the journal file that meets described filter condition is filtered out, thereby be determined the journal file not being filtered for the Log Types of needs filtration, usings as journal file to be uploaded.
Or more for example, the Log Types that described constraints can be uploaded for needs, so that the journal file that meets described constraints is filtered out, thereby determines the journal file filtering out, and usings as journal file to be uploaded.
Alternatively, in one of the present embodiment possible implementation, as shown in Figure 4, the present embodiment provides uploads device based on other journal file of daily record level and can further include and be related to receiving element 41, for receiving described high in the clouds equipment by described long connection or the daily record rank of described short connection transmission and the corresponding relation of connected mode, described connected mode comprises long connection or short connection.For example, the described cloud instruction that is related to that receiving element 41 reception high in the clouds equipment send, in described cloud instruction, comprise rank (Level) field, be used to indicate described corresponding relation, concrete form is key & value couple, key (key) is corresponding daily record rank, other connected mode of value (value) daily record level for this reason.
Wherein, the corresponding relation of described daily record rank and connected mode can be as shown in the table.
The corresponding relation of table daily record rank and connected mode
It should be noted that, in the present embodiment, specifically can arrange the daily record rank of journal file by client and high in the clouds equipment, or by operating personnel, be arranged the daily record rank of journal file, the present embodiment does not limit this.
Like this, described uploading unit 23, specifically can, for according to described corresponding relation and described daily record rank, determine the connected mode corresponding with described daily record rank; And according to described connected mode, by with high in the clouds equipment between set up based on TCP long, be connected or short connection based on TCP, to described high in the clouds equipment, upload described journal file.
Be understandable that, in same cloud instruction, can comprise a plurality of fields, to indicate different information.For example, in same cloud instruction, comprise filtration (Filter) field and rank (Level) field, to indicate filter condition and corresponding relation,
In above-mentioned example, filter condition is the journal file that need to filter Log Types 1 and 2, and corresponding relation is the corresponding connected mode 1 of daily record rank 1, the corresponding connected mode 2 of daily record rank 3.
It should be noted that, the form of the journal file in the present embodiment can self-defining be the form that various both sides can identify, and the present embodiment does not limit this.
The form of the journal file of for example, uploading by the short connection of HTTP can be as follows:
{"head":{"pd":"map","os":"android","mb":"T1301","sv":"2.0.0","ov":"2.3.0","im":"35080000000001","sw":400,"sh":800,"ch":1001,"ver":1},"log":[{"tm":"1329408180","lt":1,"act":"open?Navigation"},{"tm":"1329408190","lt":1,"act":"close?Navigation"},{…}]};
Or, more for example, by TCP grow connect the form of the journal file of uploading can be as follows:
{"sv":"4.6.0","deviceid":"354286012c53983b13ec604396fc77a0","os":"iph?one","sw":320,"ch":"1099a","pd":"map","mb":"x86_64","sh":480,"ov":"5.000000","ver":"2","log":{"lt":1,"tm":1363656449,"net":1,"act":"map_paopao_detail_se?arch"}}。
In the present embodiment, by determining unit, determine journal file to be uploaded, and then obtain the daily record rank of described journal file, make the uploading unit can be according to described daily record rank, by with high in the clouds equipment between set up based on TCP long, be connected or short connection based on TCP, to described high in the clouds equipment, upload described journal file, due to according to the daily record rank of journal file, to uploading path, select, therefore, it is to upload journal file by long connection the based on TCP that client can be selected neatly, or upload journal file by the short connection based on TCP, thereby improved the flexibility of uploading.
In addition, adopt technical scheme provided by the invention, can to uploading path, select according to the daily record rank of journal file, making to upload journal file by the long connection based on TCP becomes possibility, like this, can further improve the real-time of uploading.
Those skilled in the art can be well understood to, for convenience and simplicity of description, the system of foregoing description, the specific works process of device and unit, can, with reference to the corresponding process in preceding method embodiment, not repeat them here.
In several embodiment provided by the present invention, should be understood that, disclosed system, apparatus and method, can realize by another way.For example, device embodiment described above is only schematic, for example, the division of described unit, be only that a kind of logic function is divided, during actual realization, can have other dividing mode, for example a plurality of unit or assembly can in conjunction with or can be integrated into another system, or some features can ignore, or do not carry out.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, indirect coupling or the communication connection of device or unit can be electrically, machinery or other form.
The described unit as separating component explanation can or can not be also physically to separate, and the parts that show as unit can be or can not be also physical locations, can be positioned at a place, or also can be distributed in a plurality of network element.Can select according to the actual needs some or all of unit wherein to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can be also that the independent physics of unit exists, and also can be integrated in a unit two or more unit.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form that also can adopt hardware to add SFU software functional unit realizes.
The integrated unit that the above-mentioned form with SFU software functional unit realizes, can be stored in a computer read/write memory medium.Above-mentioned SFU software functional unit is stored in a storage medium, comprise that some instructions are with so that a computer installation (can be personal computer, server, or network equipment etc.) or processor (processor) carry out the part steps of method described in each embodiment of the present invention.And aforesaid storage medium comprises: various media that can be program code stored such as USB flash disk, portable hard drive, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disc or CDs.
Finally it should be noted that: above embodiment only, in order to technical scheme of the present invention to be described, is not intended to limit; Although the present invention is had been described in detail with reference to previous embodiment, those of ordinary skill in the art is to be understood that: its technical scheme that still can record aforementioned each embodiment is modified, or part technical characterictic is wherein equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (14)

1. based on other journal file method for uploading of daily record level, it is characterized in that, comprising:
Determine journal file to be uploaded;
Obtain the daily record rank of described journal file;
According to described daily record rank, by with high in the clouds equipment between set up based on TCP long, be connected or short connection based on TCP, to described high in the clouds equipment, upload described journal file.
2. method according to claim 1, is characterized in that, described long connection the based on TCP comprises that the long connection of TCP or HTTP length connect.
3. method according to claim 1 and 2, is characterized in that, the described short connection based on TCP comprises the short connection of TCP or the short connection of HTTP.
4. according to the method described in the arbitrary claim of claim 1~3, it is characterized in that, described definite journal file to be uploaded, comprising:
According to filter condition, determine the journal file that does not meet described filter condition, using as journal file to be uploaded; Or
According to constraints, determine the journal file that meets described constraints, using as journal file to be uploaded.
5. method according to claim 4, is characterized in that, described method also comprises:
Receive the described filter condition that described high in the clouds equipment sends by described long connection or described short connection; Or
Receive the described constraints that described high in the clouds equipment sends by described long connection or described short connection.
6. according to the method described in the arbitrary claim of claim 1~5, it is characterized in that, described according to described daily record rank, by with high in the clouds equipment between set up based on TCP long, be connected or short connection based on TCP, before uploading described journal file to described high in the clouds equipment, also comprise:
Receive described high in the clouds equipment by described long connection or the daily record rank of described short connection transmission and the corresponding relation of connected mode, described connected mode comprises long connection or short connection.
7. method according to claim 6, is characterized in that, described according to described daily record rank, by with high in the clouds equipment between set up based on TCP long, be connected or short connection based on TCP, to described high in the clouds equipment, upload described journal file, comprising:
According to described corresponding relation and described daily record rank, determine the connected mode corresponding with described daily record rank;
According to described connected mode, by with high in the clouds equipment between set up based on TCP long, be connected or short connection based on TCP, to described high in the clouds equipment, upload described journal file.
8. based on other journal file of daily record level, upload a device, it is characterized in that, comprising:
Determining unit, for determining journal file to be uploaded;
Obtain unit, for obtaining the daily record rank of described journal file;
Uploading unit, for according to described daily record rank, by with high in the clouds equipment between set up based on TCP long, be connected or short connection based on TCP, to described high in the clouds equipment, upload described journal file.
9. device according to claim 8, is characterized in that, described long connection the based on TCP comprises that the long connection of TCP or HTTP length connect.
10. device according to claim 8 or claim 9, is characterized in that, the described short connection based on TCP comprises the short connection of TCP or the short connection of HTTP.
Device described in 11. according to Claim 8~10 arbitrary claims, is characterized in that, described determining unit, specifically for
According to filter condition, determine the journal file that does not meet described filter condition, using as journal file to be uploaded; Or
According to constraints, determine the journal file that meets described constraints, using as journal file to be uploaded.
12. devices according to claim 11, is characterized in that, described device also comprises condition reception unit, for
Receive the described filter condition that described high in the clouds equipment sends by described long connection or described short connection; Or
Receive the described constraints that described high in the clouds equipment sends by described long connection or described short connection.
Device described in 13. according to Claim 8~12 arbitrary claims, is characterized in that, described device also comprises and be related to receiving element, for
Receive described high in the clouds equipment by described long connection or the daily record rank of described short connection transmission and the corresponding relation of connected mode, described connected mode comprises long connection or short connection.
14. devices according to claim 13, is characterized in that, described uploading unit, specifically for
According to described corresponding relation and described daily record rank, determine the connected mode corresponding with described daily record rank; And according to described connected mode, by with high in the clouds equipment between set up based on TCP long, be connected or short connection based on TCP, to described high in the clouds equipment, upload described journal file.
CN201310190987.3A 2013-05-21 2013-05-21 Log level-based log file uploading method and device Pending CN104184599A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310190987.3A CN104184599A (en) 2013-05-21 2013-05-21 Log level-based log file uploading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310190987.3A CN104184599A (en) 2013-05-21 2013-05-21 Log level-based log file uploading method and device

Publications (1)

Publication Number Publication Date
CN104184599A true CN104184599A (en) 2014-12-03

Family

ID=51965363

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310190987.3A Pending CN104184599A (en) 2013-05-21 2013-05-21 Log level-based log file uploading method and device

Country Status (1)

Country Link
CN (1) CN104184599A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105049269A (en) * 2015-08-31 2015-11-11 小米科技有限责任公司 Information feedback method and device
CN105677552A (en) * 2016-01-04 2016-06-15 杭州亚美利嘉科技有限公司 Robot log management method and server
CN107547484A (en) * 2016-06-29 2018-01-05 上海连尚网络科技有限公司 Message obtains, method, equipment and the system of push
CN111614752A (en) * 2020-05-19 2020-09-01 北京百度网讯科技有限公司 Method and device for data transmission
CN111913885A (en) * 2020-08-07 2020-11-10 腾讯科技(深圳)有限公司 Log processing method and device, computer readable storage medium and equipment
CN115209394A (en) * 2022-05-31 2022-10-18 深圳市广和通无线股份有限公司 Log capture method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070162514A1 (en) * 2000-02-25 2007-07-12 Vincent Civetta Database sizing and diagnostic utility
CN101183333A (en) * 2007-12-12 2008-05-21 腾讯科技(深圳)有限公司 Method for outputting diary of debugging program, device and system
CN101465765A (en) * 2008-12-31 2009-06-24 东信和平智能卡股份有限公司 Log system and use method thereof
CN103036961A (en) * 2012-12-07 2013-04-10 蓝盾信息安全技术股份有限公司 Distributed collection and storage method of journal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070162514A1 (en) * 2000-02-25 2007-07-12 Vincent Civetta Database sizing and diagnostic utility
CN101183333A (en) * 2007-12-12 2008-05-21 腾讯科技(深圳)有限公司 Method for outputting diary of debugging program, device and system
CN101465765A (en) * 2008-12-31 2009-06-24 东信和平智能卡股份有限公司 Log system and use method thereof
CN103036961A (en) * 2012-12-07 2013-04-10 蓝盾信息安全技术股份有限公司 Distributed collection and storage method of journal

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
DUX2011: ""中国银联银行卡联网联合技术规范V2.1第5部分通讯接口",", 《豆丁网》 *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105049269A (en) * 2015-08-31 2015-11-11 小米科技有限责任公司 Information feedback method and device
CN105049269B (en) * 2015-08-31 2018-09-04 小米科技有限责任公司 information feedback method and device
CN105677552A (en) * 2016-01-04 2016-06-15 杭州亚美利嘉科技有限公司 Robot log management method and server
CN107547484A (en) * 2016-06-29 2018-01-05 上海连尚网络科技有限公司 Message obtains, method, equipment and the system of push
CN107547484B (en) * 2016-06-29 2021-05-07 上海连尚网络科技有限公司 Method, device and system for acquiring and pushing message
CN111614752A (en) * 2020-05-19 2020-09-01 北京百度网讯科技有限公司 Method and device for data transmission
CN111913885A (en) * 2020-08-07 2020-11-10 腾讯科技(深圳)有限公司 Log processing method and device, computer readable storage medium and equipment
CN111913885B (en) * 2020-08-07 2021-07-27 腾讯科技(深圳)有限公司 Log processing method and device, computer readable storage medium and equipment
CN115209394A (en) * 2022-05-31 2022-10-18 深圳市广和通无线股份有限公司 Log capture method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN104184599A (en) Log level-based log file uploading method and device
CN104246759B (en) Application programming interfaces testing service
US20150125133A1 (en) Method for transcoding multimedia, and hadoop-based multimedia transcoding system for performing the method
CN102497424A (en) Method for achieving cloud storage through mobile storage device
EP3155764B1 (en) Method and system for secure bidirectional communication for industrial devices
CN109756568A (en) Processing method, equipment and the computer readable storage medium of file
CN109271359A (en) Log information processing method, device, electronic equipment and readable storage medium storing program for executing
CN108400893A (en) Processing method, device and the electronic equipment of journal file
CN109039787A (en) log processing method, device and big data cluster
CN103491071A (en) Wireless communication system
CN107370684A (en) Business current-limiting method and business current-limiting apparatus
CN102571820A (en) Method used for transmitting data, compression server and terminal
CN104809057A (en) Application test system, application test method and storage medium
JP6447726B2 (en) Card addition method, apparatus, device, and computer storage medium
CN114039875A (en) Data acquisition method, device and system based on eBPF technology
CN104636441B (en) NFS implementation method and device
CN104021124A (en) Method, device and system used for processing webpage data
WO2019165456A1 (en) Automated scalable contextual data collection and extraction system
CN105656980A (en) File processing method, device and system
CN111835801B (en) File downloading method, device, server, edge equipment, terminal and medium
CN103558995A (en) Memory control chip and disk message transmission method
US9559904B2 (en) Dynamic agent replacement within a cloud network
KR20070062395A (en) Device and method for management of application context
Jianru et al. An OPNET model of SpaceWire and validation
CN111367878B (en) IPFS node monitoring method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20141203

RJ01 Rejection of invention patent application after publication