CN105959252A - Method and device for processing conversion log - Google Patents

Method and device for processing conversion log Download PDF

Info

Publication number
CN105959252A
CN105959252A CN201510769450.1A CN201510769450A CN105959252A CN 105959252 A CN105959252 A CN 105959252A CN 201510769450 A CN201510769450 A CN 201510769450A CN 105959252 A CN105959252 A CN 105959252A
Authority
CN
China
Prior art keywords
daily record
log
queue
session
storage queue
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
CN201510769450.1A
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.)
Hangzhou DPTech Technologies Co Ltd
Original Assignee
Hangzhou DPTech 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 Hangzhou DPTech Technologies Co Ltd filed Critical Hangzhou DPTech Technologies Co Ltd
Priority to CN201510769450.1A priority Critical patent/CN105959252A/en
Publication of CN105959252A publication Critical patent/CN105959252A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/1066Session management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/1734Details of monitoring file system events, e.g. by the use of hooks, filter drivers, logs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/1805Append-only file systems, e.g. using logs or journals to store data
    • G06F16/1815Journaling file systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/90Buffering arrangements
    • H04L49/9036Common buffer combined with individual queues
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/54Store-and-forward switching systems 
    • H04L12/56Packet switching systems
    • H04L12/5601Transfer mode dependent, e.g. ATM
    • H04L2012/5678Traffic aspects, e.g. arbitration, load balancing, smoothing, buffer management
    • H04L2012/5681Buffer or queue management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • Signal Processing (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Multimedia (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present invention provides a method and device for processing a conversion log. The method comprises: distributing a log server for each log storage queue, wherein the number of the log storage queue is N, the number of the log servers is M, and the N and the M are both natural numbers being larger than 1; obtaining a conversion log prompting in the log storage queue; writing the conversion log into the log contract queue; and sending the conversion log information in the log contract queue to the distributed log servers. According to the embodiment of the invention, the performance of the network device to send a conversion log is effectively improved.

Description

Process the method and device of session log
Technical field
The application relates to network communication technology field, particularly relates to process the method and device of session log.
Background technology
Session (Session) literal sense refers to a series of actions/message carried it through to the end, when session is associated with procotol Time, contain again " towards connecting " and " hold mode " two implications.When newly-built session or deletion session, the network equipment can be new Build session log, it will words daily record is stored in daily record storage queue, and the session log in daily record storage queue is sent extremely Log server so that the information of tracing to the source of the log server record network equipment.
In prior art, the network equipment, when log server sends session log, needs by control algolithm, to daily record Five-tuple parameter in information calculates, and is session log distribution log server according to result of calculation, but above-mentioned reality Time calculation processes can greatly reduce the sending performance of session log on the network equipment.
Summary of the invention
In view of this, the application provides a kind of method and device processing session log, to solve existing real-time distribution day Will server causes the problem that the session log sending performance of the network equipment is the highest.
Specifically, the application is achieved by the following technical solution:
First aspect according to the embodiment of the present application, it is provided that a kind of method processing session log, described method is applied On the network equipment, described method includes:
Distributing log server for each daily record storage queue, the quantity of described daily record storage queue is N, and described daily record takes The quantity of business device is that M, N and M are the natural number more than 1;
Session log information is obtained from described daily record storage queue;
The write daily record of described session log information is given out a contract for a project queue;
The session log information in queue of described daily record being given out a contract for a project sends the log server to described distribution.
Second aspect according to the embodiment of the present application, it is provided that a kind of device processing session log, described device is applied On the network equipment, described device includes:
First allocation unit, for distributing log server for each daily record storage queue, described daily record storage queue Quantity is N, and the quantity of described log server is that M, N and M are the natural number more than 1;
Acquiring unit, for obtaining session log information from described daily record storage queue;
Writing unit, for queue of the write daily record of described session log information being given out a contract for a project;
Transmitting element, the session log information for described daily record being given out a contract for a project in queue sends the daily record clothes to described distribution Business device.
Application above-described embodiment, distributes log server for each daily record storage queue, obtains from daily record storage queue Session log information, it will words log information write daily record is given out a contract for a project queue, and session log information daily record given out a contract for a project in queue is sent out Deliver to pre-assigned log server, owing to the embodiment of the present application is before sending session log information to log server, It is each daily record storage queue and is assigned with log server, thus be effectively increased the network equipment and send the property of session log Energy.
Accompanying drawing explanation
Fig. 1 is the application scenarios schematic diagram that application the embodiment of the present application realization processes session log.
Fig. 2 is the embodiment flow chart that the application processes the method for session log.
Fig. 3 is the embodiment block diagram that the application processes the device of session log.
Fig. 4 is a kind of hardware structure diagram that the application processes the device place equipment of session log.
Detailed description of the invention
Here will illustrate exemplary embodiment in detail, its example represents in the accompanying drawings.Explained below relates to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represents same or analogous key element.Following exemplary embodiment Described in embodiment do not represent all embodiments consistent with the application.On the contrary, they are only with the most appended The example of the apparatus and method that some aspects that described in detail in claims, the application are consistent.
It is only merely for describing the purpose of specific embodiment at term used in this application, and is not intended to be limiting the application. " a kind of ", " described " and " being somebody's turn to do " of singulative used in the application and appended claims is also intended to include majority Form, unless context clearly shows that other implications.It is also understood that term "and/or" used herein refers to and wraps Any or all containing one or more projects of listing being associated may combination.
Although should be appreciated that in the application possible employing term first, second, third, etc. to describe various information, but this A little information should not necessarily be limited by these terms.These terms are only used for same type of information is distinguished from each other out.Such as, without departing from In the case of the application scope, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as One information.Depend on linguistic context, word as used in this " if " can be construed to " ... time " or " when ... Time " or " in response to determining ".
See Fig. 1, for applying the application scenarios schematic diagram of the embodiment of the present application realization process session log:
As it is shown in figure 1, include end side, the network equipment and log server side, end side can have multiple terminal, such as Terminal 1 to terminal n (n is the natural number more than 1) shown in Fig. 1, the most each terminal is all connected with the network equipment, the network equipment It is two and can generate session log with the terminal of intercommunication when newly-built session or deletion session, the network equipment can include Multiple daily record storage queues, this daily record storage queue is used for storing session log, and log server side can have multiple daily record to take Business device, such as log server 1 to the log server m (m is the natural number more than 1) shown in Fig. 1.It is understood that Terminal in the present embodiment only illustrates as a example by computer, in actual application terminal can be mobile phone or panel computer etc. other Terminal, the network equipment can be the equipment such as router or switch.
Seeing Fig. 2, process an embodiment flow chart of the method for session log for the application, described method is applied at net On network equipment, the described network equipment includes multiple daily record storage queue for caching session log, comprises the following steps:
Step S201: distributing log server for each daily record storage queue, the quantity of described daily record storage queue is N, The quantity of described log server is that M, N and M are the natural number more than 1.
In actual application, a network equipment may connect multiple terminals, the network equipment be two can be with intercommunication Terminal generates session log when newly-built session or deletion session, can arrange multiple daily record storage queue on network devices and use In caching session log.Session log can be sent to log server, by log server to session log by the network equipment It is managed collectively.
Log server achieves the centralized stores management of large number quipments session log, can be right according to these session log Network condition, network security are supervised, the applicable cases that can be serviced with Information issue etc. by analysis session daily record, side Just service quality is improved.Log server has certain memory space and processes internal memory, in order to realize the pipe of high-volume conversation daily record Reason, in the network architecture, can have multiple stage log server, every log server to have different disposal abilities.May refer to Fig. 1, it is assumed that the quantity of log server is M, on the network equipment, the quantity of daily record storage queue is N, previously according to every daily record The disposal ability different weight of distribution that server is different, then can distribute control algolithm by following log server and realize base Weight in log server is that each daily record storage queue distributes log server.
Described log server distribution control algolithm may include that obtain respectively corresponding with the weight of log server whole Number Ti(i is 1 natural number arriving M);Each log server is each mapped to TiIndividual virtual log server, is mapped as S altogether Virtual log server;Judge that can quantity N of daily record storage queue be divided exactly by S, if aliquot, and business is q, then be each void Intend log server and be respectively allocated q daily record storage queue;If aliquant, and business is q, remainder is r, then, for wherein r Virtual log server is respectively allocated q+1 daily record storage queue, is respectively allocated q for S-r virtual log server of residue Daily record storage queue;According to daily record storage queue and the relations of distribution of virtual log server and virtual log server and day The mapping relations of will server generate the relations of distribution of daily record storage queue and log server, and the network equipment can also preserve day Will storage queue and the relations of distribution of log server, the operation after convenience.
As an example it is assumed that the quantity of daily record storage queue is 10, respectively queue1, queue2, queue3, Queue4, queue5, queue6, queue7, queue8, queue9, queue10, it is assumed that the quantity of log server is 3, It is respectively A1, A2, A3, it is assumed that 3 respective weights of log server are as shown in table 1:
Table 1
Log server Weight
A1 2
A2 2
A3 4
3 log servers then can be mapped as 8 virtual log servers, as shown in table 2, for log server with The mapping relations of virtual log server:
Table 2
Log server Virtual log server
A1 A11、A12
A2 A21、A22
A3 A31、A32、A33、A34
Then can be respectively daily record storage queue distribution log server according to above-mentioned log server distribution control algolithm, Process is as follows:
10/8=1 mores than 2, i.e. q=1, r=2, then, it is respectively allocated 2 daily records for wherein 2 virtual log servers and deposits Storage queue, is respectively allocated 1 daily record storage queue for remaining 6 virtual log servers.As shown in table 3 below, for according to upper State the relations of distribution of the log server distribution daily record storage queue that calculates of control algolithm and virtual log server:
Table 3
Virtual log server Daily record storage queue
A11 queue1、queue2
A12 queue3、queue4
A21 queue5
A22 queue6
A31 queue7
A32 queue8
A33 queue9
A34 queue10
Then the relations of distribution of daily record storage queue and log server can be drawn according to table 2 and table 3, as shown in table 4:
Table 4
Log server Daily record storage queue
A1 queue1、queue2、queue3、queue4
A2 queue5、queue6
A3 queue7、queue8、queue9、queue10
It should be noted that as shown in above-mentioned table 1 to table 4, be only the distribution to illustrate log server, this Shen Not limiting its allocation order, it addition, log server distribution control algolithm is not limited to foregoing description, the application is to this not Limit.
In an optional implementation, after each daily record storage queue distribution log server, it is also possible to for The mark of the log server distributed is added in each daily record storage queue.
Step S202: obtain session log information from described daily record storage queue.
In order to make each daily record storage queue have memory headroom to accommodate newly-generated session log, day can be pre-set Putting in order of will storage queue, it is assumed that daily record storage queue put in order for queue1, queue2, queue3, queue4, Queue5, queue6, queue7, queue8, queue9, queue10, then can circulate the most successively and store team from daily record Row obtain session log, " first in first out " principle of queue when obtaining session log from daily record storage queue, can be followed, But the session log got not is to be stored immediately in daily record to give out a contract for a project in queue, but according to the Rule one pre-set Group target journaling field is as session log information.
In an optional implementation, session log is generally only one section of text, and different field therein represents not Same implication, the journal format produced in different application programs or different network environments also differs.
Journal format defines the formation of session log, transmission, storage, examination & verification, and the mode analyzed, any form Daily record all has grammer, and daily record grammer is conceptually similar to language (such as English) grammer.Every every part of session log is by respectively The information composition of type, based on daily record grammatical rules, can define one group of general log field, the daily record word that this group is general Section has necessity, is therefore present in every session log.Such as, one group of common log field is as follows:
(1) date/time
(2) type of journal entries
(3) system of this entry is produced
(4) application program or the assembly of this entry are produced
(5) success and failed instruction
(6) seriousness of log information, priority or importance
(7) any User Activity relevant with this daily record, it is possible to record user name
As an example it is assumed that the session log currently going out team from daily record storage queue is the meeting that user access request is relevant Words daily record, then, it is possible to use IP in the Rule session log pre-set (Internet Protocol, network it Between interconnection agreement) address, the time, HTTP (Hyper Text Transfer Protocol, HTML (Hypertext Markup Language)) state The log field such as code, the length of response contents and User Agent (user agent), using these log field as session day Will information.
It should be noted that above-mentioned only using general journal field groups as illustrating the building form of log field, this Apply for without limitation.
Step S203: the write daily record of described session log information is given out a contract for a project in queue.
In the embodiment of the present application, heading, and some fixing message bodies can be pre-configured with, step S202 is obtained The session log information write daily record got is given out a contract for a project in queue, according to rule set in advance, and the meeting in queue that daily record is given out a contract for a project Talk about log information and the described heading being pre-configured with, and some fixing message bodies be configured to session log and send message, Described session log sends message can fixing length.
In an optional implementation, in the way of using polymerization session log information, session log information can be write Enter daily record and give out a contract for a project in queue, i.e. two or more session log information structuring can be sent report a session log Wen Zhong.Owing to not all session log information can be polymerized, therefore during polymerization session log information, can first judge Can the current session log information obtained from daily record storage queue with the session log information that current log is given out a contract for a project in queue Polymerization.When after the mark that with the addition of distributed log server in step S201 by each daily record storage queue, in session day In the case of will sends the limited length system of message, then judge the session log information that currently obtains from daily record storage queue with Current log gives out a contract for a project condition that can the session log information in queue be polymerized except the type according to both and form whether phase With the most outward, it is also possible to identify whether consistent according to the log server of both affiliated daily record storage queues, i.e. judge to gather Whether the session log information closed mails to same log server.For example, deposit according to daily record preset in step S202 Putting in order of storage queue, obtains session log sessionA from daily record storage queue queue1, and by the meeting of SessionA Words log information write daily record is given out a contract for a project in queue, and the network equipment have recorded daily record storage queue queue1 institute in the process Mark A1 of the log server of distribution, obtains the session of session log sessionB afterwards from daily record storage queue queue2 During log information, it is judged that the log server of the mark A1 and daily record storage queue queue2 of the above-mentioned log server recorded Identify whether consistent, if the mark of both log servers is consistent, it is also possible to continue to judge that current log is given out a contract for a project in queue Session log information the most consistent with form with the type of the session log information of sessionB, if both types and form Unanimously, then obtain the session log information of session log sessionB, and give out a contract for a project team according to rule write daily record set in advance In row, the session log information fusion in queue of giving out a contract for a project with current log, when both log server mark or both When type is inconsistent with form, then the session log information structuring being polymerized in queue of now daily record being given out a contract for a project is sent out in session log Deliver newspaper in literary composition.
In another optional implementation, it is also possible to do not use the mode of above-mentioned polymerization session log information, but After queue one session log information of write is given out a contract for a project in daily record, the session log information structuring that will write sends in session log In message.
In above-mentioned two implementation, it is also possible to before obtaining session log information from daily record storage queue in advance Give out a contract for a project the fixing memory space of queue assignment for daily record, thus eliminate and give out a contract for a project in queue repeats to apply for internal memory and release for daily record The operating process deposited, especially in the case of session log quantity of information is very big, can effectively improve efficiency, optimizes network and sets Preparation send the performance of session log.
Step S204: the session log information in queue of described daily record being given out a contract for a project sends the log services to described distribution Device.
Execution of step S203, it will words log information write daily record is given out a contract for a project in queue, and according to the rule pre-set Construct session log and send message, according to the mark of the log server of described interpolation, session log is sent message and send extremely The log server of described distribution.
Application above-described embodiment, distributes log server for each daily record storage queue, obtains from daily record storage queue Session log information, it will words log information write daily record is given out a contract for a project queue, and session log information daily record given out a contract for a project in queue is sent out Deliver to pre-assigned log server, owing to the embodiment of the present application is before sending session log information to log server, It is each daily record storage queue and is assigned with log server, thus be effectively increased the network equipment and send the property of session log Energy.
Corresponding with the embodiment of the method for aforementioned processing session log, present invention also provides the dress processing session log The embodiment put.
The application processes the embodiment of session log device and can apply on network devices.Device embodiment can be passed through Software realizes, it is also possible to realize by the way of hardware or software and hardware combining.As a example by implemented in software, as a logic meaning Device in justice, is that the processor by its place network equipment is by computer program instructions corresponding in nonvolatile memory Read and internal memory runs formation.For hardware view, as shown in Figure 4, the device institute of session log is processed for the application At a kind of hardware structure diagram of the network equipment, except the processor shown in Fig. 4, internal memory, network interface and non-volatile memories Outside device, in embodiment, the network equipment at device place is generally according to the actual functional capability of this network equipment, it is also possible to include other Hardware, repeats no more this.
Refer to Fig. 3, process an embodiment block diagram of the device of session log for the application, described device includes first Allocation unit 310, acquiring unit 320, writing unit 330, transmitting element 340.
Wherein, described first allocation unit 310, for distributing log server, described day for each daily record storage queue The quantity of will storage queue is N, and the quantity of described log server is that M, N and M are the natural number more than 1;
Described acquiring unit 320, for obtaining session log information from described daily record storage queue;
Said write unit 330, for queue of the write daily record of described session log information being given out a contract for a project;
Described transmitting element 340, sends to described distribution for the session log information described daily record given out a contract for a project in queue Log server.
In an optional implementation, described first allocation unit 310 can include (not shown in Fig. 3): first Obtaining subelement, map subelement, the first judgment sub-unit, distribution subelement, generation subelement, wherein, described first obtains Subelement, for obtaining the integer T corresponding with the weight of log server respectivelyi(i is 1 natural number arriving M);
Described mapping subelement, for being each mapped to T by each log serveriIndividual virtual log server, S altogether Individual virtual log server;
Described first judgment sub-unit, for judging that can quantity N of described daily record storage queue be divided exactly by S;
Described distribution subelement, can be divided exactly by S for quantity N, and business is q, then be each virtual log server-assignment q Individual daily record storage queue;Quantity N can not be divided exactly by S, and business is q, and remainder is r, then be that wherein r virtual log server is distinguished Distribute q+1 daily record storage queue, be respectively allocated q daily record storage queue for S-r virtual log server of residue;
Described generation subelement, for according to daily record storage queue and the relations of distribution of virtual log server and virtual The mapping relations of log server and log server generate the relations of distribution of daily record storage queue and log server.
In another optional implementation, described device can also include (not shown in Fig. 3): adding device, institute State adding device for adding the mark of the log server of described distribution for each described daily record storage queue;
Described transmitting element 340 can include (not shown in Fig. 3): first sends subelement, and described first sends son list Unit, identifies the session log information giving out a contract for a project in queue by described daily record and sends to institute for the log server according to described interpolation State the log server of distribution.
In another optional implementation, said write unit can include (not shown in Fig. 3): second judges son Unit, polymerization subelement, wherein, described second judgment sub-unit, for when using the mode of polymerization session log information, sentencing Disconnected described session log information and current log are given out a contract for a project the daily record of the daily record storage queue belonging to session log information in queue Identifying whether of server is consistent;
Described polymerization subelement, gives out a contract for a project the session log information in queue for described session log information and current log When the log server mark of affiliated daily record storage queue is consistent, queue that the write daily record of described session log information is given out a contract for a project In, the session log information fusion in queue of giving out a contract for a project with daily record.
In another optional implementation, described acquiring unit 320 includes (not shown in Fig. 3): extraction subelement, Second obtains subelement, wherein, described extraction subelement, for putting in order according to the daily record storage queue pre-set, Session log during described daily record storage queue is extracted in circulation successively;
Described second obtains subelement, for obtaining log field conduct from described session log according to default rule Session log information.
In another optional implementation, described device can also include (not shown in Fig. 3): the second distribution is single Unit, for giving out a contract for a project queue assignment fixed storage space for daily record.
In said apparatus, the function of unit and the process that realizes of effect specifically refer to corresponding step in said method Realize process, do not repeat them here.
For device embodiment, owing to it corresponds essentially to embodiment of the method, so relevant part sees method in fact The part executing example illustrates.Device embodiment described above is only schematically, wherein said as separating component The unit illustrated can be or may not be physically separate, and the parts shown as unit can be or can also It not physical location, i.e. may be located at a place, or can also be distributed on multiple NE.Can be according to reality Need to select some or all of module therein to realize the purpose of the application scheme.Those of ordinary skill in the art are not paying In the case of going out creative work, i.e. it is appreciated that and implements.
The foregoing is only the preferred embodiment of the application, not in order to limit the application, all essences in the application Within god and principle, any modification, equivalent substitution and improvement etc. done, should be included within the scope of the application protection.

Claims (12)

1. the method processing session log, it is characterised in that described method is applied on network devices, the described network equipment On include multiple daily record storage queue for caching session log, described method includes:
Distributing log server for each daily record storage queue, the quantity of described daily record storage queue is N, described log server Quantity be that M, N and M are the natural number more than 1;
Session log information is obtained from described daily record storage queue;
The write daily record of described session log information is given out a contract for a project queue;
The session log information in queue of described daily record being given out a contract for a project sends the log server to described distribution.
Method the most according to claim 1, it is characterised in that described for each described daily record storage queue distribution daily record clothes Business device includes:
Obtain the integer T corresponding with the weight of log server respectivelyi(i is 1 natural number arriving M);
Each log server is each mapped to TiIndividual virtual log server, altogether S virtual log server;
Judge that can quantity N of described daily record storage queue be divided exactly by S;
If aliquot, and business is q, then be each virtual log server-assignment q daily record storage queue;
If aliquant, and business is q, remainder is r, then be respectively allocated q+1 daily record for wherein r virtual log server and store Queue, is respectively allocated q daily record storage queue for S-r virtual log server of residue;
According to daily record storage queue and the relations of distribution of virtual log server and virtual log server and log server Mapping relations generate the relations of distribution of daily record storage queue and log server.
Method the most according to claim 1, it is characterised in that described for each described daily record storage queue distribution daily record clothes After business device, also include:
The mark of the log server of described distribution is added for each described daily record storage queue;
The log server that the described session log information described daily record given out a contract for a project in queue sends extremely described distribution includes:
Described daily record is given out a contract for a project the session log information transmission in queue to described distribution by the mark according to described log server Log server.
Method the most according to claim 3, it is characterised in that described team that the write daily record of described session log information is given out a contract for a project Row include:
When using the mode of polymerization session log information, it is judged that described session log information and current log are given out a contract for a project in queue Identifying whether of the log server of the daily record storage queue belonging to session log information is consistent, if unanimously, by described session day The write daily record of will information is given out a contract for a project in queue, the session log information fusion in queue of giving out a contract for a project with daily record.
Method the most according to claim 1, it is characterised in that described acquisition session log from described daily record storage queue Information includes:
According to putting in order of the daily record storage queue pre-set, the session during described daily record storage queue is extracted in circulation successively Daily record;
From described session log, target journaling field is obtained as session log information according to default rule.
Method the most according to claim 1, it is characterised in that described acquisition session log from described daily record storage queue Before information, also include:
Give out a contract for a project queue assignment fixed storage space for daily record.
7. the device processing session log, it is characterised in that described device is applied on network devices, the described network equipment On include multiple daily record storage queue for caching session log, described device includes:
First allocation unit, for distributing log server, the quantity of described daily record storage queue for each daily record storage queue For N, the quantity of described log server is that M, N and M are the natural number more than 1;
Acquiring unit, for obtaining session log information from described daily record storage queue;
Writing unit, for queue of the write daily record of described session log information being given out a contract for a project;
Transmitting element, sends the log services to described distribution for the session log information described daily record given out a contract for a project in queue Device.
Device the most according to claim 7, it is characterised in that described first allocation unit includes:
First obtains subelement, for obtaining the integer T corresponding with the weight of log server respectivelyi(i is 1 nature arriving M Number);
Map subelement, for each log server is each mapped to TiIndividual virtual log server, altogether S virtual day Will server;
First judgment sub-unit, for judging that can quantity N of described daily record storage queue be divided exactly by S;
Distribution subelement, can be by S aliquot for quantity N, and business is q, then be each virtual log server-assignment q daily record Storage queue;If quantity N can not be divided exactly by S, and business is q, and remainder is r, then be respectively allocated for wherein r virtual log server Q+1 daily record storage queue, is respectively allocated q daily record storage queue for S-r virtual log server of residue;
Generate subelement, for the relations of distribution according to daily record storage queue and virtual log server and virtual log service The mapping relations of device and log server generate the relations of distribution of daily record storage queue and log server.
Device the most according to claim 7, it is characterised in that described device also includes:
Adding device, for adding the mark of the log server of described distribution for each described daily record storage queue;
Described transmitting element includes: first sends subelement, for described daily record being sent out according to the mark of described log server Session log information in bag queue sends the log server to described distribution.
Device the most according to claim 9, it is characterised in that said write unit includes:
Second judgment sub-unit, for when use polymerization session log information mode time, it is judged that described session log information with Identifying whether of the log server of the daily record storage queue belonging to session log information that current log is given out a contract for a project in queue is consistent;
Polymerization subelement, gives out a contract for a project the day belonging to the session log information in queue for described session log information and current log When the log server mark of will storage queue is consistent, the write daily record of described session log information is given out a contract for a project in queue, with daily record Give out a contract for a project the session log information fusion in queue.
11. devices according to claim 7, it is characterised in that described acquiring unit includes:
Extracting subelement, for putting in order according to the daily record storage queue pre-set, described daily record is extracted in circulation successively Session log in storage queue;
Second obtains subelement, for obtaining target journaling field from described session log as session according to default rule Log information.
12. devices according to claim 7, it is characterised in that described device also includes:
Second allocation unit, for giving out a contract for a project queue assignment fixed storage space for daily record.
CN201510769450.1A 2015-11-12 2015-11-12 Method and device for processing conversion log Pending CN105959252A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510769450.1A CN105959252A (en) 2015-11-12 2015-11-12 Method and device for processing conversion log

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510769450.1A CN105959252A (en) 2015-11-12 2015-11-12 Method and device for processing conversion log

Publications (1)

Publication Number Publication Date
CN105959252A true CN105959252A (en) 2016-09-21

Family

ID=56917215

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510769450.1A Pending CN105959252A (en) 2015-11-12 2015-11-12 Method and device for processing conversion log

Country Status (1)

Country Link
CN (1) CN105959252A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106713041A (en) * 2016-12-29 2017-05-24 杭州迪普科技股份有限公司 Session log transmitting method and device
CN106921665A (en) * 2017-03-06 2017-07-04 北京东土军悦科技有限公司 A kind of message processing method and the network equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102232282A (en) * 2010-10-29 2011-11-02 华为技术有限公司 Method and apparatus for realizing load balance of resources in data center
CN102298633A (en) * 2011-09-08 2011-12-28 厦门市美亚柏科信息股份有限公司 Method and system for investigating repeated data in distributed mass data
CN102624562A (en) * 2012-03-13 2012-08-01 网经科技(苏州)有限公司 Safety management method for distributed SYSLOG (System Log) in network management system
CN104468509A (en) * 2014-10-29 2015-03-25 北方工业大学 Method and system for transmitting mobile phone network game data and mobile phone user side

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102232282A (en) * 2010-10-29 2011-11-02 华为技术有限公司 Method and apparatus for realizing load balance of resources in data center
CN102298633A (en) * 2011-09-08 2011-12-28 厦门市美亚柏科信息股份有限公司 Method and system for investigating repeated data in distributed mass data
CN102624562A (en) * 2012-03-13 2012-08-01 网经科技(苏州)有限公司 Safety management method for distributed SYSLOG (System Log) in network management system
CN104468509A (en) * 2014-10-29 2015-03-25 北方工业大学 Method and system for transmitting mobile phone network game data and mobile phone user side

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106713041A (en) * 2016-12-29 2017-05-24 杭州迪普科技股份有限公司 Session log transmitting method and device
CN106921665A (en) * 2017-03-06 2017-07-04 北京东土军悦科技有限公司 A kind of message processing method and the network equipment

Similar Documents

Publication Publication Date Title
CA2716544C (en) Method and system for providing network services
CN110896371B (en) Virtual network equipment and related method
CN110351342A (en) Service order processing method, device, computer equipment and storage medium
CN103888928A (en) Business strategy control method and system
CN101141420A (en) Method and system for performing data communication between private network and public network
CN102754409A (en) Methods, systems, and computer readable media for diameter protocol harmonization
CN105228140A (en) A kind of data access method and device
CN102131239B (en) Business processing unit and method, business control gateway and load balancing method
CN103888539B (en) Bootstrap technique, device and the P2P caching systems of P2P cachings
CN104539902B (en) The remote access method and system of a kind of IPC
CN110808857B (en) Network intercommunication method, device, equipment and storage medium for realizing Kubernetes cluster
CN110247848A (en) Send method, the network equipment and the computer readable storage medium of message
CN110769080B (en) Domain name resolution method, related product and computer readable storage medium
CN107707522A (en) A kind of authority control method and device based on cloud agency
CN107800603A (en) Intranet user accesses the method and storage medium of headend equipment based on VPN
US20160183229A1 (en) Ip phone network system, server apparatus, ip exchange and resource capacity expansion method
CN101753592A (en) Method and system for data processing
CN110855424B (en) Method and device for synthesizing asymmetric flow xDR in DPI field
WO2017197307A1 (en) User-based differentiated routing system and method
US20060069783A1 (en) Program, method and device for managing information shared among components, recording medium and communication apparatus
CN106027356A (en) Tunnel identifier conversion method and device
EP3096492B1 (en) Page push method and system
CN110582757A (en) Intermediate device for network routing of data messages
CN105379202A (en) Communication system
CN105959252A (en) Method and device for processing conversion log

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Binjiang District and Hangzhou city in Zhejiang Province Road 310051 No. 68 in the 6 storey building

Applicant after: Hangzhou Dipu Polytron Technologies Inc

Address before: Binjiang District and Hangzhou city in Zhejiang Province Road 310051 No. 68 in the 6 storey building

Applicant before: Hangzhou Dipu Technology Co., Ltd.

COR Change of bibliographic data
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160921