CN110502389A - A kind of server exception monitoring method, system, device and storage medium - Google Patents
A kind of server exception monitoring method, system, device and storage medium Download PDFInfo
- Publication number
- CN110502389A CN110502389A CN201910586578.2A CN201910586578A CN110502389A CN 110502389 A CN110502389 A CN 110502389A CN 201910586578 A CN201910586578 A CN 201910586578A CN 110502389 A CN110502389 A CN 110502389A
- Authority
- CN
- China
- Prior art keywords
- server
- log
- abnormality detection
- server log
- exception monitoring
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/3065—Monitoring arrangements determined by the means or processing involved in reporting the monitored data
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3466—Performance evaluation by tracing or monitoring
- G06F11/3476—Data logging
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/18—File system types
- G06F16/1805—Append-only file systems, e.g. using logs or journals to store data
- G06F16/1815—Journaling file systems
Abstract
The invention discloses a kind of server exception monitoring method, system, device and storage medium, method includes: the type according to server log, carries out information collection to server, obtains server log;Server log is carried out abnormality detection, abnormality detection result is obtained;According to preset sending method, abnormality detection result is sent.The present invention, so as to quickly detect the abnormal conditions of server by server log and give notice, enables developer to obtain abnormal situation in time, conveniently makes subsequent targetedly treatment measures by analyzing server log.It the composite can be widely applied in the communications field.
Description
Technical field
The present invention relates to field of communication technology more particularly to a kind of server exception monitoring method, system, device and storages
Medium.
Background technique
In the process of running, the running environment and system itself of system all may be to the operations of system for present server
It impacts, such as hardware resource, hardware effort situation, network communication, system itself error, system operational defect, environment temperature
It is likely to result in system Deng all to be operating abnormally, so that the situation of delay machine be caused to occur.Therefore how detection is accurately and rapidly determined
It is abnormal out to become most important.
Summary of the invention
In order to solve the above-mentioned technical problem, the object of the present invention is to provide a kind of server exception monitoring that can quickly detect
Method, system, device and storage medium.
The technical solution used in the present invention is:
A kind of server exception monitoring method, comprising the following steps:
According to the type of server log, information collection is carried out to server, obtains server log;
Server log is carried out abnormality detection, abnormality detection result is obtained;
According to preset sending method, abnormality detection result is sent.
As a kind of further improvement of server exception monitoring method, the server log includes program day
Will, when the server log for needing to acquire is program log, the type according to server log carries out server
Information collection obtains server log, the step for specifically:
It standardizes according to preset output and system log is acquired by Mark reaction collector, obtain program log.
As a kind of further improvement of server exception monitoring method, the server log includes system day
Will, when the server log for needing to acquire is system log, the type according to server log carries out server
Information collection obtains server log, the step for specifically:
System log is acquired by Mark reaction collector using corresponding script, obtains system log.
As a kind of further improvement of server exception monitoring method, the server log includes third party
Using log, when the server log for needing to acquire is third-party application log, the type according to server log,
Information collection is carried out to server, obtains server log, the step for specifically:
Third-party application log is output in Mark reaction collector using the script of corresponding format, obtains third-party application
Log.
It is described different to server log progress as a kind of further improvement of server exception monitoring method
Often detection, obtains abnormality detection result, the step for specifically include:
According to server log, corresponding risk control condition is obtained;
Judge whether server log meets risk control condition, if so, abnormality detection result is abnormal;Conversely, then
Abnormality detection result is to operate normally.
As a kind of further improvement of server exception monitoring method, the sending method include short message or
Mail.
Another technical solution of the present invention is:
A kind of server exception monitoring system, comprising:
Information acquisition unit carries out information collection to server, obtains server for the type according to server log
Log;
Abnormality detecting unit obtains abnormality detection result for carrying out abnormality detection to server log;
Transmission unit, for being sent to abnormality detection result according to preset sending method.
As a kind of further improvement of server exception monitoring system, the abnormality detecting unit includes:
Condition acquiring unit, for obtaining corresponding risk control condition according to server log;
Judging unit, for judging whether server log meets risk control condition, if so, abnormality detection result is
It is abnormal;Conversely, then abnormality detection result is to operate normally.
Another technical solution of the present invention is:
A kind of server exception monitoring device, comprising:
Memory, for storing program;
Processor, for executing described program, described program makes the processor execute the server exception prison
Prosecutor method.
Another technical solution of the present invention is:
A kind of computer readable storage medium, including computer program, when run on a computer, so that described
Server exception monitoring method is performed.
The beneficial effects of the present invention are:
A kind of server exception monitoring method of the present invention, system, device and storage medium are by carrying out server log
Analysis enables developer so as to quickly detect the abnormal conditions of server by server log and give notice
Abnormal situation is obtained in time, conveniently makes subsequent targetedly treatment measures.
Detailed description of the invention
Fig. 1 is a kind of step flow chart of server exception monitoring method of the present invention;
Fig. 2 is a kind of block diagram of server exception monitoring system of the present invention.
Specific embodiment
Specific embodiments of the present invention will be further explained with reference to the accompanying drawing:
It should be noted that unless otherwise specified, when a certain feature is referred to as " fixation ", " connection " in another feature,
It can directly fix, be connected to another feature, and can also fix, be connected to another feature indirectly.In addition, this
The descriptions such as the upper and lower, left and right used in open are only the mutual alignment pass relative to each component part of the disclosure in attached drawing
For system." one kind " of used singular, " described " and " being somebody's turn to do " are also intended to including most forms in the disclosure, remove
Non- context clearly expresses other meaning.In addition, unless otherwise defined, all technical and scientific terms used herein
It is identical as the normally understood meaning of those skilled in the art.Term used in the description is intended merely to describe herein
Specific embodiment is not intended to be limiting of the invention.Term as used herein " and/or " it include one or more relevant
The arbitrary combination of listed item.
It will be appreciated that though various elements, but this may be described using term first, second, third, etc. in the disclosure
A little elements should not necessarily be limited by these terms.These terms are only used to for same type of element being distinguished from each other out.For example, not departing from
In the case where disclosure range, first element can also be referred to as second element, and similarly, second element can also be referred to as
One element.The use of provided in this article any and all example or exemplary language (" such as ", " such as ") is intended merely to more
Illustrate the embodiment of the present invention well, and unless the context requires otherwise, otherwise the scope of the present invention will not be applied and be limited.
With reference to Fig. 1, a kind of server exception monitoring method is provided in the present embodiment, comprising the following steps:
S1, the type according to server log carry out information collection to server, obtain server log;
In the present embodiment, the server log specifically includes program log, system log and third-party application log, In
When information collection, need to count server log using corresponding data acquisition mode according to the different type of server log
According to acquisition.
S2, server log is carried out abnormality detection, obtains abnormality detection result;
The risk control condition for different type server log is preset in the present embodiment, when server log reaches
Risk control condition, then it represents that server has reached risk control rank, belongs to abnormal conditions, and abnormality detection result is at this time
It is abnormal;If server log is not up to risk control condition, then it represents that server in normal operation, then abnormality detection knot at this time
Fruit is to operate normally.
S3, according to preset sending method, abnormality detection result is sent.
Sending method in the present embodiment includes short message and mail etc., can be by default after obtaining abnormality detection result
Sending method abnormality detection result is sent to corresponding responsible person, enable responsible person to obtain abnormal feelings in time
Condition conveniently makes subsequent targetedly treatment measures.
It is further used as preferred embodiment, the server log in the present embodiment includes program log, when need
When the server log to be acquired is program log, the type according to server log carries out information to server and adopts
Collection, obtains server log, the step for specifically:
It standardizes according to preset output and system log is acquired by Mark reaction collector, obtain program log.
It is further used as preferred embodiment, the server log in the present embodiment includes system log, when need
When the server log to be acquired is system log, the type according to server log carries out information to server and adopts
Collection, obtains server log, the step for specifically:
System log is acquired by Mark reaction collector using corresponding script, obtains system log.
It is further used as preferred embodiment, the server log in the present embodiment includes third-party application day
Will, when the server log for needing to acquire is third-party application log, the type according to server log, to service
Device carries out information collection, obtains server log, the step for specifically:
Third-party application log is output in Mark reaction collector using the script of corresponding format, obtains third-party application
Log.
It is further used as preferred embodiment, server log is carried out abnormality detection described in the present embodiment, is obtained
To abnormality detection result, the step for specifically include:
S21, according to server log, obtain corresponding risk control condition;
S22, judge whether server log meets risk control condition, if so, abnormality detection result is abnormal;Instead
It, then abnormality detection result is to operate normally.
In the present embodiment, for different types of server log, set risk control condition is all different, and works as inspection
When measuring the time in server log and reaching risk control condition, then abnormality detection result can be obtained to be abnormal, and after issuing
Continuous notice.
With reference to Fig. 2, a kind of server exception monitoring system is present embodiments provided, comprising:
Information acquisition unit carries out information collection to server, obtains server for the type according to server log
Log;
Abnormality detecting unit obtains abnormality detection result for carrying out abnormality detection to server log;
Transmission unit, for being sent to abnormality detection result according to preset sending method.
Suitable for this system embodiment, this system embodiment is implemented content in above method embodiment
Function is identical as above method embodiment, and the beneficial effect reached and above method embodiment beneficial effect achieved
It is identical.
It is further used as preferred embodiment, the abnormality detecting unit includes:
Condition acquiring unit, for obtaining corresponding risk control condition according to server log;
Judging unit, for judging whether server log meets risk control condition, if so, abnormality detection result is
It is abnormal;Conversely, then abnormality detection result is to operate normally.
The present embodiment additionally provides a kind of server exception monitoring device, specifically includes:
Memory, for storing program;
Processor, for executing described program, described program makes the processor execute the server exception prison
Prosecutor method.
Suitable for present apparatus embodiment, present apparatus embodiment is implemented content in above method embodiment
Function is identical as above method embodiment, and the beneficial effect reached and above method embodiment beneficial effect achieved
It is identical.
The present embodiment additionally provides a kind of computer readable storage medium, including computer program, when its on computers
When operation, so that the server exception monitoring method is performed.
Suitable for this storage medium embodiment, this storage medium embodiment is had content in above method embodiment
The function that body is realized is identical as above method embodiment, and the beneficial effect reached with above method embodiment is achieved has
Beneficial effect is also identical.
From the foregoing it can be that a kind of server exception monitoring method of the present invention, system, device and storage medium by pair
Server log is analyzed, so as to quickly detect the abnormal conditions of server by server log and give notice,
Enable developer to obtain abnormal situation in time, conveniently makes subsequent targetedly treatment measures.
It is to be illustrated to preferable implementation of the invention, but the invention is not limited to the implementation above
Example, those skilled in the art can also make various equivalent variations on the premise of without prejudice to spirit of the invention or replace
It changes, these equivalent deformations or replacement are all included in the scope defined by the claims of the present application.
Claims (10)
1. a kind of server exception monitoring method, which comprises the following steps:
According to the type of server log, information collection is carried out to server, obtains server log;
Server log is carried out abnormality detection, abnormality detection result is obtained;
According to preset sending method, abnormality detection result is sent.
2. a kind of server exception monitoring method according to claim 1, it is characterised in that: the server log includes
Program log, when the server log for needing to acquire is program log, the type according to server log, to service
Device carries out information collection, obtains server log, the step for specifically:
It standardizes according to preset output and system log is acquired by Mark reaction collector, obtain program log.
3. a kind of server exception monitoring method according to claim 1, it is characterised in that: the server log includes
System log, when the server log for needing to acquire is system log, the type according to server log, to service
Device carries out information collection, obtains server log, the step for specifically:
System log is acquired by Mark reaction collector using corresponding script, obtains system log.
4. a kind of server exception monitoring method according to claim 1, it is characterised in that: the server log includes
Third-party application log, it is described according to server log when the server log for needing to acquire is third-party application log
Type, to server carry out information collection, obtain server log, the step for specifically:
Third-party application log is output in Mark reaction collector using the script of corresponding format, obtains third-party application day
Will.
5. a kind of server exception monitoring method according to claim 1, it is characterised in that: described to server log
Carry out abnormality detection, obtain abnormality detection result, the step for specifically include:
According to server log, corresponding risk control condition is obtained;
Judge whether server log meets risk control condition, if so, abnormality detection result is abnormal;Conversely, then abnormal
Testing result is to operate normally.
6. a kind of server exception monitoring method according to claim 1, it is characterised in that: the sending method includes
Short message or mail.
7. a kind of server exception monitoring system characterized by comprising
Information acquisition unit carries out information collection to server, obtains server day for the type according to server log
Will;
Abnormality detecting unit obtains abnormality detection result for carrying out abnormality detection to server log;
Transmission unit, for being sent to abnormality detection result according to preset sending method.
8. a kind of server exception monitoring system according to claim 7, it is characterised in that: the abnormality detecting unit
Include:
Condition acquiring unit, for obtaining corresponding risk control condition according to server log;
Judging unit, for judging whether server log meets risk control condition, if so, abnormality detection result is different
Often;Conversely, then abnormality detection result is to operate normally.
9. a kind of server exception monitoring device characterized by comprising
Memory, for storing program;
Processor, for executing described program, described program executes the processor such as any one of claim 1~6 institute
The server exception monitoring method stated.
10. a kind of computer readable storage medium, which is characterized in that including computer program, when run on a computer,
So that server exception monitoring method as described in any one of claims 1 to 6 is performed.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910586578.2A CN110502389A (en) | 2019-07-01 | 2019-07-01 | A kind of server exception monitoring method, system, device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910586578.2A CN110502389A (en) | 2019-07-01 | 2019-07-01 | A kind of server exception monitoring method, system, device and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110502389A true CN110502389A (en) | 2019-11-26 |
Family
ID=68585331
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910586578.2A Pending CN110502389A (en) | 2019-07-01 | 2019-07-01 | A kind of server exception monitoring method, system, device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110502389A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111611218A (en) * | 2020-04-24 | 2020-09-01 | 武汉大学 | Distributed abnormal log automatic identification method based on deep learning |
CN113127320A (en) * | 2021-04-08 | 2021-07-16 | 支付宝(杭州)信息技术有限公司 | Application program abnormity detection method, device, equipment and system |
WO2022237507A1 (en) * | 2021-05-12 | 2022-11-17 | 康键信息技术(深圳)有限公司 | Intelligent server fault pushing method, apparatus, and device, and storage medium |
-
2019
- 2019-07-01 CN CN201910586578.2A patent/CN110502389A/en active Pending
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111611218A (en) * | 2020-04-24 | 2020-09-01 | 武汉大学 | Distributed abnormal log automatic identification method based on deep learning |
CN113127320A (en) * | 2021-04-08 | 2021-07-16 | 支付宝(杭州)信息技术有限公司 | Application program abnormity detection method, device, equipment and system |
WO2022237507A1 (en) * | 2021-05-12 | 2022-11-17 | 康键信息技术(深圳)有限公司 | Intelligent server fault pushing method, apparatus, and device, and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108683562B (en) | Anomaly detection positioning method and device, computer equipment and storage medium | |
US9064048B2 (en) | Memory leak detection | |
CN110502389A (en) | A kind of server exception monitoring method, system, device and storage medium | |
US20140258187A1 (en) | Generating database cluster health alerts using machine learning | |
JP2019507454A (en) | How to identify the root cause of problems observed while running an application | |
US10732620B2 (en) | System and method for inspecting machinery | |
US10579042B2 (en) | Defect rate analytics to reduce defectiveness in manufacturing | |
US20190311297A1 (en) | Anomaly detection and processing for seasonal data | |
US20210081839A1 (en) | Predictive quality control apparatus and methods in diagnostic testing systems | |
CN102982037B (en) | Method and the device of Test database node health status | |
Kitchenham et al. | Design metrics in practice | |
US7617313B1 (en) | Metric transport and database load | |
KR20140051678A (en) | Apparatus and method for fault management of smart devices | |
CN108665237A (en) | Method for establishing automatic inspection model and positioning abnormity based on business system | |
CN102857387A (en) | Online website monitoring system and method | |
CN114691521A (en) | Software testing platform based on artificial intelligence | |
CN109726011A (en) | A kind of network security test macro and implementation method based on embedded artificial intelligence | |
WO2021027394A1 (en) | Bidirectional lis method and system | |
CN115114124A (en) | Host risk assessment method and device | |
CN109344025B (en) | CPU performance self-monitoring method and server | |
CA2793952C (en) | Extracting data related to clinical diagnostic instruments | |
CN115643200A (en) | Abnormity detection method, abnormity detection device, electronic equipment and medium | |
CN115437961A (en) | Data processing method and device, electronic equipment and storage medium | |
CN112834752B (en) | Blood glucose standardized measurement system, method, terminal and medium suitable for large-scale crowd | |
KR20140055292A (en) | System and method for relating between failed component and performance criteria of manintenance rule by using component database of functional importance determination of nuclear power plant |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20191126 |
|
WD01 | Invention patent application deemed withdrawn after publication |