CN109309585A - A kind of log collecting method, device and equipment - Google Patents
A kind of log collecting method, device and equipment Download PDFInfo
- Publication number
- CN109309585A CN109309585A CN201811108215.XA CN201811108215A CN109309585A CN 109309585 A CN109309585 A CN 109309585A CN 201811108215 A CN201811108215 A CN 201811108215A CN 109309585 A CN109309585 A CN 109309585A
- Authority
- CN
- China
- Prior art keywords
- log
- server
- collection
- log collection
- task
- 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
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/069—Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Debugging And Monitoring (AREA)
Abstract
This application provides a kind of log collecting methods, in the method, server is requested in response to log collection, automatically collect server correlation log, collection method compared with prior art, on the one hand this method increase the collection coverages of server correlation log, more logs can be collected into, to provide richer log for user, so that user carries out supervision maintenance comprehensively to server according to these logs, on the other hand, this method, which is considered to work as, can occupy IPMI process for a long time to influence being normally carried out for other tasks in the increased situation of server correlation log coverage collected, in order to avoid the influence during log collection to other tasks, this method propose create new thread by way of asynchronous mechanism to collect task come execution journal, so that the execution of log collection task will not influence other The execution of business, to avoid occupying resource for a long time.In addition, present invention also provides corresponding device and equipment.
Description
Technical field
This application involves log collection technical field more particularly to a kind of log collecting method, device, substrate management controls
Device and server.
Background technique
With the rapid development and cloud computing of information technology and the landing application of Internet of Things, user is to the reliable of server
Property has the requirement of each harshness.Server of new generation at this stage is being supervised to meet the high reliability demand of application
It is more fine accurate to require with monitoring aspect.Especially in terms of the log monitoring for server, the required day monitored
Will quantity and complexity also constantly rise.
Traditional log collecting method is only adapted to traditional server, can only be collected into partial log, such as only receive
The black box log of collecting system event log and baseboard management controller and User operation log, and with the continuous hair of server
Exhibition, the monitoring management for server just needs to collect more to spend more fully log, and traditional log collecting method can not be received
Collect more logs, it is difficult to the business demand that adaptation supervises server.
Summary of the invention
The embodiment of the present application provides a kind of log collecting method, and this method can request certainly according to the log collection of user
The bigger server correlation log of coverage is collected dynamicly, can satisfy at present to the business demand of server supervision, and
The reasonable utilization for optimizing resource during collection by asynchronous mechanism avoids occupying resource for a long time.
The application first aspect provides a kind of log collecting method, this method comprises:
Log collection request is received, the log collection request collects server correlation log for requesting;
Log collection request is responded, is checked in being currently carrying out with the presence or absence of log collection task;
If so, waiting the log collection task execution to finish and obtaining the server correlation log being collected into;
If it is not, then using asynchronous mechanism, creation thread collects task by the thread execution journal, obtains institute to collect
Server correlation log is stated, the server correlation log includes at least: the black box log of baseboard management controller, user's operation
The critical processes log of log, System Event Log and baseboard management controller;
Return to the server correlation log.
Optionally, if when receiving the request of multiple log collections at same time point, and there is currently no log collections
During task is carrying out, then the method also includes:
The multiple log collection request is responded, using asynchronous mechanism, a thread is only created and passes through the thread execution day
Will collects task, obtains the server correlation log to collect, and return to the server correlation log.
Optionally, the method also includes:
Check log collection progress during executing the log collection task, and return the log collection into
Degree.
Optionally, the server correlation log further include:
Running log, alarm log and the service of the configuration log, baseboard management controller of specified parts in server
It is any or a variety of in diagnostic log when specifying unit failure in device.
Optionally, the method is applied in baseboard management controller.
Optionally, the method also includes:
The server correlation log being collected into is stored in the server.
The application second aspect provides a kind of log collection device, which includes:
Receiving module, for receiving log collection request, the log collection request is for requesting collection server related
Log;
It checks module, for responding the log collection request, checks and currently held with the presence or absence of log collection task
In row;If so, triggering obtains module and log feedback module, if it is not, then triggering asynchronous execution module and log feedback module;
The acquisition module is related for waiting the log collection task execution to finish and obtaining the server being collected into
Log;
The asynchronous execution module, for using asynchronous mechanism, creation thread is collected by the thread execution journal appoints
Business, with collect obtain the server correlation log, the server correlation log includes at least: baseboard management controller it is black
Box log, the critical processes log of User operation log, System Event Log and baseboard management controller;
The log feedback module, for returning to the server correlation log.
Optionally, described device further include:
Collection progress feedback module, for checking log collection progress during executing the log collection task,
And return to the log collection progress.
The application third aspect provides a kind of baseboard management controller, and program is configured on the baseboard management controller,
And the log collecting method of the application first aspect offer is realized when running described program.
The application fourth aspect provides a kind of server, which includes: baseboard management controller, the substrate management
It is configured with program in controller, and the log collecting method of the application first aspect offer is provided when running described program.
The 5th aspect of the application provides a kind of computer storage medium, is stored thereon with program, described program is being located
Reason device realizes the log collecting method that the application first aspect provides when executing.
As can be seen from the above technical solutions, the embodiment of the present application has the advantage that
A kind of log collecting method is provided in the embodiment of the present application, when carrying out log collection using this method, is being received
To user trigger log collection request after, automatically collect server correlation log, collection method compared with prior art,
On the one hand this method increase the collection coverage of server correlation log, more logs can be collected into, to be user
Richer log is provided, so that user carries out supervision maintenance comprehensively, on the other hand, this method to server according to these logs
IPMI process can be occupied for a long time in the increased situation of server correlation log coverage collected in view of working as to influence other
Task is normally carried out, and in order to avoid the influence during log collection to other tasks, this method propose by asynchronous
The mode of mechanism creates new thread and carrys out execution journal collection task, so that the execution of log collection task will not influence other
The execution of business, to avoid occupying resource for a long time.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of application without any creative labor, may be used also for those of ordinary skill in the art
To obtain other drawings based on these drawings.
Fig. 1 is a kind of application scenario diagram of log collecting method provided by the embodiments of the present application;
Fig. 2 is a kind of flow chart of log collecting method provided by the embodiments of the present application;
Fig. 3 is a kind of structure chart of log collection device provided by the embodiments of the present application;
Fig. 4 is a kind of structure chart of server provided by the embodiments of the present application.
Specific embodiment
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application
Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only this
Apply for a part of the embodiment, instead of all the embodiments.Based on the embodiment in the application, those of ordinary skill in the art exist
Every other embodiment obtained under the premise of creative work is not made, shall fall in the protection scope of this application.
The description and claims of this application and term " first ", " second ", " third ", " in above-mentioned attached drawing
The (if present)s such as four " are to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should manage
The data that solution uses in this way are interchangeable under appropriate circumstances, so that embodiments herein described herein for example can be to remove
Sequence other than those of illustrating or describe herein is implemented.In addition, term " includes " and " having " and theirs is any
Deformation, it is intended that cover it is non-exclusive include, for example, containing the process, method of a series of steps or units, system, production
Product or equipment those of are not necessarily limited to be clearly listed step or unit, but may include be not clearly listed or for this
A little process, methods, the other step or units of product or equipment inherently.
It should be understood that a kind of log collecting method provided by the present application can adapt in the server under any platform, with
The data service of a key collector journal is provided for user, such as this method can adapt in the server based on Purley platform,
Also it can adapt in the server based on weekly platform, naturally it is also possible to be adapted in the server under other platforms.
In order to make it easy to understand, below with reference to Fig. 1 to a kind of log collecting method provided by the present application in actual scene
Applicable cases illustrate.
Referring to a kind of application scenario diagram of log collecting method provided by the embodiments of the present application shown in fig. 1, such as Fig. 1 institute
Show, a kind of log collecting method provided by the embodiments of the present application can be applied in server 100 with program form, the server
100 refer to the server for being capable of providing data support, being capable of customer end/server mode (abbreviation C/S) or web browsing
Device/server mode (abbreviation B/S) operating mode provides a key log collection service for user, naturally it is also possible to provide it
His data service, such as file storage, file such as read at the data services.
It should be understood that the server can be application server, or web server, it can be with storage service
Device etc..In practical applications, which runs program by baseboard management controller to realize day provided by the present application
The specific implementation process of will collection method, this method will become clear from the description below, and wouldn't be unfolded to illustrate herein.The server
100 realize that the log collecting method is mainly to request according to the log collection that user triggers, and create thread using asynchronous mechanism, lead to
It crosses thread execution journal and collects task to be collected into the higher server correlation log of coverage, and then the server that will be collected into
Correlation log returns to user, so that user realizes that the supervision to server 100 is safeguarded according to these logs.
For a user, it is needing to knowing server correlation log to supervise according to these logs to server
When maintenance, user can be communicated by terminal 200 with server 100 to obtain server correlation log.Specifically, user passes through
The client or browser configured in terminal 200 initiates log collection request to server 100, is only browsed in Fig. 1 with passing through
Illustrate for device access server, user accesses the log collection interface that server 100 provides, the log collection by browser
A key is carried on interface and collects control, and user triggers a key and collects control, then browser generates log collection request Concurrency
It sending to server 100, then server 100 is requested in response to the log collection that browser is sent, thread is created using asynchronous mechanism,
Task is collected by thread execution journal to be collected into the higher server correlation log of coverage, and then the service that will be collected into
Device correlation log returns to browser and allows users to so that terminal displays for a user the server correlation log according to the clothes
Business device correlation log supervises safeguard service device 100.
As it can be seen that user only needs to trigger a key log collection by terminal using log collecting method provided by the present application
Operation, server will respond the log collection request of user, related to collect more servers automatically using asynchronous mechanism
On the one hand log makes the execution of log collection task not influence the execution of other tasks, on the other hand guarantee to provide for user
Richer log facilitates user and supervises safeguard service device.
Log collecting method provided by the present application is explained from the angle of server below.
A kind of flow chart of log collecting method provided by the embodiments of the present application shown referring to fig. 2, as shown in Fig. 2, should
Method includes:
S201: receiving log collection request, and the log collection request collects server correlation log for requesting;
In specific implementation, the log collection request that server receiving terminal is sent by browser or client, it is right
For user, the log collection interface that the browser or accessing server by customer end that terminal can be used provide, the log
It collects and carries log collection control on interface, user only needs the key touch-control log collection control that can initiate log collection
Request, corresponding, server can receive the log collection request of terminal transmission.
In specific implementation, server can provide log collection service simultaneously for multi-user, i.e. server can be simultaneously
It is communicated with multiple terminals, to provide log collection service for different users, is based on this, server is in a period of time
The request of multiple log collections can be received, this is based on, repeats log collection task to reduce server, waste of resource,
In the embodiment of the present application, after server receives a log collection request, and indirect execution responds the request to hold
Row log collection task, but need to check whether current system is carrying out log collection operation, i.e., whether existing log is received
During set task is carrying out, server determines subsequent how to operate according to the actual situation.
Therefore, and then server executes S202 after executing S201.
S202: responding log collection request, checks in being currently carrying out with the presence or absence of log collection task;
In specific implementation, server can pass through baseboard management controller after receiving a log collection request
(Baseboard Management Controller, BMC) uses asynchronous mechanism, utilizes intelligent platform management interface
It is returned immediately after (Intelligent Platform Management Interface, IPMI) command triggers log collection task
It returns, and is prevented to discharge IPMI process because accounting for by establishing a new thread to execute specific log collection task
The failure of other tasks is caused with IPMI resource.For server, is creating new thread and passing through thread execution journal
When collection task, the corresponding execution state for recording the process of meeting, such as the execution state of the process are positive in commission, namely
Just in collector journal, then characterizes server and server correlation log is collected by thread, task is being performed;And if
The execution state of the process is to collect to finish, then shows that server collect by end log, log collection task has been finished.
In the embodiment of the present application, server only can be one thread of log collection task creation a time point, that is,
A thread is only run for collecting server correlation log, simultaneously without parallel multiple threads in a time point server
For collecting server correlation log, with this, avoid creating multithreading simultaneously for collector journal, to avoid the wasting of resources, shadow
Ring the execution of other tasks.
On this basis, once as soon as server receives the request of log collection, first check currently whether be carrying out
Log collection task, and then determine to execute corresponding operation according to result is checked.
When checking result is to be, server executes S203 and S205, and when it is no for checking result, server executes S204
And S205.
S203: if so, waiting the log collection task execution to finish and obtaining the server correlation log being collected into;
It should be understood that if inspection result be it is yes, when showing that server receives log collection request, in system
Log collection operation is carried out, then just no longer needs to create new thread at this time and initiates log collection task again, it is only necessary to be waited current
The collection of ongoing log collection task is as a result, the server correlation log being collected into is directly returned to request accordingly
Side.
For example, user 1 initiates log collection request 1 by terminal A, server receives log collection request 1
When, check log collection task whether is carrying out in system, at this point, log collection task is carrying out in discovery system, it should
Log collection task is particularly directed to what the log collection request 2 that user 2 is initiated by terminal 2 was initiated, in such case
Under, server no longer initiates new thread for the log collection request 1 of user 1, but waits the log being carrying out
When collection task execution finishes, the server correlation log being collected into is returned into terminal 1 and terminal 2 together, that is, returns to use
Family 1 and user 2.
It is only to execute a log collection task, and be based on executing the day within a time point for server
Server correlation log accessed by will collection task, while responding and being connect within the period for executing the log collection task
All log collections request received, saves server resource with this, avoids repeated collection.
S204: if it is not, then using asynchronous mechanism, creation thread collects task by the thread execution journal, to collect
Obtain the server correlation log, the server correlation log includes at least: the black box log of baseboard management controller is used
The critical processes log of family operation log, System Event Log and baseboard management controller;
If should be understood that inspection result be it is no, show in server it is current not in execution journal collection task,
In this case, server is requested to timely respond to the log collection being currently received, it is necessary to be created thread, specifically be adopted
With asynchronous mechanism, thread is created, to collect task by the thread execution journal, collects server correlation log.
For example, user 1 initiates log collection request 1 by terminal A, server receives log collection request 1
When, check log collection task whether is carrying out in system, at this point, task is not collected in execution journal in discovery system,
In this case, server just needs to initiate new thread for the log collection request 1 of user 1, passes through new thread
Execution journal collects task, and the server correlation log being collected into is returned to terminal 1, that is, returns to user 1.
In specific implementation, safeguard service device is supervised in order to facilitate user, it is necessary to richer log is provided the user with,
Based on this, included at least in the server correlation log that the embodiment of the present application can obtain: the black box day of baseboard management controller
The critical processes log of will, User operation log, System Event Log and baseboard management controller.
It should be understood that in the embodiment of the present application, the server correlation log that can be collected can either cover substrate pipe
The black box log of controller, the traditional logs of User operation log, System Event Log are managed, and baseboard management controller can be covered
Critical processes log, and the critical processes log is very important log for supervision server, therefore, utilizes this
Method can provide the user with more valuable, richer log.
In specific implementation, the critical processes log is it can be appreciated that be main steps log, so-called critical processes day
The relevant log of critical processes in will, that is, BMC, and critical processes namely main steps comprising but be not limited to:
Ipmimain process, Adviserd process (KVM process), lightpd process (web service process), snmpd process,
DhcpMonitor process, watchdogapp process, Flasher process (Upgrade process).It is of course also possible to according to practical business
Demand obtains the log of other processes.
Certainly, in specific implementation, also can specify server correlation log further includes one or more of log:
Running log, alarm log and the service of the configuration log, baseboard management controller of specified parts in server
It is any or a variety of in diagnostic log when specifying unit failure in device.
Wherein, in server specified parts configuration log, it is understood that for be specified parts in server configuration
Information, specified parts here can be hardware component, be also possible to software component, more specifically, the configuration day of specified parts
Will may include but be not limited to following information:
Network configuration parameter, virtual media configuration information, remote dummy media configuration information, Lighttpd server
Configuration, the configuration of SSH service configuration, host name, DHCPv6 client configuration file, dns server configuration file, iptables match
It sets, is configured for the address ipv4, Ip6tables, be used for the address ipv6, dns configuration file, dns domain name mapping configuration file, net
Network information (including the information such as the address ip, mask, gateway), Syslog functional configuration file, server hardware configuration information,
The information, log such as Syslog functional configuration file, fan current rotating speed, heat dissipation regulation parameter, current rotating speed factor of determination
Rotate rule configuration file, route show current routing information etc..
Wherein, diagnostic log log can be the accident analysis log of BMC, mainly include System Event Log, failure hair
The log generated when raw by analysis CPU/PSU related register data.
Wherein, state letter of the running log of baseboard management controller for base plate Management Controller in operation
Breath.
It should be understood that some thing servers are worked by log collected by thread execution journal collection task
It will be recorded in journey, such as configuration information, critical processes information etc., and some are given birth to when triggering log collection request
At, for example, the data and cpu busy percentage of current CPU register, memory usage, system run loading condition, interrupt
Information etc..In practical applications, server can provide log collection service simultaneously for multiple terminals, this is based on, at certain
In the case of, server can receive multiple log collection requests at same time point, then in this case, server is rung simultaneously
The multiple log collection requests of the person of answering, then execute S202 and check whether be carrying out log collection task in current system, if so,
The log collection task execution is then waited to finish to obtain the server correlation log being collected into, to receive in response to this multiple log
Collection request, i.e., return to server correlation log to multiple terminals.
If same time point receive multiple log collections request when, and there is currently no log collection tasks
In execution, in this case, server responds the multiple log collection request and only creates a line using asynchronous mechanism
Journey collects task by the thread execution journal, obtains the server correlation log to collect, and return to the server phase
Close log.
That is, when receiving multiple log requests at same time point, not being carrying out in system for server
In the case where log collection task, server only needs to create a thread, collects task by a thread execution journal,
With the server correlation log that will be collected into while returning to multiple terminals.
S205: the server correlation log is returned.
In specific implementation, server by utilizing executes server correlation log collected by a log collection task,
All log collection requests received in the time range for executing the log collection task of response simultaneously.
If should be understood that in the time range, server only receives a log collection request, then also only needs
Log collection request is responded, i.e., server correlation log is returned into request originator.If within this time range, server
Multiple log collection requests are received, then needs to respond multiple log collection request simultaneously, i.e., returns server correlation log
Back to multiple request originators.
In addition, in specific implementation, server can also save the server correlation log being collected into, with the standby user later period
It checks, in this way, user can be directly from the server correlation log downloaded in designated time period in server.
When carrying out log collection using above-mentioned log collecting method provided by the embodiments of the present application, user's triggering is being received
Log collection request after, automatically collect server correlation log, collection method compared with prior art, the one side party
Method increases the collection coverage of server correlation log, can be collected into more logs, to provide for user richer
Log, so as to user according to these logs to server carry out comprehensively supervision maintenance, on the other hand, this method consider when receive
IPMI process can be occupied in the increased situation of server correlation log coverage of collection for a long time to influence other tasks just
It often carries out, in order to avoid the influence during log collection to other tasks, this method propose by way of asynchronous mechanism
It creates new thread and carrys out execution journal collection task, so that the execution of log collection task will not influence the execution of other tasks,
To avoid occupying resource for a long time.
In view of during actual log is collected, since the log of required collection is many kinds of, log collection task
Task amount is larger, then the process of collecting may be long as may require that a few minutes sometimes, therefore, timely and effective in order to facilitate user
Understand log collection situation, avoids user from not knowing and collect situation and repetitive requests, the corresponding solution party that the application also provides
Case, specifically based on the above method, server execution journal collect task while, also monitoring log collection into
Degree, and check log collection progress, to return to log collection progress to user.
In specific implementation, server can periodically check log collection progress, and periodically return to user
Log collection progress.For example, for server, according to the executive condition of log collection task monitoring collection progress, and
Every the time cycle as collection progress is checked in 15 seconds in interval, log collection progress is returned to user in a manner of interval 15 seconds, so as to
User, which understands, collects situation.
In specific implementation, server can also be received with real time inspection log collection progress to return to log to user in real time
Collection progress.For example, server is when execution journal collects task, so that it may the progress of checking is synchronized, to return to log receipts in real time
Collection progress collects situation so that user understands in real time.
In specific implementation, server can also return only in the case where collection progress reaches preset condition to user
Log collection progress.Specifically, server returns to log collection progress to user when ratio arrival preset value has been collected in log,
For example, server returns to log collection situation only in the case where the log ratio of having collected reaches 50%, for user.
For a user, using terminal triggering log collection request, corresponding, terminal receives the day of server return
When will collects progress, show log collects progress situation on log collection interface, such as displays for a user day with written form
Will collects progress situation or displays for a user log collection progress situation in graph form, naturally it is also possible to what both pictures and texts are excellent
Form displays for a user log collection progress.Such as show log collects progress in the form of progress bar, and with the shape of percentage
Formula shows specific progress value, for example, being currently collected into 50% log.
Additionally need explanation when, above-mentioned log collecting method provided by the embodiments of the present application in specific implementation, can also
To dispose in substrate management server in the server, method and step is executed to realize automatic collection by substrate management server
Log.Correspond to the above method, present invention also provides a kind of log collection device, below with reference to Fig. 3 to the device into
Row illustrates.
Referring to a kind of structure chart of log collection device shown in Fig. 3, which includes:
Receiving module 301, for receiving log collection request, the log collection request collects server phase for requesting
Close log;
Check module 302, for responding the log collection request, checking currently whether there is log collection task
In execution;If so, triggering obtains module 303 and log feedback module 305, if it is not, then triggering asynchronous execution module 304 and day
Will feedback module 305;
The acquisition module 303, for waiting the log collection task execution to finish and obtaining the server being collected into
Correlation log;
The asynchronous execution module 304, for using asynchronous mechanism, creation thread is collected by the thread execution journal
Task obtains the server correlation log to collect, and the server correlation log includes at least: baseboard management controller
Black box log, the critical processes log of User operation log, System Event Log and baseboard management controller;
The log feedback module 305, for returning to the server correlation log.
Optionally, described device further include:
Collection progress feedback module, for checking log collection progress during executing the log collection task,
And return to the log collection progress.
In addition, program is configured on the baseboard management controller present invention also provides a kind of baseboard management controller,
And when running described program to realize above-mentioned log collecting method provided by the embodiments of the present application.
In addition, the server is explained below with reference to Fig. 4 present invention also provides a kind of server.
A kind of structure chart of server provided by the embodiments of the present application shown referring to fig. 4, as shown in figure 4, the server
400 include: baseboard management controller 401, processor 402 and memory 403, is configured with journey in the baseboard management controller
Sequence, and when running described program to realize above-mentioned log collecting method provided by the embodiments of the present application;
The processor 402, for providing data service, for example, data storage service, reading data service etc..
The memory 403, for storing data, for example, the server being collected into for memory substrate Management Controller
Correlation log.Wherein, the memory 403 may include the non-volatile memory in computer-readable medium, arbitrary access
The forms such as memory (RAM) and/or Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM), memory
Including at least one storage chip.
In addition, being stored thereon with program the embodiment of the present application also provides a kind of computer storage medium, described program exists
Above-mentioned log collecting method provided by the embodiments of the present application is realized when being executed by processor;In such manner, it is possible to guarantee that the application mentions
A kind of log collecting method supplied can be achieved by being rapidly transplanted in arbitrary equipment.
In addition, present invention also provides a kind of computer program products, when executing in equipment, it is adapted for carrying out initialization
The program of the step of just like a kind of above-mentioned log collecting method provided by the embodiments of the present application.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more,
The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces
The form of product.
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net
Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/
Or the forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable Jie
The example of matter.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices
Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability
It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap
Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including element
There is also other identical elements in process, method, commodity or equipment.
It will be understood by those skilled in the art that embodiments herein can provide as method, system or computer program product.
Therefore, complete hardware embodiment, complete software embodiment or embodiment combining software and hardware aspects can be used in the application
Form.It is deposited moreover, the application can be used to can be used in the computer that one or more wherein includes computer usable program code
The shape for the computer program product implemented on storage media (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
Formula.
The above is only embodiments herein, are not intended to limit this application.To those skilled in the art,
Various changes and changes are possible in this application.It is all within the spirit and principles of the present application made by any modification, equivalent replacement,
Improve etc., it should be included within the scope of the claims of this application.
Claims (10)
1. a kind of log collecting method, which is characterized in that the described method includes:
Log collection request is received, the log collection request collects server correlation log for requesting;
Log collection request is responded, is checked in being currently carrying out with the presence or absence of log collection task;
If so, waiting the log collection task execution to finish and obtaining the server correlation log being collected into;
If it is not, then using asynchronous mechanism, creation thread collects task by the thread execution journal, obtains the clothes to collect
Business device correlation log, the server correlation log include at least: the black box log of baseboard management controller, user's operation day
The critical processes log of will, System Event Log and baseboard management controller;
Return to the server correlation log.
2. method according to claim 1, which is characterized in that if receiving multiple log collection requests at same time point
When, and be carrying out there is currently no log collection task, then the method also includes:
The multiple log collection request is responded, using asynchronous mechanism, a thread is only created and is received by the thread execution journal
Set task obtains the server correlation log to collect, and returns to the server correlation log.
3. method according to claim 1, which is characterized in that the method also includes:
Log collection progress is checked during executing the log collection task, and returns to the log collection progress.
4. method according to claim 1, which is characterized in that the server correlation log further include:
In server in the running log of the configuration log, baseboard management controller of specified parts, alarm log and server
It is any or a variety of in diagnostic log when specified parts failure.
5. method according to claim 1, which is characterized in that the method also includes:
The server correlation log being collected into is stored in the server.
6. a kind of log collection device, which is characterized in that described device includes:
Receiving module, for receiving log collection request, the log collection request collects server correlation log for requesting;
It checks module, for responding log collection request, checks in being currently carrying out with the presence or absence of log collection task;
If so, triggering obtains module and log feedback module, if it is not, then triggering asynchronous execution module and log feedback module;
The acquisition module, for waiting the log collection task execution to finish and obtaining the server relevant date being collected into
Will;
The asynchronous execution module, for using asynchronous mechanism, creation thread collects task by the thread execution journal, with
Collection obtains the server correlation log, and the server correlation log includes at least: the black box day of baseboard management controller
The critical processes log of will, User operation log, System Event Log and baseboard management controller;
The log feedback module, for returning to the server correlation log.
7. device according to claim 6, which is characterized in that described device further include:
Collection progress feedback module for checking log collection progress during executing the log collection task, and returns
Return the log collection progress.
8. a kind of baseboard management controller, which is characterized in that be configured with program on the baseboard management controller, and in operation institute
To realize log collecting method described in any one of claim 1 to 5 when stating program.
9. a kind of server, which is characterized in that the server includes: baseboard management controller, processor and memory, described
Program is configured in baseboard management controller, and when running described program to realize day described in any one of claim 1 to 5
Will collection method;
The processor, for providing data service;
The memory, for storing data.
10. a kind of computer storage medium, which is characterized in that be stored thereon with program, described program is when being executed by processor
Realize such as log collecting method described in any one of claim 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811108215.XA CN109309585A (en) | 2018-09-21 | 2018-09-21 | A kind of log collecting method, device and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811108215.XA CN109309585A (en) | 2018-09-21 | 2018-09-21 | A kind of log collecting method, device and equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109309585A true CN109309585A (en) | 2019-02-05 |
Family
ID=65224066
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811108215.XA Pending CN109309585A (en) | 2018-09-21 | 2018-09-21 | A kind of log collecting method, device and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109309585A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110018945A (en) * | 2019-04-15 | 2019-07-16 | 苏州浪潮智能科技有限公司 | Process monitoring management method, device and the equipment and medium of server management system |
CN110377136A (en) * | 2019-06-18 | 2019-10-25 | 苏州浪潮智能科技有限公司 | A kind of PSU original value log recording method and device |
CN111177097A (en) * | 2019-12-13 | 2020-05-19 | 北京浪潮数据技术有限公司 | Log collection method, device and equipment and computer readable storage medium |
CN111552674A (en) * | 2019-02-12 | 2020-08-18 | 网宿科技股份有限公司 | Log processing method and device |
CN112019362A (en) * | 2019-05-30 | 2020-12-01 | 中移(苏州)软件技术有限公司 | Data transmission method, device, server, terminal, system and storage medium |
CN113296704A (en) * | 2021-05-27 | 2021-08-24 | 济南浪潮数据技术有限公司 | Online parallel collection method, device and equipment for firmware logs of SAS HBA (Serial attached SCSI) card |
CN113672445A (en) * | 2020-05-13 | 2021-11-19 | 华为技术有限公司 | Method for recording running state information of target program and electronic equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070234287A1 (en) * | 2006-03-17 | 2007-10-04 | Walter Wolfgang E | Method and apparatus for asynchronous log message processing |
CN106559241A (en) * | 2015-09-29 | 2017-04-05 | 阿里巴巴集团控股有限公司 | Using the collection of daily record, sending method, device, system and log server |
CN106598815A (en) * | 2016-12-29 | 2017-04-26 | 广州华多网络科技有限公司 | Real-time asynchronous log collection method and system |
CN107809337A (en) * | 2017-11-17 | 2018-03-16 | 深圳泉眼体育运营管理有限公司 | A kind of daily record method for uploading and device |
CN108205476A (en) * | 2017-12-27 | 2018-06-26 | 郑州云海信息技术有限公司 | A kind of method and device of multithreading daily record output |
-
2018
- 2018-09-21 CN CN201811108215.XA patent/CN109309585A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070234287A1 (en) * | 2006-03-17 | 2007-10-04 | Walter Wolfgang E | Method and apparatus for asynchronous log message processing |
CN106559241A (en) * | 2015-09-29 | 2017-04-05 | 阿里巴巴集团控股有限公司 | Using the collection of daily record, sending method, device, system and log server |
CN106598815A (en) * | 2016-12-29 | 2017-04-26 | 广州华多网络科技有限公司 | Real-time asynchronous log collection method and system |
CN107809337A (en) * | 2017-11-17 | 2018-03-16 | 深圳泉眼体育运营管理有限公司 | A kind of daily record method for uploading and device |
CN108205476A (en) * | 2017-12-27 | 2018-06-26 | 郑州云海信息技术有限公司 | A kind of method and device of multithreading daily record output |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111552674A (en) * | 2019-02-12 | 2020-08-18 | 网宿科技股份有限公司 | Log processing method and device |
CN111552674B (en) * | 2019-02-12 | 2023-06-23 | 网宿科技股份有限公司 | Log processing method and equipment |
CN110018945A (en) * | 2019-04-15 | 2019-07-16 | 苏州浪潮智能科技有限公司 | Process monitoring management method, device and the equipment and medium of server management system |
CN112019362A (en) * | 2019-05-30 | 2020-12-01 | 中移(苏州)软件技术有限公司 | Data transmission method, device, server, terminal, system and storage medium |
CN112019362B (en) * | 2019-05-30 | 2022-06-10 | 中移(苏州)软件技术有限公司 | Data transmission method, device, server, terminal, system and storage medium |
CN110377136A (en) * | 2019-06-18 | 2019-10-25 | 苏州浪潮智能科技有限公司 | A kind of PSU original value log recording method and device |
CN111177097A (en) * | 2019-12-13 | 2020-05-19 | 北京浪潮数据技术有限公司 | Log collection method, device and equipment and computer readable storage medium |
CN111177097B (en) * | 2019-12-13 | 2022-06-17 | 北京浪潮数据技术有限公司 | Log collection method, device and equipment and computer readable storage medium |
CN113672445A (en) * | 2020-05-13 | 2021-11-19 | 华为技术有限公司 | Method for recording running state information of target program and electronic equipment |
CN113296704A (en) * | 2021-05-27 | 2021-08-24 | 济南浪潮数据技术有限公司 | Online parallel collection method, device and equipment for firmware logs of SAS HBA (Serial attached SCSI) card |
CN113296704B (en) * | 2021-05-27 | 2022-12-02 | 济南浪潮数据技术有限公司 | Online parallel collection method, device and equipment for firmware logs of SAS HBA (Serial attached SCSI) card |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109309585A (en) | A kind of log collecting method, device and equipment | |
US11044310B2 (en) | Automatic scaling of resource instance groups within compute clusters | |
WO2020253347A1 (en) | Container cluster management method, device and system | |
US10171377B2 (en) | Orchestrating computing resources between different computing environments | |
US10264063B2 (en) | Method and apparatus for scheduling cloud server | |
EP3507692B1 (en) | Resource oversubscription based on utilization patterns in computing systems | |
US20190012211A1 (en) | Replication management for hyper-converged infrastructures | |
JP6170237B2 (en) | Automatic creation of private virtual networks in service provider networks | |
US20160198003A1 (en) | Architecture and method for sharing dedicated public cloud connectivity | |
US20150195347A1 (en) | Architecture and method for cloud provider selection and projection | |
US11805004B2 (en) | Techniques and interfaces for troubleshooting datacenter networks | |
US20150193466A1 (en) | Architecture and method for cloud provider selection and projection | |
CN107491371B (en) | Deployment monitoring method and device | |
US11675682B2 (en) | Agent profiler to monitor activities and performance of software agents | |
US20150193246A1 (en) | Apparatus and method for data center virtualization | |
Delnat et al. | K8-scalar: a workbench to compare autoscalers for container-orchestrated database clusters | |
US20150195141A1 (en) | Apparatus and method for data center migration | |
CN113067739B (en) | High-density container network deployment method and system | |
EP3111326A2 (en) | Architecture and method for cloud provider selection and projection | |
Rygielski et al. | Model-based throughput prediction in data center networks | |
US20150193862A1 (en) | Architecture and method for implementing a marketplace for data center resources | |
CN109995571B (en) | Method and device for matching server configuration and VNF application | |
CN110297706A (en) | A kind of inserting method based on Eureka-Server project | |
US20150193128A1 (en) | Virtual data center graphical user interface | |
Kumar et al. | Loosely coupled coordinated management in virtualized data centers |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190205 |