CN107306416A - The recording method of business diary and device - Google Patents

The recording method of business diary and device Download PDF

Info

Publication number
CN107306416A
CN107306416A CN201610261617.8A CN201610261617A CN107306416A CN 107306416 A CN107306416 A CN 107306416A CN 201610261617 A CN201610261617 A CN 201610261617A CN 107306416 A CN107306416 A CN 107306416A
Authority
CN
China
Prior art keywords
business
business diary
log server
diary
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610261617.8A
Other languages
Chinese (zh)
Inventor
马秋蓉
李海波
张梓楠
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Mobile Group Yunnan Co Ltd
Original Assignee
China Mobile Group Yunnan 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 China Mobile Group Yunnan Co Ltd filed Critical China Mobile Group Yunnan Co Ltd
Priority to CN201610261617.8A priority Critical patent/CN107306416A/en
Publication of CN107306416A publication Critical patent/CN107306416A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/069Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications

Landscapes

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

Abstract

The embodiment of the invention discloses the recording method of business diary and device, one of which method includes:First log server receives the business diary that each service server is sent, and each business diary received is recorded according to the first recording mode;First log server is parsed to each business diary respectively according to the daily record storage format pre-set, it is determined that the second log server corresponding with each business diary;Each business diary is sent respectively to each self-corresponding second day will server by first log server.

Description

The recording method of business diary and device
Technical field
The present invention relates to moving communicating field log management technology, more particularly to business diary recording method with Device.
Background technology
With the fast development of the communication technology, the capacity of the business support system of telecom operators increases in explosion type Long, the relation between system is increasingly sophisticated, how to efficiently locate the system failure in business support system, Become a big difficult point of the telecom operators in operation and maintenance work.
During the operation of business support system, for the running status of monitoring system, or in order to Business operation leaves record in case post-audit, it will usually enter the business diary produced in business support system Row record.Gradually strengthen with the complexity and diversity of business support network, the granularity of business monitoring is also got over Come thinner, resulting business diary is also more and more.How uniformly the depositing of business diary is quickly completed Storage and efficiently inquiry, the emphasis paid close attention to as business support management system.Each current business support system leads to Chang Douhui is by the way of file is write in the local host in service server, the production of record traffic support system Raw business diary, so that the positioning and debugging of accessory system failure.
During the present invention is realized, inventor has found that at least there are the following problems in the prior art:
Because the processing speed and storage capacity of the local host of service server are all very limited, using at this The mode of journal file is write in ground main frame can not meet the growing demand of business diary;Moreover, business Each business in support system may be deployed on different service servers, using existing business day The recording method of will, the business diary that can only produce a business in handling process recorded different industry It is engaged in server, the lookup so for business diary can bring very big inconvenience;Further, due to It is record traffic daily record sequentially in time on same main frame, so will also result in different business diaries Mutually interspersed record, so as to cause the positioning and analysis that carry out failure in business support system to become non- It is often difficult.
The content of the invention
In order to solve the above technical problems, the embodiment of the present invention expect provide two kinds of business diaries recording method with Device, can not only reduce consumption of the business diary to the host performance of service server, but also can be real Now the unified of business diary is recorded, so as to more rapidly inquire about business diary.
The technical proposal of the invention is realized in this way:
The embodiments of the invention provide a kind of recording method of business diary, including:
First log server receives the business diary that each service server is sent, according to the first recording mode pair Each business diary received is recorded;
First log server enters to each business diary respectively according to the daily record storage format pre-set Row parsing, it is determined that the second log server corresponding with each business diary;
Each business diary is sent respectively to each self-corresponding second day will and serviced by first log server Device.
In the above-described embodiments, the daily record storage format includes:
Daily record rank, operation code type, sequence number, business diary content, separator and additional information six Individual field.
In the above-described embodiments, the operation code type includes:
Business object, business model, type of service and operation code.
In the above-described embodiments, first log server is distinguished according to the daily record storage format pre-set Each business diary is parsed, it is determined that the second log server corresponding with each business diary, including:
First log server obtains the operation code of each business diary according to the daily record storage format Type;
First log server determines the type of service of each business diary according to each operation code type Route;
First log server is searched and each business in the type of service routing relation table pre-saved Type route the IP address of corresponding second log server;
First log server determines second day corresponding with each business diary according to each IP address Will server.
The embodiment of the present invention additionally provides a kind of recording method of business diary, including:
Second log server receives more than one business diary that the first log server is sent;
Second log server is remembered according to the second recording mode to each business diary received Record.
In the above-described embodiments, second log server according to the second recording mode to receive each Business diary is recorded, including:
Second log server obtains the industry of each business diary according to the daily record storage format pre-set Business type of coding;
Second log server is carried out according to each operation code type to each diary service received Record.
The embodiment of the present invention provides a kind of tape deck of business diary, including:
First receiving unit, for receiving the business diary that each service server is sent, by each received Business diary is sent to the first recording unit;
First recording unit, will for being recorded according to the first recording mode to each business diary Each business diary is sent to resolution unit;
The resolution unit, for being entered respectively to each business diary according to the daily record storage format pre-set Row parsing, it is determined that the second log server corresponding with each business diary, each business diary is sent to Transmitting element;
The transmitting element, for each business diary to be sent into each self-corresponding second day will server.
In the above-described embodiments, the resolution unit includes:
Obtain subelement, the operation code class for obtaining each business diary according to the daily record storage format Type, determination subelement is sent to by each operation code type;
The determination subelement, the service class for determining each business diary according to each operation code type Type is route, and each type of service route is sent into lookup subelement;
The lookup subelement, for being searched and each industry in the type of service routing relation table pre-saved Service type route the IP address of corresponding second log server, and each IP address is sent into the determination Subelement;
The determination subelement, for determining second day corresponding with each business diary according to each IP address Will server.
The embodiment of the present invention also provides a kind of tape deck of business diary, including:
Second receiving unit, will be each for receiving more than one business diary that the first log server is sent Individual business diary is sent to the second recording unit;
Second recording unit, for being carried out according to the second recording mode to each business diary received Record.
In the above-described embodiments, second recording unit includes:
Subelement is parsed, the business for obtaining each business diary according to the daily record storage format pre-set Type of coding, record subelement is sent to by each operation code type;
The record subelement, for being entered according to each operation code type to each diary service received Row record.
As can be seen here, in the technical scheme of the embodiment of the present invention, the first log server receives each business clothes It is engaged in the business diary that device sends, the first log server is first according to the first recording mode to each industry for receiving Business daily record is recorded, and each business diary is solved respectively according to the daily record storage format pre-set Analysis, it is determined that the second log server corresponding with each business diary;Then, the first log server will be each Individual business diary is sent respectively to each self-corresponding second day will server;Docked by the second log server Each business diary received is recorded according to the second recording mode, so as to realize to each business day The unified record of will, i.e.,:, can be by same type by the second recording mode of the second log server Business diary merges record together.
Obviously, it is not in business clothes for each business diary in the technical scheme of the embodiment of the present invention Business device local host in recorded, but the first log server and the second log server respectively according to Respectively record once, and can pass through the of the second log server for first recording mode and the second recording mode Two recording modes, realize and the unified of each business diary are recorded.And in the prior art, service server Simply intert the business diary that record is produced in local host sequentially in time, therefore, and prior art Compare, the recording method for the business diary that the embodiment of the present invention is proposed and device can not only reduce business day Consumption of the will to the host performance of service server, but also can realize that the unification to business diary is recorded, So as to more rapidly inquire about business diary, and then it can be carried out based on the business diary inquired Failure being accurately positioned and analyzes;Also, the technical scheme of the embodiment of the present invention realize it is simple and convenient, be easy to Popularization, the scope of application is wider.
Brief description of the drawings
Fig. 1 is the first implementation process schematic diagram of the recording method of business diary in the embodiment of the present invention;
Fig. 2 is the composition structural representation of business diary system in the embodiment of the present invention;
Fig. 3 is to determine the method flow schematic diagram of the second log server in the embodiment of the present invention;
Fig. 4 is the second implementation process schematic diagram of the recording method of business diary in the embodiment of the present invention;
Fig. 5 is the implementation method schematic flow sheet that is recorded to each business diary in the embodiment of the present invention;
Fig. 6 is the structural representation that is recorded to each business diary in the embodiment of the present invention;
Fig. 7 is the implementation process figure for the log recording method that the embodiment of the present invention opens WLAN business;
Fig. 8 be the embodiment of the present invention in open an account business log recording method implementation process figure;
Fig. 9 is the method flow schematic diagram that is backed up to business diary in the embodiment of the present invention;
Figure 10 is the composition structural representation of the first tape deck of business diary in the embodiment of the present invention;
Figure 11 is the composition structural representation of the second tape deck of business diary in the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear Chu, it is fully described by.
Fig. 1 is the first implementation process schematic diagram of the recording method of business diary in the embodiment of the present invention, is such as schemed Shown in 1, the recording method of business diary comprises the following steps:
Step 101, the first log server receive the business diary that each service server is sent, according to first Recording mode is recorded to each business diary received.
In a particular embodiment of the present invention, each service server can be stored according to the daily record pre-set Form sends business diary, in this step, first server to the first log server corresponding with itself The business diary that more than one service server pre-set is sent is received, is docked according to the first recording mode Each business diary received is recorded.Specifically, the first log server can be right sequentially in time Each business diary received is recorded.
In a particular embodiment of the present invention, the handling process of a business is needed by multiple operational processors Between call and return.For example, the handling process of a business includes:Service server 1 is being received After business request information, business request information is transmitted to service server 2;Service server 2 is connecing Receive after business request information, service response message is returned to service server 1 first, then according to industry Business request message carries out business processing, and service processing result is sent into service server 3;Service server 3 Service processing result is preserved, and service ending message is returned to service server 1.Therefore, at this In the handling process of business, it can all be produced in service server 1, service server 2 and service server 3 The business diary related to the business.
Specifically, service server 1 is produced after business request information is received in service server 1 A raw business diary corresponding with business request information, service server 1 is forwarded by business request information After service server 2, generation one is corresponding with forwarding service request message in service server 1 Business diary;Service server 2 to service server 1 after service response message is returned, in business clothes It is engaged in device 2 producing a business diary corresponding with service response message, service server 2 is at by business Reason result is sent to after service server 3, and one is produced in service server 2 with sending business processing As a result corresponding business diary;Service server 3 is preserved after service processing result, in service server 3 Middle to produce one and the corresponding business diary of preservation service processing result, service server 3 is to business service Device 1 is returned after service ending message, and generation one is corresponding with service ending message in service server 3 Business diary.As can be seen here, the business diary that a business is produced in handling process can be distributed in difference Operational processor in.
Fig. 2 is the composition structural representation of business diary system in the embodiment of the present invention, as shown in Fig. 2 institute Stating business diary system includes:Configuration server, service sub-system and journal recording subsystem.Wherein, industry Business subsystem includes:Service server 1, service server 2 ... service server M;Log recording subsystem System includes:Log server 1, log server 2 ... log server N.In the specific embodiment of the present invention In, routing relation table includes two types:The routing relation table and the route of type of service of system channel type Relation table.In business diary system, configuration server can pass through transmission control protocol (Transmission Control Protocol, TCP) mode, the routing relation table of system channel type is sent to each business Server, and the routing relation table of type of service is sent to each log server;Each service server By UDP (User Datagram Protocol, UDP) mode, business diary is sent out Give log server corresponding with itself.
It is preferred that in a particular embodiment of the present invention, each service server is to corresponding with itself One log server is sent before business diary, and can receive configuration server by what TCP modes were sent is The routing relation table for channel type of uniting, as described in Table 1:
Table 1
Therefore, each service server, can be according to the system canal pre-saved after business diary is produced Business diary is sent to the first log server by the routing table of road type.For example, service server 1 is in production , can be by searching the routing table of system type, really after raw business diary corresponding with business request information The IP address of fixed the first log server corresponding with the business diary is 192.168.1.0, therefore, it can by Business diary corresponding with business request information is sent to the first log server.
It is preferred that in a particular embodiment of the present invention, each log server is receiving each service server Before the business diary of transmission, the type of service that configuration server is sent by TCP modes can also be received Routing relation table, as described in Table 2:
Table 2
Step 102, the first log server are according to the daily record storage format pre-set respectively to each business Daily record is parsed, it is determined that the second log server corresponding with each business diary.
In a particular embodiment of the present invention, configuration server can also pre-set whole business diaries unifications Daily record storage format, and daily record storage format is sent to and each by each service server by TCP modes Individual log server.
It is preferred that in a particular embodiment of the present invention, the daily record storage format includes six fields, point It is not:Daily record rank Level, operation code type B usi_code, sequence number CN, business diary content MSG, separator Splite and additional information Note.As described in Table 3:
Table 3
It is preferred that " daily record rank " field can take 8 bytes;" operation code type " field can be with Account for 10 bytes;" sequence number " field can take 24 bytes;" business diary content " field can be with Take 0~1024 byte;" separator " field can take 2 bytes;" additional information " field can To take 0~512 byte.
It is preferred that in a particular embodiment of the present invention, the daily record rank includes:Mistake ERROR, announcement Alert WARN, information INFO and debugging DEBUG.Specifically, different parameter setting industry can be used The daily record rank of business daily record.For example, in last byte of " daily record rank " field, " 00000000 " ERROR can be represented;" 00000001 " can represent WARN;" 00000010 " can represent INFO; " 00000011 " can represent DEBUG.
Specifically, it can include in " operation code type " field:Business object, business model, business Type and operation code.Wherein, " business object " can take 1 byte;" business model " can be accounted for With 1 byte;" type of service " can take 2 bytes;" operation code " can take 6 bytes. Specifically, in " business object ":" 0 " can represent personal business, and " 1 " can represent home business, " 2 " can represent group's business;In " business model ":" 0 " can represent consultation service, and " 1 " can To represent inquiry business, " 2 " can represent transacting business, and " 3 " can represent complaint business, and " 4 " can be with Represent other business;In " type of service ":" 00 " can represent inquiry printing class business, and " 01 " can To represent product set meal class business, " 02 " can represent change of title class business, and " 03 " can represent to supplement with money Class of paying dues business, " 04 " can represent personal information class business, and " 05 " can represent to integrate class business, " 06 " Foundation class business can be represented, " 07 " can represent sale class business in kind, " 08 " can represent that marketing is lived Dynamic class business, " 09 " can represent Self-Service class business.
Fig. 3 is determines the method flow schematic diagram of the second log server in the embodiment of the present invention, such as Fig. 3 institutes Show, determine that the method for the second log server comprises the following steps:
The business that step 102a, the first log server obtain each business diary according to daily record storage format is compiled Code type.
In a particular embodiment of the present invention, the 9th~18 byte of daily record storage format is business diary Operation code type, therefore, the first log server can extract the 9th~18 word of each business diary Section, you can obtain the operation code type of each business diary.
Step 102b, the first log server determine the industry of each business diary according to each operation code type Service type is route.
In a particular embodiment of the present invention, the type of service that configuration server can also in advance to business diary Route and operation code type are configured.Specifically, configuration server can be by type of service route and industry Business type of coding is set to identical representation, can also set type of service route and operation code type It is set to different representations.It is preferred that in a particular embodiment of the present invention, configuration server can be by Type of service route the operation code that identical representation, i.e. business diary are set to operation code type Type is the type of service route of business diary.In this step, the first log server can be according to each Individual operation code type determines the type of service route of each business diary.
Step 102c, the first log server are searched and each in the type of service routing relation table pre-saved Individual type of service route the IP address of corresponding second log server.
In a particular embodiment of the present invention, the first log server is receiving the industry that each service server is sent It is engaged in before daily record, the routing relation table for the type of service that configuration server is sent by TCP modes can be received, Therefore, in this step, the first log server can the type of service pre-saved routing relation table The middle IP address for searching the second log server corresponding with each type of service route.For example:Assuming that wherein The type of service of one business diary is route:0002000000, in this step, the first log server Corresponding with " 0002000000 " second can be searched in the routing relation table of the type of service pre-saved The IP address of log server is 192.168.1.1.
Step 102d, the first log server determine corresponding with each business diary according to each IP address Second log server.
In a particular embodiment of the present invention, the first log server is being found and each type of service route After the IP address of corresponding second log server, it can be determined and each business according to each IP address Corresponding second log server of daily record.
It can be seen from the description above, the first log server can pass through each business diary to receiving Parsed, the IP address of the second log server corresponding with each business diary can be obtained, according to each Individual IP address determines the second log server corresponding with each business diary.
Each business diary is sent respectively to each self-corresponding second day by step 103, the first log server Will server.
In a particular embodiment of the present invention, the first log server is determining the IP of the second log server After address, each business diary can be sent to by each self-corresponding second day will according to IP address and serviced Device.
The recording method for the business diary that the embodiment of the present invention is proposed, can not only reduce business diary to business The consumption of the host performance of server, but also the unified record to business diary can be realized, so as to More rapidly business diary is inquired about, and then the standard of failure can be carried out based on the business diary inquired It is determined that position and analysis;Also, realize it is simple and convenient, be easy to popularization, the scope of application is wider.
Fig. 4 is the second implementation process schematic diagram of the recording method of business diary in the embodiment of the present invention, is such as schemed Shown in 4, the recording method of business diary comprises the following steps:
Step 401, the second log server receive more than one business diary that the first log server is sent.
In a particular embodiment of the present invention, the first log server is that each business diary is determined is corresponding After second log server, each business diary is sent to each self-corresponding second by the first log server Log server, in this step, the second log server receive the first log server send one with Upper business diary.
Step 402, the second log server enter according to the second recording mode to each business diary received Row record.
In this step, the second log server is receiving more than one industry of the first log server transmission It is engaged in after daily record, each business diary received is recorded according to the second recording mode.
Fig. 5 is the implementation method schematic flow sheet that is recorded to each business diary in the embodiment of the present invention, As shown in figure 5, the implementation method recorded to each business diary comprises the following steps:
Step 402a, the second log server obtain each business day according to the daily record storage format pre-set The operation code type of will.
In a particular embodiment of the present invention, the 9th~18 byte of daily record storage format is business diary Operation code type, therefore, the second log server can extract the 9th~18 word of each business diary Section, so as to obtain the operation code type of each business diary.
Step 402b, the second log server enter according to operation code type to each diary service received Row record.
In a particular embodiment of the present invention, the second log server is getting the business of each business diary After type of coding, each business diary received can be recorded according to each operation code type. Specifically, the second log server can be using " business diary numbering-business diary content " (i.e.: Key-Value recording mode) is recorded to each business diary received.Fig. 6 is implemented for the present invention The structural representation recorded in example to each business diary, as shown in fig. 6, in the specific reality of the present invention Apply in example, the second log server can use " operation code type+business diary date received+business day The mode of+5 random numbers of will reception time " sets business diary to number.For example, it is assumed that one of business The operation code type of daily record is:0002000000, the second log server receives the date of the business diary For:2012-11-22, the time for receiving the business diary is:18:24:33,5 randomly generated with Machine number is:002857, therefore, the business diary numbering of the business diary is:0002000000 2012-11-22 18:24:33_02857.
WLAN (Wireless Local Area Networks, WLAN) is opened with user separately below Exemplified by business and business of opening an account, the record flow of business diary in the embodiment of the present invention is described in detail.Fig. 7 is The implementation process figure of the log recording method of WLAN business is opened in the embodiment of the present invention, as shown in fig. 7, The log recording method for opening WLAN business comprises the following steps:
Step 701, service server 1 send to log server 1 and open WLAN business request informations Business diary.
In a particular embodiment of the present invention, when WLAN business is opened in business hall to user on the net, business Server 1 sends the business diary for opening WLAN business request informations to log server 1.Specifically, Service server 1 to log server 1 can send open-minded according to the daily record storage format pre-set The business diary of WLAN business request informations.
Step 702, log server 1 are according to the first recording mode to opening WLAN business request informations Business diary is recorded.
In this step, what the reception of log server 1 service server 1 was sent opens WLAN service requests The business diary of message, log server 1 is recorded according to the first recording mode to the business diary.Tool Body, log server 1 can be recorded to the business diary sequentially in time.
Step 703, log server 1 are according to the daily record storage format pre-set to opening WLAN business The business diary of request message is parsed, it is determined that log server 2 corresponding with the business diary.
Specifically, log server 1 can obtain open-minded according to the daily record storage format pre-set first The operation code type of the business diary of WLAN business request informations, the industry is determined according to operation code type The type of service route of business daily record, then, is searched and industry in the type of service routing relation table pre-saved Service type route the IP address of corresponding log server 2, is determined and the business diary pair according to IP address The log server 2 answered.
The business diary for opening WLAN business request informations is sent to day by step 704, log server 1 Will server 2.
In this step, when log server 1 determines the business diary with opening WLAN business request informations After corresponding log server 2, the business diary is sent to log server 2 by log server 1.
Step 705, log server 2 obtain according to the daily record storage format pre-set and open WLAN industry The operation code type of the business diary of business request message.
In a particular embodiment of the present invention, the 9th~18 byte of daily record storage format is business diary Operation code type, log server 2 can be extracted in the business diary for opening WLAN business request informations The 9th~18 byte, so as to obtain the operation code type of the business diary.
Step 706, log server 2 are according to operation code type to opening WLAN business request informations Business diary is recorded.
In this step, log server 2, can after the operation code type of the business diary is got To be recorded according to the operation code type to the business diary.
It can be seen from the description above, by above-mentioned step 701~706, log server 1 and daily record clothes Being engaged in device 2 can be respectively according to the first recording mode and the second recording mode to opening WLAN business request informations Business diary recorded.
Fig. 8 be the embodiment of the present invention in open an account business log recording method implementation process figure, such as Fig. 8 institutes Show, the log recording method for business of opening an account comprises the following steps:
Step 801, service server 2 send the business day for business request information of opening an account to log server 2 Will.
In a particular embodiment of the present invention, as user to customer relation management (Customer Relationship Management, CRM) to handle in business system when opening an account business, service server 2 is to log server 2 send the business diary for business request information of opening an account.Specifically, service server 2 can be according to setting in advance The daily record storage format put sends the business diary for business request information of opening an account to log server 2.
Step 802, log server 2 are according to business day of first recording mode to business request information of opening an account Will is recorded.
In this step, log server 2 receives the business request information of opening an account that service server 2 is sent Business diary, log server 2 enters according to the first recording mode to the business diary for business request information of opening an account Row record.Specifically, log server 2 can be recorded to the business diary sequentially in time.
Step 803, log server 2 disappear according to the daily record storage format pre-set to service request of opening an account The business diary of breath is parsed, it is determined that log server 1 corresponding with the business diary.
Specifically, log server 2 can obtain industry of opening an account according to the daily record storage format pre-set first The operation code type of the business diary of business request message, the business diary is determined according to operation code type Type of service is route, then, is searched and type of service road in the type of service routing relation table pre-saved By the IP address of corresponding log server 1, daily record corresponding with the business diary is determined according to IP address Server 1.
The business diary for business request information of opening an account is sent to log services by step 804, log server 2 Device 1.
In this step, when the determination of log server 2 is corresponding with the business diary for business request information of opening an account After log server 1, the business diary is sent to log server 1 by log server 2.
Step 805, log server 1 obtain service request of opening an account according to the daily record storage format pre-set The operation code type of the business diary of message.
In this step, log server 1 can extract in the business diary for business request information of opening an account 9~18 bytes, obtain the operation code type of the business diary.
Step 806, log server 1 are according to business day of the operation code type to business request information of opening an account Will is recorded.
In this step, log server 1, can after the operation code type of the business diary is got To be recorded according to the operation code type to the business diary.
It can be seen from the description above, by above-mentioned step 801~806, log server 2 and daily record clothes Being engaged in device 1 can be respectively according to the business of the first recording mode and the second recording mode to business request information of opening an account Daily record is recorded.
It is preferred that in the embodiment of the present invention, in journal recording subsystem, each daily record clothes Business device can mutually standby mode be recorded to business diary using chain type, so as to ensure that business day CHIGO is pacified Full property and high availability.Fig. 9 illustrates for the method flow backed up in the embodiment of the present invention to business diary Figure, as shown in Figure 9, it is assumed that journal recording subsystem includes four log servers, be respectively:Daily record takes Business device 1, log server 2, log server 3 and log server 4.Wherein, log server 1 is wrapped Include:System channel daily record 1 and business diary 1;Log server 2 includes:System channel daily record 2 and industry Business daily record 2;Log server 3 includes:System channel daily record 3 and business diary 3;Log server 4 Including:System channel daily record 4 and business diary 4.
In above-mentioned journal recording subsystem, the system channel daily record in each log server can be according to inverse Clockwise chain type is backed up, i.e.,:In log server 1, master record:System channel daily record 1, backup Record:System channel daily record 2;In log server 2, master record:System channel daily record 2, backup note Record:System channel daily record 3;In log server 3, master record:System channel daily record 3, duplicated record: System channel daily record 4;In log server 4, master record:System channel daily record 4, system channel daily record 1.In addition, the business diary in each log server can be backed up according to chain type clockwise, i.e.,: In log server 1, master record:Business diary 1, duplicated record:Business diary 4;In log server In 2, master record:Business diary 2, duplicated record:Business diary 1;In log server 3, main note Record:Business diary 3, duplicated record:Business diary 2;In log server 4, master record:Business day Will 4, duplicated record:Business diary 3.
It follows that in a particular embodiment of the present invention, when the daily record clothes in journal recording subsystem When business device breaks down, it can be substituted by two other log server in the journal recording subsystem described The log server broken down carries out log recording.For example, when log server 1 breaks down, by System channel daily record 1 in log server device 1 is backed up in log server 4, log server 1 In business diary 1 back up in log server 2, therefore, it can by log server 2 and daily record clothes Business device 4 substitutes log server 1 and carries out log recording, so can not only ensure journal recording subsystem energy Enough normal works, nor the storage overload of log server 2 and log server 4 can be caused.
It is preferred that in a particular embodiment of the present invention, configuration server can be periodically to log recording subsystem Each log server in system is polled detection, to know the working condition of each log server.Tool Body, configuration server can send solicitation message with periodic polling to each log server, when pre- If the detection response message of log server return is received in the period, show that the log server works Normally;Otherwise, show that the log server breaks down.
It is preferred that in a particular embodiment of the present invention, when increasing log server in journal recording subsystem When, for example, as shown in Figure 9, it is assumed that increase daily record clothes between log server 4 and log server 1 Business device 5, log server 5 completes the record of system channel daily record according to the requirement of configuration server first, Build simultaneously and log server 4 and the identical storage organization of log server 1, by configuration server more The configuration data of new log server 4 and log server 1, completes 4 → log server of log server 5 The configuration of → log server 1.
The recording method for the business diary that the embodiment of the present invention is proposed, can not only reduce business diary to business The consumption of the host performance of server, but also the unified record to business diary can be realized, so as to More rapidly business diary is inquired about, and then the standard of failure can be carried out based on the business diary inquired It is determined that position and analysis;Also, realize it is simple and convenient, be easy to popularization, the scope of application is wider.
Figure 10 is the composition structural representation of the first tape deck of business diary in the embodiment of the present invention, is such as schemed Shown in 8, the tape deck includes:
First receiving unit 1001, for receiving the business diary that each service server is sent, by what is received Each business diary is sent to the first recording unit 1002;
First recording unit 1002, for remembering according to the first recording mode to each business diary Record, resolution unit 1003 is sent to by each business diary;
The resolution unit 1003, for according to the daily record storage format that pre-sets respectively to each business day Will is parsed, it is determined that the second log server corresponding with each business diary, each business diary is sent out Give transmitting element 1004;
The transmitting element 1004, for each business diary to be sent respectively into each self-corresponding second day will Server.
Further, the resolution unit 1003 includes:
Obtain subelement 10031, the business for obtaining each business diary according to the daily record storage format Type of coding, determination subelement 10032 is sent to by each operation code type;
The determination subelement 10032, for determining each business diary according to each operation code type Type of service is route, and each type of service route is sent into lookup subelement 1033;
It is described lookup subelement 10033, in the type of service routing relation table pre-saved search with Each type of service route the IP address of corresponding second log server, and each IP address is sent into institute State determination subelement 10032;
The determination subelement 10032, it is corresponding with each business diary for being determined according to each IP address Second log server.
Figure 11 is the composition structural representation of the second tape deck of business diary in the embodiment of the present invention, is such as schemed Shown in 9, the tape deck includes:
Second receiving unit 1101, for receiving more than one business diary that the first log server is sent, Each business diary is sent to the second recording unit 1102;
Second recording unit 1102, for each business diary according to the second recording mode to receiving Recorded.
Further, second recording unit 1102 includes:
Subelement 11021 is parsed, for obtaining each business diary according to the daily record storage format pre-set Operation code type, by each operation code type be sent to record subelement 11022;
The record subelement 11022, for each daily record according to each operation code type to receiving Business is recorded.
In actual applications, first receiving unit 1101, the first recording unit 1102, resolution unit 1103rd, transmitting element 1104, the second receiving unit 1101, the second recording unit 1102 can be by positioned at days The central processing unit (CPU) of will server, microprocessor (MPU), digital signal processor (DSP), Or field programmable gate array (FPGA) etc. is realized.
The tape deck for the business diary that the embodiment of the present invention is proposed, can not only reduce business diary to business The consumption of the host performance of server, but also the unified record to business diary can be realized, so as to More rapidly business diary is inquired about, and then the standard of failure can be carried out based on the business diary inquired It is determined that position and analysis;Also, realize it is simple and convenient, be easy to popularization, the scope of application is wider.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or meter Calculation machine program product.Therefore, the present invention can using hardware embodiment, software implementation or combine software and The form of the embodiment of hardware aspect.Moreover, the present invention can be used wherein includes calculating one or more The computer-usable storage medium of machine usable program code (includes but is not limited to magnetic disk storage and optical storage Device etc.) on the form of computer program product implemented.
The present invention is with reference to method according to embodiments of the present invention, equipment (system) and computer program product Flow chart and/or block diagram describe.It should be understood that can be by computer program instructions implementation process figure and/or side Each flow and/or square frame in block diagram and flow and/or the knot of square frame in flow chart and/or block diagram Close.Can provide these computer program instructions to all-purpose computer, special-purpose computer, Embedded Processor or The processor of other programmable data processing devices is to produce a machine so that by computer or other can The instruction of the computing device of programming data processing equipment is produced for realizing in one flow or multiple of flow chart The device for the function of being specified in one square frame of flow and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices In the computer-readable memory worked in a specific way so that be stored in the computer-readable memory Instruction, which is produced, includes the manufacture of command device, and the command device is realized in one flow of flow chart or multiple streams The function of being specified in one square frame of journey and/or block diagram or multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices, made Obtain and perform series of operation steps on computer or other programmable devices to produce computer implemented place Reason, so that the instruction performed on computer or other programmable devices is provided for realizing in flow chart one The step of function of being specified in flow or multiple flows and/or one square frame of block diagram or multiple square frames.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the protection model of the present invention Enclose.

Claims (10)

1. a kind of recording method of business diary, it is characterised in that including:
First log server receives the business diary that each service server is sent, according to the first recording mode pair Each business diary received is recorded;
First log server enters to each business diary respectively according to the daily record storage format pre-set Row parsing, it is determined that the second log server corresponding with each business diary;
Each business diary is sent respectively to each self-corresponding second day will and serviced by first log server Device.
2. according to the method described in claim 1, it is characterised in that the daily record storage format includes:
Daily record rank, operation code type, sequence number, business diary content, separator and additional information six Individual field.
3. method according to claim 2, it is characterised in that the operation code type includes:
Business object, business model, type of service and operation code.
4. according to the method described in claim 1, it is characterised in that first log server is according to pre- The daily record storage format first set is parsed to each business diary respectively, it is determined that with each business diary pair The second log server answered, including:
First log server obtains the operation code of each business diary according to the daily record storage format Type;
First log server determines the type of service of each business diary according to each operation code type Route;
First log server is searched and each business in the type of service routing relation table pre-saved Type route the IP address of corresponding second log server;
First log server determines second day corresponding with each business diary according to each IP address Will server.
5. a kind of recording method of business diary, it is characterised in that including:
Second log server receives more than one business diary that the first log server is sent;
Second log server is remembered according to the second recording mode to each business diary received Record.
6. method according to claim 5, it is characterised in that second log server is according to Two recording modes are recorded to each business diary received, including:
Second log server obtains the industry of each business diary according to the daily record storage format pre-set Business type of coding;
Second log server is carried out according to each operation code type to each diary service received Record.
7. a kind of tape deck of business diary, it is characterised in that including:
First receiving unit, for receiving the business diary that each service server is sent, by each received Business diary is sent to the first recording unit;
First recording unit, will for being recorded according to the first recording mode to each business diary Each business diary is sent to resolution unit;
The resolution unit, for being entered respectively to each business diary according to the daily record storage format pre-set Row parsing, it is determined that the second log server corresponding with each business diary, each business diary is sent to Transmitting element;
The transmitting element, for each business diary to be sent into each self-corresponding second day will server.
8. device according to claim 7, it is characterized in that being, the resolution unit includes:
Obtain subelement, the operation code class for obtaining each business diary according to the daily record storage format Type, determination subelement is sent to by each operation code type;
The determination subelement, the service class for determining each business diary according to each operation code type Type is route, and each type of service route is sent into lookup subelement;
The lookup subelement, for being searched and each industry in the type of service routing relation table pre-saved Service type route the IP address of corresponding second log server, and each IP address is sent into the determination Subelement;
The determination subelement, for determining second day corresponding with each business diary according to each IP address Will server.
9. a kind of tape deck of business diary, it is characterised in that including:
Second receiving unit, will be each for receiving more than one business diary that the first log server is sent Individual business diary is sent to the second recording unit;
Second recording unit, for being carried out according to the second recording mode to each business diary received Record.
10. device according to claim 9, it is characterised in that second recording unit includes:
Subelement is parsed, the business for obtaining each business diary according to the daily record storage format pre-set Type of coding, record subelement is sent to by each operation code type;
The record subelement, for being entered according to each operation code type to each diary service received Row record.
CN201610261617.8A 2016-04-25 2016-04-25 The recording method of business diary and device Pending CN107306416A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610261617.8A CN107306416A (en) 2016-04-25 2016-04-25 The recording method of business diary and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610261617.8A CN107306416A (en) 2016-04-25 2016-04-25 The recording method of business diary and device

Publications (1)

Publication Number Publication Date
CN107306416A true CN107306416A (en) 2017-10-31

Family

ID=60150320

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610261617.8A Pending CN107306416A (en) 2016-04-25 2016-04-25 The recording method of business diary and device

Country Status (1)

Country Link
CN (1) CN107306416A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108052675A (en) * 2017-12-28 2018-05-18 惠州Tcl家电集团有限公司 Blog management method, system and computer readable storage medium
CN108229154A (en) * 2017-12-12 2018-06-29 顺丰科技有限公司 Sensitive data operation log recording method, device, storage medium and equipment
CN109885496A (en) * 2019-02-20 2019-06-14 北京百佑科技有限公司 Test log management method and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103023693A (en) * 2012-11-27 2013-04-03 北京小米科技有限责任公司 Behaviour log data management system and behaviour log data management method
CN103533047A (en) * 2013-10-12 2014-01-22 华为技术有限公司 Method and equipment for updating data discrete backup system
CN103902537A (en) * 2012-12-25 2014-07-02 重庆新媒农信科技有限公司 Multi-service log data storage processing and inquiring system and method thereof
CN104301360A (en) * 2013-07-19 2015-01-21 阿里巴巴集团控股有限公司 Method, log server and system for recording log data
CN104486107A (en) * 2014-12-05 2015-04-01 曙光信息产业(北京)有限公司 Log collection device and method
CN104902009A (en) * 2015-04-27 2015-09-09 浙江大学 Erasable encoding and chained type backup-based distributed storage system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103023693A (en) * 2012-11-27 2013-04-03 北京小米科技有限责任公司 Behaviour log data management system and behaviour log data management method
CN103902537A (en) * 2012-12-25 2014-07-02 重庆新媒农信科技有限公司 Multi-service log data storage processing and inquiring system and method thereof
CN104301360A (en) * 2013-07-19 2015-01-21 阿里巴巴集团控股有限公司 Method, log server and system for recording log data
CN103533047A (en) * 2013-10-12 2014-01-22 华为技术有限公司 Method and equipment for updating data discrete backup system
CN104486107A (en) * 2014-12-05 2015-04-01 曙光信息产业(北京)有限公司 Log collection device and method
CN104902009A (en) * 2015-04-27 2015-09-09 浙江大学 Erasable encoding and chained type backup-based distributed storage system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108229154A (en) * 2017-12-12 2018-06-29 顺丰科技有限公司 Sensitive data operation log recording method, device, storage medium and equipment
CN108052675A (en) * 2017-12-28 2018-05-18 惠州Tcl家电集团有限公司 Blog management method, system and computer readable storage medium
CN109885496A (en) * 2019-02-20 2019-06-14 北京百佑科技有限公司 Test log management method and system

Similar Documents

Publication Publication Date Title
US11683221B1 (en) Automatic generation of template for provisioning services in a hosted computing environment
US8626908B2 (en) Distributed capture and aggregation of dynamic application usage information
US20080040417A1 (en) System and method for allocating workflow operations to a computing device
CN108459939A (en) A kind of log collecting method, device, terminal device and storage medium
CN103441861B (en) A kind of data record generation method and device
CN109241358A (en) Metadata management method, device, computer equipment and storage medium
CN103856530B (en) Management method, server, terminal and the system of Operation Log
CN103023693B (en) A kind of user behaviors log data management system and method
CN112039701B (en) Interface call monitoring method, device, equipment and storage medium
CN107347062A (en) A kind of method, electronic equipment and the readable storage medium storing program for executing of daily record data processing
CN108734808A (en) A kind of night watching method and system
CN107133231B (en) Data acquisition method and device
CN107306416A (en) The recording method of business diary and device
CN110162512A (en) A kind of log searching method, apparatus and storage medium
CN108132868A (en) A kind of data monitoring method, device, computing device and storage medium
CN110377489A (en) The method and apparatus of log information processing
CN106569934A (en) Application log display method and device
CN105260168B (en) Log-output method and device
CN101246564A (en) Assets management system based on web service for defining assets with XML
CN107040613A (en) A kind of message transmitting method and system
CN107959696A (en) A kind of daily record bill processing method and system
CN106850268A (en) A kind of linear protection switching realizes device and method
CN106648722A (en) Flume receiving side data processing method and device based on big data
CN108777603A (en) A kind of data transmission method, device, storage medium and electronic equipment
CN107086960A (en) A kind of message transmitting method and device

Legal Events

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

Application publication date: 20171031