CN108959029A - Collect the method and system with report server abnormal log - Google Patents

Collect the method and system with report server abnormal log Download PDF

Info

Publication number
CN108959029A
CN108959029A CN201810698849.9A CN201810698849A CN108959029A CN 108959029 A CN108959029 A CN 108959029A CN 201810698849 A CN201810698849 A CN 201810698849A CN 108959029 A CN108959029 A CN 108959029A
Authority
CN
China
Prior art keywords
server
log
tested
collection
report
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
Application number
CN201810698849.9A
Other languages
Chinese (zh)
Inventor
易石昌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Tong Yi Yi Information Technology Co Ltd
Original Assignee
Shenzhen Tong Yi Yi Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Tong Yi Yi Information Technology Co Ltd filed Critical Shenzhen Tong Yi Yi Information Technology Co Ltd
Priority to CN201810698849.9A priority Critical patent/CN108959029A/en
Publication of CN108959029A publication Critical patent/CN108959029A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3065Monitoring arrangements determined by the means or processing involved in reporting the monitored data
    • G06F11/3072Monitoring arrangements determined by the means or processing involved in reporting the monitored data where the reporting involves data filtering, e.g. pattern matching, time or event triggered, adaptive or policy-based reporting
    • G06F11/3079Monitoring arrangements determined by the means or processing involved in reporting the monitored data where the reporting involves data filtering, e.g. pattern matching, time or event triggered, adaptive or policy-based reporting the data filtering being achieved by reporting only the changes of the monitored data

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present invention discloses the method and system of a kind of collection and report server abnormal log, this method is applied to collect and report server test macro, it the described method comprises the following steps: when opening tested monitoring server, establishing connection with the tested server;Collect the system log of the tested server;The system log being collected into is filtered according to specified keyword;If being filled into pathological system log, complete system log, the log of BMC management system and system configuration information are collected;The pathological system log, complete system log, the log of BMC management system and system configuration information are sent to specified mailbox.Compared with the existing technology, the present invention can in time, comprehensively collect server exception log, improve working efficiency.

Description

Collect the method and system with report server abnormal log
Technical field
The present invention relates to field of computer technology more particularly to it is a kind of collection and report server abnormal log method and System.
Background technique
Currently, whether checking server one by one by manual type by tester in server hardware test process It breaks down, if having all kinds of hardware anomalies logs (including the relevant abnormal log of various types of hardware software under operating system, clothes The abnormal log etc. of business device Fault Management System (BMC) record), then opened by the method collection abnormal log of imagineering Hair personnel analysis.
The method that manual type checks server exception and log has the disadvantage that
1, after server is abnormal, it is possible to cannot timely be found (especially doing pressure or stability survey Examination), it is in addition also possible to lead to miss optimal positioning problems opportunity.
2, abnormal log or information are possible to collect incomplete or even omit, and result in the need for collecting again, but fault in-situ It is likely to be broken, desired log or information can not be collected.
3, for primary tester, log collection may be less efficient and thorough.
Summary of the invention
It is a primary object of the present invention to propose the method and system of a kind of collection and report server abnormal log, it is intended to In time, server exception log is comprehensively collected, working efficiency is improved.
To achieve the above object, the method that the present invention proposes a kind of collection and report server abnormal log, the method Applied to collection and report server test macro, the described method comprises the following steps:
When opening tested monitoring server, connection is established with the tested server;
Collect the system log of the tested server;
The system log being collected into is filtered according to specified keyword;
If being filled into pathological system log, collects complete system log, the log of BMC management system and system and match Confidence breath;
The pathological system log, complete system log, the log of BMC management system and system configuration information are sent out It send to specified mailbox.
Further technical solution of the invention is, described when opening tested monitoring server, is tested with described Server was established before the step of connection
It is determined whether to enable tested monitoring servers;
If so, establishing connection with the tested server when opening tested monitoring server described in executing Step;
If it is not, being then monitored the information of server described in typing and opening tested monitoring server.
Further technical solution of the invention is, described if so, executing described in the tested monitoring server of unlatching When, the step of establishing connection with the tested server includes:
If so, asking whether to exit monitoring;
If not exiting, execution is described when opening tested monitoring server, establishes company with the tested server The step of connecing;
If exiting, terminate.
Further technical solution of the invention is that the specified keyword of the basis carries out the system log being collected into After the step of filtering further include:
If not being filled into pathological system log, it is described if so, asking whether the step of exiting monitoring to return to execution.
Further technical solution of the invention is, before described the step of it is determined whether to enable tested monitoring servers Further include:
It logs in and collects and report server test macro.
Further technical solution of the invention is that the information of the tested server includes tested server IP, user name, password, specified email address.
To achieve the above object, the system that the present invention also proposes a kind of collection and report server abnormal log, the system System includes tested server, interchanger, server-side and user terminal, wherein the server-side is provided with Linux Web clothes Business device,
The interchanger is used to connect the internal lan of server-side and tested server;
The server-side is used to pass through Linux with the tested server when opening tested monitoring server Python program timing in Web server initiates ssh and establishes connection by the interchanger;
The server-side is also used to collect the system log of the tested server;
The server-side is also used to be filtered the system log being collected into according to specified keyword;
If the server-side is also used to be filled into pathological system log, complete system log, BMC management system are collected Log and system configuration information;
The server-side be also used to by the pathological system log, complete system log, the log of BMC management system, with And system configuration information is sent to specified mailbox.
Further technical solution of the invention is that the server-side is also used to be monitored the information of server described in typing And open tested monitoring server;The server-side is also used to that it is determined whether to enable tested monitoring servers.
Further technical solution of the invention is that the tested server supports Linux and Windows operation system System, and there is ssh service function.
Further technical solution of the invention is that the user terminal is used to log at server-side Web page interface and collect With report server test macro, mail is checked and accepted.
The present invention is built through the above technical solutions, when opening tested monitoring server with the tested server Vertical connection;Collect the system log of the tested server;The system log is filtered according to specified keyword; If being filled into pathological system log, complete system log, the log of BMC management system and system configuration information are collected;It will The pathological system log, complete system log, the log of BMC management system and system configuration information are sent to specified postal Case can timely be found, comprehensive collection server exception log, easy to use, improve the working efficiency of tester.
Detailed description of the invention
Fig. 1 is the flow diagram of the method first embodiment of present invention collection and report server abnormal log;
Fig. 2 is the flow diagram of the method second embodiment of present invention collection and report server abnormal log;
Fig. 3 is the system architecture diagram of the system of present invention collection and report server abnormal log.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In view of being all to check clothes one by one by manual type by tester in current server hardware test process Whether business device has an all kinds of abnormal logs, this mode exist discovery not in time, collect not comprehensively, low efficiency the shortcomings that, in view of this A little technical problems, the present invention propose the method and system of a kind of collection and report server abnormal log.
The method and system of collection and report server abnormal log proposed by the present invention, are mainly received using program automatically Collect abnormal log, automatically grab fault in-situ configuration information, and by lettergram mode report automatically abnormal log, configuration information and Complete log attachment is improved to dependence test personnel and developer, timely discovery, comprehensive collection server exception log The working efficiency of tester.
Specifically, Fig. 1 is please referred to, Fig. 1 is the method first embodiment of present invention collection and report server abnormal log Flow diagram.
It should be noted that the present embodiment propose collection and report server abnormal log method be applied to collect and The system of report server abnormal log, the system include being tested server, interchanger, server-side and user terminal, In, the server-side is provided with Linux Web server (developing based on python frame Flask), and the user terminal can be The intelligent terminals such as laptop, mobile phone, iPad.
As shown in Figure 1, the present embodiment propose collection and report server abnormal log method the following steps are included:
Step S100 establishes connection with the tested server when opening tested monitoring server.
When it is implemented, can initiate ssh by the python program timing in Linux Web server passes through the friendship It changes planes and establishes connection.
Step S200 collects the system log of the tested server.
After establishing connection with the tested server, collect the tested server system log (Linux: syslog;) and long-distance management system log (BMC sel log) Windows:Eventlog.
Step S300 is filtered the system log being collected into according to specified keyword.
Step S400, if being filled into pathological system log, collect complete system log, the log of BMC management system, with And system configuration information.
Step S500 matches the pathological system log, complete system log, the log of BMC management system and system Confidence breath is sent to specified mailbox.
The present embodiment improves tester through the above technical solutions, can timely find and comprehensive collection abnormal log Working efficiency.
Further, referring to figure 2., Fig. 2 is that the present invention collects and the method second of report server abnormal log is implemented The flow diagram of example.
The present embodiment and the difference of first embodiment shown in FIG. 1 are that above-mentioned steps S100 is opening tested service When device monitors, before the step of establishing connection with the tested server the following steps are included:
Step S101, it is determined whether to enable tested monitoring servers;
If so, establishing connection with the tested server when opening tested monitoring server described in executing Step.
If it is not, thening follow the steps S102, the information of server is monitored described in typing and opening tested monitoring server.
Wherein, the information of the tested server includes IP, user name, password, the specified mailbox of tested server Address.
Further, above-mentioned if so, execution is described when opening tested monitoring server, with institute in the present embodiment May include: before stating the step of tested server establishes connection
Step S103 asks whether to exit monitoring if tested monitoring server is opened.
If not exiting, execution is described when opening tested monitoring server, establishes company with the tested server The step of connecing;
If exiting, S104 is thened follow the steps, is terminated.
Further, in the present embodiment, above-mentioned steps S300, the system log according to specified keyword to being collected into After the step of being filtered further include:
If not being filled into pathological system log, return and execute above-mentioned steps S103, if tested monitoring server is opened It opens, then asks whether the step of exiting monitoring.
Further, in the present embodiment, the step of above-mentioned steps S101, it is determined whether to enable tested monitoring servers Before further include:
Step S000 is logged in and is collected and report server test macro.
It should be noted that can carry out logging in collection and report at user terminal Web page interface in step S000 Server test system.
In conclusion the present invention collects and the method for report server abnormal log, through the above technical solutions, opening When tested monitoring server, connection is established with the tested server;Collect the system log of the tested server; The system log being collected into is filtered according to specified keyword;If being filled into pathological system log, collect complete System log, the log of BMC management system and system configuration information;By the pathological system log, complete system log, The log of BMC management system and system configuration information are sent to specified mailbox, achieve it is following the utility model has the advantages that
1, can more timely note abnormalities simultaneously collector journal, provide the working efficiency of tester.
2, the log being collected into is more comprehensive, improves the efficiency of development and location problem.
3, easy to use, it can be used easily.
4, it is all automatic running mode, work efficiency is high.
To achieve the above object, the system that the present invention also proposes a kind of collection and report server abnormal log.
Specifically, referring to figure 3., Fig. 3 is the system architecture of the system of present invention collection and report server abnormal log Figure.
As shown in figure 3, the system of collection and report server abnormal log that the present embodiment proposes includes tested service Device, interchanger, server-side and user terminal, wherein the server-side is provided with LinuxWeb server (based on python frame Frame Flask exploitation).
The user terminal can be the intelligent terminals such as laptop, mobile phone, iPad, and the user terminal is used in server-side Web page interface logs in collection and report server test macro, checks and accepts mail.
Wherein, the tested server supports Linux and Windows operating system, and has ssh service function.
Wherein, the interchanger is used to connect the internal lan of server-side and tested server.
The server-side is used to pass through Linux with the tested server when opening tested monitoring server Python program timing in Web server initiates ssh and establishes connection by the interchanger.
The server-side is also used to collect the system log of the tested server.
The server-side is also used to be filtered the system log being collected into according to specified keyword.
If the server-side is also used to be filled into pathological system log, complete system log, BMC management system are collected Log and system configuration information.
The server-side be also used to by the pathological system log, complete system log, the log of BMC management system, with And system configuration information is sent to specified mailbox.
Further, the server-side is also used to be monitored the information of server described in typing and opens tested server Monitoring;The server-side is also used to that it is determined whether to enable tested monitoring servers.
The present invention collects and the system of report server abnormal log, through the above technical solutions, achieving following beneficial Effect:
1, can more timely note abnormalities simultaneously collector journal, provide the working efficiency of tester.
2, the log being collected into is more comprehensive, improves the efficiency of development and location problem.
3, easy to use, it can be used easily.
4, it is all automatic running mode, work efficiency is high.
The present embodiments relate to term include:
Windows: Microsoft's Window operating system;
Event viewer under Eventlog:Windows operating system;
Linux: one multi-user based on POSIX and UNIX, multitask, the operating system for supporting multithreading and multi -CPU.
Interactive command interpreter under Shell:Linux;
It is used to check the tool of hardware error, especially memory and CPU mistake in Mcelog:x86Linux system;
BIOS:(Basic Input Output System) basic input output system, it is mainly used for computer booting mistake The initialization and detection of various hardware devices in journey;
BMC: baseboard management controller (Baseboard Management Controller).Generally it is built on mainboard, Support the IPMI specification of professional standard.BMC provide function include: local and remote diagnosis, console support, configuration management, Hardware management and troubleshooting;
IP address: (Internet Protocol Address) is a kind of mode addressed to host on network, Referred to as internet protocol address;
Mailx: being an intelligent message transmitting/receiving program under linux system;
Ipmitool: being a kind of ipmi platform management tool that can be used in the command line mode under linux system.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of method of collection and report server abnormal log, which is characterized in that the method is applied to collect and report Server test system the described method comprises the following steps:
When opening tested monitoring server, connection is established with the tested server;
Collect the system log of the tested server;
The system log being collected into is filtered according to specified keyword;
If being filled into pathological system log, complete system log, the log of BMC management system and system configuration letter are collected Breath;
The pathological system log, complete system log, the log of BMC management system and system configuration information are sent to Specified mailbox.
2. the method for collection and report server abnormal log according to claim 1, which is characterized in that described to open When tested monitoring server, include: before the step of establishing connection with the tested server
It is determined whether to enable tested monitoring servers;
If so, executing described when opening tested monitoring server, the step of establishing connection with the tested server;
If it is not, being then monitored the information of server described in typing and opening tested monitoring server.
3. it is according to claim 2 collection and report server abnormal log method, which is characterized in that it is described if so, Include: before the step of then execution is described when opening tested monitoring server, establishes connection with the tested server
If tested monitoring server is opened, ask whether to exit monitoring;
If not exiting, execution is described when opening tested monitoring server, establishes connection with the tested server Step;
If exiting, terminate.
4. the method for collection and report server abnormal log according to claim 3, which is characterized in that described according to finger After the step of fixed keyword is filtered the system log being collected into further include:
If not being filled into pathological system log, it is described if so, asking whether the step of exiting monitoring to return to execution.
5. the method for collection and report server abnormal log according to claim 2, which is characterized in that the judgement is Before no the step of opening tested monitoring server further include:
It logs in and collects and report server test macro.
6. the method for collection and report server abnormal log according to claim 2, which is characterized in that described tested The information of server includes IP, user name, password, the specified email address of tested server.
7. it is a kind of collection and report server abnormal log system, which is characterized in that the system comprises tested server, Interchanger, server-side and user terminal, wherein the server-side is provided with LinuxWeb server,
The interchanger is used to connect the internal lan of server-side and tested server;
The server-side is used to take with the tested server by Linux Web when opening tested monitoring server Python program timing in business device initiates ssh and establishes connection by the interchanger;
The server-side is also used to collect the system log of the tested server;
The server-side is also used to be filtered the system log being collected into according to specified keyword;
If the server-side is also used to be filled into pathological system log, complete system log, BMC management system day are collected Will and system configuration information;
The server-side is also used to the pathological system log, complete system log, the log of BMC management system and is System configuration information is sent to specified mailbox.
8. the system of collection and report server abnormal log according to claim 7, which is characterized in that the server-side It is also used to be monitored the information of server described in typing and opens tested monitoring server;The server-side is also used to judge It is no to open tested monitoring server.
9. the system of collection and report server abnormal log according to claim 7, which is characterized in that described tested Server supports Linux and Windows operating system, and has ssh service function.
10. the system of collection and report server abnormal log according to claim 7, which is characterized in that the user Mail is checked and accepted for logging in collection and report server test macro at server-side Web page interface in end.
CN201810698849.9A 2018-06-29 2018-06-29 Collect the method and system with report server abnormal log Pending CN108959029A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810698849.9A CN108959029A (en) 2018-06-29 2018-06-29 Collect the method and system with report server abnormal log

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810698849.9A CN108959029A (en) 2018-06-29 2018-06-29 Collect the method and system with report server abnormal log

Publications (1)

Publication Number Publication Date
CN108959029A true CN108959029A (en) 2018-12-07

Family

ID=64484553

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810698849.9A Pending CN108959029A (en) 2018-06-29 2018-06-29 Collect the method and system with report server abnormal log

Country Status (1)

Country Link
CN (1) CN108959029A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111475643A (en) * 2020-03-08 2020-07-31 苏州浪潮智能科技有限公司 Method and device for processing abnormal logs of data center switch and storage medium
CN112052109A (en) * 2020-08-28 2020-12-08 西安电子科技大学 Cloud service platform event anomaly detection method based on log analysis
CN112953756A (en) * 2021-01-22 2021-06-11 武汉武钢绿色城市技术发展有限公司 Network loop elimination method based on python
CN113010440A (en) * 2021-04-29 2021-06-22 福建天晴在线互动科技有限公司 Method and system for realizing windows program exception feedback
CN114077525A (en) * 2020-08-17 2022-02-22 鸿富锦精密电子(天津)有限公司 Abnormal log processing method and device, terminal equipment, cloud server and system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106452876A (en) * 2016-10-19 2017-02-22 郑州云海信息技术有限公司 Log acquisition system and method
JP6083476B2 (en) * 2014-01-15 2017-02-22 日本電気株式会社 Log data collection system, terminal device, and log data collection method
JP2017090946A (en) * 2015-11-02 2017-05-25 富士通株式会社 Log information sampling system, log information sampling program, and log information sampling method
CN107832196A (en) * 2017-11-28 2018-03-23 广东金赋科技股份有限公司 A kind of monitoring device and monitoring method for real-time logs anomalous content
CN108132868A (en) * 2018-01-15 2018-06-08 政采云有限公司 A kind of data monitoring method, device, computing device and storage medium
CN108197008A (en) * 2018-01-31 2018-06-22 郑州云海信息技术有限公司 A kind of log collecting method, system, device and computer readable storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6083476B2 (en) * 2014-01-15 2017-02-22 日本電気株式会社 Log data collection system, terminal device, and log data collection method
JP2017090946A (en) * 2015-11-02 2017-05-25 富士通株式会社 Log information sampling system, log information sampling program, and log information sampling method
CN106452876A (en) * 2016-10-19 2017-02-22 郑州云海信息技术有限公司 Log acquisition system and method
CN107832196A (en) * 2017-11-28 2018-03-23 广东金赋科技股份有限公司 A kind of monitoring device and monitoring method for real-time logs anomalous content
CN108132868A (en) * 2018-01-15 2018-06-08 政采云有限公司 A kind of data monitoring method, device, computing device and storage medium
CN108197008A (en) * 2018-01-31 2018-06-22 郑州云海信息技术有限公司 A kind of log collecting method, system, device and computer readable storage medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111475643A (en) * 2020-03-08 2020-07-31 苏州浪潮智能科技有限公司 Method and device for processing abnormal logs of data center switch and storage medium
CN114077525A (en) * 2020-08-17 2022-02-22 鸿富锦精密电子(天津)有限公司 Abnormal log processing method and device, terminal equipment, cloud server and system
CN112052109A (en) * 2020-08-28 2020-12-08 西安电子科技大学 Cloud service platform event anomaly detection method based on log analysis
CN112052109B (en) * 2020-08-28 2022-03-04 西安电子科技大学 Cloud service platform event anomaly detection method based on log analysis
CN112953756A (en) * 2021-01-22 2021-06-11 武汉武钢绿色城市技术发展有限公司 Network loop elimination method based on python
CN113010440A (en) * 2021-04-29 2021-06-22 福建天晴在线互动科技有限公司 Method and system for realizing windows program exception feedback

Similar Documents

Publication Publication Date Title
CN108959029A (en) Collect the method and system with report server abnormal log
US8326971B2 (en) Method for using dynamically scheduled synthetic transactions to monitor performance and availability of E-business systems
US20120191826A1 (en) Device-Health-Based Dynamic Configuration of Network Management Systems Suited for Network Operations
CN109660426B (en) Monitoring method and system, computer readable medium and electronic device
WO2002079928A2 (en) System and method for business systems transactions and infrastructure management
US20020194320A1 (en) Remote support system
CN109976959A (en) A kind of portable device and method for server failure detection
CN110445688A (en) Interface service function monitoring method and system based on data collection
CN112994972B (en) Distributed probe monitoring platform
JP2008217735A (en) Fault analysis system, method and program
CN110134447A (en) The system and method for BMC immediate updating hard disk information based on operating system
CN103326902A (en) Configurable monitoring system and monitoring method for distributed type mainframe performance testing data
CN109450722A (en) The test method of network interface card rate under a kind of linux system
CN111211934A (en) Cluster remote communication test method and system
CN115664939A (en) Comprehensive operation and maintenance method and device based on automation technology and storage medium
CN114710798A (en) Fault positioning method and device
CN110806955A (en) Method and system for testing DC Cycle of server based on python
CN109726011A (en) A kind of network security test macro and implementation method based on embedded artificial intelligence
CN111949484B (en) Information processing method, device, electronic equipment and medium
CN110995538B (en) Network data acquisition method, device, system, equipment and storage medium
CN108959051A (en) System log collection method
CN110569178B (en) Interface early warning method and system based on big data platform
CN117370053A (en) Information system service operation-oriented panoramic monitoring method and system
Huang et al. PDA: A Tool for Automated Problem Determination.
CN110569238A (en) data management method, system, storage medium and server based on big data

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20181207

RJ01 Rejection of invention patent application after publication