CN103475714A - System and method for operation log recording and uploading on basis of Active X technique - Google Patents
System and method for operation log recording and uploading on basis of Active X technique Download PDFInfo
- Publication number
- CN103475714A CN103475714A CN2013104104433A CN201310410443A CN103475714A CN 103475714 A CN103475714 A CN 103475714A CN 2013104104433 A CN2013104104433 A CN 2013104104433A CN 201310410443 A CN201310410443 A CN 201310410443A CN 103475714 A CN103475714 A CN 103475714A
- Authority
- CN
- China
- Prior art keywords
- module
- operation log
- journal file
- log
- activex
- 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
Images
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The invention relates to a system and method for operation log recording and uploading on the basis of an Active X technique. The system comprises an information showing module used for showing an operation log based on an HTML language, an information processing module which communicates with the information showing module and used for calling the operation log from the information showing module through the Active X technique, carrying out buffer memory, analysis and monitoring on the operation log based on the Active X technique to generate a log file and uploading the log file to an FTP server timely and a log storage module which is built on the FTP server, communicates with the information processing module and used for analyzing the log file uploaded to the FTP server and storing the analyzed log file in a set database module. According to the system and method, by means of the Active X technique, the functions of recording the operation log and uploading the operation log to the server are achieved, the log recording concurrence efficiency is improved, the probability that when an IE passes an AJAX concurrence request server, congestion is caused is reduce, and the use efficiency of the server is improved.
Description
Technical field
The present invention relates to the ActiveX technical field, particularly relate to a kind of system and method that carries out operation log recording and upload based on the ActiveX technology.
Background technology
Have a large amount of consistency operation daily records in the WEB engineering project, prior art is carried out the record of Operation Log and uploads by AJAX technology and WEB server real-time exchange information.
The AJAX technology has plurality of advantages, can come directly to communicate with server with the XMLHttpRequest object of JavaScript by AJAX, and pass through this object, can realize that JavaScript is at not situation and the Web server swap data of the heavily loaded page.AJAX is used simultaneous asynchronous data transmissions (HTTP request) between browser and Web server, so just can make the webpage information a small amount of from server request, rather than full page, make internet applications less, sooner, more friendly.
Web application also has many advantages than multipad, if relate to vast user,, easily installation and maintenance and easy exploiting etc.
Although the knot by AJAX technology and WEB server technology is complete, it is more perfect, more friendly that internet applications can become.But, when in the face of the request of AJAX frequently, being greater than the request Concurrency amount of sending out of IE acquiescence, IE just there will be a large amount of request queues to wait for situation, exposes the shortcoming of the unable reply of IE browser.
Therefore, the present invention proposes a kind of system and method that carries out operation log recording and upload based on the ActiveX technology.
Summary of the invention
Technical problem to be solved by this invention is to provide a kind ofly carries out operation log recording and the system and method uploaded based on the ActiveX technology, for solve the concurrent efficiency of prior art Operation Log low, easily cause congested problem.
The technical scheme that the present invention solves the problems of the technologies described above is as follows: a kind of system of based on the ActiveX technology, carrying out operation log recording and uploading comprises information display module, message processing module and builds the log store module on ftp server;
Described information display module, it is communicated by letter with described message processing module, for based on html language, carrying out the Operation Log displaying;
Described message processing module, itself and described information display module communication, for passing through the ActiveX technology from the daily record of described information display module call operation, and based on the ActiveX technology, Operation Log is carried out to buffer memory, analysis, monitoring, and the generation journal file, then journal file regularly is uploaded to ftp server;
Described log store module, it is communicated by letter with described message processing module, for parsing, is uploaded to the journal file on ftp server, and the journal file after resolving is stored in the database module of setting.
On the basis of technique scheme, the present invention can also do following improvement.
Further, described message processing module comprises ActiveX interface module and the monitoring module all be connected with described ActiveX interface module, data processing module, daily record generation module and regularly upper transmission module;
Described ActiveX interface module, it is for from the daily record of described information display module call operation;
Described monitoring module, it is monitored for the Operation Log to calling;
Described data processing module, it is for buffer memory and analyze the Operation Log called;
Described daily record generation module, it generates journal file for the Operation Log based on calling;
Transmission module in described timing, it is for regularly being uploaded to ftp server by journal file.
Further, described log store module comprises parsing module and the memory module connected successively, and described parsing module uploads to the journal file on ftp server for resolving, and log file formats after resolving; Described memory module, be stored to the database module of setting for the journal file by after format.
Further, described information display module is also showed the business information except Operation Log based on html language.Now, described message processing module also comprises the AJAX interface module, and it is for adopting the AJAX technology to call the related service information except Operation Log from described information display module.And described log store module comprises the WEB server, for calling the business information through the AJAX technical finesse.
Based on said system, technical scheme of the present invention also relates to a kind of method of based on the ActiveX technology, carrying out operation log recording and uploading, and comprising:
Step 1, carry out the Operation Log displaying based on html language;
Here, the known WEB browser of those skilled in the art mainly adopts html language, and the html language that therefore described step 1 can be based on the WEB browser carries out the Operation Log displaying.
Further, the Operation Log that calls displaying by the ActiveX technology in described step 2 specifically comprises: by the WEB browser, load the ActiveX assembly, during action in carrying out the WEB browser, start the ActiveX assembly, and start result to WEB browser feedback, then called and recorded Operation Log according to starting result triggering ActiveX assembly.
Further, in described step 2, Operation Log being carried out to buffer memory refers to the Operation Log buffer memory to the local cache file.Simultaneously, in described step 2, Operation Log analysis is comprised Operation Log is carried out to logic verify and data check.
Further, resolve journal file in described step 3 and comprise log file formats, and be stored to journal file in the database module of the setting journal file after for format.
Further, described step 1 is also carried out the displaying of the related service information except Operation Log based on html language, and described step 2 adopts the AJAX technology to call described related service information except Operation Log, and pass through the business information of WEB server calls through the AJAX technical finesse.
The invention has the beneficial effects as follows: after the present invention uses the ActiveX technology to realize the record of WEB page operation track and the function uploaded onto the server, replace existing use AJAX technology and WEB server real-time exchange information and cause overstocked situation, improved the concurrent efficiency of log recording, reduce frequency and quantity that IE directly asks, cause congested possibility while having reduced IE by AJAX concurrent request server.Simultaneously, balanced server performance, make the fluctuation of server peak value milder, reduced server load, improved the server service efficiency.The present invention can also realize information classification, and important information is submitted in real time by the AJAX assembly, non-important log information by the ActiveX component record in the local cache file and regularly be uploaded to ftp server.
The accompanying drawing explanation
Fig. 1 is the structural representation that carries out operation log recording and the system of uploading based on ActiveX of the present invention;
Fig. 2 is the schematic flow sheet that carries out operation log recording and the method for uploading based on ActiveX of the present invention;
Fig. 3 carries out the program realization figure of operation log recording and the method for uploading based on ActiveX in embodiment.
In accompanying drawing, the list of parts of each label representative is as follows:
1, information display module, 2, message processing module, 3, the log store module, 4, ftp server, 5, WEB server, 21, the ActiveX interface module, 22, monitoring module, 23, data processing module, 24, daily record generation module, 25, transmission module in timing, 26, the AJAX interface module, 31, parsing module, 32, memory module.
Embodiment
Below in conjunction with accompanying drawing, principle of the present invention and feature are described, example, only for explaining the present invention, is not intended to limit scope of the present invention.
As shown in Figure 1, the present embodiment has provided a kind of system of based on the ActiveX technology, carrying out operation log recording and uploading, and comprises information display module 1, message processing module 2 and builds the log store module 3 on ftp server 4;
Described information display module 1, it is communicated by letter with described message processing module 2, for based on html language, carrying out the Operation Log displaying;
Described message processing module 2, it is communicated by letter with described information display module 1, for passing through the ActiveX technology from described information display module 1 call operation daily record, and based on the ActiveX technology, Operation Log is carried out to buffer memory, analysis, monitoring, and the generation journal file, then journal file regularly is uploaded to ftp server 4;
Described log store module 3, it is communicated by letter with described message processing module 2, for parsing, is uploaded to the journal file on ftp server 4, and the journal file after resolving is stored in the database module of setting.
In the present embodiment, described message processing module comprises ActiveX interface module 21 and the monitoring module 22 all be connected with described ActiveX interface module 21, data processing module 23, daily record generation module 24 and regularly upper transmission module 25;
Described ActiveX interface module 21, it is for from described information display module 1 call operation daily record;
Described monitoring module 22, it is monitored for the Operation Log to calling;
Described data processing module 23, it is for buffer memory and analyze the Operation Log called;
Described daily record generation module 24, it generates journal file for the Operation Log based on calling;
In described timing, transmission module 25, and it is for regularly being uploaded to ftp server by journal file.
Described information display module is also showed the business information except Operation Log based on html language.
In addition, described log store module 3 comprises parsing module 31 and the memory module 32 connected successively, and described parsing module 31 uploads to the journal file on ftp server for parsing, and log file formats after resolving; Described memory module 32, be stored to the database module of setting for the journal file by after format.
In the present embodiment, described information display module 1 is also showed the business information except Operation Log based on html language, now described message processing module 2 also comprises AJAX interface module 26, it is for adopting the AJAX technology to call the related service information except Operation Log from described information display module, and calls the business information through the AJAX technical finesse by a WEB server 5 is set.In this way, can realize information classification, important information is submitted in real time by the AJAX assembly, and non-important log information also regularly is uploaded to ftp server in the local cache file by the ActiveX component record.
As shown in Figure 2, based on said system, technical scheme of the present invention also relates to a kind of method of based on the ActiveX technology, carrying out operation log recording and uploading, and comprising:
Step 1, carry out the Operation Log displaying based on html language;
The Operation Log that calls displaying by the ActiveX technology in described step 2 specifically comprises: by the WEB browser, load the ActiveX assembly, during action in carrying out the WEB browser, start the ActiveX assembly, and start result to WEB browser feedback, then called and recorded Operation Log according to starting result triggering ActiveX assembly.
In addition, in described step 2, Operation Log being carried out to buffer memory refers to the Operation Log buffer memory to the local cache file.Simultaneously, in described step 2, Operation Log analysis is comprised Operation Log is carried out to logic verify and data check.
Resolve journal file in described step 3 and comprise log file formats, and be stored to journal file in the database module of the setting journal file after for format.
The html language that step 1 described in the present embodiment can be based on the WEB browser carries out the Operation Log displaying, and it can also carry out based on html language the displaying of the related service information except Operation Log, now need in described step 2, adopt the AJAX technology to call described related service information except Operation Log, and pass through the business information of WEB server calls through the AJAX technical finesse.
In conjunction with Fig. 3, based on above-mentioned Technical Architecture, the present embodiment gives the program implement of described method, and its program architecture is:
Wherein CHttpdownloadCtrl.cpp is main Business Processing code file, the function of its three aspects of specific implementation: the one, and typing, storage, the uploading operation of the whole Operation Log of control; The 2nd, receive all log recordings storage; The 3rd, be responsible for uploading all journal files.
For the said procedure framework, the specific object parameter that it comprises is as follows:
The FilePath attribute: the cache file title, default path is the own catalogue of login user;
The UploadingPeriod attribute: journal file is uploaded the cycle of ftp server in batches;
FTPServerIP attribute: the ftp server IP address that journal file is uploaded;
FTPServerPart attribute: the ftp server port that journal file is uploaded;
FTPUsername attribute: the ftp server user name that journal file is uploaded;
FTPPassword attribute: the ftp password that journal file is uploaded;
FTPPath attribute: the FTP path that journal file is uploaded;
Maxsize attribute: journal file prescribed level (reference value, float in actual file possibility left and right).
In program implement, the StartUploading function is used for creating file object, startup file is uploaded thread, started daemon thread (automatically uploading journal file when free time reaches 30 seconds).
After starting StartUploading, can write journal file by function LOGIt.And file is uploaded thread UploadingFile, can automatic monitoring Log Directory: C: Documents and Settings Administrator CtiOcxLog.
When generating the journal file of backup, UploadingFile can upload to it ftp file server Delete Local File automatically.
Daemon thread RenameLogfileProgress can be set, when free time reaches 30 seconds, RenameLogfileProgress can be automatically by the journal file rename and upload onto the server.
In addition, the RenameLogfile function can verification file the size name journal file of laying equal stress on; The UseHttpSendReqEx function is the ftp file server to appointment for upload file; Transform, Encrypt, Decrypt are used for the encrypting and decrypting work of ftp password.
In program implement, establishment FTPClient.cpp file is responsible for specified file is uploaded to the ftp server of appointment, and wherein: the GetFile function is for obtaining file from server; The PutFile function is used for upload file to server; The OpenConnection function creation connects; The CloseConnection function is closed connection; Whether FolderExist verification file folder exists; Whether the IsFileExist verification file exists.
In the present embodiment, wherein said system, method and program implementation, main implementation step is:
The first step, build a ftp server main frame, a FTP account is set and composes the upload file authority
Second step, add ActiveX control in html file to, and the WEB project plan is got final product on given server.
The method of in second step, ActiveX control being added in html file is as follows:
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.
Claims (9)
1. the system of based on the ActiveX technology, carrying out operation log recording and uploading, is characterized in that, comprises information display module, message processing module and build the log store module on ftp server;
Described information display module, it is communicated by letter with described message processing module, for based on html language, carrying out the Operation Log displaying;
Described message processing module, itself and described information display module communication, for passing through the ActiveX technology from the daily record of described information display module call operation, and based on the ActiveX technology, Operation Log is carried out to buffer memory, analysis, monitoring, and the generation journal file, then journal file regularly is uploaded to ftp server;
Described log store module, it is communicated by letter with described message processing module, for parsing, is uploaded to the journal file on ftp server, and the journal file after resolving is stored in the database module of setting.
2. system according to claim 1, is characterized in that, described message processing module comprises ActiveX interface module and the monitoring module all be connected with described ActiveX interface module, data processing module, daily record generation module and regularly upper transmission module;
Described ActiveX interface module, it is for from the daily record of described information display module call operation;
Described monitoring module, it is monitored for the Operation Log to calling;
Described data processing module, it is for buffer memory and analyze the Operation Log called;
Described daily record generation module, it generates journal file for the Operation Log based on calling;
Transmission module in described timing, it is for regularly being uploaded to ftp server by journal file.
3. system according to claim 1, it is characterized in that, described log store module comprises parsing module and the memory module connected successively, and described parsing module uploads to the journal file on ftp server for resolving, and log file formats after resolving; Described memory module, be stored to the database module of setting for the journal file by after format.
4. according to arbitrary described system in claims 1 to 3, it is characterized in that, described message processing module also comprises the AJAX interface module, and it is for adopting the AJAX technology to call the related service information except Operation Log from described information display module.
5. the method for based on the ActiveX technology, carrying out operation log recording and uploading, is characterized in that, comprising:
Step 1, carry out the Operation Log displaying based on html language;
Step 2, call the Operation Log of displaying by the ActiveX technology, and based on the ActiveX technology, Operation Log is carried out to buffer memory, analysis and monitoring, and generate journal file, then journal file regularly is uploaded to ftp server;
Step 3, resolve and be uploaded to the journal file on ftp server, and the journal file after resolving is stored in the database module of setting.
6. method according to claim 5, it is characterized in that, the Operation Log that calls displaying by the ActiveX technology in described step 2 specifically comprises: by the WEB browser, load the ActiveX assembly, during action in carrying out the WEB browser, start the ActiveX assembly, and start result to WEB browser feedback, then called and recorded Operation Log according to starting result triggering ActiveX assembly.
7. method according to claim 5, is characterized in that, in described step 2, Operation Log carried out to buffer memory and refer to the Operation Log buffer memory to the local cache file.
8. method according to claim 5, is characterized in that, resolves journal file in described step 3 and comprise log file formats, and be stored to journal file in the database module of the setting journal file after for format.
9. according to arbitrary described method in claim 5 to 8, it is characterized in that, described step 1 is also carried out the displaying of the related service information except Operation Log based on html language, and described step 2 adopts the AJAX technology to call described related service information except Operation Log, and pass through the business information of WEB server calls through the AJAX technical finesse.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310410443.3A CN103475714B (en) | 2013-09-10 | 2013-09-10 | A kind of carry out operation log recording and the system and method uploaded based on ActiveX technology |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310410443.3A CN103475714B (en) | 2013-09-10 | 2013-09-10 | A kind of carry out operation log recording and the system and method uploaded based on ActiveX technology |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103475714A true CN103475714A (en) | 2013-12-25 |
CN103475714B CN103475714B (en) | 2016-08-10 |
Family
ID=49800407
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310410443.3A Active CN103475714B (en) | 2013-09-10 | 2013-09-10 | A kind of carry out operation log recording and the system and method uploaded based on ActiveX technology |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103475714B (en) |
Cited By (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105025090A (en) * | 2015-06-24 | 2015-11-04 | 上海斐讯数据通信技术有限公司 | Data transmission customization system and method |
CN106682099A (en) * | 2016-12-01 | 2017-05-17 | 北京奇虎科技有限公司 | Data storage method and device |
CN106682097A (en) * | 2016-12-01 | 2017-05-17 | 北京奇虎科技有限公司 | Method and device for processing log data |
CN109885478A (en) * | 2018-12-30 | 2019-06-14 | 贝壳技术有限公司 | A kind of localization method and system of error code |
CN110196794A (en) * | 2018-02-26 | 2019-09-03 | 深圳市丰巢科技有限公司 | A kind of operation log processing method and system based on express delivery cabinet |
CN110209564A (en) * | 2019-06-03 | 2019-09-06 | 宜春宜联科技有限公司 | Acquisition methods, printer, server and the printer system of printer log |
CN110474941A (en) * | 2018-05-10 | 2019-11-19 | 杭州涂鸦信息技术有限公司 | The implementation method for being synchronized to server-side is got in a kind of log ready |
CN111478789A (en) * | 2020-03-02 | 2020-07-31 | 深圳市创维群欣安防科技股份有限公司 | Log collection method, system, terminal, server and storage medium |
CN111737195A (en) * | 2019-09-24 | 2020-10-02 | 安徽理工大学 | Document storage system for engineering management |
CN112506886A (en) * | 2021-02-05 | 2021-03-16 | 北京通付盾人工智能技术有限公司 | Multi-source service operation log acquisition method and system |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW498234B (en) * | 2001-04-10 | 2002-08-11 | Jean Wu | Activity record/record broadcasting device of HTML/activeX document |
CN201904801U (en) * | 2010-12-31 | 2011-07-20 | 中国航空工业集团公司第六三一研究所 | Communication monitoring system of integrated avionics system |
-
2013
- 2013-09-10 CN CN201310410443.3A patent/CN103475714B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW498234B (en) * | 2001-04-10 | 2002-08-11 | Jean Wu | Activity record/record broadcasting device of HTML/activeX document |
CN201904801U (en) * | 2010-12-31 | 2011-07-20 | 中国航空工业集团公司第六三一研究所 | Communication monitoring system of integrated avionics system |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105025090A (en) * | 2015-06-24 | 2015-11-04 | 上海斐讯数据通信技术有限公司 | Data transmission customization system and method |
CN105025090B (en) * | 2015-06-24 | 2018-05-01 | 上海斐讯数据通信技术有限公司 | A kind of data transfer custom-built system and method |
CN106682099A (en) * | 2016-12-01 | 2017-05-17 | 北京奇虎科技有限公司 | Data storage method and device |
CN106682097A (en) * | 2016-12-01 | 2017-05-17 | 北京奇虎科技有限公司 | Method and device for processing log data |
CN110196794A (en) * | 2018-02-26 | 2019-09-03 | 深圳市丰巢科技有限公司 | A kind of operation log processing method and system based on express delivery cabinet |
CN110474941A (en) * | 2018-05-10 | 2019-11-19 | 杭州涂鸦信息技术有限公司 | The implementation method for being synchronized to server-side is got in a kind of log ready |
CN109885478A (en) * | 2018-12-30 | 2019-06-14 | 贝壳技术有限公司 | A kind of localization method and system of error code |
CN110209564A (en) * | 2019-06-03 | 2019-09-06 | 宜春宜联科技有限公司 | Acquisition methods, printer, server and the printer system of printer log |
CN111737195A (en) * | 2019-09-24 | 2020-10-02 | 安徽理工大学 | Document storage system for engineering management |
CN111478789A (en) * | 2020-03-02 | 2020-07-31 | 深圳市创维群欣安防科技股份有限公司 | Log collection method, system, terminal, server and storage medium |
CN112506886A (en) * | 2021-02-05 | 2021-03-16 | 北京通付盾人工智能技术有限公司 | Multi-source service operation log acquisition method and system |
CN112506886B (en) * | 2021-02-05 | 2021-07-27 | 北京通付盾人工智能技术有限公司 | Multi-source service operation log acquisition method and system |
Also Published As
Publication number | Publication date |
---|---|
CN103475714B (en) | 2016-08-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103475714A (en) | System and method for operation log recording and uploading on basis of Active X technique | |
CN102446222B (en) | Method, device and system of webpage content preloading | |
US20190363934A1 (en) | Network operation support system and network device management method | |
CN113254466B (en) | Data processing method and device, electronic equipment and storage medium | |
US8805849B1 (en) | Enabling use of analytic functions for distributed storage system data | |
CN102938115A (en) | Contract agreement management system | |
CN105094695B (en) | A kind of storage method and system | |
CN103532754A (en) | System and method for high-speed memory and distributed type processing of massive logs | |
CN102184177A (en) | Method and system for previewing file | |
CN102356390A (en) | Flexible logging, such as for a web server | |
US12019634B1 (en) | Reassigning a processing node from downloading to searching a data group | |
CN102546253A (en) | Webpage tamper-resistant method, system and management server | |
CN103607476A (en) | System and method for distributed multi-stage persistence of huge number of messages | |
CN103793538A (en) | System and method for realizing restoration of web service in case of crash of database | |
WO2017174013A1 (en) | Data storage management method and apparatus, and data storage system | |
WO2020238860A1 (en) | Distributed file batch processing method and apparatus, and readable storage medium | |
CN106850761A (en) | Journal file storage method and device | |
CN104199901A (en) | Method for batch merging of hbase table regions | |
Li et al. | Coarse-grained cloud synchronization mechanism design may lead to severe traffic overuse | |
CN107277146B (en) | Distributed storage service flow model generation method and system | |
CN111538754A (en) | Data collection management system, method, device, equipment and storage medium | |
CN103581343A (en) | Http (hyper text transport protocol) request recording method | |
CN113158118A (en) | Page buried point data acquisition method, device and system | |
EP3349416B1 (en) | Relationship chain processing method and system, and storage medium | |
CN103368907A (en) | Event report request system, method thereof, client device and report request method thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |