CN111752815A - Log capture method and device, electronic equipment and storage medium - Google Patents

Log capture method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111752815A
CN111752815A CN202010606038.9A CN202010606038A CN111752815A CN 111752815 A CN111752815 A CN 111752815A CN 202010606038 A CN202010606038 A CN 202010606038A CN 111752815 A CN111752815 A CN 111752815A
Authority
CN
China
Prior art keywords
log
server
command
grabbing
preset
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.)
Withdrawn
Application number
CN202010606038.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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202010606038.9A priority Critical patent/CN111752815A/en
Publication of CN111752815A publication Critical patent/CN111752815A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording 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/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The application discloses a log capturing method, a log capturing device, an electronic device and a computer readable storage medium, wherein the method comprises the following steps: entering a detection instruction into a CMD command box of a server every other first preset time so as to detect whether the server is down; if yes, a grabbing command in a preset document is typed in the CMD command frame so as to grab the XDP log from the server, store the XDP log to a first storage position, and name the XDP log based on the current time. Therefore, the log capture method provided by the application realizes tracking and monitoring of the server downtime problem, can monitor whether the server downtime problem occurs in real time, and can automatically capture the downtime machine log.

Description

Log capture method and device, electronic equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a log capture method and apparatus, an electronic device, and a computer-readable storage medium.
Background
For the test of the problem of the downtime of the server, on one hand, whether the server is down needs to be tracked in time, and on the other hand, BMC logs, serial port logs and XDP logs generated when the server is down need to be captured in time. The method comprises the steps that an XDP log is grabbed, a tester needs to input command statements line by line according to a command document provided by Intel, the number of commands to be input is large, time consumption for grabbing part of the log is often unequal, and attention needs to be paid all the time. And grabbing the BMC log, wherein a tester needs to log in a web interface for collection.
Therefore, in the related art, in the face of the downtime problem occurring in the development process of the server, the server needs to be manually tracked in real time, and after the downtime problem is triggered, various logs generated in the server are manually collected by people.
Therefore, how to automatically detect the downtime of the server and capture the log is a technical problem to be solved by those skilled in the art.
Disclosure of Invention
The application aims to provide a log capture method and device, an electronic device and a computer readable storage medium, which realize automatic detection of downtime of a server and capture of logs.
In order to achieve the above object, the present application provides a log capture method, including:
entering a detection instruction into a CMD command box of a server every other first preset time so as to detect whether the server is down;
if yes, a grabbing command in a preset document is typed in the CMD command frame so as to grab the XDP log from the server, store the XDP log to a first storage position, and name the XDP log based on the current time.
Wherein, if the server is down, the method further comprises:
and sending alarm information.
Wherein, if the server is down, the method further comprises:
and capturing a serial port log, storing the serial port log to a second storage position, and naming the serial port log based on the current time.
Wherein, if the server is down, the method further comprises:
determining a web address of the BMC;
and capturing a BMC log from the web address, storing the BMC log to a third storage position, and naming the serial port log based on the current time.
Wherein, still include:
determining downtime of the server, and establishing a downtime log at a preset position based on the downtime;
extracting logs from a preset storage address based on the downtime, and storing the logs into the downtime logs; wherein the preset storage address comprises any one or a combination of any of the first storage location, the second storage location, and the third storage location.
If the detection instruction is specifically an itp.halt instruction, the detecting whether the server is down includes:
detecting whether a warming keyword appears in the last line of the CMD command box;
and if so, judging that the server is down.
Wherein, every line of the preset document comprises a grab command, and the grab command in the preset document is typed in the CMD command frame, which comprises the following steps:
determining a grabbing command corresponding to the first line of the preset document as a target grabbing command;
inputting the target grabbing command into the CMD command frame, and judging whether the target grabbing command is executed at intervals of second preset time;
if the execution is finished, judging whether the target grabbing command is the last line of the preset document;
if yes, confirming the grabbing command corresponding to the next line of the target grabbing command in the preset document as the target grabbing command again, and entering the step of entering the target grabbing command in the CMD command frame again.
In order to achieve the above object, the present application provides a log grabbing device, including:
the system comprises a detection module, a sending module and a processing module, wherein the detection module is used for entering a detection instruction into a CMD command box of a server every other first preset time so as to detect whether the server is down; if yes, starting the working process of the first grabbing module;
the first grabbing module is used for typing a grabbing command in a preset document in the CMD command frame so as to grab the XDP log from the server, store the XDP log to a first storage position and name the XDP log based on the current time.
To achieve the above object, the present application provides an electronic device including:
a memory for storing a computer program;
and the processor is used for realizing the steps of the log grabbing method when the computer program is executed.
To achieve the above object, the present application provides a computer-readable storage medium having stored thereon a computer program, which when executed by a processor, implements the steps of the log crawling method as described above.
According to the scheme, the log grabbing method comprises the following steps: entering a detection instruction into a CMD (Command Prompt in Chinese and Command Prompt in English) Command frame of a server every a first preset time so as to detect whether the server is down; if yes, a capture command in a preset document is typed in the CMD command frame so as to capture an XDP (extended Debug interface, eXtend Debug Port) log from the server, store the XDP log to a first storage position, and name the XDP log based on the current time.
According to the log capture method, a detection instruction is automatically input into a CMD command box of the server at preset time intervals, and the CMD command box is automatically detected to judge whether the server is down. And when the downtime problem is detected, automatically typing a grabbing command in a preset document in the CMD command box to realize the collection of the XDP log. Therefore, the log capture method provided by the application realizes tracking and monitoring of the server downtime problem, can monitor whether the server downtime problem occurs in real time, and can automatically capture the downtime machine log. The application also discloses a log grabbing device, electronic equipment and a computer readable storage medium, and the technical effects can be achieved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts. The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description serve to explain the disclosure without limiting the disclosure. In the drawings:
FIG. 1 is a flow diagram illustrating a method of log crawling in accordance with an exemplary embodiment;
FIG. 2 is a flow diagram illustrating another method of log scraping in accordance with an illustrative embodiment;
FIG. 3 is a software topology diagram shown in accordance with an exemplary embodiment;
FIG. 4 is a block diagram illustrating a log crawling apparatus according to an exemplary embodiment;
FIG. 5 is a block diagram illustrating an electronic device in accordance with an exemplary embodiment.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The embodiment of the application discloses a log capture method, which realizes automatic detection of downtime of a server and capture of logs.
Referring to fig. 1, a flowchart of a log scraping method according to an exemplary embodiment is shown, as shown in fig. 1, including:
s101: entering a detection instruction into a CMD command box of a server every other first preset time so as to detect whether the server is down; if yes, entering S102;
the execution main body of the embodiment can be Stm32f405, and the high-performance microcontroller has the characteristics of small size, low power consumption, strong computing capability and good compatibility, and can perform targeted optimization and expansion according to different use objects. The purpose of this embodiment is to automatically detect a downtime problem of a server, and automatically capture a log when the downtime problem occurs.
In the specific implementation, a detection instruction is automatically entered into a CMD command box of the server every first preset time, and whether the server is down is judged by detecting the CMD command box. The first preset time is not specifically limited herein, and those skilled in the art can flexibly select the first preset time according to the actual situation, for example, 30 min. Specifically, if the detection instruction is an itp.halt instruction, the detecting whether the server is down includes: detecting whether a warming keyword appears in the last line of the CMD command box; and if so, judging that the server is down.
If the server is detected to be down, the alarm information can be sent to realize the function of timely alarming when the server is down, and the process goes to S102. And if the downtime problem of the server is not detected, executing the itp.go instruction, and delaying the preset time to re-key the itp.halt instruction in the CMD command frame so as to re-detect whether the server is crashed.
S102: and typing a grabbing command in a preset document in the CMD command frame so as to grab the XDP log from the server, storing the XDP log to a first storage position, and naming the XDP log based on the current time.
In this step, if the server is detected to be down, a capture command in a preset document is typed in the CMD command box so as to capture the XDP log. The method for entering the capture command in the preset document in the CMD command frame includes the following steps: determining a grabbing command corresponding to the first line of the preset document as a target grabbing command; inputting the target grabbing command into the CMD command frame, and judging whether the target grabbing command is executed at intervals of second preset time; if the execution is finished, judging whether the target grabbing command is the last line of the preset document; if yes, confirming the grabbing command corresponding to the next line of the target grabbing command in the preset document as the target grabbing command again, and entering the step of entering the target grabbing command in the CMD command frame again. In the specific implementation, the feedback of the end of each step of operation is compared with a preset identifier or a preset document through a preset document, and whether the next step is entered or the circular operation is carried out is determined according to the feedback of the step. For example, the preset identifier may be "> > > > > > > > > > >", and it is detected whether the last line of the CMD command frame appears "> > > > > > > > > >", if so, it is described that the execution of the target capture command is completed, and if not, the second preset time is waited, and whether the last line of the CMD command frame appears "> > > >" is re-detected. The second preset time is not specifically limited herein, and those skilled in the art can flexibly select the second preset time according to the actual situation, for example, 5 min. Therefore, the scheme can automatically detect whether the grabbing command is executed or not, does not need testers to pay attention in real time, and realizes the automatic execution of the residential area command.
And storing the captured XDP log to a first storage position, and naming the XDP log based on the current time. It is understood that the above process can be packaged as a python preset script, which is used for typing the grab command in a preset document into the CMD command box in sequence, extracting the feedback text of the CMD command box, and the like.
As a preferred embodiment, when the server is down, the serial port log of the server may also be captured, that is, this embodiment further includes: and capturing a serial port log, storing the serial port log to a second storage position, and naming the serial port log based on the current time.
As a preferred embodiment, when the server is down, a BMC (Baseboard Management Controller, full name of chinese) log of the server may be captured, that is, the embodiment further includes: determining a web address of the BMC; and capturing a BMC log from the web address, storing the BMC log to a third storage position, and naming the serial port log based on the current time. In specific implementation, the preset script can be used to access a page corresponding to the web address, capture url (Chinese full name: uniform resource locator, English full name: uniform resource locator) pointing to the log, and download the url.
According to the log capture method provided by the embodiment of the application, the detection instruction is automatically input into the CMD command box of the server at intervals of the preset time, and the CMD command box is automatically detected to judge whether the server is down. And when the downtime problem is detected, automatically typing a grabbing command in a preset document in the CMD command box to realize the collection of the XDP log. Therefore, the log capture method provided by the embodiment of the application realizes tracking and monitoring of the downtime problem of the server, can monitor whether the downtime problem occurs to the server in real time, and can realize automatic capture of the downtime machine log.
The embodiment of the application discloses a log capture method, and compared with the previous embodiment, the embodiment further explains and optimizes the technical scheme. Specifically, the method comprises the following steps:
referring to fig. 2, a flowchart of another log scraping method according to an exemplary embodiment is shown, as shown in fig. 2, including:
s201: entering a detection instruction into a CMD command box of a server at preset time intervals so as to detect whether the server is down; if yes, entering S202;
s202: determining downtime of the server, and establishing a downtime log at a preset position based on the downtime;
s203: and typing a grabbing command in a preset document in the CMD command frame so as to grab the XDP log from the server, storing the XDP log to a first storage position, and naming the XDP log based on the current time.
S204: and capturing a serial port log, storing the serial port log to a second storage position, and naming the serial port log based on the current time.
S205: determining a web address of the BMC, capturing a BMC log from the web address, storing the BMC log to a third storage position, and naming the serial port log based on the current time.
S206: extracting logs from a preset storage address based on the downtime, and storing the logs into the downtime logs; wherein the preset storage address comprises any one or a combination of any of the first storage location, the second storage location, and the third storage location.
In this embodiment, the captured XDP log, serial log, and BMC log are stored in a centralized manner. In a specific implementation, any one or any several of the items may be selected to be stored in a centralized manner, that is, any one or any several of the items are selected to be stored in the downtime log in the preset location in a centralized manner.
Because the XDP logs, the serial port logs and the BMC logs are named at the corresponding storage positions based on the log capturing time, the logs after the downtime time can be extracted from the storage logs corresponding to the logs to serve as the downtime logs of the downtime problem.
Therefore, according to the embodiment, log documents can be captured according to related requirements, scripts and detection functions are integrated, the automatic detection and monitoring functions of the downtime of the machine of the server are achieved, and capturing, storing and centralized collection of related XDP logs, BMC logs and serial port logs are achieved after the downtime is detected.
An application embodiment provided by the present application is described below, and specifically, a preset XDP instruction document and a BMC address are recorded into an SD card, inserted into a slot of the SD card corresponding to a server, an RJ45 interface is connected to a corresponding interface of the server, and an XDP is connected to a USB (Universal Serial Bus, english) interface corresponding to the server. As shown in fig. 3, the following steps may be included:
step 1: and after the server is powered on, automatically calling the script and checking and identifying whether the downtime problem occurs. Entering the step 2 according to logic if the downtime problem occurs, and starting circulation if the downtime does not occur, and performing circulation detection at intervals of 30 minutes;
step 2: when the crash is detected, starting a log collecting link, and simultaneously sending information to bound equipment by an alarm system through Bluetooth to show an alarm;
for the XDP log, grabbing instructions according to lines from a preset document through a script loop and typing in the XDP log, and typing in the next line after detecting a termination bit mark ("> > > > > >") until typing of all commands is completed, wherein grabbing is completed on behalf of the related log.
And for the serial log, capturing serial log, printing records in a dialog box to generate a txt file, and naming the txt file by using the current time.
And for the BMC log, synchronously accessing a pre-bound BMC web address, and also accessing a url pointing to the BMC log through a preset document to capture the BMC log in a compressed packet format.
And step 3: after a folder named by the trigger operation time is created in the external USB flash disk, the addresses stored in the log files are respectively accessed, and the log copies are moved to the folder to realize the centralized storage and output of the logs. After the centralized storage is finished, the log file packet is transmitted to the bound equipment through Bluetooth.
In the following, a log capture device provided by an embodiment of the present application is introduced, and a log capture device described below and a log capture method described above may refer to each other.
Referring to fig. 4, a block diagram of a log crawling apparatus according to an exemplary embodiment is shown, as shown in fig. 4, including:
the detecting module 401 is configured to enter a detection instruction into a CMD command box of the server every other first preset time, so as to detect whether the server is down; if yes, starting the working process of the first grabbing module;
a first fetching module 402, configured to type a fetching command in a preset document in the CMD command box, so as to fetch an XDP log from the server, store the XDP log in a first storage location, and name the XDP log based on a current time.
According to the log grabbing device provided by the embodiment of the application, the detection instruction is automatically input into the CMD command box of the server every other preset time, and the CMD command box is automatically detected to judge whether the server is down. And when the downtime problem is detected, automatically typing a grabbing command in a preset document in the CMD command box to realize the collection of the XDP log. Therefore, the log grabbing device provided by the embodiment of the application realizes tracking and monitoring of the downtime problem of the server, can monitor whether the downtime problem occurs to the server in real time, and can realize automatic grabbing of downtime machine logs.
On the basis of the above embodiment, as a preferred implementation, the method further includes:
on the basis of the above embodiment, as a preferred implementation, the method further includes:
and the second capturing module is used for capturing the serial port log, storing the serial port log to a second storage position and naming the serial port log based on the current time.
On the basis of the above embodiment, as a preferred implementation, the method further includes:
the determining module is used for determining the web address of the BMC;
and the third capturing module is used for capturing the BMC log from the web address, storing the BMC log to a third storage position, and naming the serial port log based on the current time.
On the basis of the above embodiment, as a preferred implementation, the method further includes:
the establishing module is used for determining the downtime of the server and establishing a downtime log at a preset position based on the downtime;
the extracting module is used for extracting logs from a preset storage address based on the downtime and storing the logs into the downtime logs; wherein the preset storage address comprises any one or a combination of any of the first storage location, the second storage location, and the third storage location.
On the basis of the above embodiment, as a preferred implementation, the detection module 401 includes:
the system comprises a first key-in unit, a second key-in unit and a third key-in unit, wherein the first key-in unit is used for keying in an itp.halt command in a CMD command box of the server every a first preset time;
the detecting unit is used for detecting whether a warning keyword appears in the last line of the CMD command frame; if yes, starting the working process of the first grabbing module.
On the basis of the foregoing embodiment, as a preferred implementation manner, each line of the preset document includes a grab command, and the first grab module 402 includes:
the determining unit is used for determining the grabbing command corresponding to the first line of the preset document as a target grabbing command;
the second key-in unit is used for keying in the target grabbing command in the CMD command frame so as to grab the XDP log from the server, and judging whether the target grabbing command is executed at intervals of second preset time; if the execution is finished, starting the working process of the judging unit;
the judging unit is used for judging whether the target grabbing command is the last line of the preset document; if yes, determining a grabbing command corresponding to the next line of the target grabbing command in the preset document as the target grabbing command again, and starting a working process of a second key-in unit; if not, starting the working process of the storage unit;
a storage unit for storing the XDP log to a first storage location and naming the XDP log based on a current time.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
The present application further provides an electronic device, and referring to fig. 5, a structure diagram of an electronic device 500 provided in an embodiment of the present application may include a processor 11 and a memory 12, as shown in fig. 5.
The processor 11 is configured to control the overall operation of the electronic device 500, so as to complete all or part of the steps in the log capture method. The memory 12 is used to store various types of data to support operation at the electronic device 500, such data can include, for example, instructions for any application or method operating on the electronic device 500 and application-related data. The Memory 12 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk or optical disk. The memory 12 may include a USB disk for storing the obtained log file and a corresponding USB interface and an SD card expansion storage device hung under a microprocessor.
The electronic device 500 may further include any one or a combination of any of the interaction module 13, the display module 14, the power supply module 15, and the alarm module 16. The interaction module 13 comprises a network port module connected with the server and used for accessing a preset BMC web address and a USB interface used for capturing an XDP log. The display module 14 uses the LCD1602 module to display, on one hand, monitor the working status of the server, and on the other hand, display whether the log collection process is completed. The power supply module 15 is used for supplying power to the processor and supplying power to the display module. The alarm module 16 is realized based on a Bluetooth device, is connected with a mobile device, and realizes the functions of timely alarming when downtime occurs and packaging and sending collected log information.
In an exemplary embodiment, the electronic Device 500 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the log capture method described above.
In another exemplary embodiment, a computer readable storage medium comprising program instructions which, when executed by a processor, implement the steps of the above-described log crawling method is also provided. For example, the computer readable storage medium may be the memory 12 described above comprising program instructions that are executable by the processor 11 of the electronic device 500 to perform the log crawling method described above.
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description. It should be noted that, for those skilled in the art, it is possible to make several improvements and modifications to the present application without departing from the principle of the present application, and such improvements and modifications also fall within the scope of the claims of the present application.
It is further noted that, in the present specification, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.

Claims (10)

1. A log scraping method, comprising:
entering a detection instruction into a CMD command box of a server every other first preset time so as to detect whether the server is down;
if yes, a grabbing command in a preset document is typed in the CMD command frame so as to grab the XDP log from the server, store the XDP log to a first storage position, and name the XDP log based on the current time.
2. The method for grabbing logs according to claim 1, wherein if the server is down, the method further comprises:
and sending alarm information.
3. The method for grabbing logs according to claim 1, wherein if the server is down, the method further comprises:
and capturing a serial port log, storing the serial port log to a second storage position, and naming the serial port log based on the current time.
4. The log crawling method according to claim 3, wherein if the server is down, further comprising:
determining a web address of the BMC;
and capturing a BMC log from the web address, storing the BMC log to a third storage position, and naming the serial port log based on the current time.
5. The log crawling method of claim 4, further comprising:
determining downtime of the server, and establishing a downtime log at a preset position based on the downtime;
extracting logs from a preset storage address based on the downtime, and storing the logs into the downtime logs; wherein the preset storage address comprises any one or a combination of any of the first storage location, the second storage location, and the third storage location.
6. The method according to claim 1, wherein if the detection instruction is an itp.halt instruction, the detecting whether the server is down includes:
detecting whether a warming keyword appears in the last line of the CMD command box;
and if so, judging that the server is down.
7. The log scraping method according to any one of claims 1 to 6, wherein each row of the preset document includes a scraping command, and the step of typing the scraping command in the preset document in the CMD command box comprises:
determining a grabbing command corresponding to the first line of the preset document as a target grabbing command;
inputting the target grabbing command into the CMD command frame, and judging whether the target grabbing command is executed at intervals of second preset time;
if the execution is finished, judging whether the target grabbing command is the last line of the preset document;
if yes, confirming the grabbing command corresponding to the next line of the target grabbing command in the preset document as the target grabbing command again, and entering the step of entering the target grabbing command in the CMD command frame again.
8. A log crawling apparatus, comprising:
the system comprises a detection module, a sending module and a processing module, wherein the detection module is used for entering a detection instruction into a CMD command box of a server every other first preset time so as to detect whether the server is down; if yes, starting the working process of the first grabbing module;
the first grabbing module is used for typing a grabbing command in a preset document in the CMD command frame so as to grab the XDP log from the server, store the XDP log to a first storage position and name the XDP log based on the current time.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the log scraping method as claimed in any one of claims 1 to 7 when executing said computer program.
10. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the log scraping method according to any one of claims 1 to 7.
CN202010606038.9A 2020-06-29 2020-06-29 Log capture method and device, electronic equipment and storage medium Withdrawn CN111752815A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010606038.9A CN111752815A (en) 2020-06-29 2020-06-29 Log capture method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010606038.9A CN111752815A (en) 2020-06-29 2020-06-29 Log capture method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111752815A true CN111752815A (en) 2020-10-09

Family

ID=72678000

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010606038.9A Withdrawn CN111752815A (en) 2020-06-29 2020-06-29 Log capture method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111752815A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112486785A (en) * 2020-11-06 2021-03-12 苏州浪潮智能科技有限公司 Method, system, terminal and storage medium for positioning downtime phase of server

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112486785A (en) * 2020-11-06 2021-03-12 苏州浪潮智能科技有限公司 Method, system, terminal and storage medium for positioning downtime phase of server

Similar Documents

Publication Publication Date Title
WO2019140828A1 (en) Electronic apparatus, method for querying logs in distributed system, and storage medium
US10382477B2 (en) Identification apparatus, control method therefor, and storage medium
CN110943984B (en) Asset safety protection method and device
CN112035354B (en) Positioning method, device and equipment of risk codes and storage medium
CN109088773B (en) Fault self-healing method and device, server and storage medium
CN110866258A (en) Method for quickly positioning bug, electronic device and storage medium
CN111382023A (en) Code fault positioning method, device, equipment and storage medium
CN111414234A (en) Mirror image container creation method and device, computer device and storage medium
CN110502581B (en) Distributed database system monitoring method and device
CN111752815A (en) Log capture method and device, electronic equipment and storage medium
CN111367766A (en) Method, device and equipment for determining connection relation between monitoring host and equipment
CN114386045A (en) Web application program vulnerability detection method and device and storage medium
CN110134559B (en) BMC fault detection method, system and related components
CN117556413A (en) Operating system application program protection method, device, computer equipment and medium
CN111045983B (en) Nuclear power station electronic file management method, device, terminal equipment and medium
CN114625594A (en) Configuration file generation method, log collection method, device, equipment and medium
CN115828262A (en) Open source component vulnerability scanning method, device, equipment and storage medium
CN113392079B (en) Distributed storage cluster log storage optimization method, system and terminal
CN113504917A (en) Method and medium for integrating big data components by Ambari big data platform
CN114064387A (en) Log monitoring method, system, device and computer readable storage medium
CN111679943A (en) Server test system
CN113407504B (en) Data processing method, user space file system and storage medium
CN114924940A (en) Performance test method, device, storage medium and electronic equipment
CN108111611B (en) Client detection method and device and electronic equipment
CN117421316A (en) Data cleaning method and system and electronic equipment

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
WW01 Invention patent application withdrawn after publication

Application publication date: 20201009

WW01 Invention patent application withdrawn after publication