CN102882705B - Method for reporting log through terminal equipment and log reporting system - Google Patents

Method for reporting log through terminal equipment and log reporting system Download PDF

Info

Publication number
CN102882705B
CN102882705B CN201210321267.1A CN201210321267A CN102882705B CN 102882705 B CN102882705 B CN 102882705B CN 201210321267 A CN201210321267 A CN 201210321267A CN 102882705 B CN102882705 B CN 102882705B
Authority
CN
China
Prior art keywords
application
reporting policy
terminal device
daily record
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210321267.1A
Other languages
Chinese (zh)
Other versions
CN102882705A (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.)
Juhaokan Technology Co Ltd
Original Assignee
Qingdao Hisense Media Network 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 Qingdao Hisense Media Network Technology Co Ltd filed Critical Qingdao Hisense Media Network Technology Co Ltd
Priority to CN201210321267.1A priority Critical patent/CN102882705B/en
Publication of CN102882705A publication Critical patent/CN102882705A/en
Application granted granted Critical
Publication of CN102882705B publication Critical patent/CN102882705B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a method for reporting a log through terminal equipment and a log reporting system. The method comprises the following steps that: the terminal equipment sends an application report policy requirement to a log server and carries application number information; the log server receives the application report policy requirement and returns an application report policy to the terminal equipment according to the application number information in response to the application report policy requirement; the terminal equipment sends the log report policy requirement to the log server according to the returned application report policy; the log server receives the log report policy requirement and returns the log report policy to the terminal equipment according to the application number information, the connection frequency of the report log information data and network bandwidth information in response to the log report policy requirement; and each application in the terminal equipment reports the log information data to the log server according to the returned log report policy. With the adoption of the method and the system, the log information data reporting real-time property can be improved and the source use rate can be increased.

Description

Terminal device reports method and the daily record reporting system of daily record
Technical field
The present invention relates to the information transmission technology, particularly relate to method and daily record reporting system that a kind of terminal device reports daily record.
Background technology
Along with developing rapidly of Computer Applied Technology, existing terminal device generally all possesses the function of daily record, for recording the running log information data of each application in terminal device.Like this, in follow-up flow process, by checking the log information data of terminal device records, the running status of terminal device can be obtained, being convenient to administrative staff and attendant can the service data of analysing terminal equipment more easily, solves the technical failure that in running, each application occurs, and predicts the following contingent exception of respective application in terminal device to a certain extent, thus evade the following technical failure occurred, ensure the normal operation of terminal device.
For application provider, utilize existing Internet technology, can also by the log information data reporting policy of control terminal, such as, arrange terminal device the log information data of record are reported to log server, thus so that administrative staff and attendant analyze log information, the running status of remote analysis, monitor terminal can be realized.
Fig. 1 is the method flow schematic diagram that existing terminal device reports daily record.See Fig. 1, this flow process comprises:
Step 101, terminal device starts, and sends the request of application reporting policy to log server;
In this step, upon actuation, send the request of application reporting policy to log server, acquisition request reports relevant application to terminal device in which way.
Step 102, log server receives the request of application reporting policy, responds the request of described application reporting policy, returns application reporting policy to terminal device;
In this step, after log server receives the request of application reporting policy, according to the application strategy obtain manner that application operation provider pre-sets, such as, be concentrated acquisition strategy or separately acquisition strategy, return to terminal device and apply reporting policy accordingly.For example, if the application strategy obtain manner pre-set is for concentrating acquisition strategy, then concentrated acquisition strategy is returned to terminal device; If the application strategy obtain manner pre-set is separately acquisition strategy, then return separately acquisition strategy to terminal device.
Step 103, terminal device, according to the application reporting policy returned, sends the request of daily record reporting policy to log server;
In this step, terminal device is according to the application reporting policy returned, and such as, if application reporting policy is for concentrating acquisition strategy, then each application message is encapsulated in the request of daily record reporting policy by terminal device, is sent to log server; If application reporting policy is separately acquisition strategy, then each application in terminal device, is encapsulated in self application message in the request of daily record reporting policy respectively, is sent to log server independently, the request of each application transmission daily record reporting policy.
Step 104, log server receives the request of daily record reporting policy, responds the request of described daily record reporting policy, returns daily record reporting policy to terminal device;
In this step, log server receives the request of daily record reporting policy, and according to the daily record reporting policy configuration mode pre-set, distribute daily record reporting policy for applying accordingly, wherein, daily record reporting policy comprises: concentrate reported data and separate reported data.
If log server pre-sets the daily record reporting policy adopting and concentrate reported data, and terminal device adopts separately acquisition strategy, then the strategy of the concentrated reported data of each application is carried in the daily record reporting policy request response of respective application by log server, export each application of terminal device respectively to, each application corresponding, returns a daily record reporting policy request response;
If log server pre-sets the daily record reporting policy adopting and concentrate reported data, and terminal device adopts concentrated acquisition strategy, then the strategy of concentrated reported data is carried in daily record reporting policy request response by log server, export terminal device to, log server sends a daily record reporting policy request response to terminal device;
If log server pre-sets the daily record reporting policy adopting separately reported data, its handling process with determine that the daily record reporting policy adopting concentrated reported data is similar.
That is, if log server execution is that concentrated acquisition strategy separates reported data, or reported data is concentrated in concentrated acquisition strategy, and daily record reporting policy corresponding for each application of this terminal device is concentrated and is sent to terminal device by log server; If what log server performed is that separately acquisition strategy separates reported data, or, separately reported data is concentrated in acquisition strategy, each application need send the request of daily record reporting policy respectively to log server, daily record reporting policy corresponding for each application of this terminal device is sent to terminal device by log server respectively, and each application receives to one's name corresponding daily record reporting policy.
Step 105, each application in terminal device, according to the daily record reporting policy returned, reports log information data to log server.
In this step, if daily record reporting policy is for separating reported data, then the log information data of self are recorded in each application respectively, and report the log information data of record to log server with being mutually independent; If daily record reporting policy is for concentrating reported data, then the log information data of self are recorded in each application respectively, and after each log information data of record being encapsulated, form log information packet, and unification reports to log server.
From above-mentioned, existing terminal device reports the method for daily record, by log server according to the daily record reporting policy arranging configurating terminal device in advance, if terminal device adopts the daily record reporting policy concentrating reported data, when the log information data that the total application needing to report is corresponding are more, then can be very tediously long by causing terminal device to carry out the concentrated log information packet that reports encapsulated, such as, in the log information packet reported, comprise following information:
A-xxxxx;
B-xxxxx;
C-xxxxx;
Z-xxxxx。
Wherein, A, B, C ..., Z represents each application (application identities) respectively, xxxxx is the corresponding log information data of record.Along with the increase of application, make the log information data packet length that reports can corresponding growth, not only make the time needed for transmission longer, cause daily record to report efficiency lower, reduce the real-time of transmission; And the time needed for log server subsequent solves log information packet is also longer, effectively can not utilize the idling-resource of log server; Further, by log information data binding to be reported for each application together, flexibility is poor, and the daily record that can not meet user individual reports demand.
And if terminal device adopts separately reported data to send log information data, each application needs to connect with log server respectively, like this, frequently connecting can bring huge resource overhead to log server, such that resource utilization is lower, daily record reports efficiency lower; Further, also need to manage separately each application, so that each application independently can obtain the strategy performing oneself, further increase resource overhead.
Summary of the invention
Embodiments of the invention provide a kind of terminal device to report the method for daily record, the real-time that raising log information data report and resource utilization.
Embodiments of the invention also provide a kind of daily record reporting system, the real-time that raising log information data report and resource utilization.
For achieving the above object, a kind of terminal device that the embodiment of the present invention provides reports the method for daily record, comprising:
Terminal device sends the request of application reporting policy to log server, carries application number information;
Log server receives the request of application reporting policy, according to application number information, responds the request of described application reporting policy, returns application reporting policy to terminal device;
Terminal device, according to the application reporting policy returned, sends the request of daily record reporting policy to log server;
Log server receives the request of daily record reporting policy, according to application number information, the connection frequency reporting log information data and network bandwidth information, responds the request of described daily record reporting policy, returns daily record reporting policy to terminal device;
Each application in terminal device, according to the daily record reporting policy returned, reports log information data to log server.
Wherein, describedly respond the request of described application reporting policy according to application number information, return application reporting policy to terminal device and comprise:
Log server judges that whether apply the application number carried in reporting policy request exceedes the application number threshold value pre-set, and if so, responds the request of described application reporting policy, returns the application reporting policy of separately acquisition strategy to terminal device; Otherwise, respond the request of described application reporting policy, return the application reporting policy of concentrated acquisition strategy to terminal device.
Wherein, described terminal device, according to the application reporting policy returned, sends the request of daily record reporting policy to log server and comprises:
If application reporting policy is for concentrating acquisition strategy, then each application message is encapsulated in the request of daily record reporting policy by terminal device, is sent to log server; If application reporting policy is separately acquisition strategy, then each application in terminal device, is encapsulated in self application message in the request of daily record reporting policy respectively, is sent to log server independently.
Wherein, describedly respond the request of described application reporting policy according to application number information, return application reporting policy to terminal device and comprise:
Log server judges whether apply the application number carried in reporting policy request exceedes the application number threshold value pre-set, if, respond the request of described application reporting policy, return the application reporting policy of concentrated acquisition strategy to terminal device, carry application number threshold information; Otherwise, respond the request of described application reporting policy, return the application reporting policy of concentrated acquisition strategy to terminal device.
Wherein, described terminal device, according to the application reporting policy returned, sends the request of daily record reporting policy to log server and comprises:
Terminal device is according to the application number threshold information received, and what split this terminal device is applied as multiple set of applications, the application message comprised is encapsulated in the request of daily record reporting policy respectively, is sent to log server in each set of applications.
Wherein, described according to application number information, the connection frequency reporting log information data and network bandwidth information, respond the request of described daily record reporting policy, return daily record reporting policy to terminal device and comprise:
If log server is according to application number information, the connection frequency reporting log information data and network bandwidth information, determine the daily record reporting policy adopting concentrated reported data, and terminal device adopts separately acquisition strategy, then the daily record reporting policy of the concentrated reported data of each application is carried in the daily record reporting policy request response of respective application by log server, exports each application in terminal device respectively to;
If log server is according to application number information, the connection frequency reporting log information data and network bandwidth information, determine the daily record reporting policy adopting concentrated reported data, and terminal device adopts concentrated acquisition strategy, then the daily record reporting policy of concentrated reported data is carried in daily record reporting policy request response by log server, exports terminal device to;
If log server is according to application number information, the connection frequency reporting log information data and network bandwidth information, determine the daily record reporting policy adopting separately reported data, and terminal device adopts separately acquisition strategy, then the daily record reporting policy of the separately reported data of each application is carried in the daily record reporting policy request response of respective application by log server, exports each application in terminal device respectively to;
If log server is according to application number information, the connection frequency reporting log information data and network bandwidth information, determine the daily record reporting policy adopting separately reported data, and terminal device adopts concentrated acquisition strategy, then the daily record reporting policy separating reported data is carried in daily record reporting policy request response by log server, exports terminal device to.
Wherein, comprise further:
The application number run in monitoring terminal equipment, if monitor the application number that obtains to exceed the application number threshold value pre-set, triggers terminal device is switched to separately acquisition strategy separate reported data; Or, trigger terminal device is switched to concentrated acquisition strategy concentrate reported data;
Separate on the basis of reported data current for separately acquisition strategy, the linking number run in monitoring terminal equipment, if monitor the linking number obtained to exceed the linking number threshold value pre-set, trigger terminal device is switched to separately acquisition strategy concentrate reported data; Or, trigger terminal device is switched to concentrated acquisition strategy separate reported data;
Concentrate on the basis of reported data current for separately acquisition strategy, in monitoring terminal equipment, run application number, if monitor the application number obtained to be less than the application number threshold value pre-set, trigger terminal device is switched to concentrated acquisition strategy concentrate reported data; Or, trigger terminal device switched to separately acquisition strategy and separate reported data;
Current for concentrating acquisition strategy to concentrate on the basis of reported data, the requirement of real-time of application is run in monitoring terminal equipment, the requirement of real-time information of statistics application, obtain requirement of real-time and exceed the application number of the real-time threshold value pre-set and the ratio always applying number, if the ratio obtained exceedes the rate threshold pre-set, trigger terminal device is switched to concentrated acquisition strategy separate reported data; Or, trigger terminal device switched to separately acquisition strategy and concentrate reported data.
Wherein, comprise further:
Separate on the basis of reported data current for separating acquisition strategy, monitoring journal server resource expense whether exceed the resource overhead threshold value that pre-sets and/or, whether the total bandwidth resource taken of giving the correct time on each application is concurrent exceedes the bandwidth resources threshold value pre-set, if so, trigger and terminal device switched to separately acquisition strategy and concentrate reported data; Or, trigger terminal device is switched to concentrated acquisition strategy separate reported data.
Wherein, each application in described terminal device, according to the daily record reporting policy returned, reports log information data to comprise to log server:
If daily record reporting policy is for separating reported data, then the log information data of self are recorded in each application respectively, and report the log information data of record to log server with being mutually independent; If daily record reporting policy is for concentrating reported data, then the log information data of self are recorded in each application respectively, and after each log information data of record being encapsulated, form log information packet, and unification reports to log server.
A kind of daily record reporting system, this system comprises: terminal device and log server, wherein,
Terminal device, for sending the request of application reporting policy to log server, carries application number information; According to the application reporting policy returned, send the request of daily record reporting policy to log server; Each application in terminal device, according to the daily record reporting policy returned, reports log information data to log server;
Log server, for receiving the request of application reporting policy, according to application number information, responding the request of described application reporting policy, returning application reporting policy to terminal device; Receive the request of daily record reporting policy, according to application number information, the connection frequency reporting log information data and network bandwidth information, respond the request of described daily record reporting policy, return daily record reporting policy to terminal device; Receive log information data, store.
Described terminal device comprises: terminal data reports service module and daily record memory module, wherein,
Daily record memory module, for store respectively each application be in operation generate log information data;
Terminal data reports service module, for sending the request of application reporting policy to log server, carries application number information; According to the application reporting policy returned, send the request of daily record reporting policy to log server; According to the daily record reporting policy returned, read log information data from daily record memory module, report log information data to log server.
Described terminal data reports service module to comprise: application reporting policy request unit, daily record reporting policy request unit and log information data report unit, wherein,
Application reporting policy request unit, for sending the request of application reporting policy to log server, carries application number information;
Daily record reporting policy request unit, for the application reporting policy that basis returns, if comprise application number threshold information in application reporting policy, according to the application number threshold information received, what split this terminal device is applied as multiple set of applications, respectively the application message comprised in each set of applications is encapsulated in the request of daily record reporting policy, is sent to log server; Otherwise, send the request of daily record reporting policy to log server;
Log information data report unit, for according to the daily record reporting policy returned, read log information data, report log information data to log server from daily record memory module.
Described terminal device comprises further:
Log information data processing module, for the log information data that receiving terminal data report service module to export, if daily record reporting policy is for separating reported data, then reports log information Dynamic data exchange corresponding for each application to log server; If daily record reporting policy is for concentrating reported data, then after each log information data received being encapsulated, form log information packet, unification reports to log server.
Described application reporting policy comprises: concentrate acquisition strategy and separately acquisition strategy;
Described daily record reporting policy comprises: concentrate reported data and separate reported data.
Application reporting policy and daily record reporting policy are combined, comprising: concentrated acquisition strategy concentrates reported data, concentrate acquisition strategy separate reported data, separately acquisition strategy separate reported data and separately acquisition strategy concentrate reported data.
Described log server comprises: system end data report service module, policy store module and log information data memory module, wherein,
System end data report service module, for receiving the request of application reporting policy, according to application number information, responding the request of described application reporting policy, obtaining application reporting policy, and return to terminal device from policy store module; Receive the request of daily record reporting policy, according to application number information, the connection frequency reporting log information data and network bandwidth information, respond the request of described daily record reporting policy, obtain daily record reporting policy from policy store module, and return to terminal device; Receive log information data, export log information data memory module to;
Policy store module, for storing daily record reporting policy and application reporting policy;
Log information data memory module, for storing the log information data of reception.
Described system end data report service module to comprise: the first application reporting policy requesting processing, daily record reporting policy request unit and log information data receipt unit, wherein,
First application reporting policy requesting processing, for receiving the request of application reporting policy, according to application number information, judge whether apply the application number carried in reporting policy request exceedes the application number threshold value pre-set, if, respond the request of described application reporting policy, return the application reporting policy of separately acquisition strategy to terminal device; Otherwise, respond the request of described application reporting policy, return the application reporting policy of concentrated acquisition strategy to terminal device;
Daily record reporting policy request unit, for receiving the request of daily record reporting policy, according to application number information, the connection frequency reporting log information data and network bandwidth information, respond the request of described daily record reporting policy, obtain daily record reporting policy from policy store module, and return to terminal device;
Log information data receipt unit, for receiving log information data, exports log information data memory module to.
Described system end data report service module to comprise: the second application reporting policy requesting processing, daily record reporting policy request unit and log information data receipt unit, wherein,
Second application reporting policy requesting processing, for receiving the request of application reporting policy, according to application number information, judge whether apply the application number carried in reporting policy request exceedes the application number threshold value pre-set, if, respond the request of described application reporting policy, return the application reporting policy of concentrated acquisition strategy to terminal device, carry application number threshold information; Otherwise, respond the request of described application reporting policy, return the application reporting policy of concentrated acquisition strategy to terminal device;
Daily record reporting policy request unit, for receiving the request of daily record reporting policy, according to application number information, the connection frequency reporting log information data and network bandwidth information, respond the request of described daily record reporting policy, obtain daily record reporting policy from policy store module, and return to terminal device;
Log information data receipt unit, for receiving log information data, exports log information data memory module to.
Described log server comprises further: data report monitoring module and Developing Tactics module, wherein,
Data report monitoring module, for the application number that monitoring terminal equipment reports the connection frequency of log information data, current network bandwidth information, requirement of real-time information and reports;
Developing Tactics module, if monitor the application number that obtains to exceed the application number threshold value pre-set, triggers terminal device is switched to separately acquisition strategy separate reported data; Or, trigger terminal device is switched to concentrated acquisition strategy concentrate reported data;
Separate on the basis of reported data current for separating acquisition strategy, if monitor the linking number that obtains exceed the linking number threshold value that pre-sets and/or, the total bandwidth resource taken of giving the correct time on each application is concurrent exceedes the bandwidth resources threshold value pre-set, and triggers terminal device to be switched to separately acquisition strategy and concentrate reported data; Or, trigger terminal device is switched to concentrated acquisition strategy separate reported data;
Concentrate on the basis of reported data current for separately acquisition strategy, if monitor the application number obtained to be less than the application number threshold value pre-set, trigger terminal device is switched to concentrated acquisition strategy concentrate reported data; Or, trigger terminal device switched to separately acquisition strategy and separate reported data;
Current for concentrating acquisition strategy to concentrate on the basis of reported data, the requirement of real-time information of statistics application, obtain requirement of real-time and exceed the application number of the real-time threshold value pre-set and the ratio always applying number, if the ratio obtained exceedes the rate threshold pre-set, trigger terminal device is switched to concentrated acquisition strategy separate reported data; Or, trigger terminal device switched to separately acquisition strategy and concentrate reported data.
As seen from the above technical solution, a kind of terminal device that the embodiment of the present invention provides reports method and the daily record reporting system of daily record, and terminal device sends the request of application reporting policy to log server, carries application number information; Log server receives the request of application reporting policy, according to application number information, responds the request of described application reporting policy, returns application reporting policy to terminal device; Terminal device, according to the application reporting policy returned, sends the request of daily record reporting policy to log server; Log server receives the request of daily record reporting policy, according to application number information, the connection frequency reporting log information data and network bandwidth information, responds the request of described daily record reporting policy, returns daily record reporting policy to terminal device; Each application in terminal device, according to the daily record reporting policy returned, reports log information data to log server.Like this, each terminal device can obtain application and daily record reporting policy respectively, log server can carry out the flexible configuration of strategy for each application, effectively can reduce the big data quantity of transmission, also the linking number needing to set up can correspondingly be reduced, make it to reach better balance between the real-time reported and resource utilization, thus comprehensively improve the real-time and resource utilization that log information data report.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below.Apparently, the accompanying drawing in below describing is only some embodiments of the present invention, for those of ordinary skills, can also obtain other embodiment and accompanying drawing thereof according to these accompanying drawing illustrated embodiments.
Fig. 1 is the method flow schematic diagram that existing terminal device reports daily record.
Fig. 2 is the method flow schematic diagram that embodiment of the present invention terminal device reports daily record.
Fig. 3 is the application reporting policy of the embodiment of the present invention and the state machine diagram of daily record reporting policy.
Fig. 4 be embodiment of the present invention terminal device under the strategy of reported data is concentrated in concentrated acquisition strategy, report the method flow schematic diagram of daily record.
Fig. 5 be embodiment of the present invention terminal device under concentrated acquisition strategy separates the strategy of reported data, report the method flow schematic diagram of daily record.
Fig. 6 is embodiment of the present invention terminal device under separately the strategy of reported data is concentrated in acquisition strategy, reports the method flow schematic diagram of daily record.
Fig. 7 is embodiment of the present invention terminal device under separately acquisition strategy separates the strategy of reported data, reports the method flow schematic diagram of daily record.
Fig. 8 is embodiment of the present invention daily record reporting system structural representation.
Detailed description of the invention
Carry out clear, complete description below with reference to accompanying drawing to the technical scheme of various embodiments of the present invention, obviously, described embodiment is only a part of embodiment of the present invention, instead of whole embodiments.Based on the embodiment in the present invention, other embodiments all that those of ordinary skill in the art obtain under the prerequisite not making creative work, all belong to the scope that the present invention protects.
Existing terminal device reports the method for daily record, by log server according to the daily record reporting policy arranging configurating terminal device in advance, for concentrated reported data, although the log information data be convenient to reporting carry out centralized Control, but log information data volume is large, real-time is poor, and effectively can not utilize the idling-resource of log server, makes daily record report efficiency lower; And for separating reported data, although each application can select suitable time point to report log information data, if but need to report the application of log information data more, each application needs to establish a connection with log server, the required resource overhead that causes frequently connecting is huge, bring great pressure to log server, such that resource utilization is lower, daily record reports efficiency lower, better balance can not be reached between real-time and resource utilization.
In the embodiment of the present invention, consider log information data volume that terminal device reports and the network bandwidth information between terminal device and log server, terminal data is set in terminal equipment side and reports service module, system end data are set in log server side and report service module, service module and system end data are reported to report information interaction between service module by terminal data, the log information data volume that system end data report service module to report according to terminal device and network bandwidth information, dynamic conditioning daily record reporting policy, thus control the flexible change of daily record reporting policy, make it to reach better balance between real-time and resource utilization.Specifically,
When terminal device starts, terminal data reports service module to report service module to send the request of application reporting policy to system end data, carry application number information, ask the application reporting policy configuration information of this terminal device, system end data report service module according to the application number of this terminal device, return to terminal device and apply reporting policy accordingly, then, terminal device is according to the application reporting policy received, Request Log reporting policy, system end data report service module according to application number information, report the connection frequency of log information data, current network bandwidth information, determine that this terminal device reports the daily record reporting policy needed for log server, and return to terminal device, the daily record reporting policy that terminal device reports service module to return according to system end data, perform corresponding log information to report.
In the embodiment of the present invention, system end data report the application reporting policy that stores in service module and daily record reporting policy to comprise: concentrated acquisition strategy concentrates reported data, concentrate acquisition strategy separate reported data, separately acquisition strategy separate reported data and separately acquisition strategy concentrate reported data.
In practical application, system end data report service module also can according to the daily record reporting policy of each terminal device and current network bandwidth information, dynamic change log server is the daily record reporting policy of terminal equipment configuration in real time, thus switches flexibly between separately acquisition strategy, concentrated acquisition strategy, separately reported data, concentrated reported data.
Fig. 2 is the method flow schematic diagram that embodiment of the present invention terminal device reports daily record.See Fig. 2, this flow process comprises:
Step 201, terminal device sends the request of application reporting policy to log server, carries application number information;
In this step, upon actuation, send the request of application reporting policy to log server, carry the application number information that this terminal device needs to report, acquisition request reports relevant application to terminal device in which way.
Step 202, log server receives the request of application reporting policy, according to application number information, responds the request of described application reporting policy, returns application reporting policy to terminal device;
In this step, after log server receives the request of application reporting policy, according to the application number information of carrying in the request of application reporting policy, for terminal equipment configuration applies reporting policy accordingly.
Wherein, apply reporting policy to comprise: concentrate acquisition strategy and separately acquisition strategy.
According to application number information, respond the request of described application reporting policy, return application reporting policy to terminal device and comprise:
Log server judges that whether apply the application number carried in reporting policy request exceedes the application number threshold value pre-set, and if so, responds the request of described application reporting policy, returns the application reporting policy of separately acquisition strategy to terminal device; Otherwise, respond the request of described application reporting policy, return the application reporting policy of concentrated acquisition strategy to terminal device.
In this step, application number threshold value can be arranged according to actual needs, such as, can be set to the numerical value such as 100 or 200.Like this, log server, according to the difference of the application number of terminal device, adopts different application reporting policies respectively, but not the application reporting policy that existing employing is unified, improve the flexibility of application reporting policy configuration, thus can reach between real-time and resource utilization and preferably balance.Specifically,
For the terminal device that application number is many, in order to avoid the technical problem that the data packet length adopting concentrated acquisition strategy to cause long, the required transmission time is long, real-time is poor, separately acquisition strategy can be adopted;
For the terminal device that application number is few, in order to avoid the technical problem that linking number is more, resource utilization is lower adopting separately acquisition strategy to cause, concentrated acquisition strategy can be adopted.
For example, if the application reporting policy of configuration is for concentrating acquisition strategy, then concentrated acquisition strategy is returned to terminal device; If the application reporting policy of configuration is separately acquisition strategy, then return separately acquisition strategy to terminal device.
In practical application, according to application number information, respond the request of described application reporting policy, return application reporting policy to terminal device and also can comprise:
Log server judges whether apply the application number carried in reporting policy request exceedes the application number threshold value pre-set, if, respond the request of described application reporting policy, return the application reporting policy of concentrated acquisition strategy to terminal device, carry application number threshold information; Otherwise, respond the request of described application reporting policy, return the application reporting policy of concentrated acquisition strategy to terminal device.
Step 203, terminal device, according to the application reporting policy returned, sends the request of daily record reporting policy to log server;
In this step, terminal device is according to the application reporting policy returned, and such as, if application reporting policy is for concentrating acquisition strategy, then each application message is encapsulated in the request of daily record reporting policy by terminal device, is sent to log server; If application reporting policy is separately acquisition strategy, then each application in terminal device, is encapsulated in self application message in the request of daily record reporting policy respectively, is sent to log server independently, the request of each application transmission daily record reporting policy.
As previously mentioned, if carry application number threshold information in the concentrated acquisition strategy of terminal device reception, terminal device, according to the application reporting policy returned, sends the request of daily record reporting policy to log server and comprises:
Terminal device is according to the application number threshold information received, and what split this terminal device is applied as multiple set of applications, the application message comprised is encapsulated in the request of daily record reporting policy respectively, is sent to log server in each set of applications.Like this, when application number both can have been avoided more, needed each application and log server to connect respectively, and made linking number too much, the problem that the packet that can avoiding again is packaged together all application messages causes is longer.
Step 204, log server receives the request of daily record reporting policy, according to application number information, the connection frequency reporting log information data and network bandwidth information, responds the request of described daily record reporting policy, returns daily record reporting policy to terminal device;
In this step, log server receives the request of daily record reporting policy, according to application number information, the connection frequency reporting log information data and network bandwidth information, daily record reporting policy is distributed for applying accordingly, wherein, daily record reporting policy comprises: concentrate reported data and separate reported data.
According to application number information, the connection frequency reporting log information data and network bandwidth information, respond the request of described daily record reporting policy, return daily record reporting policy to terminal device and comprise:
If log server is according to application number information, the connection frequency reporting log information data and network bandwidth information, determine the daily record reporting policy adopting concentrated reported data, and terminal device adopts separately acquisition strategy, then the daily record reporting policy of the concentrated reported data of each application is carried in the daily record reporting policy request response of respective application by log server, exports each application in terminal device respectively to;
If log server is according to application number information, the connection frequency reporting log information data and network bandwidth information, determine the daily record reporting policy adopting concentrated reported data, and terminal device adopts concentrated acquisition strategy, then the daily record reporting policy of concentrated reported data is carried in daily record reporting policy request response by log server, exports terminal device to;
If log server is according to application number information, the connection frequency reporting log information data and network bandwidth information, determine the daily record reporting policy adopting separately reported data, and terminal device adopts separately acquisition strategy, then the daily record reporting policy of the separately reported data of each application is carried in the daily record reporting policy request response of respective application by log server, exports each application in terminal device respectively to;
If log server is according to application number information, the connection frequency reporting log information data and network bandwidth information, determine the daily record reporting policy adopting separately reported data, and terminal device adopts concentrated acquisition strategy, then the daily record reporting policy separating reported data is carried in daily record reporting policy request response by log server, exports terminal device to.
In short, if log server determines is that concentrated acquisition strategy separates reported data, or reported data is concentrated in concentrated acquisition strategy, and daily record reporting policy corresponding for each application of this terminal device is concentrated and is sent to terminal device by log server; If what log server performed is that separately acquisition strategy separates reported data, or, separately reported data is concentrated in acquisition strategy, each application need send the request of daily record reporting policy respectively to log server, daily record reporting policy corresponding for each application of this terminal device is sent to terminal device by log server respectively, and each application receives to one's name corresponding daily record reporting policy.
Further, in practical application, log server can also correspondence reporting policy and daily record reporting policy dynamically update, and comprising:
The application number run in monitoring terminal equipment, if monitor the application number that obtains to exceed the application number threshold value pre-set, triggers terminal device is switched to separately acquisition strategy separate reported data; Or, trigger terminal device is switched to concentrated acquisition strategy concentrate reported data.
In this step, if terminal device is current separate reported data, then without the need to switching for separating acquisition strategy.In the embodiment of the present invention, terminal device original state separates reported data for concentrating acquisition strategy.
Separate on the basis of reported data current for separately acquisition strategy, the linking number run in monitoring terminal equipment, if monitor the linking number obtained to exceed the linking number threshold value pre-set, trigger terminal device is switched to separately acquisition strategy concentrate reported data; Or, trigger terminal device is switched to concentrated acquisition strategy separate reported data.
In this step, except the linking number run in monitoring terminal equipment, can also monitoring journal server resource expense whether exceed the resource overhead threshold value that pre-sets and/or, whether the total bandwidth resource taken of giving the correct time on each application is concurrent exceedes the bandwidth resources threshold value pre-set, thus determines whether to need to perform switching.
Concentrate on the basis of reported data current for separately acquisition strategy, in monitoring terminal equipment, run application number, if monitor the application number obtained to be less than the application number threshold value pre-set, trigger terminal device is switched to concentrated acquisition strategy concentrate reported data; Or, trigger terminal device switched to separately acquisition strategy and separate reported data.
Current for concentrating acquisition strategy to concentrate on the basis of reported data, the requirement of real-time of application is run in monitoring terminal equipment, the requirement of real-time information of statistics application, obtain requirement of real-time and exceed the application number of the real-time threshold value pre-set and the ratio always applying number, if the ratio obtained exceedes the rate threshold pre-set, trigger terminal device is switched to concentrated acquisition strategy separate reported data; Or, trigger terminal device switched to separately acquisition strategy and concentrate reported data.
Step 205, each application in terminal device, according to the daily record reporting policy returned, reports log information data to log server.
In this step, if daily record reporting policy is for separating reported data, then the log information data of self are recorded in each application respectively, and report the log information data of record to log server with being mutually independent; If daily record reporting policy is for concentrating reported data, then the log information data of self are recorded in each application respectively, and after each log information data of record being encapsulated, form log information packet, and unification reports to log server.
Fig. 3 is the application reporting policy of the embodiment of the present invention and the state machine diagram of daily record reporting policy.See Fig. 3, state machine comprises: concentrated acquisition strategy concentrates reported data, concentrate acquisition strategy separate reported data, separately acquisition strategy separate reported data and separately acquisition strategy concentrate reported data, each state machine carries out corresponding switching under status condition T1 to T8.Specifically,
Suppose that the original state of state machine separates reported data for concentrating acquisition strategy, then:
1), meet status condition T1, switch to separately acquisition strategy and separate reported data;
In the embodiment of the present invention, status condition T1 is that application number exceedes the application number threshold value pre-set, and causes the log information data packet length reported to exceed the length threshold pre-set.Certainly, in practical application, also can be set to meet application number and exceed the application number threshold value pre-set, or, the log information data packet length reported exceedes the length threshold pre-set, then trigger concentrated acquisition strategy to be separated reported data and switch to separately acquisition strategy and separate reported data.
Such as, by monitoring and measuring application number, tactful length (log information data packet length needed for each application, service module is reported to specify by system end data) be 10 bytes, if there are 100 application to report, then think that tactful total length is partially long, i.e. daily record information packet length exceedes the length threshold pre-set.
The byte number list that table 1 takies for each information in tactful length.
Table 1
a b c d e f g h i j
In table 1,
A, b, c, identify each application strategy coding, maximum to 999;
D, the log information data identifying this application are the need of reporting, and arranging d is 0, represents without the need to reporting, and arranging d is 1, and expression need report.
E, mark adopts separately acquisition strategy or concentrated acquisition strategy, and arranging e is 0, and represent and adopt separately acquisition strategy, arranging e is 1, represents to adopt to concentrate acquisition strategy;
F, mark adopts separately reported data or concentrated reported data, and arranging f is 0, and represent and adopt separately reported data, arranging e is 1, represents to adopt and concentrate reported data;
H, i, j, mark reports the time interval, grows to 100 most, such as, 100 hours.
2), meet status condition T2, acquisition strategy will be separated and separate reported data and switch to separately acquisition strategy and concentrate reported data;
In the embodiment of the present invention, status condition T2 is for reporting log information data to log server separately due to each application, need frequently to connect, linking number threshold value linking number being exceeded pre-set, the resource overhead threshold value causing log server resource overhead to exceed pre-setting and/or, the total bandwidth resource taken of giving the correct time on each application is concurrent exceedes the bandwidth resources threshold value pre-set.
In practical application, by the log information data volume that monitoring and measuring application quantity and each application report, such as, if there are 1000 application to report log information data to log server separately, each data volume of each application is 50k, if report simultaneously, 50M bandwidth need be taken, exceed the bandwidth resources threshold value pre-set, then thought and need limit, need switching state machine.
3), meet status condition T3, acquisition strategy will be separated and concentrate reported data to switch to concentrated acquisition strategy to concentrate reported data;
In the embodiment of the present invention, status condition T3 is that the application number reported reduces, tactful total length is caused to reduce, namely the application number reported is less than the first application number threshold value pre-set, be greater than the second application number threshold value pre-set, show in this case, the application number reported or more, thus, still to adopt concentrated reported data to be advisable.
4), meet status condition T4, concentrated acquisition strategy concentrated reported data to switch to concentrated acquisition strategy and separate reported data, namely switch to the original state of state machine;
In the embodiment of the present invention, status condition T4 is: report if adopted in data Unified Set, cannot meet the requirement of real-time to the log information data acquisition that single application reports.
Such as, monitoring and measuring application is to the requirement of real-time, if there be the requirement of real-time of application to log information data of more than 30 percent higher, the i.e. requirement of real-time information of statistics application, obtain requirement of real-time and exceed the application number of the real-time threshold value pre-set and the ratio always applying number, if the ratio obtained exceedes the rate threshold pre-set, then adopt the strategy applying separately reported data comparatively suitable.
5), meet status condition T5, concentrated acquisition strategy concentrated reported data to switch to separately acquisition strategy and concentrate reported data;
In the embodiment of the present invention, status condition T5 is too much for applying number, causes tactful total length partially long, identical with status condition T1.
6), meet status condition T6, acquisition strategy will be separated and concentrate reported data to switch to separately acquisition strategy to separate reported data;
In the embodiment of the present invention, status condition T6 reports in data Unified Set, cannot meet the requirement of real-time obtained single application data, identical with status condition T4.
7), meet status condition T7, acquisition strategy will be separated and separate reported data and switch to concentrated acquisition strategy and separate reported data, and namely switch to the original state of state machine;
In the embodiment of the present invention, status condition T7 reduces for application number, causes tactful total length to reduce, identical with status condition T3.
8), meet status condition T8, concentrated acquisition strategy is separated reported data and switch to concentrated acquisition strategy and concentrate reported data;
In the embodiment of the present invention, status condition T8 is that each application reports log information data to log server separately, frequently connects, causes server overhead excessive, identical with status condition T2.
For example, supposing the system comprises terminal data and reports service module A, B, C, terminal data reports service module A, B, C to report service module to establish a communications link with system end data respectively, terminal data reports service module A to have application 50, terminal data reports service module B to have application 1000, and terminal data reports service module C to have application 1000.
Then according to status condition T1, terminal data reports service module A strategy total length to be less than 100, can adopt concentrated acquisition strategy, and tactful total length is all greater than 100(according to T1,1000 application strategy total lengths can be very long), separately acquisition strategy need be adopted, in addition, according to status condition T2, terminal data reports the application number of service module B, C too many, improper employing separates reported data, need adopt concentrated reported data.
In the embodiment of the present invention, terminal data reports service module A both can adopt separately reported data, also concentrated reported data can be adopted, this to depend in current system total total how many terminal devices should be used for report log information data to system, in the embodiment of the present invention, terminal data reports service module A, B, C always has 2050 application to be needed to report log information data, but terminal data reports service module B, C is configured to concentrated reported data, therefore, the concurrency reported substantially reduce the number, terminal data can be reported service module A to be configured to separately reported data, like this, the requirement of real-time can be adapted to better.Certainly, in practical application, when terminal device is more, also concentrated reported data can be adopted.
Below respectively to terminal device under each state machine, report the method flow of daily record to be described in detail.
Fig. 4 be embodiment of the present invention terminal device under the strategy of reported data is concentrated in concentrated acquisition strategy, report the method flow schematic diagram of daily record.See Fig. 4, this flow process comprises:
Step 401, terminal data reports service module to report service module to send the request of application reporting policy to system end data;
In this step, service module is reported to be retrieved as the application reporting policy of terminal equipment configuration from system end data.In the request of application reporting policy, carry the application number information of this terminal device, such as, application A, B, C.
Step 402, system end data report service module to report service module to return the application reporting policy of configuration to terminal data;
In this step, the application reporting policy returned is " concentrating acquisition strategy ".
Step 403, terminal data reports service module according to concentrated acquisition strategy, reports service module to send the request of daily record reporting policy to system end data;
In this step, terminal data reports service module to report service module to send the request of daily record reporting policy to system end data, carry all application number information of this terminal device, acquisition request daily record reporting policy, such as, terminal data reports in service module has application A, B, C, then need the daily record reporting policy intersection obtaining application A, B, C.
In the embodiment of the present invention, adopt and concentrate acquisition strategy, terminal data reports service module to report service module only need send the request of a daily record reporting policy to system end data.
Step 404, system end data report service module to send daily record reporting policy intersection to strategic server and obtain request;
Step 405, strategic server reports service module to return daily record reporting policy intersection to system end data;
Step 406, system end data report service module to report service module to return daily record reporting policy intersection to terminal data;
In this step, in a daily record reporting policy request response that system end data report service module to return, carry the daily record reporting policy intersection that all application are corresponding.
Step 404 for system end data report service module to the reporting policy intersection of strategic server request application A, B, C to step 406, and returns to terminal data and reports service module.
Step 407, application start, reports service module to send to terminal data and obtains the request of daily record reporting policy, carry application identities;
Step 408, terminal data reports service module to return the daily record reporting policy of this application to application;
In step 407 to step 408, when being applied in startup, first report service module to communicate with terminal data, obtain the daily record reporting policy of this application.
In the embodiment of the present invention, daily record reporting policy is for concentrating reported data.
Step 409, applies and log information data to be reported write terminal data is reported service module;
In this step, terminal device adopts concentrates acquisition strategy to concentrate reported data, then first log information data to be reported write terminal data is reported service module by each application.
Step 410, terminal data reports service module to obtain the log information data of each application, the log information data of each application is encapsulated, generating log information packet, reports to system end data and reports service module;
Step 411, the log information packet write data server of each application that system end data report service module encapsulation to be formed.
In step 410 to step 411, terminal data reports service module by after the log information data centralization of each application, encapsulates, reports service module by system end data, unified write data server.
Fig. 5 be embodiment of the present invention terminal device under concentrated acquisition strategy separates the strategy of reported data, report the method flow schematic diagram of daily record.See Fig. 5, this flow process comprises:
Step 501, terminal data reports service module to report service module to send the request of application reporting policy to system end data;
Step 502, system end data report service module to report service module to return the application reporting policy of configuration to terminal data;
In this step, the application reporting policy of configuration is " concentrating acquisition strategy ".
Step 503, terminal data reports service module to report service module to send the request of daily record reporting policy to system end data;
In this step, terminal data reports service module according to concentrated acquisition strategy, reports service module to send the request of daily record reporting policy, carry the application number information of this terminal device, the daily record reporting policy that acquisition request is respectively applied to system end data.
Step 504, system end data report service module to send daily record reporting policy intersection to strategic server and obtain request;
Step 505, strategic server reports service module to return daily record reporting policy intersection to system end data;
Step 506, system end data report service module to report service module to return daily record reporting policy intersection to terminal data;
Step 504 for system end data report service module to the daily record reporting policy intersection of strategic server request application A, B, C to step 506, and returns to terminal data and reports service module.
Step 507, application start, reports service module to send to terminal data and obtains the request of daily record reporting policy, carry application identities;
Step 508, terminal data reports service module to return the daily record reporting policy of this application to application;
In step 507 to step 508, when being applied in startup, first report service module to communicate with terminal data, obtain the daily record reporting policy of this application.
In the embodiment of the present invention, daily record reporting policy is for separating reported data.
Step 509, applies and log information data writing systems end data to be reported is reported service module;
In this step, terminal device adopts concentrates acquisition strategy to separate reported data, then log information data writing systems end data to be reported is reported service module by each application independently.
Step 510, the log information data write data server that system end data report service module to report.
Fig. 6 is embodiment of the present invention terminal device under separately the strategy of reported data is concentrated in acquisition strategy, reports the method flow schematic diagram of daily record.See Fig. 6, this flow process comprises:
Step 601, terminal data reports service module to report service module to send the request of application reporting policy to system end data;
In this step, report service module from system end data the application reporting policy being retrieved as terminal equipment configuration.In reporting policy configuring request, carry the application number information of this terminal device, such as, application A, B, C.
Step 602, system end data report service module to report service module to return the application reporting policy of configuration to terminal data;
In this step, the application reporting policy returned is " separately acquisition strategy ".
Step 603, when being applied in startup, reporting service module to send application reporting policy to terminal data and obtains request;
In this step, each application upon actuation, reports service module to send corresponding application reporting policy respectively to terminal data and obtains request.
Step 604, terminal data reports service module to return application reporting policy to application;
In this step, application reporting policy is " separately acquisition strategy ".
Step 605, applies and reports service module to send the request of daily record reporting policy to system end data;
Step 606, system end data report service module to send the request of daily record reporting policy to strategic server;
Step 607, strategic server reports service module to return the daily record reporting policy of this application correspondence to system end data;
In this step, reporting policy is configured to concentrated reported data.
Step 608, system end data report service module to return daily record reporting policy to application;
Step 605 to step 608 is the flow process that application obtains the configuration of daily record reporting policy.
Step 609, applies and log information data to be reported write terminal data is reported service module;
In this step, terminal device adopts separately acquisition strategy to concentrate reported data, then first log information data to be reported write terminal data is reported service module by each application.
Step 610, terminal data reports service module to obtain the log information data of each application, the log information data of each application is encapsulated, generating log information packet, reports to system end data and reports service module;
Step 611, system end data report service module by the log information packet of encapsulation write data server.
In step 610 to step 611, terminal data reports service module by system end data after reporting service module the reported data of each application to be concentrated, unified write data server.
Fig. 7 is embodiment of the present invention terminal device under separately acquisition strategy separates the strategy of reported data, reports the method flow schematic diagram of daily record.See Fig. 7, this flow process comprises:
Step 701, terminal data reports service module to report service module to send the request of application reporting policy to system end data;
In this step, service module is reported to be retrieved as the application reporting policy of terminal equipment configuration from system end data.In reporting policy request, carry the application number information of this terminal device, such as, application A, B, C.
Step 702, system end data report service module to report service module to return the application reporting policy of configuration to terminal data;
In this step, the application reporting policy returned is " separately acquisition strategy ".
Step 703, when being applied in startup, reports service module to send the request of application reporting policy to terminal data;
In this step, each application upon actuation, reports service module to send the request of corresponding application reporting policy respectively to terminal data.
Step 704, terminal data reports service module to return application reporting policy to application;
In this step, application reporting policy is " separately acquisition strategy ".
Step 705, applies and reports service module according to separately acquisition strategy to system end data, sends the request of daily record reporting policy respectively;
Step 706, system end data report service module to send the request of daily record reporting policy to strategic server;
Step 707, strategic server, according to application number information, the connection frequency reporting log information data and network bandwidth information, distributing daily record reporting policy for applying accordingly, reporting service module to return the daily record reporting policy of configuration to system end data;
In this step, daily record reporting policy is configured to separately reported data.
Step 708, system end data report service module to return daily record reporting policy to application;
Step 705 to step 708 is the flow process that application obtains the configuration of daily record reporting policy.
Step 709, applies and log information data writing systems end data to be reported is reported service module;
In this step, terminal device adopts concentrates acquisition strategy to separate reported data, then log information data writing systems end data to be reported is reported service module by each application independently.
Step 710, the log information data write data server that system end data report service module to report.
From above-mentioned, the terminal device of the embodiment of the present invention reports the method for daily record, terminal data reports service module to report service module to send the request of application reporting policy to system end data, carry application number information, system end data report service module according to the application number of this terminal device, return to terminal device and apply reporting policy accordingly, then, terminal device is according to the application reporting policy received, Request Log reporting policy, system end data report service module according to application number information, report the connection frequency of log information data, current network bandwidth information, determine that this terminal device reports the daily record reporting policy needed for log server, and return to terminal device, the daily record reporting policy that terminal device reports service module to return according to system end data, perform corresponding log information to report.Like this, each terminal device can obtain application and daily record reporting policy respectively, log server can carry out the flexible configuration of strategy for each application, effectively can reduce the big data quantity of transmission, also the linking number needing to set up can correspondingly be reduced, make it to reach better balance between the real-time reported and resource utilization, thus comprehensively improve the real-time and resource utilization that log information data report.
Fig. 8 is embodiment of the present invention daily record reporting system structural representation.See Fig. 8, this system comprises: terminal device and log server, wherein,
Terminal device, for sending the request of application reporting policy to log server, carries application number information; According to the application reporting policy returned, send the request of daily record reporting policy to log server; Each application in terminal device, according to the daily record reporting policy returned, reports log information data to log server;
In the embodiment of the present invention, terminal device reports log information data, comprises and obtains application reporting policy and daily record reporting policy from log server.Wherein,
Application reporting policy comprises: concentrate acquisition strategy and separately acquisition strategy;
Daily record reporting policy comprises: concentrate reported data and separate reported data.
Application reporting policy and daily record reporting policy are combined, comprising: concentrated acquisition strategy concentrates reported data, concentrate acquisition strategy separate reported data, separately acquisition strategy separate reported data and separately acquisition strategy concentrate reported data.
Log server, for receiving the request of application reporting policy, according to application number information, responding the request of described application reporting policy, returning application reporting policy to terminal device; Receive the request of daily record reporting policy, according to application number information, the connection frequency reporting log information data and network bandwidth information, respond the request of described daily record reporting policy, return daily record reporting policy to terminal device; Receive log information data, store.
In the embodiment of the present invention, the application number that log server reports according to each terminal device, in conjunction with the connection frequency and the current network bandwidth information that report log information data, for terminal device dynamic-configuration application reporting policy and daily record reporting policy, make in system, between the real-time of the log information data reported and resource utilization, can better balance be reached.
Preferably, terminal device comprises: terminal data reports service module and daily record memory module (not shown), wherein,
Daily record memory module, for store respectively each application be in operation generate log information data;
Terminal data reports service module, for sending the request of application reporting policy to log server, carries application number information; According to the application reporting policy returned, send the request of daily record reporting policy to log server; According to the daily record reporting policy returned, read log information data from daily record memory module, report log information data to log server.
In practical application, this terminal device can further include:
Log information data processing module, for the log information data that receiving terminal data report service module to export, if daily record reporting policy is for separating reported data, then reports log information Dynamic data exchange corresponding for each application to log server; If daily record reporting policy is for concentrating reported data, then after each log information data received being encapsulated, form log information packet, unification reports to log server.
In the embodiment of the present invention, log information data processing module is used for log information data daily record memory module stored, and processes according to daily record reporting policy.
Wherein, terminal data reports service module to comprise: application reporting policy request unit, daily record reporting policy request unit and log information data report unit, wherein,
Application reporting policy request unit, for sending the request of application reporting policy to log server, carries application number information;
Daily record reporting policy request unit, for the application reporting policy that basis returns, if comprise application number threshold information in application reporting policy, according to the application number threshold information received, what split this terminal device is applied as multiple set of applications, respectively the application message comprised in each set of applications is encapsulated in the request of daily record reporting policy, is sent to log server; Otherwise, send the request of daily record reporting policy to log server;
Log information data report unit, for according to the daily record reporting policy returned, read log information data, report log information data to log server from daily record memory module.
Log server comprises: system end data report service module, policy store module and log information data memory module (not shown), wherein,
System end data report service module, for receiving the request of application reporting policy, according to application number information, responding the request of described application reporting policy, obtaining application reporting policy, and return to terminal device from policy store module; Receive the request of daily record reporting policy, according to application number information, the connection frequency reporting log information data and network bandwidth information, respond the request of described daily record reporting policy, obtain daily record reporting policy from policy store module, and return to terminal device; Receive log information data, export log information data memory module to;
Policy store module, for storing daily record reporting policy and application reporting policy;
Log information data memory module, for storing the log information data of reception.
In the embodiment of the present invention, also the function i ntegration of policy store module and log information data memory module can be reported service module in system end data.Certainly, in practical application, also policy store module and log information data memory module and log server can be separated, such as, policy store module can be independently above-mentioned strategic server, and log information data memory module can be independently above-mentioned data server.
Wherein, system end data report service module to comprise: the first application reporting policy requesting processing, daily record reporting policy request unit and log information data receipt unit, wherein,
First application reporting policy requesting processing, for receiving the request of application reporting policy, according to application number information, judge whether apply the application number carried in reporting policy request exceedes the application number threshold value pre-set, if, respond the request of described application reporting policy, return the application reporting policy of separately acquisition strategy to terminal device; Otherwise, respond the request of described application reporting policy, return the application reporting policy of concentrated acquisition strategy to terminal device;
Daily record reporting policy request unit, for receiving the request of daily record reporting policy, according to application number information, the connection frequency reporting log information data and network bandwidth information, respond the request of described daily record reporting policy, obtain daily record reporting policy from policy store module, and return to terminal device;
Log information data receipt unit, for receiving log information data, exports log information data memory module to.
Certainly, in practical application, system end data report service module also can comprise: the second application reporting policy requesting processing, daily record reporting policy request unit and log information data receipt unit, wherein,
Second application reporting policy requesting processing, for receiving the request of application reporting policy, according to application number information, judge whether apply the application number carried in reporting policy request exceedes the application number threshold value pre-set, if, respond the request of described application reporting policy, return the application reporting policy of concentrated acquisition strategy to terminal device, carry application number threshold information; Otherwise, respond the request of described application reporting policy, return the application reporting policy of concentrated acquisition strategy to terminal device;
Daily record reporting policy request unit, for receiving the request of daily record reporting policy, according to application number information, the connection frequency reporting log information data and network bandwidth information, respond the request of described daily record reporting policy, obtain daily record reporting policy from policy store module, and return to terminal device;
Log information data receipt unit, for receiving log information data, exports log information data memory module to.
Preferably, this log server can further include: data report monitoring module and Developing Tactics module, wherein,
Data report monitoring module, for the application number that monitoring terminal equipment reports the connection frequency of log information data, current network bandwidth information, requirement of real-time information and reports;
Developing Tactics module, if monitor the application number that obtains to exceed the application number threshold value pre-set, triggers terminal device is switched to separately acquisition strategy separate reported data; Or, trigger terminal device is switched to concentrated acquisition strategy concentrate reported data;
Separate on the basis of reported data current for separating acquisition strategy, if monitor the linking number that obtains exceed the linking number threshold value that pre-sets and/or, the total bandwidth resource taken of giving the correct time on each application is concurrent exceedes the bandwidth resources threshold value pre-set, and triggers terminal device to be switched to separately acquisition strategy and concentrate reported data; Or, trigger terminal device is switched to concentrated acquisition strategy separate reported data;
Concentrate on the basis of reported data current for separately acquisition strategy, if monitor the application number obtained to be less than the application number threshold value pre-set, trigger terminal device is switched to concentrated acquisition strategy concentrate reported data; Or, trigger terminal device switched to separately acquisition strategy and separate reported data;
Current for concentrating acquisition strategy to concentrate on the basis of reported data, the requirement of real-time information of statistics application, obtain requirement of real-time and exceed the application number of the real-time threshold value pre-set and the ratio always applying number, if the ratio obtained exceedes the rate threshold pre-set, trigger terminal device is switched to concentrated acquisition strategy separate reported data; Or, trigger terminal device switched to separately acquisition strategy and concentrate reported data.
Obviously, those skilled in the art can carry out various change and modification to the present invention and not depart from the spirit and scope of the present invention.Like this, if belong within the scope of the claims in the present invention and equivalent technologies thereof to these amendments of the present invention and modification, then the present invention also comprises these change and modification.

Claims (14)

1. terminal device reports a method for daily record, comprising:
Terminal device sends the request of application reporting policy to log server, carries application number information;
Log server receives application reporting policy request, one of adopts following manner any to return application reporting policy to terminal device:
Mode one: log server judges that whether apply the application number carried in reporting policy request exceedes the application number threshold value pre-set, and if so, responds the request of described application reporting policy, returns the application reporting policy of separately acquisition strategy to terminal device; Otherwise, respond the request of described application reporting policy, return the application reporting policy of concentrated acquisition strategy to terminal device;
Mode two: log server judges whether apply the application number carried in reporting policy request exceedes the application number threshold value pre-set, if, respond the request of described application reporting policy, return the application reporting policy of concentrated acquisition strategy to terminal device, carry application number threshold information; Otherwise, respond the request of described application reporting policy, return the application reporting policy of concentrated acquisition strategy to terminal device;
Terminal device, according to the application reporting policy returned, sends the request of daily record reporting policy to log server;
Log server receives the request of daily record reporting policy, according to application number information, the connection frequency reporting log information data and network bandwidth information, responds the request of described daily record reporting policy, returns daily record reporting policy to terminal device;
Each application in terminal device, according to the daily record reporting policy returned, reports log information data to log server.
2. method according to claim 1, wherein, described terminal device, according to the application reporting policy returned, sends the request of daily record reporting policy to log server and comprises:
If application reporting policy is for concentrating acquisition strategy, then each application message is encapsulated in the request of daily record reporting policy by terminal device, is sent to log server; If application reporting policy is separately acquisition strategy, then each application in terminal device, is encapsulated in self application message in the request of daily record reporting policy respectively, is sent to log server independently.
3. method according to claim 1, wherein, described terminal device, according to the application reporting policy returned, sends the request of daily record reporting policy to log server and comprises:
Terminal device is according to the application number threshold information received, and what split this terminal device is applied as multiple set of applications, the application message comprised is encapsulated in the request of daily record reporting policy respectively, is sent to log server in each set of applications.
4. the method according to any one of claims 1 to 3, wherein, described according to application number information, the connection frequency reporting log information data and network bandwidth information, respond the request of described daily record reporting policy, return daily record reporting policy to terminal device and comprise:
If log server is according to application number information, the connection frequency reporting log information data and network bandwidth information, determine the daily record reporting policy adopting concentrated reported data, and terminal device adopts separately acquisition strategy, then the daily record reporting policy of the concentrated reported data of each application is carried in the daily record reporting policy request response of respective application by log server, exports each application in terminal device respectively to;
If log server is according to application number information, the connection frequency reporting log information data and network bandwidth information, determine the daily record reporting policy adopting concentrated reported data, and terminal device adopts concentrated acquisition strategy, then the daily record reporting policy of concentrated reported data is carried in daily record reporting policy request response by log server, exports terminal device to;
If log server is according to application number information, the connection frequency reporting log information data and network bandwidth information, determine the daily record reporting policy adopting separately reported data, and terminal device adopts separately acquisition strategy, then the daily record reporting policy of the separately reported data of each application is carried in the daily record reporting policy request response of respective application by log server, exports each application in terminal device respectively to;
If log server is according to application number information, the connection frequency reporting log information data and network bandwidth information, determine the daily record reporting policy adopting separately reported data, and terminal device adopts concentrated acquisition strategy, then the daily record reporting policy separating reported data is carried in daily record reporting policy request response by log server, exports terminal device to.
5. method according to claim 4, wherein, comprises further:
The application number run in monitoring terminal equipment, if monitor the application number that obtains to exceed the application number threshold value pre-set, triggers terminal device is switched to separately acquisition strategy separate reported data; Or, trigger terminal device is switched to concentrated acquisition strategy concentrate reported data;
Separate on the basis of reported data current for separately acquisition strategy, the linking number run in monitoring terminal equipment, if monitor the linking number obtained to exceed the linking number threshold value pre-set, trigger terminal device is switched to separately acquisition strategy concentrate reported data; Or, trigger terminal device is switched to concentrated acquisition strategy separate reported data;
Concentrate on the basis of reported data current for separately acquisition strategy, in monitoring terminal equipment, run application number, if monitor the application number obtained to be less than the application number threshold value pre-set, trigger terminal device is switched to concentrated acquisition strategy concentrate reported data; Or, trigger terminal device switched to separately acquisition strategy and separate reported data;
Current for concentrating acquisition strategy to concentrate on the basis of reported data, the requirement of real-time of application is run in monitoring terminal equipment, the requirement of real-time information of statistics application, obtain requirement of real-time and exceed the application number of the real-time threshold value pre-set and the ratio always applying number, if the ratio obtained exceedes the rate threshold pre-set, trigger terminal device is switched to concentrated acquisition strategy separate reported data; Or, trigger terminal device switched to separately acquisition strategy and concentrate reported data.
6. method according to claim 5, wherein, comprises further:
Separate on the basis of reported data current for separating acquisition strategy, monitoring journal server resource expense whether exceed the resource overhead threshold value that pre-sets and/or, whether the total bandwidth resource taken of giving the correct time on each application is concurrent exceedes the bandwidth resources threshold value pre-set, if so, trigger and terminal device switched to separately acquisition strategy and concentrate reported data; Or, trigger terminal device is switched to concentrated acquisition strategy separate reported data.
7. method according to claim 4, wherein, each application in described terminal device, according to the daily record reporting policy returned, reports log information data to comprise to log server:
If daily record reporting policy is for separating reported data, then the log information data of self are recorded in each application respectively, and report the log information data of record to log server with being mutually independent; If daily record reporting policy is for concentrating reported data, then the log information data of self are recorded in each application respectively, and after each log information data of record being encapsulated, form log information packet, and unification reports to log server.
8. a daily record reporting system, is characterized in that, this system comprises: terminal device and log server, wherein,
Terminal device, for sending the request of application reporting policy to log server, carries application number information; According to the application reporting policy returned, send the request of daily record reporting policy to log server; Each application in terminal device, according to the daily record reporting policy returned, reports log information data to log server;
Log server, for receiving the request of application reporting policy, according to application number information, responding the request of described application reporting policy, returning application reporting policy to terminal device; Receive the request of daily record reporting policy, according to application number information, the connection frequency reporting log information data and network bandwidth information, respond the request of described daily record reporting policy, return daily record reporting policy to terminal device; Receive log information data, store;
Wherein, described log server comprises: system end data report service module, policy store module and log information data memory module;
Described system end data report service module to comprise one of the first application reporting policy requesting processing and the second application reporting policy requesting processing, daily record reporting policy request unit and log information data receipt unit, wherein,
First application reporting policy requesting processing receives the request of application reporting policy, according to application number information, judge whether apply the application number carried in reporting policy request exceedes the application number threshold value pre-set, if, respond the request of described application reporting policy, return the application reporting policy of separately acquisition strategy to terminal device; Otherwise, respond the request of described application reporting policy, return the application reporting policy of concentrated acquisition strategy to terminal device;
Second application reporting policy requesting processing receives the request of application reporting policy, according to application number information, judge whether apply the application number carried in reporting policy request exceedes the application number threshold value pre-set, if, respond the request of described application reporting policy, return the application reporting policy of concentrated acquisition strategy to terminal device, carry application number threshold information; Otherwise, respond the request of described application reporting policy, return the application reporting policy of concentrated acquisition strategy to terminal device;
Described daily record reporting policy request unit receives the request of daily record reporting policy, according to application number information, the connection frequency reporting log information data and network bandwidth information, respond the request of described daily record reporting policy, obtain daily record reporting policy from policy store module, and return to terminal device;
Described log information data receipt unit receives log information data, exports log information data memory module to;
Described policy store module is used for storing daily record reporting policy and application reporting policy;
Described log information data memory module is for storing the log information data of reception.
9. system according to claim 8, is characterized in that, described terminal device comprises: terminal data reports service module and daily record memory module, wherein,
Daily record memory module, for store respectively each application be in operation generate log information data;
Terminal data reports service module, for sending the request of application reporting policy to log server, carries application number information; According to the application reporting policy returned, send the request of daily record reporting policy to log server; According to the daily record reporting policy returned, read log information data from daily record memory module, report log information data to log server.
10. system according to claim 9, is characterized in that, described terminal data reports service module to comprise: application reporting policy request unit, daily record reporting policy request unit and log information data report unit, wherein,
Application reporting policy request unit, for sending the request of application reporting policy to log server, carries application number information;
Daily record reporting policy request unit, for the application reporting policy that basis returns, if comprise application number threshold information in application reporting policy, according to the application number threshold information received, what split this terminal device is applied as multiple set of applications, respectively the application message comprised in each set of applications is encapsulated in the request of daily record reporting policy, is sent to log server; Otherwise, send the request of daily record reporting policy to log server;
Log information data report unit, for according to the daily record reporting policy returned, read log information data, report log information data to log server from daily record memory module.
11. systems according to claim 10, is characterized in that, described terminal device comprises further:
Log information data processing module, for the log information data that receiving terminal data report service module to export, if daily record reporting policy is for separating reported data, then reports log information Dynamic data exchange corresponding for each application to log server; If daily record reporting policy is for concentrating reported data, then after each log information data received being encapsulated, form log information packet, unification reports to log server.
12. systems according to claim 8, is characterized in that,
Described application reporting policy comprises: concentrate acquisition strategy and separately acquisition strategy;
Described daily record reporting policy comprises: concentrate reported data and separate reported data.
13. systems according to claim 12, it is characterized in that, application reporting policy and daily record reporting policy are combined, comprising: concentrated acquisition strategy concentrates reported data, concentrate acquisition strategy separate reported data, separately acquisition strategy separate reported data and separately acquisition strategy concentrate reported data.
14. systems according to claim 8, is characterized in that, described log server comprises further: data report monitoring module and Developing Tactics module, wherein,
Data report monitoring module, for the application number that monitoring terminal equipment reports the connection frequency of log information data, current network bandwidth information, requirement of real-time information and reports;
Developing Tactics module, if monitor the application number that obtains to exceed the application number threshold value pre-set, triggers terminal device is switched to separately acquisition strategy separate reported data; Or, trigger terminal device is switched to concentrated acquisition strategy concentrate reported data;
Separate on the basis of reported data current for separating acquisition strategy, if monitor the linking number that obtains exceed the linking number threshold value that pre-sets and/or, the total bandwidth resource taken of giving the correct time on each application is concurrent exceedes the bandwidth resources threshold value pre-set, and triggers terminal device to be switched to separately acquisition strategy and concentrate reported data; Or, trigger terminal device is switched to concentrated acquisition strategy separate reported data;
Concentrate on the basis of reported data current for separately acquisition strategy, if monitor the application number obtained to be less than the application number threshold value pre-set, trigger terminal device is switched to concentrated acquisition strategy concentrate reported data; Or, trigger terminal device switched to separately acquisition strategy and separate reported data;
Current for concentrating acquisition strategy to concentrate on the basis of reported data, the requirement of real-time information of statistics application, obtain requirement of real-time and exceed the application number of the real-time threshold value pre-set and the ratio always applying number, if the ratio obtained exceedes the rate threshold pre-set, trigger terminal device is switched to concentrated acquisition strategy separate reported data; Or, trigger terminal device switched to separately acquisition strategy and concentrate reported data.
CN201210321267.1A 2012-09-03 2012-09-03 Method for reporting log through terminal equipment and log reporting system Active CN102882705B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210321267.1A CN102882705B (en) 2012-09-03 2012-09-03 Method for reporting log through terminal equipment and log reporting system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210321267.1A CN102882705B (en) 2012-09-03 2012-09-03 Method for reporting log through terminal equipment and log reporting system

Publications (2)

Publication Number Publication Date
CN102882705A CN102882705A (en) 2013-01-16
CN102882705B true CN102882705B (en) 2015-03-25

Family

ID=47483859

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210321267.1A Active CN102882705B (en) 2012-09-03 2012-09-03 Method for reporting log through terminal equipment and log reporting system

Country Status (1)

Country Link
CN (1) CN102882705B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103312544B (en) * 2013-06-14 2015-12-02 青岛海信传媒网络技术有限公司 A kind of control terminal reports the method, apparatus and system of journal file
CN104468938A (en) * 2013-09-12 2015-03-25 中国移动通信集团浙江有限公司 Information acquisition and processing methods and related devices as well as mobile terminal and server
CN104994528B (en) * 2015-07-03 2019-01-29 亚信科技(南京)有限公司 A kind of method and device of Response Policy request
CN106487861B (en) * 2015-09-01 2021-04-02 腾讯科技(北京)有限公司 Network data providing method and device
CN107231245B (en) * 2016-03-23 2021-04-02 阿里巴巴集团控股有限公司 Method and device for reporting monitoring log, and method and device for processing monitoring log
CN107480277B (en) * 2017-08-22 2021-01-26 北京京东尚科信息技术有限公司 Method and device for collecting website logs
CN108306771B (en) * 2018-02-09 2021-06-18 腾讯科技(深圳)有限公司 Log reporting method, device and system
CN109727137A (en) * 2018-12-18 2019-05-07 杭州茂财网络技术有限公司 A kind of log reporting method and system based on consumer's risk evaluation and test
WO2021081853A1 (en) * 2019-10-30 2021-05-06 华为技术有限公司 Log information reporting and receiving method, and related apparatus
CN111865674B (en) * 2020-07-09 2024-01-09 腾讯科技(深圳)有限公司 Log processing method, device and medium
CN114067456A (en) * 2021-10-13 2022-02-18 北京梧桐车联科技有限责任公司 Log processing method, electronic device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101778406A (en) * 2010-01-15 2010-07-14 瑞斯康达科技发展股份有限公司 Method for obtaining system logs and monitored equipment
CN102035685A (en) * 2010-12-20 2011-04-27 中兴通讯股份有限公司 Alarm treating method and DPI (Deep Packet Inspection) device
CN102158748A (en) * 2010-05-14 2011-08-17 青岛海信传媒网络技术有限公司 Methods and systems for collecting and uploading logs
CN102487529A (en) * 2010-12-01 2012-06-06 北京创毅视讯科技有限公司 Method for raising information transmission efficiency of Internet of things and apparatus thereof

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101778406A (en) * 2010-01-15 2010-07-14 瑞斯康达科技发展股份有限公司 Method for obtaining system logs and monitored equipment
CN102158748A (en) * 2010-05-14 2011-08-17 青岛海信传媒网络技术有限公司 Methods and systems for collecting and uploading logs
CN102487529A (en) * 2010-12-01 2012-06-06 北京创毅视讯科技有限公司 Method for raising information transmission efficiency of Internet of things and apparatus thereof
CN102035685A (en) * 2010-12-20 2011-04-27 中兴通讯股份有限公司 Alarm treating method and DPI (Deep Packet Inspection) device

Also Published As

Publication number Publication date
CN102882705A (en) 2013-01-16

Similar Documents

Publication Publication Date Title
CN102882705B (en) Method for reporting log through terminal equipment and log reporting system
US9917735B2 (en) System and method for big data aggregation in sensor network
CN105656653A (en) Network access method of newly added node in distributed coordination system, device and system
CN102594697A (en) Load balancing method and device
CN105183299B (en) A kind of man-machine interface service processing system and method
CN102983996A (en) Dynamic allocation method and system for high-availability cluster resource management
US20160344582A1 (en) Call home cluster
CN103167275B (en) Network video monitor and control system and stream medium data distribution method thereof
CN103685580A (en) Software-defined-network-based northbound interface access system and method
CN104468274A (en) Cluster monitor and management method and system
CN110166857B (en) Method for realizing dynamic configuration of fiber channel switch
US20070076738A1 (en) System, method, and computer-readable medium for resource migration in a distributed telecommunication system
CN108337163B (en) Method and apparatus for aggregating links
CN105099769A (en) Method, device and system for processing abnormal operations of service platform
CN107070744A (en) Server monitoring method
CN106354870A (en) Data loading method and system
CN108551571B (en) Monitoring video distribution method, device and system and distribution server
CN109347985A (en) A kind of multi-service processing method based on edge calculations, device and Edge Server
CN104270432B (en) Based on drilling well industry Real-time Data Service system and data interactive method
CN112596897A (en) Method and system for multi-tenant isolation
EP2690560A2 (en) Method of benchmarking the behaviour of a replacement information system with the old system
CN112019604A (en) Edge data transmission method and system
CN105743709A (en) Management device, complete cabinet management system and management method
WO2022126837A1 (en) Intelligent scheduling system for video monitoring service
CN115589419A (en) Monitoring data analysis system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20170124

Address after: 266100 Shandong Province, Qingdao city Laoshan District Songling Road No. 399

Patentee after: Poly Polytron Technologies Inc

Address before: 266061 Laoshan, Qingdao province Hongkong District No. East Road, room 248, room 131

Patentee before: Qingdao Hisense Media Networks Co., Ltd.