CN103475714B - A kind of carry out operation log recording and the system and method uploaded based on ActiveX technology - Google Patents
A kind of carry out operation log recording and the system and method uploaded based on ActiveX technology Download PDFInfo
- Publication number
- CN103475714B CN103475714B CN201310410443.3A CN201310410443A CN103475714B CN 103475714 B CN103475714 B CN 103475714B CN 201310410443 A CN201310410443 A CN 201310410443A CN 103475714 B CN103475714 B CN 103475714B
- Authority
- CN
- China
- Prior art keywords
- module
- journal file
- operation log
- activex
- daily record
- 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.)
- Active
Links
Landscapes
- Debugging And Monitoring (AREA)
Abstract
The present invention relates to a kind of carry out operation log recording and the system and method uploaded based on ActiveX technology, including: information display module, for carrying out Operation Log displaying based on html language;Message processing module, it communicates with information display module, is used for by ActiveX technology from described information display module call operation daily record, and caches Operation Log based on ActiveX technology, analyze, monitors, and generate journal file, then journal file timing is uploaded to ftp server;Building daily record memory module on ftp server, itself and message processing module communication, for resolving the journal file being uploaded on ftp server, and the journal file after resolving stores to the DBM set.The present invention uses ActiveX technology to realize operation log recording the function uploaded onto the server, and improves the concurrent efficiency of log recording, causes congested probability, improve server service efficiency when reducing IE by AJAX concurrent request server.
Description
Technical field
The present invention relates to ActiveX technical field, particularly relate to one and carry out based on ActiveX technology
Operation log recording and the system and method uploaded.
Background technology
WEB engineering project exists substantial amounts of consistency operation daily record, prior art use AJAX technology with
WEB server real-time exchange information carries out the record of Operation Log and uploads.
AJAX technology has plurality of advantages, can use JavaScript's by AJAX
XMLHttpRequest object directly communicates with server, and by this object, can realize
JavaScript exchanges data in the situation of not reload page with Web server.AJAX browser with
Use simultaneous asynchronous data transmissions (HTTP request) between Web server, webpage thus can be made from server
Ask a small amount of information rather than full page, make internet applications less, faster, more friendly.
Web application relatively multipad also has many advantages, if relating to vast user,
Easily install and safeguard and easy exploiting etc..
Although complete with the knot of WEB server technology by AJAX technology, internet applications can become
Obtain more perfect, more friendly.But, when in the face of AJAX request frequently is more than the request Concurrency of IE acquiescence
When sending out amount, IE arises that substantial amounts of request queue waits situation, exposes the unable reply of IE browser
Shortcoming.
Therefore, the present invention proposes and a kind of carry out operation log recording based on ActiveX technology and upload
System and method.
Summary of the invention
The technical problem to be solved is to provide one and carries out Operation Log based on ActiveX technology
Record and the system and method uploaded, be used for solving that the concurrent efficiency of Operation Log in prior art is low, Yi Zao
Become congested problem.
The technical scheme is that one is carried out based on ActiveX technology
Operation log recording and the system uploaded, including information display module, message processing module with build at FTP
Daily record memory module on server;
Described information display module, itself and described message processing module communication, for based on html language
Carry out Operation Log displaying;
Described message processing module, it communicates with described information display module, for by ActiveX skill
Art is from described information display module call operation daily record, and carries out Operation Log based on ActiveX technology
Cache, analyze, monitor, and generate journal file, then journal file timing is uploaded to ftp server;
Described daily record memory module, itself and described message processing module communication, it is uploaded to FTP for parsing
Journal file on server, and will resolve after journal file store to set DBM in.
On the basis of technique scheme, the present invention can also do following improvement.
Further, described message processing module include ActiveX interface module and with described ActiveX
The upper transmission module of monitoring module, data processing module, daily record generation module and timing that interface module is all connected;
Described ActiveX interface module, it is used for call operation daily record from described information display module;
Described monitoring module, it is for being monitored the Operation Log called;
Described data processing module, it is for caching and analyzes the Operation Log called;
Described daily record generation module, it is for generating journal file based on the Operation Log called;
Transmission module in described timing, journal file is uploaded to ftp server for timing by it.
Further, described daily record memory module includes parsing module and the memory module being sequentially connected with, described
Parsing module uploads to the journal file on ftp server for parsing, and by journal file lattice after parsing
Formula;Described memory module, the journal file after formatting stores to the DBM set
In.
Further, the business outside described information display module is additionally based upon html language displaying division operation daily record
Information.Now, described message processing module also includes AJAX interface module, and it is used for using AJAX skill
Art calls the related service information outside division operation daily record from described information display module.Further, described day
Will memory module includes WEB server, for calling the business information through AJAX technical finesse.
Based on said system, technical scheme further relates to one and grasps based on ActiveX technology
Make log recording and the method uploaded, including:
Step 1, carries out Operation Log displaying based on html language;
Step 2, calls the Operation Log of displaying by ActiveX technology, and based on ActiveX technology
Operation Log is cached, analyze and monitors, and generate journal file, then by journal file timing
Reach ftp server;
Step 3, resolves the journal file that is uploaded on ftp server, and the journal file after resolving
Store to the DBM set.
Here, skilled person will appreciate that web browser mainly uses html language, therefore described
Step 1 can be that html language based on web browser carries out Operation Log displaying.
Further, described step 2 calls the Operation Log of displaying by ActiveX technology to specifically include:
Load ActiveX assembly by web browser, when the action performed in web browser, start
ActiveX assembly, and start result to web browser feedback, trigger ActiveX further according to starting result
Assembly calls and records Operation Log.
Further, Operation Log is carried out caching by described step 2 refer to Operation Log caching to local
Cache file.Meanwhile, Operation Log is analyzed by described step 2 include Operation Log is patrolled
Collect verification and data check.
Further, in described step 3 resolve journal file include log file formats, and store to
Journal file in the DBM set is as the journal file after formatting.
Further, described step 1 is additionally based upon the related service letter that html language carries out outside division operation daily record
The displaying of breath, and described step 2 uses AJAX technology to call the related service outside described division operation daily record
Information, and call the business information through AJAX technical finesse by WEB server.
The invention has the beneficial effects as follows: the present invention uses ActiveX technology to realize WEB page operation trace
Record after and the function that uploads onto the server, replace existing use AJAX technology and WEB server
Real-time exchange information causes overstocked situation, improves the concurrent efficiency of log recording, reduces IE and directly please
The frequency asked and quantity, cause congested probability when reducing IE by AJAX concurrent request server.
Meanwhile, equalize server performance, made the fluctuation of server peak value more mild, reduce server load,
Improve server service efficiency.The present invention can also realize information classification, and important information passes through AJAX
Assembly is submitted in real time, and insignificant log information passes through ActiveX component record in local cache file
And timing is uploaded to ftp server.
Accompanying drawing explanation
Fig. 1 is of the present invention to carry out operation log recording and the structure of system uploaded based on ActiveX
Schematic diagram;
Fig. 2 is of the present invention to carry out operation log recording and the flow process of method uploaded based on ActiveX
Schematic diagram;
Fig. 3 is to carry out operation log recording with the program of the method uploaded in fact based on ActiveX in embodiment
Now scheme.
In accompanying drawing, the list of parts representated by each label is as follows:
1, information display module, 2, message processing module, 3, daily record memory module, 4, FTP service
Device, 5, WEB server, 21, ActiveX interface module, 22, monitoring module, 23, data process
Module, 24, daily record generation module, 25, transmission module in timing, 26, AJAX interface module, 31, solve
Analysis module, 32, memory module.
Detailed description of the invention
Being described principle and the feature of the present invention below in conjunction with accompanying drawing, example is served only for explaining this
Invention, is not intended to limit the scope of the present invention.
As it is shown in figure 1, this gives one to carry out operation log recording based on ActiveX technology
With the system uploaded, including information display module 1, message processing module 2 with build at ftp server
Daily record memory module 3 on 4;
Described information display module 1, it communicates with described message processing module 2, for based on HTML
Language carries out Operation Log displaying;
Described message processing module 2, it communicates with described information display module 1, is used for passing through ActiveX
Technology is from described information display module 1 call operation daily record, and based on ActiveX technology to Operation Log
Carry out caching, analyze, monitor, and generate journal file, then journal file timing is uploaded to FTP clothes
Business device 4;
Described daily record memory module 3, it communicates with described message processing module 2, is uploaded to for parsing
Journal file on ftp server 4, and will resolve after journal file store to set data base's mould
In block.
In the present embodiment, described message processing module includes ActiveX interface module 21 and with described
Monitoring module 22 that ActiveX interface module 21 is all connected, data processing module 23, daily record generate mould
Block 24 and the upper transmission module 25 of timing;
Described ActiveX interface module 21, it is for call operation day from described information display module 1
Will;
Described monitoring module 22, it is for being monitored the Operation Log called;
Described data processing module 23, it is for caching and analyzes the Operation Log called;
Described daily record generation module 24, it is for generating journal file based on the Operation Log called;
Transmission module 25 in described timing, journal file is uploaded to ftp server for timing by it.
Described information display module is additionally based upon html language and shows the business information outside division operation daily record.
It addition, described daily record memory module 3 includes parsing module 31 and the memory module 32 being sequentially connected with,
Described parsing module 31 uploads to the journal file on ftp server for parsing, and by day after parsing
Will document formatting;Described memory module 32, the journal file after formatting stores to setting
In DBM.
In the present embodiment, described information display module 1 is additionally based upon html language to be shown outside division operation daily record
Business information, the most described message processing module 2 also includes AJAX interface module 26, and it is used for adopting
From described information display module, the related service information outside division operation daily record is called by AJAX technology, and
The business information through AJAX technical finesse is called by arranging a WEB server 5.By this
Mode, it is possible to achieve information classification, important information passes through AJAX assembly to be submitted in real time, insignificant day
By ActiveX component record, in local cache file and timing is uploaded to ftp server to will information.
As in figure 2 it is shown, based on said system, technical scheme further relates to a kind of based on ActiveX
Technology carries out operation log recording and the method uploaded, including:
Step 1, carries out Operation Log displaying based on html language;
Step 2, calls the Operation Log of displaying by ActiveX technology, and based on ActiveX technology
Operation Log is cached, analyze and monitors, and generate journal file, then by journal file timing
Reach ftp server;
Step 3, resolves the journal file that is uploaded on ftp server, and the journal file after resolving
Store to the DBM set.
Described step 2 calls the Operation Log of displaying by ActiveX technology specifically include: pass through WEB
Browser loads ActiveX assembly, when the action performed in web browser, starts ActiveX group
Part, and start result to web browser feedback, carry out further according to starting result triggering ActiveX assembly
Call and record Operation Log.
Refer to Operation Log caching to local slow it addition, Operation Log is carried out caching by described step 2
Deposit file.Meanwhile, Operation Log is analyzed by described step 2 include Operation Log is carried out logic
Verification and data check.
Described step 3 resolves journal file and includes log file formats, and store to the number set
It is the journal file after formatting according to the journal file in library module.
Step 1 described in the present embodiment can be that html language based on web browser carries out operating day
Will is shown, and it is also based on html language and carries out the exhibition of the related service information outside division operation daily record
Show, now AJAX technology need to be used in described step 2 to call the relevant industry outside described division operation daily record
Business information, and call the business information through AJAX technical finesse by WEB server.
In conjunction with Fig. 3, based on above-mentioned Technical Architecture, the present embodiment gives the program of described method and realizes
Process, its program architecture is:
Wherein CHttpdownloadCtrl.cpp is main Business Processing code file, and it implements
The function of three aspects: one is to control the typing of whole Operation Log, storage, uploading operation;Two is to connect
Receive all log recordings and store;Three are responsible for uploading all journal files.
For said procedure framework, the specific object parameter that it includes is as follows:
FilePath attribute: cache file title, default path is that login user has catalogue by oneself;
UploadingPeriod attribute: journal file batch uploads the cycle of ftp server;
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 is floated about actual file possibility).
In program implement, StartUploading function is used for creating file object, startup file
Upload thread, start daemon thread (automatically uploading journal file when reaching 30 seconds between when idle).
After starting StartUploading, journal file can be write by function LOGIt.And file
Upload thread UploadingFile, can automatically monitor Log Directory: C: Documents and
Settings\Administrator\CtiOcxLog。
When generating the journal file of backup, UploadingFile can be uploaded to ftp file automatically
Server Delete Local File.
Daemon thread RenameLogfileProgress can be set, when idle between when reaching 30 seconds,
RenameLogfileProgress can be automatically by journal file renaming and upload onto the server.
Lay equal stress on name journal file it addition, RenameLogfile function can verify file size;
UseHttpSendReqEx function is for uploading files to the ftp file server specified;
Transform, Encrypt, Decrypt are for the encrypting and decrypting work of ftp password.
Program implement is worked out what FTPClient.cpp file was responsible for uploading to specified file specifying
Ftp server, wherein: GetFile function is for obtaining file from server;PutFile function is used
In upper transmitting file to server;OpenConnection function creation connects;CloseConnection letter
Number is closed and is connected;Whether FolderExist verification file exists;IsFileExist verification file is
No existence.
In the present embodiment, wherein said system, method and program implementation, main enforcement step is:
The first step, builds a ftp server main frame, arranges a FTP account and composes upper transmitting file
Authority
Second step, adds to ActiveX control in html file, and is existed by WEB project plan
On given server.
ActiveX control is added by second step the method in html file to as follows:
The foregoing is only presently preferred embodiments of the present invention, not in order to limit the present invention, all in the present invention
Spirit and principle within, any modification, equivalent substitution and improvement etc. made, should be included in this
Within bright protection domain.
Claims (7)
1. carrying out operation log recording and the system uploaded based on ActiveX technology, its feature exists
In, including information display module, message processing module and the daily record storage built on ftp server
Module;
Described information display module, itself and described message processing module communication, for based on html language
Carry out Operation Log displaying;
Described message processing module, it communicates with described information display module, for by ActiveX skill
Art is from described information display module call operation daily record, and carries out Operation Log based on ActiveX technology
Cache, analyze, monitor, and generate journal file, then journal file timing is uploaded to FTP service
Device;
Described daily record memory module, itself and described message processing module communication, it is uploaded to FTP for parsing
Journal file on server, and will resolve after journal file store to set DBM in;
Described message processing module includes ActiveX interface module and homogeneous with described ActiveX interface module
The upper transmission module of monitoring module even, data processing module, daily record generation module and timing;
Described ActiveX interface module, it is used for call operation daily record from described information display module;
Described monitoring module, it is for being monitored the Operation Log called;
Described data processing module, it is for caching and analyzes the Operation Log called;
Described daily record generation module, it is for generating journal file based on the Operation Log called;
Transmission module in described timing, journal file is uploaded to ftp server for timing by it.
System the most according to claim 1, it is characterised in that described daily record memory module includes
The parsing module being sequentially connected with and memory module, described parsing module uploads to FTP service for parsing
Journal file on device, and by log file formats after parsing;Described memory module, for by form
Journal file after change stores to the DBM set.
3. according to described system arbitrary in claim 1 to 2, it is characterised in that at described information
Reason module also includes AJAX interface module, and it is used for using AJAX technology from described information display module
In call the related service information outside division operation daily record.
4. carrying out operation log recording and the method uploaded based on ActiveX technology, its feature exists
In, including:
Step 1, carries out Operation Log displaying based on html language;
Step 2, calls the Operation Log of displaying by ActiveX technology, and based on ActiveX technology
Operation Log is cached, analyze and monitors, and generate journal file, then by journal file timing
Reach ftp server;
Step 3, resolves the journal file that is uploaded on ftp server, and the journal file after resolving
Store to the DBM set;
Described step 2 calls the Operation Log of displaying by ActiveX technology specifically include: pass through WEB
Browser loads ActiveX assembly, when the action performed in web browser, starts ActiveX
Assembly, and start result to web browser feedback, trigger ActiveX assembly further according to starting result
Call and record Operation Log.
Method the most according to claim 4, it is characterised in that to operation day in described step 2
Will carries out caching and refers to cache to local cache file Operation Log.
Method the most according to claim 4, it is characterised in that resolve daily record in described step 3
File includes log file formats, and the journal file stored to the DBM set is as lattice
Journal file after formula.
7. according to described method arbitrary in claim 4 to 6, it is characterised in that described step 1
It is additionally based upon html language and carries out the displaying of the related service information outside division operation daily record, and described step 2
Use AJAX technology to call the related service information outside described division operation daily record, and pass through WEB service
Device calls the business information through 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 CN103475714A (en) | 2013-12-25 |
CN103475714B true 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) |
Families Citing this family (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
CN106682097B (en) * | 2016-12-01 | 2020-06-05 | 北京奇虎科技有限公司 | Method and device for processing log data |
CN110196794B (en) * | 2018-02-26 | 2023-08-04 | 深圳市丰巢科技有限公司 | Operation log processing method and system based on express 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 |
CN112506886B (en) * | 2021-02-05 | 2021-07-27 | 北京通付盾人工智能技术有限公司 | 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 |
Also Published As
Publication number | Publication date |
---|---|
CN103475714A (en) | 2013-12-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103475714B (en) | A kind of carry out operation log recording and the system and method uploaded based on ActiveX technology | |
AU2017201395B9 (en) | Content item-centric conversation aggregation in shared folder backed integrated workspaces | |
CN103532754B (en) | A kind of by high-speed internal memory, the system and method for distributed treatment massive logs | |
US11615082B1 (en) | Using a data store and message queue to ingest data for a data intake and query system | |
US20170142143A1 (en) | Identifying notable events based on execution of correlation searches | |
CN103973781B (en) | A kind of screen monitor method and its system based on proxy server | |
CN104268082B (en) | The method for testing pressure and device of browser | |
US9600503B2 (en) | Systems and methods for pruning data by sampling | |
Skopik et al. | Semi-synthetic data set generation for security software evaluation | |
US9654580B2 (en) | Proxy-based web application monitoring through script instrumentation | |
CN106528657A (en) | Control method and device for browser skipping to application program | |
US8365241B1 (en) | Method and apparatus for archiving web content based on a policy | |
CN106874778B (en) | Intelligent terminal file acquisition and data recovery system and method based on android system | |
US11449371B1 (en) | Indexing data at a data intake and query system based on a node capacity threshold | |
US12019634B1 (en) | Reassigning a processing node from downloading to searching a data group | |
CA3059738A1 (en) | Behaviour data processing method, device, electronic device and computer readable medium | |
US9590999B2 (en) | Preview serving from an external preview service | |
CN111988295A (en) | Database auditing method and device, WEB server, database auditing system and storage medium | |
Li et al. | Coarse-grained cloud synchronization mechanism design may lead to severe traffic overuse | |
CN111770161A (en) | https sniffing jump method and device | |
CN107819748A (en) | A kind of anti-identifying code implementation method cracked and device | |
US9736215B1 (en) | System and method for correlating end-user experience data and backend-performance data | |
CN106372109A (en) | Internet resource file caching method and apparatus | |
CN108959041B (en) | Method for transmitting information, server and computer readable storage medium | |
US9501521B2 (en) | Systems and methods for detecting missing data in query results |
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 |