CN103973486A - Log management system based on B/S structure - Google Patents

Log management system based on B/S structure Download PDF

Info

Publication number
CN103973486A
CN103973486A CN201410178292.8A CN201410178292A CN103973486A CN 103973486 A CN103973486 A CN 103973486A CN 201410178292 A CN201410178292 A CN 201410178292A CN 103973486 A CN103973486 A CN 103973486A
Authority
CN
China
Prior art keywords
log
administration system
task
daily record
backup
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
Application number
CN201410178292.8A
Other languages
Chinese (zh)
Other versions
CN103973486B (en
Inventor
刘永强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Upper Marine Infotech Share Co Ltd Of Interrogating
Original Assignee
Upper Marine Infotech Share Co Ltd Of Interrogating
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 Upper Marine Infotech Share Co Ltd Of Interrogating filed Critical Upper Marine Infotech Share Co Ltd Of Interrogating
Priority to CN201410178292.8A priority Critical patent/CN103973486B/en
Publication of CN103973486A publication Critical patent/CN103973486A/en
Application granted granted Critical
Publication of CN103973486B publication Critical patent/CN103973486B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a log management system based on a B/S structure. The log management system based on the B/S structure comprises a foreground, a database and a background, wherein the foreground comprises a browser, and a user builds one or more log tasks and inputs task information configured by the user through a page of the browser; the database is used for storing the configured task information; the background is used for reading the task information from the database and executes the log tasks at different time points according to the task information. Compared with the prior art, the log management system is convenient and easy to use, comprehensive and efficient, timed execution of the tasks can be achieved easily, the multiple tasks can be executed at different time points easily, and log archiving or cleaning through multiple protocols is supported. Besides, according to the system, the user only needs to build the multiple tasks and configure the task information on the foreground, the background is mainly responsible for executing the log tasks, time of the user is saved, and the operation efficiency of the system is improved.

Description

A kind of Log Administration System based on B/S structure
Technical field
The present invention relates to a kind of computer network security technology and log processing technology, relate in particular to a kind of Log Administration System based on B/S (Browser/Server, browser/server) structure.
Background technology
In computer safety field, log system is a very important functional component, all behaviors that it can register system produces, and according to certain regulate expression out.The information of utilizing log system to record, we can carry out misarrangement to system, the performance of optimization system, or according to the behavior of these information adjustment System.In security fields, daily record can be described as one of topmost instrument in security audit aspect.It not only can carry out security audit, can also provide strong evidence to intrusion detection.
The importance in computer safety field in view of daily record and out of Memory, carries out archival back-up and regularly clears up and be necessary system running log.In addition, if system operation time is oversize, running log and out of Memory can accumulate gradually and form huge data, and these data can occupy the increasing memory space of disk, this also just requires related personnel the out-of-date information in disk must be cleared up to save disk space, is new daily record and out of Memory slot milling.Moreover for assailant, daily record is main target of attack, because comprised some confidential datas in daily record, if the login of E-government information website and amendment record, the transaction record of bank are, invasion evidence of assailant etc.Once the running log of system can not get timely cleaning, in the time of will certainly causing system operation, there is potential safety hazard.
In the prior art, the filing of log system and cleaning are presented to single task role pattern conventionally, a plurality of tasks that can not set up user automatically perform.In addition, the processing of daily record must be realized by manual operation, loses time very much, careless slightlyly also may occur filing not exclusively or the abnormal case such as mistake cleaning.In view of this, how designing a kind of new Log Administration System or existing log management scheme is improved, to eliminate above-mentioned defect or the deficiency of prior art, is those skilled in the relevant art's problems in the urgent need to address.
Summary of the invention
For Log Administration System of the prior art existing above-mentioned defect when daily record being carried out such as filing or cleaning operation, the invention provides a kind of Log Administration System based on B/S structure.
According to one aspect of the present invention, a kind of Log Administration System based on B/S structure is provided, comprising:
Foreground, comprises browser, and user sees through the page of described browser and sets up one or more log tasks and input the mission bit stream that user configures;
Database, for storing configured mission bit stream; And
Backstage, for reading the described mission bit stream from described database, and carries out described log task according to described mission bit stream timesharing.
An embodiment therein, the page that user also can see through described browser is edited or is deleted existing log task and adds new log task.
An embodiment therein, this mission bit stream also comprises daily record archive operation and daily record cleaning operation.
An embodiment therein, this Log Administration System also comprises backup units, for the corresponding daily record to current computer, backs up.
An embodiment therein, this backup units is ftp server, SSH server or http server, described backstage is accordingly by File Transfer Protocol, Secure File Transfer Protocol or http protocol execution journal archive operation.
An embodiment therein, this backup units is movable storage device.
An embodiment therein, daily record cleaning operation is carried out according to the disk utilization rate of current computer in this backstage.
An embodiment therein, daily record cleaning operation is carried out according to Preset Time point or preset time period in this backstage.
An embodiment therein, when described log task is activated, following operation is carried out on described backstage successively: judge whether local zone time is greater than the task time started; When local zone time is greater than task during the time started, carry out backup database script and backup video recording; And read upload server information, and carry out and upload script.
An embodiment therein, when described log task is not carried out first, backup policy is also read on described backstage, and when meeting the Preset Time point of described backup policy, carries out backup database script and backup video recording again.
Adopt the Log Administration System based on B/S structure of the present invention, user sees through the browser page on foreground and sets up one or more log tasks and input the mission bit stream that user configures, database is for storing configured mission bit stream, the mission bit stream from database is read on backstage, and according to mission bit stream timesharing execution journal task.Than prior art, the invention provides a kind of facilitate daily record filing and liquidating plan based on multitask easy-to-use, comprehensive high-efficiency, make it easily realize that task is regularly carried out, multitask timesharing execution mechanism, support various protocols to carry out daily record filing.In addition, this system only needs user on foreground, to set up multitask configuration task information, and the execution of log task is mainly responsible on backstage, has saved user time, has promoted running efficiency of system.
Accompanying drawing explanation
Reader, after having read the specific embodiment of the present invention with reference to accompanying drawing, will become apparent various aspects of the present invention.Wherein,
Fig. 1 illustrates the structural representation according to the Log Administration System based on B/S structure of an embodiment of the present invention;
Fig. 2 illustrates in the Log Administration System of Fig. 1, and the principle schematic of information interaction is carried out on foreground, database and backstage;
Fig. 3 illustrates the Log Administration System of Fig. 1 and by different agreement, carries out the FB(flow block) of daily record archive operation;
Fig. 4 illustrates the Log Administration System of Fig. 1 and by movable storage device, carries out the FB(flow block) of daily record archive operation; And
Fig. 5 illustrates when log task is activated, the background process FB(flow block) when Log Administration System of utilization Fig. 1 is carried out daily record archive operation.
Embodiment
For the technology contents that the application is disclosed is more detailed and complete, can be with reference to accompanying drawing and following various specific embodiments of the present invention, in accompanying drawing, identical mark represents same or analogous assembly.Yet those of ordinary skill in the art should be appreciated that the embodiment that hereinafter provided is not used for limiting the scope that the present invention is contained.In addition, accompanying drawing, only for being schematically illustrated, is not drawn according to its life size.
With reference to the accompanying drawings, the embodiment of various aspects of the present invention is described in further detail.
Before launching explanation Log Administration System of the present invention, briefly introduce B/S structure.The English full name of B/S is Browser/Server, that is, Browser/Server Mode, it is a kind of network configuration pattern after WEB rises, WEB browser is the topmost application software of client (foreground).This pattern has been unified client, and it is upper that the core that systemic-function is realized focuses on server (backstage), simplified exploitation, maintenance and the use of system.Client is as long as install a browser, such as Netscape Navigator or Internet Explorer, server is installed the databases such as Oracle, Sybase, Informix or SQLServer, and browser carries out data interaction by Web Server with database.Adopt B/S structure to there is distributivity feature, the Business Processing such as can inquire about, browse whenever and wherever possible.In addition, business expansion is simple and convenient, can increase server capability, and maintenance is also simple and convenient, only need to change the synchronous renewal that webpage can be realized all users by increasing webpage.
Fig. 1 illustrates the structural representation according to the Log Administration System based on B/S structure of an embodiment of the present invention.With reference to Fig. 1, the Log Administration System based on B/S structure of the present invention comprises foreground 10, database 20 and backstage 30.
Particularly, foreground 10 comprises browser, and user sees through the page of this browser can set up one or more log tasks.And, utilize the page to input the mission bit stream of the desired configuration of user.For example, mission bit stream can show daily record file or back up.Or, cleaning when mission bit stream shows daily record to carry out regularly clearing up or meeting threshold condition, such as, when disk utilization rate, is cleared up system journal during lower than a certain numerical value higher than the residue utilance of a certain numerical value or disk.Database 20 carries out information interaction, the mission bit stream configuring for storing user with foreground 10.In addition, database 20 also can see through foreground 10 by log task attribute display on browser page, so that user carries out editing and maintaining at any time.
Information interaction is carried out with database 20 in backstage 30, is used for reading the mission bit stream from database 20, and is carried out according to these mission bit stream timesharing.For example, a certain mission bit stream is corresponding to daily record filing task task 1, another mission bit stream is corresponding to daily record clean-up task Task2, and the stipulated time point of daily record filing task is early than the stipulated time point of daily record clean-up task, can sort these two log tasks in backstage 30, and according to the filing of time order and function successively execution journal and daily record cleaning.After daily record has been filed, by archive log write into Databasce, to facilitate the details of user's inquiry log archive operation.Similarly, after daily record has been cleared up, will clear up in daily record write into Databasce, to facilitate the details of user's inquiry log cleaning operation.
In one embodiment, Log Administration System of the present invention also comprises backup units (not shown).This backup units is for backing up or file the corresponding daily record of current computer.For example, this backup units can be other computer in network.And for example, this backup units can be also movable storage device, such as USB, portable hard drive, mobile phone or other portable memory.
In one embodiment, daily record cleaning operation is carried out according to the disk utilization rate of current computer in backstage 30.In other embodiments, daily record cleaning operation also can be carried out according to Preset Time point or preset time period in backstage 30.
Fig. 2 illustrates in the Log Administration System of Fig. 1, and the principle schematic of information interaction is carried out on foreground, database and backstage.
With reference to Fig. 2, from user's angle, can comprise and see through the some operations of browser page to log task.Such as the activation of log task is carried out to time set, existing log task is edited or deletion action, add new log task etc.Main and the database in foreground carries out data interaction, particularly, database is presented at stored mission bit stream the browser page on foreground in real time, thereby user sees through foreground, carries out edit page or adds the page and the current log task in database is edited or add new task.
Background program reads the mission bit stream from database, and utilizes timer to detect whether to reach log task official hour point.When sometime or when time durations arrives, activate corresponding log task and carried out.
Fig. 3 illustrates the Log Administration System of Fig. 1 and by different agreement, carries out the FB(flow block) of daily record archive operation.
With reference to Fig. 3, when Log Administration System of the present invention adopts different agreement to file daily record, this method of operation can be achieved by step S31~step S37.
In this method of operation, first perform step S31, backstage obtains user configured mission bit stream from database.Then in step S33, confirm which kind of agreement is backup units adopt.If user has configured ftp server on another computer, system will be filed daily record on this ftp server by File Transfer Protocol; If user has configured SSH server on another computer, system will be filed daily record on this SSH server by Secure File Transfer Protocol; If user has configured http server on another computer, system will be filed daily record on this http server by http protocol.
Then,, in step S35 and S37, obtain the server configuration of another computer, and judge that whether server is working properly.As it is undesired to work, enter step S374, will file failed daily record write into Databasce; If working properly, enter step S372, execution journal archive operation.
Fig. 4 illustrates the Log Administration System of Fig. 1 and by movable storage device, carries out the FB(flow block) of daily record archive operation.
With reference to Fig. 4, when Log Administration System of the present invention is filed daily record by movable storage device, this method of operation can be achieved by step S41~step S45.
In this method of operation, first perform step S41, backstage obtains user configured mission bit stream from database.Then, confirm the storage class of backup units, such as USB or portable hard drive (step S43).Finally, in step S45, whether judgment device connects.If equipment not yet connects, enter step S454, will file failed daily record write into Databasce; If equipment connects, enter step S452, execution journal archive operation.
Fig. 5 illustrates when log task is activated, the background process FB(flow block) when Log Administration System of utilization Fig. 1 is carried out daily record archive operation.
With reference to Fig. 5, in this background process method, first judge whether task activates (step S501), when task is not activated, end process.When task activates, enter step S503, further judge whether local zone time is greater than the task time started.For example this task time started can be configured and be stored in database on foreground by user.If local zone time is less than task time started, end process.If local zone time is greater than the task time started, further judge that whether log task is for carrying out for the first time (step S505).
When log task is when carrying out for the first time, enter successively step S507 and S509, carry out backup database script and carry out backup video recording, then read upload server information and execution and upload script, complete daily record archive operation.When log task is not carried out for the first time, enter successively step S511 and S513, read backup policy, and judge whether to meet strategy stipulated time point, only when meeting the Preset Time point of backup policy, perform step successively again S507 and S509.If do not meet the Preset Time point of backup policy, end operation.
Adopt the Log Administration System based on B/S structure of the present invention, user sees through the browser page on foreground and sets up one or more log tasks and input the mission bit stream that user configures, database is for storing configured mission bit stream, the mission bit stream from database is read on backstage, and according to mission bit stream timesharing execution journal task.Than prior art, the invention provides a kind of facilitate daily record filing and liquidating plan based on multitask easy-to-use, comprehensive high-efficiency, make it easily realize that task is regularly carried out, multitask timesharing execution mechanism, support various protocols to carry out daily record filing.In addition, this system only needs user on foreground, to set up multitask configuration task information, and the execution of log task is mainly responsible on backstage, has saved user time, has promoted running efficiency of system.
Above, describe the specific embodiment of the present invention with reference to the accompanying drawings.But those skilled in the art can understand, without departing from the spirit and scope of the present invention in the situation that, can also do various changes and replacement to the specific embodiment of the present invention.These changes and replacement all drop in the claims in the present invention book limited range.

Claims (10)

1. the Log Administration System based on B/S (Browser/Server, browser/server) structure, is characterized in that, described Log Administration System comprises:
Foreground, comprises browser, and user sees through the page of described browser and sets up one or more log tasks and input the mission bit stream that user configures;
Database, for storing configured mission bit stream; And
Backstage, for reading the described mission bit stream from described database, and carries out described log task according to described mission bit stream timesharing.
2. Log Administration System according to claim 1, is characterized in that, the page that user also can see through described browser is edited or deleted existing log task and adds new log task.
3. Log Administration System according to claim 1, is characterized in that, described mission bit stream also comprises daily record archive operation and daily record cleaning operation.
4. Log Administration System according to claim 3, is characterized in that, described Log Administration System also comprises backup units, for the corresponding daily record to current computer, backs up.
5. Log Administration System according to claim 4, is characterized in that, described backup units is ftp server, SSH server or http server, and described backstage is accordingly by File Transfer Protocol, Secure File Transfer Protocol or http protocol execution journal archive operation.
6. Log Administration System according to claim 4, is characterized in that, described backup units is movable storage device.
7. Log Administration System according to claim 3, is characterized in that, daily record cleaning operation is carried out according to the disk utilization rate of current computer in described backstage.
8. Log Administration System according to claim 3, is characterized in that, daily record cleaning operation is carried out according to Preset Time point or preset time period in described backstage.
9. Log Administration System according to claim 1, is characterized in that, when described log task is activated, following operation is carried out on described backstage successively:
Judge whether local zone time is greater than the task time started;
When local zone time is greater than task during the time started, carry out backup database script and backup video recording; And
Read upload server information, and carry out and upload script.
10. Log Administration System according to claim 9, it is characterized in that, when described log task is not carried out first, backup policy is also read on described backstage, and when meeting the Preset Time point of described backup policy, carries out backup database script and backup video recording again.
CN201410178292.8A 2014-04-29 2014-04-29 A kind of Log Administration System based on B/S structures Active CN103973486B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410178292.8A CN103973486B (en) 2014-04-29 2014-04-29 A kind of Log Administration System based on B/S structures

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410178292.8A CN103973486B (en) 2014-04-29 2014-04-29 A kind of Log Administration System based on B/S structures

Publications (2)

Publication Number Publication Date
CN103973486A true CN103973486A (en) 2014-08-06
CN103973486B CN103973486B (en) 2018-05-25

Family

ID=51242553

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410178292.8A Active CN103973486B (en) 2014-04-29 2014-04-29 A kind of Log Administration System based on B/S structures

Country Status (1)

Country Link
CN (1) CN103973486B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104484275A (en) * 2014-12-25 2015-04-01 东信和平科技股份有限公司 Method and system capable of remotely testing smart cards
CN107220183A (en) * 2017-06-29 2017-09-29 郑州云海信息技术有限公司 Method of testing and system that a kind of server B MC event logs are set
CN107870842A (en) * 2016-09-28 2018-04-03 平安科技(深圳)有限公司 A kind of blog management method and system
CN112506871A (en) * 2020-12-17 2021-03-16 中国科学技术大学 Automated task management and log management method, system, electronic device and medium
CN113032406A (en) * 2021-05-26 2021-06-25 四川新网银行股份有限公司 Data archiving method for centralized management of sub-tables through metadata database

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050160427A1 (en) * 2003-12-16 2005-07-21 Eric Ustaris System and method for managing log files
CN101677445A (en) * 2008-09-16 2010-03-24 中兴通讯股份有限公司 Method and system of clearing service system logs
CN101694626A (en) * 2009-09-30 2010-04-14 曙光信息产业(北京)有限公司 Script execution system and method
CN102891778A (en) * 2012-09-27 2013-01-23 迈普通信技术股份有限公司 Control system and method for loop avoidance in automated testing
CN103176860A (en) * 2011-12-21 2013-06-26 腾讯科技(深圳)有限公司 Data backup method and data backup system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050160427A1 (en) * 2003-12-16 2005-07-21 Eric Ustaris System and method for managing log files
CN101677445A (en) * 2008-09-16 2010-03-24 中兴通讯股份有限公司 Method and system of clearing service system logs
CN101694626A (en) * 2009-09-30 2010-04-14 曙光信息产业(北京)有限公司 Script execution system and method
CN103176860A (en) * 2011-12-21 2013-06-26 腾讯科技(深圳)有限公司 Data backup method and data backup system
CN102891778A (en) * 2012-09-27 2013-01-23 迈普通信技术股份有限公司 Control system and method for loop avoidance in automated testing

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
重点学科网络资源导航库项目组: "重点学科网络资源导航库本地系统 管理员操作手册", 《HTTP://WENKU.IT168.COM/D_001269605.SHTML》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104484275A (en) * 2014-12-25 2015-04-01 东信和平科技股份有限公司 Method and system capable of remotely testing smart cards
CN107870842A (en) * 2016-09-28 2018-04-03 平安科技(深圳)有限公司 A kind of blog management method and system
CN107870842B (en) * 2016-09-28 2021-05-04 平安科技(深圳)有限公司 Log management method and system
CN107220183A (en) * 2017-06-29 2017-09-29 郑州云海信息技术有限公司 Method of testing and system that a kind of server B MC event logs are set
CN112506871A (en) * 2020-12-17 2021-03-16 中国科学技术大学 Automated task management and log management method, system, electronic device and medium
CN112506871B (en) * 2020-12-17 2022-09-09 中国科学技术大学 Automated task management and log management method, system, electronic device and medium
CN113032406A (en) * 2021-05-26 2021-06-25 四川新网银行股份有限公司 Data archiving method for centralized management of sub-tables through metadata database

Also Published As

Publication number Publication date
CN103973486B (en) 2018-05-25

Similar Documents

Publication Publication Date Title
CN101854392B (en) Personal data management method based on cloud computing environment
CN103973486A (en) Log management system based on B/S structure
CN102193926B (en) A kind of manuscript management method and system based on the on-line automatic preservation of manuscript
CN103761165B (en) Log backup method and device
CN102790686A (en) Log data collecting method and system and log collecting server
CN107256182A (en) A kind of method and apparatus of database restoration
CN105550062A (en) Continuous data protection and time point browse recovery based data backflow method
CN104252485A (en) Database management platform
CN103605585A (en) Intelligent backup method based on data discovery
CN103019891A (en) Method and system for restoring deleted file
CN103713972A (en) Incremental backup system and method
CN105306581A (en) Router and cloud disk based data synchronization method
CN105487940A (en) Disaster recovery side, production side and data recovery method between disaster recovery side and production side
CN106201772A (en) The backup of a kind of operating system based on data center, restoration methods and device
CN102799503A (en) Recover method applied to large quantity of small files
CN105608150A (en) Business data processing method and system
CN105337772A (en) System and method for backing up and restoring configuration of network equipment
CN101937378A (en) Method for carrying out back-up protection on data of storage equipment and computer system
CN103176867A (en) Fast file differential backup method
US20160139996A1 (en) Methods for providing unified storage for backup and disaster recovery and devices thereof
CN104063294B (en) A kind of linux system backup and restoration methods
CN107562371A (en) A kind of cloud main frame storage medium switching method and its system
CN104391760B (en) A kind of method of data backup, server and system
CN104572339A (en) Data backup restoring system and method based on distributed file system
CN103870363A (en) Database data remote backup method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant