CN106649744A - Log recording method and apparatus - Google Patents
Log recording method and apparatus Download PDFInfo
- Publication number
- CN106649744A CN106649744A CN201611218267.3A CN201611218267A CN106649744A CN 106649744 A CN106649744 A CN 106649744A CN 201611218267 A CN201611218267 A CN 201611218267A CN 106649744 A CN106649744 A CN 106649744A
- Authority
- CN
- China
- Prior art keywords
- log
- daily record
- journalizing
- server
- information
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/18—File system types
- G06F16/1805—Append-only file systems, e.g. using logs or journals to store data
- G06F16/1815—Journaling file systems
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
- Storage Device Security (AREA)
Abstract
The invention relates to a log recording method and apparatus. The method comprises the following steps: a business server receives log information to be recorded according to a log operation request; the business server writes the log operation request information and the received log information into a log container in the business server, and the log container is a storage space in the memory of the business server; the log operation request information and the log information written in the log container are copied to a log server by a memory copy hot backup mode, and the log server is connected with the business server. By adopting the method and apparatus, the recording efficiency of the log information can be effectively improved.
Description
Technical field
The present invention relates to computer technology and Automated Technology in Office field, more particularly to a kind of log recording method and
Device.
Background technology
ERP (Enterprise Resource Planning, Enterprise Resources Plan) refers to foundation in Information Technology Foundation
On, with systematized management thought, for business decision layer and employee the management platform that decision-making runs means is provided.It is usually used
ERP system includes K3WISE systems etc., and in conventional ERP system, it is one of application the most conventional that document is carried out operating.
ERP system generally connects multiple subscriber computers, and subscriber computer needs to be write in the Service Database in system
When entering log information, subscriber computer sets up the connection with service server, and service server writes log information corresponding
In memory headroom, and the corresponding log recording table the inside in Service Database is write by corresponding memory headroom.Usual ERP systems
The multiple subscriber computers of system connection, regular concurrency access service server record daily record is commonplace, when concurrent
Access number is higher, and user operation it is frequent when, if record daily record it is very many, service server needs to respectively by daily record
Information writes corresponding memory headroom, and frequently internal memory handover operation can bring larger pressure to service server, meanwhile, will
Corresponding log recording table also can greatly take the resource of Service Database in log information write Service Database, affect
The performance of ERP system.
The content of the invention
Based on this, it is necessary to provide a kind of log recording method and device, log recording efficiency is effectively lifted.
A kind of log recording method, methods described includes:
Service server asks to receive the log information for needing record according to journalizing;
The service server is by the journalizing solicited message and the log information for receiving write service server
Daily record container in, the daily record container is the memory space in the service server internal memory;
By internal memory replicate Hot Spare mode will write to the journalizing solicited message in the daily record container and
Log information is copied to log server, and the log server is connected with the service server.
Wherein in one embodiment, identical daily record container is provided with the log server, it is described by internal memory
Replicating Hot Spare mode will write to the journalizing solicited message in the daily record container and the log information duplication Summer Solstice or the Winter Solstice
Will server is specially:
By internal memory replicate Hot Spare mode will write to the journalizing solicited message in the daily record container and
Log information is copied to the daily record container in the log server.
Wherein in one embodiment, methods described also includes:
The log server stores the journalizing solicited message and log information to log database, the day
Will database is connected with the log server.
Wherein in one embodiment, methods described also includes:
Detect whether the daily record container can replicate Hot Spare mode and ask the journalizing by the internal memory
Information and log information are copied to log server;
If it is not, then the journalizing solicited message and log information are transmitted by the background service of the daily record container
To the log server.
Wherein in one embodiment, methods described also includes:
Serializing process is carried out to the journalizing solicited message and log information;
The journalizing solicited message and log information after serializing is processed is configured to binary data packets;
The binary data packets are encrypted.
In the above log recording method, when the subscriber computer being connected with service server need log and to
When service server sends journalizing request, service server can ask to receive according to journalizing needs the daily record for recording to believe
Breath, service server writes journalizing solicited message and the log information for receiving in the daily record container in service server,
And Hot Spare mode will be replicated by write to the journalizing solicited message in daily record container and log information duplication by internal memory
To log server;Thus, the log information of any user computer transmission can be received by daily record container, without according to not
Same subscriber computer switches to corresponding memory headroom, improves the record efficiency of log information;Daily record meeting in daily record container
Synchronously it is copied to log server, it is to avoid because of the situation that journalizing failure caused by fortuitous event is lost with log information.
A kind of log recording apparatus, described device includes service server, and the service server includes:
Receiver module, for being asked to receive the log information for needing record according to journalizing;
Writing module, for by the journalizing solicited message and the log information for receiving write service server
In daily record container, the daily record container is the memory space in the service server internal memory;
Hot replication module, will write to the daily record in the daily record container for replicating Hot Spare mode by internal memory
Operation requests information and log information are copied to log server, and the log server is connected with the service server.
Wherein in one embodiment, identical daily record container, the hot backed stamper are provided with the log server
Block is replicated Hot Spare mode and will be write to the journalizing solicited message in the daily record container and daily record by internal memory to be believed
Breath is copied to log server and is specially:
By internal memory replicate Hot Spare mode will write to the journalizing solicited message in the daily record container and
Log information is copied to the daily record container in the log server.
Wherein in one embodiment, the log server is connected with log database, and the log server is used for
The journalizing solicited message and log information are stored to log database.
Wherein in one embodiment, the service server also includes:
Detection module, will be described for detecting whether the daily record container can replicate Hot Spare mode by the internal memory
Journalizing solicited message and log information are copied to log server;
Transfer module, for the detection module detect can not by the internal memory replicate Hot Spare mode will be described
When journalizing solicited message and log information are copied to log server, then by the background service of the daily record container by institute
State journalizing solicited message and log information is transferred to the log server.
Wherein in one embodiment, the service server also includes:
Processing module, for carrying out serializing process to the journalizing solicited message and log information;
Module is built, two is configured to and is entered for the journalizing solicited message and log information after serializing is processed
Packet processed;
Encrypting module, for being encrypted to the binary data packets.
In the above log recording apparatus, when the subscriber computer being connected with service server need log and to
When service server sends journalizing request, service server can ask to receive according to journalizing needs the daily record for recording to believe
Breath, service server writes journalizing solicited message and the log information for receiving in the daily record container in service server,
And Hot Spare mode will be replicated by write to the journalizing solicited message in daily record container and log information duplication by internal memory
To log server;Thus, the log information of any user computer transmission can be received by daily record container, without according to not
Same subscriber computer switches to corresponding memory headroom, improves the record efficiency of log information;Daily record meeting in daily record container
Synchronously it is copied to log server, it is to avoid because of the situation that journalizing failure caused by fortuitous event is lost with log information.
Description of the drawings
Fig. 1 is the schematic flow sheet of the log recording method of an embodiment;
Fig. 2 is the schematic flow sheet of the log recording method of another embodiment;
Fig. 3 is the connection diagram of service server and daily record container in Fig. 1;
Fig. 4 is the schematic flow sheet of the log recording method of another embodiment;
Fig. 5 is the structural representation of the log recording apparatus of an embodiment.
Specific embodiment
In order that the objects, technical solutions and advantages of the present invention become more apparent, it is right below in conjunction with drawings and Examples
The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the present invention, and
It is not used in the restriction present invention.
As shown in figure 1, the log recording method of an embodiment includes step S120 to step S160.
Step S120, service server asks to receive the log information for needing record according to journalizing.
The service server of ERP system connects multiple subscriber computers, adopts when subscriber computer carries out financial operations, logistics
Purchase or by ERP system it is attainable other operate when, need to record corresponding log information, with avoid operation failure or data damage
Lose.The ERP system of the present embodiment is applied to K3WISE systems etc., when subscriber computer carries out aforesaid operations, can synchronous averaging
Service server carries out corresponding log recording.Specifically, subscriber computer sends journalizing request, industry to service server
Business server receives the log information for needing record according to the journalizing request after journalizing request is received.
Step S140, service server is by journalizing solicited message and the log information for receiving write service server
Daily record container in, daily record container be service server internal memory in memory space.
Service server includes internal memory, in the present embodiment, daily record container has been opened up in the internal memory in service server.
Daily record container occupies fixed storage address in internal memory, and daily record container is served only for storing journalizing solicited message and daily record letter
Breath, and daily record container can store the journalizing solicited message and log information of any user computer transmission.Business service
After journalizing request and log information is received, just journalizing solicited message and the log information of reception write industry to device
Daily record container in business server.
Step S160, by internal memory replicate Hot Spare mode will write to the journalizing solicited message in daily record container and
Log information is copied to log server, and log server is connected with service server.
In something unexpected happened, to avoid journalizing failure and daily record from losing, in the present embodiment, replicated by internal memory
Hot Spare mode will write to the journalizing solicited message and log information in daily record container and be copied to log server.Due to
The backup operation that Hot Spare is ERP system under normal operation, therefore, when daily record container has renewal, then can synchronously by
The content of renewal is copied to log server.
In the above log recording method, when the subscriber computer being connected with service server need log and to
When service server sends journalizing request, service server can ask to receive according to journalizing needs the daily record for recording to believe
Breath, service server writes journalizing solicited message and the log information for receiving in the daily record container in service server,
And Hot Spare mode will be replicated by write to the journalizing solicited message in daily record container and log information duplication by internal memory
To log server;Thus, the log information of any user computer transmission can be received by daily record container, without according to not
Same subscriber computer switches to corresponding memory headroom, improves the record efficiency of log information;Daily record meeting in daily record container
Synchronously it is copied to log server, it is to avoid because of the situation that journalizing failure caused by fortuitous event is lost with log information.
Wherein, identical daily record container is provided with log server, step S160 replicates Hot Spare mode by internal memory
Write is copied to into log server to the journalizing solicited message and log information in daily record container to be specially:By internal memory
Replicate Hot Spare mode and write to the journalizing solicited message and log information in daily record container is copied to into log server
In daily record container.Due to the daily record container in log server it is identical with the daily record container in service server, in Hot Spare
When, it is only necessary to it is synchronous to replicate, it is to avoid possible address conversion, improve the treatment effeciency to log information.
In the present embodiment, log server connection log database.As shown in Fig. 2 the log recording side of another embodiment
Method also includes step S170.
Step S170, log server stores journalizing solicited message and log information to log database.
The journalizing solicited message being copied in log server and log information can be transferred to daily record number by synchronous
Stored according to storehouse.The log database of setting will not produce the occupied situation of resource, can effectively be lifted and daily record is deposited
Storage efficiency.
With reference to shown in Fig. 3, in a kind of implementation of the present embodiment, service server connection log server, daily record clothes
Business device connection log database.Daily record container is opened up in the internal memory of service server, daily record container has fixed size, including
Address in depositing is fixed, and identical daily record container is provided with the internal memory of log server.
Service server is generally connected with multiple subscriber computers, and service server is receiving subscriber computer transmission
Corresponding log information is received after journalizing request.The journalizing solicited message that service server sends subscriber computer
Corresponding daily record container is write with log information, wherein, daily record container is served only for storing journalizing solicited message and daily record letter
Breath, daily record container when journalizing is asked is sent to service server without subscriber computer idle condition is in.Write industry
Journalizing solicited message and log information in the daily record container of business server can replicate Hot Spare and take to daily record by internal memory
Daily record container in business device, further, log server by the journalizing solicited message being copied in correspondence daily record container and
Log information is transferred to log database and is stored.Wherein, subscriber computer sends equal to the log information of service server
Daily record container can be written into, makes daily record container as shared memory part, lift the treatment effeciency to log information.Business
Daily record container in server supports Hot Spare, and writing journalizing application information therein and log information can synchronously replicate
Into the daily record container of log server, it is to avoid because of the feelings that journalizing failure caused by fortuitous event is lost with log information
Condition.The journalizing information being copied in the daily record container of log server and log information can be sent directly to daily record data
Storehouse is stored, it is to avoid subscriber computer is directly stored in the inside of the log recording table in log database, it is to avoid be opened repeatedly
Or database is closed, lift the storage efficiency to log information.
It is that the daily record container in service server sets in the present embodiment when normal replication can not be carried out by heat duplication
Background service is equipped with, can be by the journalizing application information in write to correspondence daily record container and daily record letter by background service
Breath is sent to the daily record container in log server.Specifically, replicating Hot Spare mode by internal memory by step S160 will write
When journalizing solicited message and log information into daily record container is copied to log server, if can not normally perform
Internal memory replicates Hot Spare, then can produce the situation that journalizing failure and daily record are lost.For this purpose, as shown in figure 4, another embodiment
Log recording method also include step S152 and step S154.
Whether step S152, detection daily record container can replicate Hot Spare mode by journalizing solicited message by internal memory
Log server is copied to log information.
When Hot Spare is operated, ERP system is needed to carry out under the conditions of corresponding, if heat can not be replicated normal through internal memory
Backup mode is replicated, then can produce the situation that journalizing failure and daily record are lost.
Step S154, if it is not, then being passed journalizing solicited message and log information by the background service of daily record container
It is handed to log server.
It is that the daily record container in service server is provided with background service in the present embodiment, can not be normal through internal memory
When duplication Hot Spare mode is replicated, can will be write to the journalizing solicited message in daily record container by background service
Log server is transferred to log information.Further, by step S170, log server by journalizing solicited message and
Log information is stored to log database
Wherein, in step S154, journalizing solicited message and log information are passed by the background service of daily record container
When being handed to log server, need that journalizing solicited message and log information are processed to lift efficiency of transmission and transmission
Safety.Specifically, the log recording method of the present embodiment also includes step S1531 to step S1533.
Step S1531, to journalizing solicited message and log information serializing process is carried out.
Serializing is processed includes coded treatment etc., and the journalizing solicited message and log information after process is easily passed
It is defeated.
Step S1532, the journalizing solicited message and log information after serializing is processed is configured to binary data
Bag.
Binary data packets are encrypted by step S1533.
Binary data packets after encryption can ensure that the security of transmission, and cipher mode can be according to the important journey of daily record
Degree selects different encryption complexities.
For the binary data packets after encryption, log server can be transferred to daily record data after its validity is verified
Storehouse.
As shown in figure 3, in the present embodiment, the daily record container in log server can pass through socket, webservice,
The modes such as http/https provide service to other heterogeneous systems and use, the durability of the software for effectively improving.Log services
Device further can be shared corresponding daily record container in cluster server by way of cluster, improve data peace
Quan Xing.
As shown in figure 5, the log recording apparatus of an embodiment include service server and the day being connected with service server
Will server, service server includes receiver module 120, writing module 140 and hot replication module 160.
Receiver module 120 is used to ask to receive according to journalizing the log information for needing record.
The service server of ERP system connects multiple subscriber computers, adopts when subscriber computer carries out financial operations, logistics
Purchase or by ERP system it is attainable other operate when, need to record corresponding log information, with avoid operation failure or data damage
Lose.The ERP system of the present embodiment is applied to K3WISE systems etc., when subscriber computer carries out aforesaid operations, can synchronous averaging
Service server carries out corresponding log recording.Specifically, subscriber computer sends journalizing request, industry to service server
Business server receives the log information for needing record according to the journalizing request after journalizing request is received.
Writing module 140 was used for the day in journalizing solicited message and the log information for receiving write service server
In will container, daily record container is the memory space in service server internal memory.
Service server includes internal memory, in the present embodiment, daily record container has been opened up in the internal memory in service server.
Daily record container occupies fixed storage address in internal memory, and daily record container is served only for storing journalizing solicited message and daily record letter
Breath, and daily record container can store the journalizing solicited message and log information of any user computer transmission.Business service
After journalizing request and log information is received, just journalizing solicited message and the log information of reception write industry to device
Daily record container in business server.
Hot replication module 160 is used to be write to the journalizing in daily record container by internal memory duplication Hot Spare mode asks
Information and log information is asked to be copied to log server.
In something unexpected happened, to avoid journalizing failure and daily record from losing, in the present embodiment, replicated by internal memory
Hot Spare mode will write to the journalizing solicited message and log information in daily record container and be copied to log server.Due to
The backup operation that Hot Spare is ERP system under normal operation, therefore, when daily record container has renewal, then can synchronously by
The content of renewal is copied to log server.
In the above log recording apparatus, when the subscriber computer being connected with service server need log and to
When service server sends journalizing request, service server can ask to receive according to journalizing needs the daily record for recording to believe
Breath, service server writes journalizing solicited message and the log information for receiving in the daily record container in service server,
And Hot Spare mode will be replicated by write to the journalizing solicited message in daily record container and log information duplication by internal memory
To log server;Thus, the log information of any user computer transmission can be received by daily record container, without according to not
Same subscriber computer switches to corresponding memory headroom, improves the record efficiency of log information;Daily record meeting in daily record container
Synchronously it is copied to log server, it is to avoid because of the situation that journalizing failure caused by fortuitous event is lost with log information.
Wherein, identical daily record container is provided with log server, hot replication module 160 replicates Hot Spare by internal memory
Mode will write and be copied to log server to the journalizing solicited message and log information in daily record container and be specially:Pass through
Internal memory replicates Hot Spare mode and write to the journalizing solicited message and log information in daily record container is copied to into daily record clothes
Daily record container in business device.Due to the daily record container in log server it is identical with the daily record container in service server, in heat
During backup, it is only necessary to synchronous to replicate, it is to avoid possible address conversion, the treatment effeciency to log information is improved.
In the present embodiment, log server connection log database.Log server is used for journalizing solicited message
Store to log database with log information.
The journalizing solicited message being copied in log server and log information can be transferred to daily record number by synchronous
Stored according to storehouse.The log database of setting will not produce the occupied situation of resource, can effectively be lifted and daily record is deposited
Storage efficiency.
With reference to shown in Fig. 3, in a kind of implementation of the present embodiment, service server connection log server, daily record clothes
Business device connection log database.Daily record container is opened up in the internal memory of service server, daily record container has fixed size, including
Address in depositing is fixed, and identical daily record container is provided with the internal memory of log server.
Service server is generally connected with multiple subscriber computers, and service server is receiving subscriber computer transmission
Corresponding log information is received after journalizing request.The journalizing solicited message that service server sends subscriber computer
Corresponding daily record container is write with log information, wherein, daily record container is served only for storing journalizing solicited message and daily record letter
Breath, daily record container when journalizing is asked is sent to service server without subscriber computer idle condition is in.Write industry
Journalizing solicited message and log information in the daily record container of business server can replicate Hot Spare and take to daily record by internal memory
Daily record container in business device, further, log server by the journalizing solicited message being copied in correspondence daily record container and
Log information is transferred to log database and is stored.Wherein, subscriber computer sends equal to the log information of service server
Daily record container can be written into, makes daily record container as shared memory part, lift the treatment effeciency to log information.Business
Daily record container in server supports Hot Spare, and writing journalizing application information therein and log information can synchronously replicate
Into the daily record container of log server, it is to avoid because of the feelings that journalizing failure caused by fortuitous event is lost with log information
Condition.The journalizing information being copied in the daily record container of log server and log information can be sent directly to daily record data
Storehouse is stored, it is to avoid subscriber computer is directly stored in the inside of the log recording table in log database, it is to avoid be opened repeatedly
Or database is closed, lift the storage efficiency to log information.
It is that the daily record container in service server sets in the present embodiment when normal replication can not be carried out by heat duplication
Background service is equipped with, can be by the journalizing application information in write to correspondence daily record container and daily record letter by background service
Breath is sent to the daily record container in log server.Specifically, replicating Hot Spare mode by internal memory by hot replication module 160 will
When the journalizing solicited message and log information write into daily record container is copied to log server, if can not be normal
Perform internal memory and replicate Hot Spare, then can produce the situation that journalizing failure and daily record are lost.For this purpose, service server also includes
Detection module 152 and transfer module 154.
Detection module 152 is used to detect whether daily record container can replicate Hot Spare mode and ask journalizing by internal memory
Information and log information is asked to be copied to log server.
When Hot Spare is operated, ERP system is needed to carry out under the conditions of corresponding, if heat can not be replicated normal through internal memory
Backup mode is replicated, then can produce the situation that journalizing failure and daily record are lost.
Transfer module 154 is used to detect and can not ask journalizing by internal memory duplication Hot Spare mode in detection module
When asking information and log information to be copied to log server, then by the background service of daily record container by journalizing solicited message
Log server is transferred to log information.
It is that the daily record container in service server is provided with background service in the present embodiment, can not be normal through internal memory
When duplication Hot Spare mode is replicated, can will be write to the journalizing solicited message in daily record container by background service
Log server is transferred to log information.Further, log server can be by journalizing solicited message and log information
Store to log database.
Wherein, transfer module 154 is passed journalizing solicited message and log information by the background service of daily record container
When being handed to log server, need that journalizing solicited message and log information are processed to lift efficiency of transmission and transmission
Safety.Specifically, service server also includes processing module 1531, builds module 1532 and encrypting module 1533.
Processing module 1531 is used to carry out serializing process to journalizing solicited message and log information.
Serializing is processed includes coded treatment etc., and the journalizing solicited message and log information after process is easily passed
It is defeated.
Build module 1532 and be configured to two and enter for the journalizing solicited message and log information after serializing is processed
Packet processed.
Encrypting module 1533 is used to be encrypted binary data packets.
Binary data packets after encryption can ensure that the security of transmission, and cipher mode can be according to the important journey of daily record
Degree selects different encryption complexities.
As shown in figure 3, in the present embodiment, the daily record container in log server can pass through socket, webservice,
The modes such as http/https provide service to other heterogeneous systems and use, the durability of the software for effectively improving.Log services
Device further can be shared corresponding daily record container in cluster server by way of cluster, improve data peace
Quan Xing.
Each technical characteristic of embodiment described above can be combined arbitrarily, to make description succinct, not to above-mentioned reality
Apply all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited
In contradiction, the scope of this specification record is all considered to be.
Embodiment described above only expresses the several embodiments of the present invention, and its description is more concrete and detailed, but and
Can not therefore be construed as limiting the scope of the patent.It should be pointed out that for one of ordinary skill in the art comes
Say, without departing from the inventive concept of the premise, some deformations and improvement can also be made, these belong to the protection of the present invention
Scope.Therefore, the protection domain of patent of the present invention should be defined by claims.
Claims (10)
1. a kind of log recording method, it is characterised in that methods described includes:
Service server asks to receive the log information for needing record according to journalizing;
The journalizing solicited message and the log information for receiving are write the service server day in service server
In will container, the daily record container is the memory space in the service server internal memory;
Hot Spare mode is replicated by internal memory to write to the journalizing solicited message in the daily record container and daily record
Information is copied to log server, and the log server is connected with the service server.
2. method according to claim 1, it is characterised in that identical daily record appearance is provided with the log server
Device, it is described to be write to the journalizing solicited message in the daily record container and day by internal memory duplication Hot Spare mode
Will information is copied to log server and is specially:
Hot Spare mode is replicated by internal memory to write to the journalizing solicited message in the daily record container and daily record
Information is copied to the daily record container in the log server.
3. method according to claim 1 and 2, it is characterised in that methods described also includes:
The log server stores the journalizing solicited message and log information to log database, the daily record number
It is connected with the log server according to storehouse.
4. method according to claim 1, it is characterised in that methods described also includes:
Detect whether the daily record container can replicate Hot Spare mode by the journalizing solicited message by the internal memory
Log server is copied to log information;
If it is not, then the journalizing solicited message and log information are transferred to into institute by the background service of the daily record container
State log server.
5. method according to claim 4, it is characterised in that methods described also includes:
Serializing process is carried out to the journalizing solicited message and log information;
The journalizing solicited message and log information after serializing is processed is configured to binary data packets;
The binary data packets are encrypted.
6. a kind of log recording apparatus, it is characterised in that described device includes service server and connects with the service server
The log server for connecing, the service server includes:
Receiver module, for being asked to receive the log information for needing record according to journalizing;
Writing module, for the journalizing solicited message and the log information for receiving to be write the daily record in service server
In container, the daily record container is the memory space in the service server internal memory;
Hot replication module, will write to the journalizing in the daily record container for replicating Hot Spare mode by internal memory
Solicited message and log information are copied to log server.
7. device according to claim 6, it is characterised in that identical daily record appearance is provided with the log server
Device, the hot replication module replicates Hot Spare mode and asks write to the journalizing in the daily record container by internal memory
Ask information and log information to be copied to log server to be specially:
Hot Spare mode is replicated by internal memory to write to the journalizing solicited message in the daily record container and daily record
Information is copied to the daily record container in the log server.
8. the device according to claim 6 or 7, it is characterised in that the log server is connected with log database, institute
Log server is stated for the journalizing solicited message and log information to be stored to log database.
9. device according to claim 6, it is characterised in that the service server also includes:
Detection module, for detecting whether the daily record container can replicate Hot Spare mode by the daily record by the internal memory
Operation requests information and log information are copied to log server;
Transfer module, Hot Spare mode can not be replicated by the daily record for detecting in the detection module by the internal memory
When operation requests information and log information are copied to log server, then by the background service of the daily record container by the day
Will operation requests information and log information are transferred to the log server.
10. device according to claim 9, it is characterised in that the service server also includes:
Processing module, for carrying out serializing process to the journalizing solicited message and log information;
Module is built, for the journalizing solicited message and log information after serializing is processed binary number is configured to
According to bag;
Encrypting module, for being encrypted to the binary data packets.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611218267.3A CN106649744B (en) | 2016-12-26 | 2016-12-26 | Log recording method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611218267.3A CN106649744B (en) | 2016-12-26 | 2016-12-26 | Log recording method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106649744A true CN106649744A (en) | 2017-05-10 |
CN106649744B CN106649744B (en) | 2019-11-05 |
Family
ID=58828227
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611218267.3A Active CN106649744B (en) | 2016-12-26 | 2016-12-26 | Log recording method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106649744B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112402955A (en) * | 2020-05-06 | 2021-02-26 | 上海哔哩哔哩科技有限公司 | Game log recording method and system |
CN113032355A (en) * | 2021-04-06 | 2021-06-25 | 上海英方软件股份有限公司 | Method and device for collecting logs in batches by Web application |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101969386A (en) * | 2010-11-09 | 2011-02-09 | 道有道(北京)科技有限公司 | Log acquisition device and log acquisition method |
CN102111285A (en) * | 2009-12-24 | 2011-06-29 | 北京云快线软件服务有限公司 | Method and system for managing log information |
CN103023693A (en) * | 2012-11-27 | 2013-04-03 | 北京小米科技有限责任公司 | Behaviour log data management system and behaviour log data management method |
CN103176860A (en) * | 2011-12-21 | 2013-06-26 | 腾讯科技(深圳)有限公司 | Data backup method and data backup system |
CN103177006A (en) * | 2011-12-21 | 2013-06-26 | 北京昆仑万维科技股份有限公司 | Data storage system and method for updating storage capacity thereof |
CN103942210A (en) * | 2013-01-21 | 2014-07-23 | 中国移动通信集团上海有限公司 | Processing method, device and system of mass log information |
CN105912455A (en) * | 2016-04-27 | 2016-08-31 | 努比亚技术有限公司 | Business execution method and server |
-
2016
- 2016-12-26 CN CN201611218267.3A patent/CN106649744B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102111285A (en) * | 2009-12-24 | 2011-06-29 | 北京云快线软件服务有限公司 | Method and system for managing log information |
CN101969386A (en) * | 2010-11-09 | 2011-02-09 | 道有道(北京)科技有限公司 | Log acquisition device and log acquisition method |
CN103176860A (en) * | 2011-12-21 | 2013-06-26 | 腾讯科技(深圳)有限公司 | Data backup method and data backup system |
CN103177006A (en) * | 2011-12-21 | 2013-06-26 | 北京昆仑万维科技股份有限公司 | Data storage system and method for updating storage capacity thereof |
CN103023693A (en) * | 2012-11-27 | 2013-04-03 | 北京小米科技有限责任公司 | Behaviour log data management system and behaviour log data management method |
CN103942210A (en) * | 2013-01-21 | 2014-07-23 | 中国移动通信集团上海有限公司 | Processing method, device and system of mass log information |
CN105912455A (en) * | 2016-04-27 | 2016-08-31 | 努比亚技术有限公司 | Business execution method and server |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112402955A (en) * | 2020-05-06 | 2021-02-26 | 上海哔哩哔哩科技有限公司 | Game log recording method and system |
CN112402955B (en) * | 2020-05-06 | 2022-12-27 | 上海哔哩哔哩科技有限公司 | Game log recording method and system |
CN113032355A (en) * | 2021-04-06 | 2021-06-25 | 上海英方软件股份有限公司 | Method and device for collecting logs in batches by Web application |
Also Published As
Publication number | Publication date |
---|---|
CN106649744B (en) | 2019-11-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103530201B (en) | A kind of secure data De-weight method and system being applicable to standby system | |
CN101854392B (en) | Personal data management method based on cloud computing environment | |
CN102882923B (en) | Secure storage system and method for mobile terminal | |
CN104503863B (en) | Kernel state and User space method for interchanging data for virtual container system disaster tolerance | |
US7984488B2 (en) | Credential roaming in electronic computing systems | |
CN103853634B (en) | Disaster recovery system and disaster recovery method | |
CN104008330B (en) | Based on file is centrally stored and anti-data-leakage system of isolation technology and its method | |
US8782428B2 (en) | Encryption device and encryption method | |
US8219766B1 (en) | Systems and methods for identifying the presence of sensitive data in backups | |
CN103636165A (en) | Transparent failover | |
CN107301544A (en) | A kind of safe Wallet System of block chain | |
US9077703B1 (en) | Systems and methods for protecting user accounts | |
CA2886511A1 (en) | Assembling of isolated remote data | |
CN101547219B (en) | System and method for data storage | |
CN101727558B (en) | Method for clearing password of computer, computer and server | |
CN102200944A (en) | Test environment cloning method and system for enterprise resource planning (ERP) system | |
CN113568568B (en) | Hardware encryption method, system and device based on distributed storage | |
CN106649744A (en) | Log recording method and apparatus | |
CN113824551A (en) | Quantum key distribution scheme and device applied to secure storage system | |
CN110633125A (en) | Integrated management platform and management method based on cloud platform storage | |
CN111259455B (en) | Block chain private key escrow method and system | |
US11113152B1 (en) | Systems and methods for managing file backup | |
CN107291387A (en) | A kind of disk cut-in method of double control disk array | |
CN107133499A (en) | A kind of software copyright protecting method, client, service end and system | |
Yuvaraj et al. | Secure DE-duplication over wireless sensing data using convergent encryption |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |