CN1633080A - Method for implementing log in network management system - Google Patents
Method for implementing log in network management system Download PDFInfo
- Publication number
- CN1633080A CN1633080A CN 200310121066 CN200310121066A CN1633080A CN 1633080 A CN1633080 A CN 1633080A CN 200310121066 CN200310121066 CN 200310121066 CN 200310121066 A CN200310121066 A CN 200310121066A CN 1633080 A CN1633080 A CN 1633080A
- Authority
- CN
- China
- Prior art keywords
- field
- log
- database
- value
- 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.)
- Pending
Links
Images
Landscapes
- Debugging And Monitoring (AREA)
Abstract
This invention discloses a method for realizing journals in a network management system that a service module submits the generate journal information to a journal module via said interface, the journal module obtains the field attribute of a predefined database from the matched files and obtains value of related field from the journal information to transfer it to related database field to be written in the database.
Description
Technical field
The present invention relates to network management technology, relate in particular to a kind of method that in network management system, realizes daily record.
Background technology
In the telecommunicatioin network management field, journal function is a basic functions, and it has write down user's operation, the information such as state of equipment, and the user can learn the historic state of system by checking daily record.Sample as following two daily records:
Sample 1:
User name | Time | The operation name | Operating result |
Zhang San | 2003-06-16?18:00:00 | Land | Success |
Li Si | 2003-06-16?18:10:00 | Land | Failure |
Zhang San | 2003-06-16?19:00:00 | Withdraw from | Success |
... |
Sample 2:
Implementor name | Time | The device address | The operation name |
Router one | ?2003-06-16?19:00:00 | ?192.168.0.1 | Start |
Router two | ?2003-06-16?19:01:55 | ?192.168.0.3 | Close |
... |
In different systems, the form of log information is inequality, and webmaster background data base canned data form is also different naturally.
The existing technical scheme of journal function that realizes is: according to concrete journal format, by interface of log pattern definition of system, comprised each concrete field of daily record in this interface.The incidence relation of daily record field and Database field is by the inner hard coded of log pattern (hard coded is and a configurable relative notion to be meant all necessary source code, the new compiler of laying equal stress on directly revised of any modification) definition; During log, other modules of system are inserted log information, submit to log pattern and handle; Log pattern changes into Database field according to the incidence relation of hard coded with log information, and writes database.
Because for different systems, log information structure difference, and the incidence relation of daily record field and Database field adopts hard coded in the such scheme, so original log pattern can not directly be reused, needing to revise incidence relation could use, thus reuse the cost height, poor for applicability.
Summary of the invention
The object of the present invention is to provide a kind of method that in network management system, realizes daily record, realize in the prior art that to solve there is suitable difference in journal function and reuses the high problem of cost.
Realize technical scheme of the present invention:
A kind of method that realizes daily record in communication system has the business module that produces log information in the described system, be used for the log database of information, and the log pattern that is used to handle log information, and this log pattern provides an interface to business module; The method comprising the steps of:
Business module is submitted to log pattern with the log information that produces by described interface;
Log pattern obtains the field attribute of predefined database from configuration file, and obtains the value of respective field from log information according to field attribute;
The value of the field that log pattern will obtain from log information is converted to the corresponding database field and writes in the database.
According to said method:
Comprise a Hash table object in the interface of log pattern, key value in the Hash table (Key) is the field name during described field belongs to, value in the Hash table (Value) is the actual value of field name correspondence, when described business module is submitted log information to the information itemize is inserted in this Hash table object.
Each field attribute in the described configuration file is corresponding to each field in the database, and described field attribute comprises the type of the value of field name and this field correspondence at least.
Described configuration file adopts extendible SGML (XML) to describe.
Adopt method of the present invention, each system is the usage log module directly, need not encode and revise the relation of log information and Database field, only gets final product with revising configuration file, has improved the applicability of log pattern, thereby can save the development time greatly.
Description of drawings
Fig. 1 is the telecommunication network management system networking diagram;
Fig. 2 realizes principle schematic of the present invention.
Embodiment
With reference to figure 1, management system of the present invention comprises log server, the application server that is connected with this log server.Application server and log server are the computer installation that comprises parts such as processor and memory.Include business module on the application server, business module is carried out application task and is produced log information; Comprise log pattern and database on the log server, the log information that log pattern is submitted to client server is handled and is stored in the database.
For the little system of log information amount, also log server that can be special, and log information directly is stored on the application server, corresponding log pattern and database all are arranged on the application server.
In the present invention, also comprise configuration file on the log server, the field attribute of this configuration file definition database comprises the type of field name and its value.By configuration file, Database field forms related with the daily record field.
Configuration file adopts extendible SGML (XML) to describe.Log pattern is resolved to obtain related information this configuration file.So just avoided log pattern that related information is carried out hard coded.
Corresponding to daily record sample 1, adopt XML to be described below:
<LogRecord>
<Field>
<Name〉UserName</Name〉// corresponding to user name
<Type>String</Type>
</Field>
<Field>
<Name〉Time</Name〉// corresponding to the time
<Type>String</Type>
</Field>
<Field>
<Name〉OperateName</Name〉// corresponding to the operation name
<Type>String</Type>
</Field>
<Field>
<Name〉Result</Name〉// corresponding to operating result
<Type>String</Type>
</Field>
</LogRecord>
In the above definition, corresponding field in the database that each Field is corresponding.The field name of database is UserName, Time etc.
In the present embodiment, log pattern provides an interface, does not comprise concrete field information in this interface, but comprise a Hash table (HashMap) object, key value wherein (Key) is top definition Name attribute, is " UserName ", " Time " etc.; Value wherein (Value) is the value of the reality of each Name attribute correspondence.Be " Zhang San ", " 2003-06-16 18:10:00 " or the like.
Consult shown in Figure 2ly, the process of log information is as follows:
When 1, business module produces log information, the log information itemize is inserted the HashMap object, submit to log pattern then.Information is herein all handled according to character string type, as:
HashMap.put (" UserName ", " Zhang San ");
HashMap.put(“Time”,“2003-06-16?18:10:00”);
2, log pattern obtains the Database field attribute of definition from configuration file, takes out the value of respective field from HashMap according to the XML descriptor.
Log pattern takes out the Name of Field in the descriptor, then takes out corresponding value according to Name from HashMap; Repeating the descriptor of this operation in configuration file has been traveled through.
3, log pattern is converted to all field values Database field and writes database.
Log pattern utilizes value structural texture query language (SQL) statement of field, carries out this SQL statement then log information is write database.
Claims (4)
1, a kind of method that in network management system, realizes daily record, has the business module that produces log information in the described system, be used for the log database of information, and the log pattern that is used to handle log information, this log pattern provides an interface to business module; It is characterized in that the method comprising the steps of:
Business module is submitted to log pattern with the log information that produces by described interface;
Log pattern obtains the field attribute of predefined database from configuration file, and obtains the value of respective field from log information according to field attribute;
The value of the field that log pattern will obtain from log information is converted to the corresponding database field and writes in the database.
2, the method for claim 1, it is characterized in that, comprise a Hash table object in the interface of log pattern, key value in the Hash table (Key) is the field name during described field belongs to, value in the Hash table (Value) is the actual value of field name correspondence, when described business module is submitted log information to the information itemize is inserted in this Hash table object.
3, the method for claim 1 is characterized in that, each field attribute in the described configuration file is corresponding to each field in the database, and described field attribute comprises the type of the value of field name and this field correspondence at least.
As the arbitrary described method of claim 1 to 3, it is characterized in that 4, described configuration file adopts extendible SGML (XML) to describe.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200310121066 CN1633080A (en) | 2003-12-24 | 2003-12-24 | Method for implementing log in network management system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 200310121066 CN1633080A (en) | 2003-12-24 | 2003-12-24 | Method for implementing log in network management system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN1633080A true CN1633080A (en) | 2005-06-29 |
Family
ID=34844031
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 200310121066 Pending CN1633080A (en) | 2003-12-24 | 2003-12-24 | Method for implementing log in network management system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN1633080A (en) |
Cited By (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100426300C (en) * | 2006-12-12 | 2008-10-15 | 华为技术有限公司 | Method and system for managing journal |
CN100449543C (en) * | 2005-09-16 | 2009-01-07 | 腾讯科技(深圳)有限公司 | Method and apparatus for holding journal |
CN100489855C (en) * | 2005-12-01 | 2009-05-20 | 国际商业机器公司 | Apparatus and method for journaling database changes using minimized journal entries |
CN101267338B (en) * | 2008-04-23 | 2010-10-13 | 杭州思福迪信息技术有限公司 | High-performance log and behavior auditing system |
CN102195795A (en) * | 2010-03-19 | 2011-09-21 | Tcl集团股份有限公司 | Intelligent district log system and log recording method thereof |
CN102541905A (en) * | 2010-12-15 | 2012-07-04 | 北大方正集团有限公司 | Method and device for processing attributes of PDF (Portable Document Format) files |
CN101278519B (en) * | 2005-10-01 | 2012-11-21 | Lg电子株式会社 | Device management method using nodes having additional attribute and device management client terminal thereof |
CN103379136A (en) * | 2012-04-17 | 2013-10-30 | 中国移动通信集团公司 | Compression method and decompression method of log acquisition data, compression apparatus and decompression apparatus of log acquisition data |
CN104580310A (en) * | 2013-10-21 | 2015-04-29 | 腾讯科技(深圳)有限公司 | Log processing method and server |
CN108776587A (en) * | 2018-05-25 | 2018-11-09 | 平安科技(深圳)有限公司 | Data capture method, device, computer equipment and storage medium |
CN109446175A (en) * | 2018-11-12 | 2019-03-08 | 郑州云海信息技术有限公司 | A kind of method and apparatus for the log object constructing key operation |
CN110704414A (en) * | 2019-10-08 | 2020-01-17 | 加和(北京)信息科技有限公司 | Log data cleaning method and device, electronic equipment and storage medium |
CN111241180A (en) * | 2020-01-13 | 2020-06-05 | 中国建设银行股份有限公司 | Information processing method, device, equipment and storage medium |
CN111858621A (en) * | 2019-04-30 | 2020-10-30 | 北京京东振世信息技术有限公司 | Method, device, equipment and computer readable medium for monitoring business process |
CN112463527A (en) * | 2020-11-13 | 2021-03-09 | 完美世界控股集团有限公司 | Data processing method, device, equipment, system and storage medium |
CN112749223A (en) * | 2021-01-28 | 2021-05-04 | 道和云科技(天津)有限公司 | Interface log configuration and structured storage method and system |
CN114661682A (en) * | 2021-12-24 | 2022-06-24 | 奇安信科技集团股份有限公司 | Log file generation method and device |
-
2003
- 2003-12-24 CN CN 200310121066 patent/CN1633080A/en active Pending
Cited By (22)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100449543C (en) * | 2005-09-16 | 2009-01-07 | 腾讯科技(深圳)有限公司 | Method and apparatus for holding journal |
CN101278519B (en) * | 2005-10-01 | 2012-11-21 | Lg电子株式会社 | Device management method using nodes having additional attribute and device management client terminal thereof |
CN100489855C (en) * | 2005-12-01 | 2009-05-20 | 国际商业机器公司 | Apparatus and method for journaling database changes using minimized journal entries |
CN100426300C (en) * | 2006-12-12 | 2008-10-15 | 华为技术有限公司 | Method and system for managing journal |
CN101267338B (en) * | 2008-04-23 | 2010-10-13 | 杭州思福迪信息技术有限公司 | High-performance log and behavior auditing system |
CN102195795A (en) * | 2010-03-19 | 2011-09-21 | Tcl集团股份有限公司 | Intelligent district log system and log recording method thereof |
CN102541905B (en) * | 2010-12-15 | 2015-11-25 | 北大方正集团有限公司 | For attribute processing methods and the device of pdf document |
CN102541905A (en) * | 2010-12-15 | 2012-07-04 | 北大方正集团有限公司 | Method and device for processing attributes of PDF (Portable Document Format) files |
CN103379136B (en) * | 2012-04-17 | 2017-02-22 | 中国移动通信集团公司 | Compression method and decompression method of log acquisition data, compression apparatus and decompression apparatus of log acquisition data |
CN103379136A (en) * | 2012-04-17 | 2013-10-30 | 中国移动通信集团公司 | Compression method and decompression method of log acquisition data, compression apparatus and decompression apparatus of log acquisition data |
CN104580310A (en) * | 2013-10-21 | 2015-04-29 | 腾讯科技(深圳)有限公司 | Log processing method and server |
CN108776587A (en) * | 2018-05-25 | 2018-11-09 | 平安科技(深圳)有限公司 | Data capture method, device, computer equipment and storage medium |
WO2019223136A1 (en) * | 2018-05-25 | 2019-11-28 | 平安科技(深圳)有限公司 | Data acquisition method and apparatus, and computer device and storage medium |
CN108776587B (en) * | 2018-05-25 | 2020-07-17 | 平安科技(深圳)有限公司 | Data acquisition method and device, computer equipment and storage medium |
CN109446175A (en) * | 2018-11-12 | 2019-03-08 | 郑州云海信息技术有限公司 | A kind of method and apparatus for the log object constructing key operation |
CN111858621B (en) * | 2019-04-30 | 2023-09-26 | 北京京东振世信息技术有限公司 | Method, apparatus, device and computer readable medium for monitoring business process |
CN111858621A (en) * | 2019-04-30 | 2020-10-30 | 北京京东振世信息技术有限公司 | Method, device, equipment and computer readable medium for monitoring business process |
CN110704414A (en) * | 2019-10-08 | 2020-01-17 | 加和(北京)信息科技有限公司 | Log data cleaning method and device, electronic equipment and storage medium |
CN111241180A (en) * | 2020-01-13 | 2020-06-05 | 中国建设银行股份有限公司 | Information processing method, device, equipment and storage medium |
CN112463527A (en) * | 2020-11-13 | 2021-03-09 | 完美世界控股集团有限公司 | Data processing method, device, equipment, system and storage medium |
CN112749223A (en) * | 2021-01-28 | 2021-05-04 | 道和云科技(天津)有限公司 | Interface log configuration and structured storage method and system |
CN114661682A (en) * | 2021-12-24 | 2022-06-24 | 奇安信科技集团股份有限公司 | Log file generation method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1633080A (en) | Method for implementing log in network management system | |
EP2443564B1 (en) | Data compression for reducing storage requirements in a database system | |
CN1184561C (en) | Method, device and program for structure actuation environment and computer readable medium | |
CN1545252A (en) | A method for implementing foreground data configuration in network management system | |
CN107391306A (en) | A kind of isomeric data library backup file access pattern method | |
CN1687922A (en) | Distributed data source data integration system and method | |
CN1316828A (en) | Data compaction, transmission, storage and program transmission | |
CN1918572A (en) | Apparatus, system, method for enabling web-applications to access enterprise managed data | |
CN101043379A (en) | Network management apparatus and network management method | |
CN1904885A (en) | Database adapter | |
CN1928873A (en) | System and method for database access for implementing load sharing | |
CN1801097A (en) | Method and system for use of MD4 checksum and link transactions across machines | |
CN101046811A (en) | Data integral service system and method | |
CN1448857A (en) | Electronic document management method and program | |
CN1848851A (en) | Computer and method for establishing light weight catalog access data protocol exchange format fragment | |
CN1645799A (en) | Distributed unified data access system based on long-range authority | |
CN114610747A (en) | Data query method, device, equipment and storage medium | |
CN1787526A (en) | Network dynamic announcing system of satellite remote sensing data applied products | |
CN1753402A (en) | Method of using simple network management protocol to act multirariant block inquiry | |
CN1645372A (en) | Universal constraining realizing method for real-time internal memory database | |
CN101046858A (en) | Electronic information comparing system and method and anti-garbage mail system | |
CN1737791A (en) | Data compression method by finite exhaustive optimization | |
CN1635497A (en) | Hardware-level based test script automatic generating system and method | |
CN1858744A (en) | Data inquire system and method | |
CN1652109A (en) | Method and apparatus replication of binary large object data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C02 | Deemed withdrawal of patent application after publication (patent law 2001) | ||
WD01 | Invention patent application deemed withdrawn after publication |