CN102932176B - Background program log tracking method, tracking side, service side and system - Google Patents

Background program log tracking method, tracking side, service side and system Download PDF

Info

Publication number
CN102932176B
CN102932176B CN201210420905.5A CN201210420905A CN102932176B CN 102932176 B CN102932176 B CN 102932176B CN 201210420905 A CN201210420905 A CN 201210420905A CN 102932176 B CN102932176 B CN 102932176B
Authority
CN
China
Prior art keywords
business
keyword
multicast
business keyword
tracked
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.)
Expired - Fee Related
Application number
CN201210420905.5A
Other languages
Chinese (zh)
Other versions
CN102932176A (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.)
Huawei Device Shenzhen Co Ltd
Original Assignee
Shenzhen Huawei Communication Technologies 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 Shenzhen Huawei Communication Technologies Co Ltd filed Critical Shenzhen Huawei Communication Technologies Co Ltd
Priority to CN201210420905.5A priority Critical patent/CN102932176B/en
Publication of CN102932176A publication Critical patent/CN102932176A/en
Application granted granted Critical
Publication of CN102932176B publication Critical patent/CN102932176B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiments of the invention provide a background program log tracking method, a tracking side, a service side and a system, relating to the field of communications. The background program log tracking method, the tracking side, the service side and the system have the advantages that when maintenance personnel process logs in detail by checking up corresponding services according to service keywords, the interference from other logs can be avoided, the performance of the system is improved, and the operation is convenient and fast. According to the method, after a program of the foreground tracking side is started, service keywords of services to be tracked are received, a multicast port number corresponding to the service keywords is acquired according to the service keywords, tracking information comprising the service keywords and the multicast port number is created and transmitted to the background service side, the background service side carries out service matching according to the service keywords and adjusts the level of logs of the services to be tracked, matched with the service keywords, to be the lowest, and after the logs are created, the logs of the services to be tracked are transmitted to a multicast group corresponding to the multicast port number corresponding to the service keywords according to the lowest level. The background program log tracking method, the tracking side, the service side and the system are applied to the tracking of background program logs.

Description

The tracking of background program log, follow the tracks of end, service end and system
Technical field
The present invention relates to the communications field, particularly relate to a kind of tracking of background program log, follow the tracks of end, service end and system.
Background technology
In prior art, background program is when processing business in enormous quantities, and daily record Printing Problem is in the middle of contradiction always.This is because, if daily record is too detailed, systematic function will be caused low, and take a large amount of storages, if daily record is too simple, just cannot check the detailed process daily record of single business, and then cannot meet in certain situation the case study of single business and location.
For example in charge system, with the telephone number of calling for business keyword, attendant follows the tracks of this telephone number of end registration on foreground, to subscribe to and to issue the detailed process daily record of this telephone number, and after repeatedly following the tracks of multiple number, the detailed process daily record of the plurality of tracking number may be write in the middle of a journal file by background server, is also likely that a detailed process daily record following the tracks of number has been write in the middle of multiple journal file.Meanwhile, the daily record of the daily record that this secondary tracking generates and left over by history also may mix, and causes trace log more chaotic like this, needing attendant according to following the tracks of number and the manual daily record filtering out oneself and be concerned about of timestamp, causing efficiency comparison low.
Summary of the invention
Embodiments of the invention provide a kind of tracking of background program log, follow the tracks of end, service end and system, when attendant can be made according to business keyword to check the detailed process daily record of the business corresponding with this business keyword, avoid the interference of other daily records, thus raising systematic function, convenient to operation.
For achieving the above object, embodiments of the invention adopt following technical scheme:
First aspect, provides a kind of tracking of background program log, comprising:
After platform follows the tracks of end program before activation, receive the business keyword of business to be tracked, and obtain the multicast port number corresponding with described business keyword according to described business keyword;
Generate the trace information comprising described business keyword and described multicast port number, and described trace information is sent to background server, and attempt adding with described multicast port number corresponding multicast group;
Adding with after described multicast port number corresponding multicast group, wait for the business described to be tracked of described background server process and described business keyword match, and after platform service end processes described business to be tracked in the rear, receive the daily record of described business to be tracked from described background server.
In the first mode in the cards, in conjunction with first aspect, described method also comprises:
After platform follows the tracks of end program before being turned off, end program is followed the tracks of on described foreground and exits and described multicast port number corresponding multicast group, and delete described trace information.
In the second mode in the cards, in conjunction with the first mode in the cards of first aspect or first aspect, describedly obtain the multicast port number corresponding with described business keyword according to described business keyword and comprise:
If the business keyword receiving business to be tracked is one, then it is described business keyword assignment multicast port number;
If the business keyword receiving business to be tracked is at least two, then it is each business keyword assignment multicast port number.
Second aspect, provides a kind of tracking of background program log, comprising:
Receive the trace information comprising business keyword and the multicast port corresponding with described business keyword number, and described trace information is recorded in trace information file;
According to described trace information document creation multicast group;
Carry out business coupling according to described business keyword, and be minimum rank by the daily record rank adjusting of the business to be tracked with described business keyword match;
According to original daily record rank of described business to be tracked by the daily record of described business to be tracked write journal file, and according to the minimum rank of daily record by the multicast group corresponding to the Log Sender of described business to be tracked to corresponding with described business keyword multicast port number.
In the first mode in the cards, in conjunction with second aspect, described method also comprises:
Periodic refreshing trace information file, detecting that described foreground is followed the tracks of after end deleted trace information corresponding to described business keyword, closes the multicast group corresponding to the multicast port corresponding with described business keyword number.
In the second mode in the cards, in conjunction with the first mode in the cards of second aspect or second aspect, describedly create a multicast group according to described multicast port number and comprise:
When to follow the tracks of business keyword that end institute follows the tracks of business be same business keyword for multiple foregrounds, according to the multicast port number corresponding to described same business keyword, described multiple foregrounds tracking held and joining with this multicast port number corresponding same multicast group;
When business keyword that end institute follows the tracks of business is followed the tracks of at least two in foreground, the multicast port number corresponding according to each business keyword, holds the tracking of described foreground in the multicast group joined corresponding to multicast port corresponding to each business keyword number.
The third aspect, provides a kind of and follows the tracks of end, comprising:
Port numbers acquiring unit, after platform follows the tracks of end program before activation, receive the business keyword of business to be tracked, and obtain the multicast port number corresponding with described business keyword according to described business keyword, and described business keyword and the multicast port number corresponding with described business keyword are sent to information transmitting unit;
Information transmitting unit, for receiving described business keyword and the multicast port number corresponding with described business keyword from port numbers acquiring unit, generate the trace information comprising described business keyword and described multicast port number, and described trace information is sent to background server, and attempt adding with described multicast port number corresponding multicast group;
Daily record receiving element, for adding with after described multicast port number corresponding multicast group, wait for the business described to be tracked of described background server process and described business keyword match, and after platform service end processes described business to be tracked in the rear, receive the daily record of described business to be tracked from described background server.
In the first mode in the cards, in conjunction with the third aspect, described tracking end also comprises:
Information deletion unit, after platform follows the tracks of end program before being turned off, follows the tracks of described foreground of end program and exits and described multicast port number corresponding multicast group, and delete described trace information.
In the second mode in the cards, in conjunction with the first mode in the cards of the third aspect or the third aspect, described port numbers acquiring unit specifically for:
If the business keyword receiving business to be tracked is one, then it is described business keyword assignment multicast port number;
If the business keyword receiving business to be tracked is at least two, then it is each business keyword assignment multicast port number.
Fourth aspect, provides a kind of service end, comprising:
Information receiving unit, for receiving the trace information comprising business keyword and the multicast port corresponding with described business keyword number, and is recorded to described trace information in trace information file, more described trace information file is sent to multicast group creating unit;
Multicast group creating unit, for receiving described trace information file from information receiving unit, according to described trace information document creation multicast group;
The daily record rank adjusting of the business to be tracked with described business keyword match for carrying out business coupling according to described business keyword, and is minimum rank by business matching unit;
Log Sender unit, for the original daily record rank according to described business to be tracked by the daily record of described business to be tracked write journal file, and according to the minimum rank of daily record by the multicast group corresponding to the Log Sender of described business to be tracked to corresponding with described business keyword multicast port number.
In the first mode in the cards, in conjunction with fourth aspect, described service end also comprises;
Multicast group closing unit, for periodic refreshing trace information file, detecting that described foreground is followed the tracks of after end deleted trace information corresponding to described business keyword, closes the multicast group corresponding to the multicast port corresponding with described business keyword number.
In the second mode in the cards, in conjunction with the first mode in the cards of fourth aspect or fourth aspect, described multicast group creating unit specifically for:
When to follow the tracks of business keyword that end institute follows the tracks of business be same business keyword for multiple foregrounds, according to the multicast port number corresponding to described same business keyword, described multiple foregrounds tracking held and joining with this multicast port number corresponding same multicast group;
When business keyword that end institute follows the tracks of business is followed the tracks of at least two in foreground, the multicast port number corresponding according to each business keyword, holds the tracking of described foreground in the multicast group joined corresponding to multicast port corresponding to each business keyword number.
5th aspect, provides a kind of communication system, and described system comprises:
Tracking end as described in claim 7 to 9;
Service end as described in claim 10 to 12.
The embodiment of the present invention provides a kind of tracking of background program log, follow the tracks of end, service end and system, after platform follows the tracks of end program before activation, receive the business keyword of business to be tracked, the multicast port number corresponding with business keyword is obtained according to business keyword, generate the trace information comprising business keyword and multicast port number, trace information is sent to background server and is recorded in trace information file, make background server according to trace information document creation multicast group, add with after multicast port number corresponding multicast group at tracking end, background server carries out business coupling according to business keyword, be minimum rank by the daily record rank adjusting of the business to be tracked with business keyword match, after daily record generates according to the minimum rank of daily record by the multicast group corresponding to the Log Sender of business to be tracked to corresponding with business keyword multicast port number, tracking end in such multicast group just have received the daily record of business to be tracked corresponding to inputted keyword from background server, when attendant can be made according to business keyword like this to check the detailed process daily record of the business corresponding with this business keyword, avoid the interference of other daily records, thus raising systematic function, convenient to operation.
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, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The tracking schematic flow sheet of a kind of background program log that Fig. 1 provides for the embodiment of the present invention;
The tracking schematic flow sheet of the another kind of background program log that Fig. 2 provides for the embodiment of the present invention;
The tracking schematic flow sheet of a kind of background program log that Fig. 3 provides for further embodiment of this invention;
The one that Fig. 4 provides for further embodiment of this invention follows the tracks of end structure schematic diagram;
The another kind that Fig. 5 provides for further embodiment of this invention follows the tracks of end structure schematic diagram;
A kind of service end structural representation that Fig. 6 provides for further embodiment of this invention;
The another kind of service end structural representation that Fig. 7 provides for further embodiment of this invention;
The one that Fig. 8 provides for another embodiment of the present invention follows the tracks of end structure schematic diagram;
The another kind of service end structural representation that Fig. 9 provides for another embodiment of the present invention;
A kind of communication system architecture schematic diagram that Figure 10 provides for another embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the present invention provides a kind of tracking of background program log, as shown in Figure 1, comprising:
S101, follow the tracks of and hold after platform follows the tracks of end program before activation, receive the business keyword of business to be tracked, and obtain the multicast port number corresponding with business keyword according to business keyword.
Wherein, after attendant starts foreground tracking end program, inputted the business keyword of business to be tracked by attendant, and the business keyword of business to be tracked and multicast port one_to_one corresponding, namely business keyword can obtain a multicast port number corresponding with business keyword.If the business keyword that attendant inputs business to be tracked is at least two, then it is each business keyword assignment multicast port number.
S102, follow the tracks of end and generate the trace information comprising business keyword and multicast port number, and trace information is sent to background server, and attempt adding with multicast port number corresponding multicast group.
S103, tracking end are adding with after multicast port number corresponding multicast group, wait for the business to be tracked of background server process and business keyword match, and after background server processes business to be tracked, receive the daily record of business to be tracked from background server.
The embodiment of the present invention also provides a kind of tracking of background program log, as shown in Figure 2, comprising:
S201, service end receive the trace information comprising business keyword and the multicast port corresponding with business keyword number, and are recorded in trace information file by trace information.
S202, service end are according to trace information document creation multicast group.
S203, service end carry out business coupling according to business keyword, and are minimum rank by the daily record rank adjusting of the business to be tracked with business keyword match.
S204, service end according to original daily record rank of business to be tracked by the daily record of business to be tracked write journal file, and according to the minimum rank of daily record by the multicast group corresponding to the Log Sender of business to be tracked to corresponding with business keyword multicast port number.
The embodiment of the present invention provides a kind of tracking of background program log, after platform follows the tracks of end program before activation, receive the business keyword of business to be tracked, the multicast port number corresponding with business keyword is obtained according to business keyword, generate the trace information comprising business keyword and multicast port number, trace information is sent to background server and is recorded in trace information file, make background server according to trace information document creation multicast group, add with after multicast port number corresponding multicast group at tracking end, background server carries out business coupling according to business keyword, be minimum rank by the daily record rank adjusting of the business to be tracked with business keyword match, after daily record generates according to the minimum rank of daily record by the multicast group corresponding to the Log Sender of business to be tracked to corresponding with business keyword multicast port number, tracking end in such multicast group just have received the daily record of business to be tracked corresponding to inputted keyword from background server, when attendant can be made according to business keyword like this to check the detailed process daily record of the business corresponding with this business keyword, avoid the interference of other daily records, thus raising systematic function, convenient to operation.
Further embodiment of this invention provides a kind of tracking of background program log, as shown in Figure 3, comprising:
S301, follow the tracks of and hold after platform follows the tracks of end program before activation, receive the business keyword of business to be tracked, and obtain the multicast port number corresponding with business keyword according to business keyword.
Exemplary, it can be a computer that end is followed the tracks of on foreground.Suppose that the tracking end program that this computer runs is charge system, business keyword can be the telephone number of calling, attendant is after this charge system of startup, by the telephone number that the input of this charge system will be followed the tracks of, follow the tracks of end and can obtain the multicast port number corresponding with it according to the telephone number of input.Concrete, when attendant inputs the telephone number of a needs tracking, follow the tracks of end and can obtain a multicast port number that telephone number is corresponding therewith; When attendant's input at least two needs the telephone number followed the tracks of, follow the tracks of end and can obtain at least two multicast port number, and each telephone number and multicast port one_to_one corresponding.
Wherein, in the communication technology, multicast also can be called multicast, that a kind of single packet of the disposable transmission of one or more main frame that allows is to TCP/IP (the TransmissionControl Protocol/Internet Protocol of multiple host, transmission control protocol/Internet Protocol) network technology, be a kind of communication mode of point to multi--point, effectively can save broadband.Namely multicasting technology is by specifying multicast address and port, and multiple main frame can be formed a multicast network or multicast group, in this multicast group, any one main frame gives out information, and other main frames can receive.At present, multicasting technology can be widely used in the middle of the multinomial technology such as the network teleconference, online video program request and multimedia remote education.
S302, follow the tracks of end and generate the trace information comprising business keyword and multicast port number, and trace information is sent to background server, and attempt adding with multicast port number corresponding multicast group.
Exemplary, suppose in charge system, follow the tracks of end after obtaining tracking number and the multicast port number corresponding with tracking number, generate to comprise and follow the tracks of number and the multicast port trace information corresponding with following the tracks of number, and this trace information is sent to background server.Now, follow the tracks of end just start to attempt to add corresponding to the port numbers corresponding with following the tracks of number multicast group, add unsuccessful then can retry after dormancy a period of time.
S303, service end receive the trace information comprising business keyword and the multicast port corresponding with business keyword number, and are recorded in trace information file by trace information.
S304, service end are according to trace information document creation multicast group.
Concrete, multicast group can be created in the following manner:
When to follow the tracks of business keyword that end institute follows the tracks of business be same business keyword for multiple foregrounds, according to the multicast port number corresponding to same business keyword, the tracking of multiple foregrounds held and joining with this multicast port number corresponding same multicast group;
When business keyword that end institute follows the tracks of business is followed the tracks of at least two in foreground, the multicast port number corresponding according to each business keyword, holds foreground tracking in the multicast group joined corresponding to multicast port corresponding to each business keyword number.
Exemplary, in charge system, above-mentioned keyword is telephone number, background server receive follow the tracks of number and with follow the tracks of multicast port corresponding to number number after, if the tracking number that end is followed the tracks of on multiple foregrounds at multiple attendant place is same telephone number, multicast port number then corresponding to same telephone number, end is followed the tracks of on the plurality of foreground to be joined with this multicast port number corresponding same multicast group, and all tracking ends being about to follow the tracks of same number join in a multicast group;
If the tracking number that end is followed the tracks of on the foreground at an attendant place is at least two, then corresponding according to each tracking number multicast port number, followed the tracks of on this foreground in the multicast group that end joins corresponding to multicast port corresponding to each tracking number number, namely a foreground is followed the tracks of end place main frame and can be added in multiple multicast group simultaneously.
S305, add with after multicast port number corresponding multicast group at tracking end, wait for the business to be tracked of background server process and business keyword match.
S306, service end carry out business coupling according to business keyword, and are minimum rank by the daily record rank adjusting of the business to be tracked with business keyword match.
Concrete, background server, when processing batch service, when every business starts to process, carries out business coupling according to business keyword.Such as in charge system, if the telephone number matches that this business and attendant input, then the daily record rank of this business of dynamic conditioning is lowermost level.Wherein, the log-rank of background server is other, and the higher daily record of rank is simpler, otherwise rank is lower, and daily record is more detailed.Like this, when the daily record rank of the business matched is minimum rank, attendant can receive and view the more detailed logging of followed the tracks of number.
S307, service end according to original daily record rank of business to be tracked by the daily record of business to be tracked write journal file, and according to the minimum rank of daily record by the multicast group corresponding to the Log Sender of business to be tracked to corresponding with business keyword multicast port number.
S308, tracking end receive the daily record of business to be tracked from background server.
Exemplary, in above-mentioned charge system, after background server generates the daily record corresponding with following the tracks of number, the multicast port number corresponding according to this tracking number, by Log Sender to this multicast port number corresponding multicast group, so that all tracking ends in this multicast group can both receive this daily record.
Like this, when end is followed the tracks of on the foreground at multiple attendant place and background server forms same multicast group, owing to follow the tracks of all corresponding same tracking number of end in this multicast group, the detailed log information that end can receive only rear above-mentioned same tracking number is followed the tracks of, not by the interference of other log informations so the plurality of; And, follow the tracks of end when the foreground at an attendant place and follow the tracks of multiple number simultaneously, owing to following the tracks of number and multicast port one_to_one corresponding, namely number and multicast group one_to_one corresponding is followed the tracks of, the detailed log information of the tracking number of its correspondence can only be received due to each multicast group, avoid the interference between multiple log information equally, the personalization achieving daily record is subscribed to and is issued.
S309, follow the tracks of and hold after platform follows the tracks of end program before being turned off, foreground is followed the tracks of end program and exit and multicast port number corresponding multicast group, and delete trace information.
Wherein, in the middle of prior art, start foreground attendant and follow the tracks of end program after incoming traffic keyword, need attendant to search trace log by hand whether to generate, after establishment multicast group, after foreground tracking termination receives trace log, search with regard to not needing whether to generate trace log by hand.Simultaneously in the middle of prior art, need to delete tracking number is manual after the tracking of tracking number is complete, and after multicast is formed and built, attendant is after platform follows the tracks of end program before being turned off, end is followed the tracks of on foreground can exit multicast group automatically, and delete trace information, do not need manual deletion to follow the tracks of number, avoid loaded down with trivial details manual operations.
S310, service end periodic refreshing trace information file, detecting that foreground is followed the tracks of after end deleted trace information corresponding to business keyword, close the multicast group corresponding to the multicast port corresponding with business keyword number.
The embodiment of the present invention provides a kind of tracking of background program log, after platform follows the tracks of end program before activation, receive the business keyword of business to be tracked, the multicast port number corresponding with business keyword is obtained according to business keyword, generate the trace information comprising business keyword and multicast port number, trace information is sent to background server and is recorded in trace information file, make background server according to trace information document creation multicast group, add with after multicast port number corresponding multicast group at tracking end, background server carries out business coupling according to business keyword, be minimum rank by the daily record rank adjusting of the business to be tracked with business keyword match, after daily record generates according to the minimum rank of daily record by the multicast group corresponding to the Log Sender of business to be tracked to corresponding with business keyword multicast port number, tracking end in such multicast group just have received the daily record of business to be tracked corresponding to inputted keyword from background server, when attendant can be made according to business keyword like this to check the detailed process daily record of the business corresponding with this business keyword, avoid the interference of other daily records, thus raising systematic function, convenient to operation.
Further embodiment of this invention provides a kind of and follows the tracks of end 01, as shown in Figure 4, can comprise:
Port numbers acquiring unit 011, after platform follows the tracks of end program before activation, receive the business keyword of business to be tracked, and obtain the multicast port number corresponding with business keyword according to business keyword, and business keyword and multicast port number corresponding to business keyword are sent to information transmitting unit 012.
Information transmitting unit 012, for receiving business keyword and multicast port number corresponding to business keyword from port numbers acquiring unit 011, generate the trace information comprising business keyword and multicast port number, and trace information is sent to background server, and attempt adding with multicast port number corresponding multicast group.
Daily record receiving element 013, for adding with after multicast port number corresponding multicast group, wait for the business to be tracked of background server process and business keyword match, and after background server processes business to be tracked, receive the daily record of business to be tracked from background server.
Further, as shown in Figure 5, follow the tracks of end 01 can also comprise:
Information deletion unit 014, after platform follows the tracks of end program before being turned off, follows the tracks of by foreground of end program and exits and multicast port number corresponding multicast group, and delete trace information.
Further, port numbers acquiring unit 01 can be specifically for:
If the business keyword receiving business to be tracked is one, then it is business keyword assignment multicast port number;
If the business keyword receiving business to be tracked is at least two, then it is each business keyword assignment multicast port number.
The embodiment of the present invention provides a kind of and follows the tracks of end, after platform follows the tracks of end program before activation, receive the business keyword of business to be tracked, the multicast port number corresponding with business keyword is obtained according to business keyword, generate the trace information comprising business keyword and multicast port number, trace information is sent to background server and is recorded in trace information file, make background server according to trace information document creation multicast group, add with after multicast port number corresponding multicast group at tracking end, background server carries out business coupling according to business keyword, be minimum rank by the daily record rank adjusting of the business to be tracked with business keyword match, after daily record generates according to the minimum rank of daily record by the multicast group corresponding to the Log Sender of business to be tracked to corresponding with business keyword multicast port number, tracking end in such multicast group just have received the daily record of business to be tracked corresponding to inputted keyword from background server, when attendant can be made according to business keyword like this to check the detailed process daily record of the business corresponding with this business keyword, avoid the interference of other daily records, thus raising systematic function, convenient to operation.
The embodiment of the present invention also provides a kind of service end 02, as shown in Figure 6, can comprise:
Information receiving unit 021, for receiving the trace information comprising business keyword and the multicast port corresponding with business keyword number, and is recorded to trace information in trace information file, then trace information file is sent to multicast group creating unit 022.
Multicast group creating unit 022, for receiving trace information file from information receiving unit 021, according to trace information document creation multicast group.
The daily record rank adjusting of the business to be tracked with business keyword match for carrying out business coupling according to business keyword, and is minimum rank by business matching unit 023.
Log Sender unit 024, for the original daily record rank according to business to be tracked by the daily record of business to be tracked write journal file, and according to the minimum rank of daily record by the multicast group corresponding to the Log Sender of business to be tracked to the multicast port corresponding with business keyword number.
Further, as shown in Figure 7, service end 02 can also comprise:
Multicast group closing unit 025, for periodic refreshing trace information file, detecting that foreground is followed the tracks of after end deleted trace information corresponding to business keyword, closes the multicast group corresponding to the multicast port corresponding with business keyword number.
Further, multicast group creating unit 022 can be specifically for:
When to follow the tracks of business keyword that end institute follows the tracks of business be same business keyword for multiple foregrounds, according to the multicast port number corresponding to same business keyword, the tracking of multiple foregrounds held and joining with this multicast port number corresponding same multicast group;
When business keyword that end institute follows the tracks of business is followed the tracks of at least two in foreground, the multicast port number corresponding according to each business keyword, holds foreground tracking in the multicast group joined corresponding to multicast port corresponding to each business keyword number.
The embodiment of the present invention provides a kind of service end, after platform follows the tracks of end program before activation, receive the business keyword of business to be tracked, the multicast port number corresponding with business keyword is obtained according to business keyword, generate the trace information comprising business keyword and multicast port number, trace information is sent to background server and is recorded in trace information file, make background server according to trace information document creation multicast group, add with after multicast port number corresponding multicast group at tracking end, background server carries out business coupling according to business keyword, be minimum rank by the daily record rank adjusting of the business to be tracked with business keyword match, after daily record generates according to the minimum rank of daily record by the multicast group corresponding to the Log Sender of business to be tracked to corresponding with business keyword multicast port number, tracking end in such multicast group just have received the daily record of business to be tracked corresponding to inputted keyword from background server, when attendant can be made according to business keyword like this to check the detailed process daily record of the business corresponding with this business keyword, avoid the interference of other daily records, thus raising systematic function, convenient to operation.
Further embodiment of this invention provides a kind of and follows the tracks of end 03, as shown in Figure 8, comprises first memory 034, bus 035, can also comprise:
First processor 031, after platform follows the tracks of end program before activation, receive the business keyword of business to be tracked, and obtain the multicast port number corresponding with business keyword according to business keyword, and business keyword and the multicast port corresponding with business keyword number are sent to the first transmitter 032.
First transmitter 032, for receiving business keyword and the multicast port number corresponding with business keyword from first processor 031, generate the trace information comprising business keyword and multicast port number, and trace information is sent to background server, and attempt adding with multicast port number corresponding multicast group.
First receiver 033, for adding with after multicast port number corresponding multicast group, wait for the business to be tracked of background server process and business keyword match, and after background server processes business to be tracked, receive the daily record of business to be tracked from background server.
Further, first processor 031 can also be used for:
After platform follows the tracks of end program before being turned off, foreground is followed the tracks of end program and exit and multicast port number corresponding multicast group, and delete trace information.
Further, first processor 031 can also be used for:
If the business keyword receiving business to be tracked is one, then it is business keyword assignment multicast port number;
If the business keyword receiving business to be tracked is at least two, then it is each business keyword assignment multicast port number.
The embodiment of the present invention provides a kind of and follows the tracks of end, after platform follows the tracks of end program before activation, receive the business keyword of business to be tracked, the multicast port number corresponding with business keyword is obtained according to business keyword, generate the trace information comprising business keyword and multicast port number, trace information is sent to background server and is recorded in trace information file, make background server according to trace information document creation multicast group, add with after multicast port number corresponding multicast group at tracking end, background server carries out business coupling according to business keyword, be minimum rank by the daily record rank adjusting of the business to be tracked with business keyword match, after daily record generates according to the minimum rank of daily record by the multicast group corresponding to the Log Sender of business to be tracked to corresponding with business keyword multicast port number, tracking end in such multicast group just have received the daily record of business to be tracked corresponding to inputted keyword from background server, when attendant can be made according to business keyword like this to check the detailed process daily record of the business corresponding with this business keyword, avoid the interference of other daily records, thus raising systematic function, convenient to operation.
The embodiment of the present invention also provides a kind of service end 04, as shown in Figure 9, comprises memory 044, bus 045, can also comprise:
Second receiver 041, for receiving the trace information comprising business keyword and the multicast port corresponding with business keyword number, and is recorded to trace information in trace information file, then trace information file is sent to the second processor 042.
Second processor 042, for receiving trace information file from the second receiver 041, according to trace information document creation multicast group.
Second processor 042 can also be used for carrying out business coupling according to business keyword, and is minimum rank by the daily record rank adjusting of the business to be tracked with business keyword match.
Second transmitter 043, for the original daily record rank according to business to be tracked by the daily record of business to be tracked write journal file, and according to the minimum rank of daily record by the multicast group corresponding to the Log Sender of business to be tracked to corresponding with business keyword multicast port number.
Further, the second processor 042 can also be used for:
Periodic refreshing trace information file, detecting that foreground is followed the tracks of after end deleted trace information corresponding to business keyword, closes the multicast group corresponding to the multicast port corresponding with business keyword number.
Further, the second processor 042 can also be used for:
When to follow the tracks of business keyword that end institute follows the tracks of business be same business keyword for multiple foregrounds, according to the multicast port number corresponding to same business keyword, the tracking of multiple foregrounds held and joining with this multicast port number corresponding same multicast group;
When business keyword that end institute follows the tracks of business is followed the tracks of at least two in foreground, the multicast port number corresponding according to each business keyword, holds foreground tracking in the multicast group joined corresponding to multicast port corresponding to each business keyword number.
The embodiment of the present invention provides a kind of service end, after platform follows the tracks of end program before activation, receive the business keyword of business to be tracked, the multicast port number corresponding with business keyword is obtained according to business keyword, generate the trace information comprising business keyword and multicast port number, trace information is sent to background server and is recorded in trace information file, make background server according to trace information document creation multicast group, add with after multicast port number corresponding multicast group at tracking end, background server carries out business coupling according to business keyword, be minimum rank by the daily record rank adjusting of the business to be tracked with business keyword match, after daily record generates according to the minimum rank of daily record by the multicast group corresponding to the Log Sender of business to be tracked to corresponding with business keyword multicast port number, tracking end in such multicast group just have received the daily record of business to be tracked corresponding to inputted keyword from background server, when attendant can be made according to business keyword like this to check the detailed process daily record of the business corresponding with this business keyword, avoid the interference of other daily records, thus raising systematic function, convenient to operation.
Another embodiment of the present invention provides a kind of communication system 05, as shown in Figure 10, can comprise: the tracking end 01/03 that previous embodiment provides, service end 02/04.
The embodiment of the present invention provides a kind of communication system, after platform follows the tracks of end program before activation, receive the business keyword of business to be tracked, the multicast port number corresponding with business keyword is obtained according to business keyword, generate the trace information comprising business keyword and multicast port number, trace information is sent to background server and is recorded in trace information file, make background server according to trace information document creation multicast group, add with after multicast port number corresponding multicast group at tracking end, background server carries out business coupling according to business keyword, be minimum rank by the daily record rank adjusting of the business to be tracked with business keyword match, after daily record generates according to the minimum rank of daily record by the multicast group corresponding to the Log Sender of business to be tracked to corresponding with business keyword multicast port number, tracking end in such multicast group just have received the daily record of business to be tracked corresponding to inputted keyword from background server, when attendant can be made according to business keyword like this to check the detailed process daily record of the business corresponding with this business keyword, avoid the interference of other daily records, thus raising systematic function, convenient to operation.
In several embodiments that the application provides, should be understood that disclosed method, apparatus and system can realize by another way.Such as, apparatus embodiments described above is only schematic, such as, the division of unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical, machinery or other form.
In addition, in each embodiment of the present invention, each functional unit can be integrated in a processing unit, also can be that the independent physics of unit comprises, also can two or more unit in a unit integrated.And above-mentioned each unit both can adopt the form of hardware to realize, the form that hardware also can be adopted to add SFU software functional unit had realized.
The all or part of step realizing said method embodiment can have been come by the hardware that program command is relevant, and aforesaid program can be stored in a computer read/write memory medium, and this program, when performing, performs the step comprising said method embodiment; And aforesaid storage medium comprises: USB flash disk, portable hard drive, read-only memory (Read Only Memory, be called for short ROM), random access memory (Random Access Memory, be called for short RAM), magnetic disc or CD etc. various can be program code stored medium.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of described claim.

Claims (13)

1. a tracking for background program log, is characterized in that, comprising:
After platform follows the tracks of end program before activation, receive the business keyword of business to be tracked, and obtain the multicast port number corresponding with described business keyword according to described business keyword;
Generate the trace information comprising described business keyword and described multicast port number, and described trace information is sent to background server, follow the tracks of end and attempt adding with described multicast port number corresponding multicast group;
Adding with after described multicast port number corresponding multicast group, wait for the business described to be tracked of described background server process and described business keyword match, and after platform service end processes described business to be tracked in the rear, receive the daily record of described business to be tracked from described background server.
2. method according to claim 1, is characterized in that, described method also comprises:
After platform follows the tracks of end program before being turned off, end program is followed the tracks of on described foreground and exits and described multicast port number corresponding multicast group, and delete described trace information.
3. method according to claim 1, is characterized in that, describedly obtains the multicast port number corresponding with described business keyword according to described business keyword and comprises:
If the business keyword receiving business to be tracked is one, then it is described business keyword assignment multicast port number;
If the business keyword receiving business to be tracked is at least two, then it is each business keyword assignment multicast port number.
4. a tracking for background program log, is characterized in that, comprising:
Receive the trace information comprising business keyword and the multicast port corresponding with described business keyword number, and described trace information is recorded in trace information file;
According to described trace information document creation multicast group;
Carry out business coupling according to described business keyword, and be minimum rank by the daily record rank adjusting of the business to be tracked with described business keyword match;
According to original daily record rank of described business to be tracked by the daily record of described business to be tracked write journal file, and according to the minimum rank of daily record by the multicast group corresponding to the Log Sender of described business to be tracked to the multicast port corresponding with described business keyword number.
5. method according to claim 4, is characterized in that, described method also comprises:
Periodic refreshing trace information file, detecting that foreground is followed the tracks of after end deleted trace information corresponding to described business keyword, closes the multicast group corresponding to the multicast port corresponding with described business keyword number.
6. the method according to claim 4 or 5, is characterized in that, describedly creates a multicast group according to described multicast port number and comprises:
When to follow the tracks of business keyword that end institute follows the tracks of business be same business keyword for multiple foregrounds, according to the multicast port number corresponding to described same business keyword, described multiple foregrounds tracking held and joining with this multicast port number corresponding same multicast group;
When business keyword that end institute follows the tracks of business is followed the tracks of at least two in foreground, the multicast port number corresponding according to each business keyword, holds the tracking of described foreground in the multicast group joined corresponding to multicast port corresponding to each business keyword number.
7. follow the tracks of end for one kind, it is characterized in that, comprising:
Port numbers acquiring unit, after platform follows the tracks of end program before activation, receive the business keyword of business to be tracked, and obtain the multicast port number corresponding with described business keyword according to described business keyword, and described business keyword and the multicast port number corresponding with described business keyword are sent to information transmitting unit;
Information transmitting unit, for receiving described business keyword and the multicast port number corresponding with described business keyword from port numbers acquiring unit, generate the trace information comprising described business keyword and described multicast port number, and described trace information is sent to background server, described tracking end is attempted adding with described multicast port number corresponding multicast group;
Daily record receiving element, for adding with after described multicast port number corresponding multicast group, wait for the business described to be tracked of described background server process and described business keyword match, and after platform service end processes described business to be tracked in the rear, receive the daily record of described business to be tracked from described background server.
8. tracking end according to claim 7, is characterized in that, described tracking end also comprises:
Information deletion unit, after platform follows the tracks of end program before being turned off, follows the tracks of described foreground of end program and exits and described multicast port number corresponding multicast group, and delete described trace information.
9. tracking according to claim 7 end, is characterized in that, described port numbers acquiring unit specifically for:
If the business keyword receiving business to be tracked is one, then it is described business keyword assignment multicast port number;
If the business keyword receiving business to be tracked is at least two, then it is each business keyword assignment multicast port number.
10. a service end, is characterized in that, comprising:
Information receiving unit, for receiving the trace information comprising business keyword and the multicast port corresponding with described business keyword number, and is recorded to described trace information in trace information file, more described trace information file is sent to multicast group creating unit;
Multicast group creating unit, for receiving described trace information file from information receiving unit, according to described trace information document creation multicast group;
The daily record rank adjusting of the business to be tracked with described business keyword match for carrying out business coupling according to described business keyword, and is minimum rank by business matching unit;
Log Sender unit, for the original daily record rank according to described business to be tracked by the daily record of described business to be tracked write journal file, and according to the minimum rank of daily record by the multicast group corresponding to the Log Sender of described business to be tracked to the multicast port corresponding with described business keyword number.
11. service ends according to claim 10, is characterized in that, described service end also comprises:
Multicast group closing unit, for periodic refreshing trace information file, detecting that foreground is followed the tracks of after end deleted trace information corresponding to described business keyword, closes the multicast group corresponding to the multicast port corresponding with described business keyword number.
12. service ends according to claim 10 or 11, is characterized in that, described multicast group creating unit specifically for:
When to follow the tracks of business keyword that end institute follows the tracks of business be same business keyword for multiple foregrounds, according to the multicast port number corresponding to described same business keyword, described multiple foregrounds tracking held and joining with this multicast port number corresponding same multicast group;
When business keyword that end institute follows the tracks of business is followed the tracks of at least two in foreground, the multicast port number corresponding according to each business keyword, holds the tracking of described foreground in the multicast group joined corresponding to multicast port corresponding to each business keyword number.
13. 1 kinds of communication systems, is characterized in that, described system comprises:
Tracking end as described in any one of claim 7 to 9;
Service end as described in any one of claim 10 to 12.
CN201210420905.5A 2012-10-29 2012-10-29 Background program log tracking method, tracking side, service side and system Expired - Fee Related CN102932176B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210420905.5A CN102932176B (en) 2012-10-29 2012-10-29 Background program log tracking method, tracking side, service side and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210420905.5A CN102932176B (en) 2012-10-29 2012-10-29 Background program log tracking method, tracking side, service side and system

Publications (2)

Publication Number Publication Date
CN102932176A CN102932176A (en) 2013-02-13
CN102932176B true CN102932176B (en) 2015-06-17

Family

ID=47646883

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210420905.5A Expired - Fee Related CN102932176B (en) 2012-10-29 2012-10-29 Background program log tracking method, tracking side, service side and system

Country Status (1)

Country Link
CN (1) CN102932176B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107729506A (en) * 2017-10-23 2018-02-23 郑州云海信息技术有限公司 A kind of storage medium and the other dynamic adjusting method of journal stage, apparatus and system
CN109672735A (en) * 2018-12-20 2019-04-23 中国移动通信集团江苏有限公司 A kind of method, device and equipment of Message Processing

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1813467A (en) * 2003-06-26 2006-08-02 汤姆森特许公司 Parental monitoring of digital content
CN102355384A (en) * 2011-10-13 2012-02-15 纳龙(苏州)信息技术有限公司 Communication standard of automated testing for monitoring system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100713444B1 (en) * 2005-04-20 2007-04-30 삼성전자주식회사 Call setup method in mobile communication network supporting push to talk service and system therefor

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1813467A (en) * 2003-06-26 2006-08-02 汤姆森特许公司 Parental monitoring of digital content
CN102355384A (en) * 2011-10-13 2012-02-15 纳龙(苏州)信息技术有限公司 Communication standard of automated testing for monitoring system

Also Published As

Publication number Publication date
CN102932176A (en) 2013-02-13

Similar Documents

Publication Publication Date Title
CN104253741B (en) A kind of method for sending information, relevant apparatus and system
CN103024062A (en) Data sharing method, clients and data sharing system
CN104980327A (en) Information push method and device
CN104994401A (en) Barrage processing method, device and system
CN101136025A (en) Method for downloading network resource, system and equipment thereof
CN103475572A (en) Method, device and system for sending multiple pictures in instant messaging application
CN105072019A (en) Processing method and processing system for instant communication messages
CN105718529A (en) Method and device for pushing messages of application program on communication terminal
CN105718284A (en) Application starting method and apparatus for communication terminal
CN103581111A (en) Communication method and system
CN103067257A (en) Method and server and system for achieving data mutual communication in social networking service
CN105611422A (en) Online live broadcast method based on multi-media list and apparatus thereof
CN104639426A (en) Method and device for adding group members
CN102868595B (en) Method for realizing interaction among terminals, and related equipment and system
CN103716230A (en) Message sending method, device and server
CN104580376A (en) Method, device and system for constructing connection between terminals in local area network
CN104320328A (en) Message synchronization method, terminal and server
CN105224421A (en) Data backup method and device and electronic equipment
CN104753922A (en) Method for pre-loading, server side, client and system
CN108512930A (en) A kind of management method of shared file, device, server and storage medium
CN102932176B (en) Background program log tracking method, tracking side, service side and system
CN108280020A (en) Monitoring method, device, terminal and the computer storage media of computer equipment
CN102523236B (en) Method and equipment for establishing dynamic connection
CN101621526B (en) iSCSI method and apparatus for preventing useless connection from occupying system resources
CN103401936A (en) Processing method and device for interface sharing

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150617

Termination date: 20161029