CN109189745A - A kind of method and device of the log management based on cloud platform - Google Patents

A kind of method and device of the log management based on cloud platform Download PDF

Info

Publication number
CN109189745A
CN109189745A CN201811102664.3A CN201811102664A CN109189745A CN 109189745 A CN109189745 A CN 109189745A CN 201811102664 A CN201811102664 A CN 201811102664A CN 109189745 A CN109189745 A CN 109189745A
Authority
CN
China
Prior art keywords
log
initial configuration
managed
processor
record
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811102664.3A
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201811102664.3A priority Critical patent/CN109189745A/en
Publication of CN109189745A publication Critical patent/CN109189745A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a kind of methods of log management based on cloud platform, comprising: carries out initial configuration to log, is managed according to the initial configuration to log.Also disclose a kind of device of log management based on cloud platform.By this programme, the system administration of log may be implemented, record, screening export, deletion, early warning including log etc..

Description

A kind of method and device of the log management based on cloud platform
Technical field
The present invention relates to cloud computing technology, the method and device of espespecially a kind of log management based on cloud platform.
Background technique
Traditional log is divided into operation log and error log, generally with business record, disperses very much, and systematicness is inadequate, when When client delay machine occurs or reports an error, together due to bulk information, it is difficult to be positioned;Operation log does not have formation operation chain, Complete audit can not be formed;When log is larger, the problems such as it is full to will lead to disk, system failure etc..
Summary of the invention
In order to solve the above-mentioned technical problems, the present invention provides a kind of methods of log management based on cloud platform, can Realize the system administration of log.
In order to reach the object of the invention, the present invention provides a kind of methods of log management based on cloud platform, comprising:
Initial configuration is carried out to log;
Log is managed according to the initial configuration.
It is optionally, described that log is managed according to the initial configuration, comprising:
According to the type and mark of the log of initial configuration, the record of operation log and the record of error log are carried out.
It is optionally, described that log is managed according to the initial configuration, comprising:
The screening conditions of the initial configuration are provided, log is inquired according to the screening conditions of selection.
Optionally, after the screening conditions according to selection inquire log, further includes:
Inquired log is exported, and is downloaded.
It is optionally, described that log is managed according to the initial configuration, comprising:
According to the deletion of the deletion strategy execution journal of initial configuration;Or
According to the warning strategies of initial configuration, alarm notification is carried out.
A kind of device of the log management based on cloud platform, comprising: memory and processor;Wherein:
The memory, for saving the program for being used for log management;
The processor executes the program for being used for log management for reading, performs the following operations:
Initial configuration is carried out to log;
Log is managed according to the initial configuration.
Optionally, the processor is managed log according to the initial configuration, comprising: according to initial configuration The type and mark of log carry out the record of operation log and the record of error log.
Optionally, the processor is managed log according to the initial configuration, comprising: offer is described initially to match The screening conditions set inquire log according to the screening conditions of selection.
Optionally, the processor, after being inquired according to the screening conditions of selection log, further includes: export is looked into The log of inquiry, and download.
Optionally, the processor is managed log according to the initial configuration, comprising: according to initial configuration The deletion of deletion strategy execution journal;Or the warning strategies according to initial configuration, carry out alarm notification.
To sum up, the system administration of log may be implemented in method and device through this embodiment, record including log, Screen export, deletion, early warning etc..
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification It obtains it is clear that understand through the implementation of the invention.The objectives and other advantages of the invention can be by specification, right Specifically noted structure is achieved and obtained in claim and attached drawing.
Detailed description of the invention
Attached drawing is used to provide to further understand technical solution of the present invention, and constitutes part of specification, with this The embodiment of application technical solution for explaining the present invention together, does not constitute the limitation to technical solution of the present invention.
Fig. 1 is a kind of flow chart of the method for log management based on cloud platform of the embodiment of the present invention;
Fig. 2 is a kind of schematic diagram of the device of log management based on cloud platform of the embodiment of the present invention.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention Embodiment be described in detail.It should be noted that in the absence of conflict, in the embodiment and embodiment in the application Feature can mutual any combination.
Step shown in the flowchart of the accompanying drawings can be in a computer system such as a set of computer executable instructions It executes.Also, although logical order is shown in flow charts, and it in some cases, can be to be different from herein suitable Sequence executes shown or described step.
Fig. 1 is a kind of flow chart of the method for log management based on cloud platform of the embodiment of the present invention, as shown in Figure 1, The method of the present embodiment may include:
Step 11 carries out initial configuration to log;
In the present embodiment, administrator defines log code in log apparatus for initializing, and different log codes correspond to different logs Type, such as 101 represent and log in logs, and 102 represent and publish log, and 201 represent newly-built user, and 301 represent department etc.;For Error log, log code are equivalent to error code, such as 400001 represent that mistake of which module;The threshold value of alarm is set simultaneously, That is the occupation rate of disk where log alerts contact person, the mode of alarm, such as mailbox, short message, the letter such as email address, cell-phone number Breath;The mode deleted is alerted, is automatically deleted or deletes manually, how long is automatically deleted reservation.
Step 12 is managed log according to the initial configuration.
The method of the present embodiment can be managed collectively log, and the pipe of system is carried out to the Life cycle of log Reason, improves the efficiency of log management, effective to help user and operation maintenance personnel orientation problem.
The unified record for carrying out log may be implemented in the method for the present embodiment, as follows:
A. operation log recording, when user is logging in, is publishing system, when establishing resource etc. operates, all progress operation logs Record, call log recording apparatus, the type codes of record log, operating time, account, operated object mark, operation object Type, log rank, details;
B. error log records, when operating system of user reports an error, it is also desirable to carry out the record of error log, call Log recording apparatus, the type codes (error code) of record log, operating time, account, operated object mark, operation object class Type, log rank, details.
The method of the present embodiment can also be realized screens according to the condition of user's input, and provides log export downloading Function.
Screening conditions can be set when initial configuration, such as: Log Types, account, operation object, operation object id, behaviour Make object oriented, Start Date, the Close Date etc. is inquired.
In the present embodiment, operation log details can be carried out and checked, and entire behaviour can be inquired according to a certain operation object id Make log chain;Such as virtual machine a, when create, when change and match, when shut down, forms an operational chain, just In intuitive audit.
In the present embodiment, error log details can be carried out and checked, according to the information inquiry error day such as Log Types, account The details of will.
In the present embodiment, the log of screening can be carried out by export down operation according to the screening of user.
In the present embodiment, can also according to the deletion strategy of Initialize installation, the deletion of execution journal, such as:
A. it is automatically deleted, according to the retention time of setting, such as retains one month, the log before one month is deleted;
B. it deletes manually, one month, three months, the log before half a year or 1 year can be deleted manually.
In the present embodiment, alarm notification can also be executed according to the warning strategies of Initialize installation.It can be by monitoring day Whether the occupation rate of disk reaches threshold value where will, if reaching threshold value, contacts according to the threshold value of apparatus for initializing setting, alarm People and alarm mode issue warning information.
By the invention it is possible to which log to be carried out to the management of system, record log can be unified, the operation to some resource Log forms log chain, error log is classified, can intuitive inquiry error details, and log can be downloaded, be realized simultaneously The monitoring of disk, avoids disk from completely influencing system performance where log, can delete or be automatically deleted manually log by alarm Information improves the efficiency of log management by systematic log management, effective that user and operation maintenance personnel positioning is helped to ask Topic.
Fig. 2 is a kind of schematic diagram of the device of log management based on cloud platform of the embodiment of the present invention, as shown in Fig. 2, The device of the present embodiment may include: memory and processor, wherein
The memory, for saving the program for being used for log management;
The processor executes the program for being used for log management for reading, performs the following operations:
Initial configuration is carried out to log;
Log is managed according to the initial configuration.
Optionally, in one embodiment, the processor is managed log according to the initial configuration, comprising: root According to the type and mark of the log of initial configuration, the record of operation log and the record of error log are carried out.
Optionally, in one embodiment, the processor is managed log according to the initial configuration, comprising: mention For the screening conditions of the initial configuration, log is inquired according to the screening conditions of selection.
Optionally, the processor, after being inquired according to the screening conditions of selection log, further includes: export is looked into The log of inquiry, and download.
Optionally, the processor is managed log according to the initial configuration, comprising: according to initial configuration The deletion of deletion strategy execution journal;Or the warning strategies according to initial configuration, carry out alarm notification.
The embodiment of the invention also provides a kind of computer readable storage mediums, are stored with computer executable instructions, The computer executable instructions are performed the method for realizing the log management.
It will appreciated by the skilled person that whole or certain steps, system, dress in method disclosed hereinabove Functional module/unit in setting may be implemented as software, firmware, hardware and its combination appropriate.In hardware embodiment, Division between the functional module/unit referred in the above description not necessarily corresponds to the division of physical assemblies;For example, one Physical assemblies can have multiple functions or a function or step and can be executed by several physical assemblies cooperations.Certain groups Part or all components may be implemented as by processor, such as the software that digital signal processor or microprocessor execute, or by It is embodied as hardware, or is implemented as integrated circuit, such as specific integrated circuit.Such software can be distributed in computer-readable On medium, computer-readable medium may include computer storage medium (or non-transitory medium) and communication media (or temporarily Property medium).As known to a person of ordinary skill in the art, term computer storage medium is included in for storing information (such as Computer readable instructions, data structure, program module or other data) any method or technique in the volatibility implemented and non- Volatibility, removable and nonremovable medium.Computer storage medium include but is not limited to RAM, ROM, EEPROM, flash memory or its His memory technology, CD-ROM, digital versatile disc (DVD) or other optical disc storages, magnetic holder, tape, disk storage or other Magnetic memory apparatus or any other medium that can be used for storing desired information and can be accessed by a computer.
In addition, known to a person of ordinary skill in the art be, communication media generally comprises computer-readable instruction, data knot Other data in the modulated data signal of structure, program module or such as carrier wave or other transmission mechanisms etc, and can wrap Include any information delivery media.

Claims (10)

1. a kind of method of the log management based on cloud platform characterized by comprising
Initial configuration is carried out to log;
Log is managed according to the initial configuration.
2. the method according to claim 1, wherein described be managed log according to the initial configuration, Include:
According to the type and mark of the log of initial configuration, the record of operation log and the record of error log are carried out.
3. the method according to claim 1, wherein described be managed log according to the initial configuration, Include:
The screening conditions of the initial configuration are provided, log is inquired according to the screening conditions of selection.
4. according to the method described in claim 3, it is characterized in that, described inquire log according to the screening conditions of selection Afterwards, further includes:
Inquired log is exported, and is downloaded.
5. the method according to claim 1, wherein described be managed log according to the initial configuration, Include:
According to the deletion of the deletion strategy execution journal of initial configuration;Or
According to the warning strategies of initial configuration, alarm notification is carried out.
6. a kind of device of the log management based on cloud platform, comprising: memory and processor;It is characterized by:
The memory, for saving the program for being used for log management;
The processor executes the program for being used for log management for reading, performs the following operations:
Initial configuration is carried out to log;
Log is managed according to the initial configuration.
7. device according to claim 6, which is characterized in that
The processor is managed log according to the initial configuration, comprising: according to the type of the log of initial configuration and Mark, carries out the record of operation log and the record of error log.
8. device according to claim 6, which is characterized in that
The processor is managed log according to the initial configuration, comprising: provides the screening item of the initial configuration Part inquires log according to the screening conditions of selection.
9. device according to claim 8, which is characterized in that
The processor, after being inquired according to the screening conditions of selection log, further includes: the inquired log of export, and Downloading.
10. device according to claim 9, which is characterized in that
The processor is managed log according to the initial configuration, comprising: is executed according to the deletion strategy of initial configuration The deletion of log;Or the warning strategies according to initial configuration, carry out alarm notification.
CN201811102664.3A 2018-09-20 2018-09-20 A kind of method and device of the log management based on cloud platform Pending CN109189745A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811102664.3A CN109189745A (en) 2018-09-20 2018-09-20 A kind of method and device of the log management based on cloud platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811102664.3A CN109189745A (en) 2018-09-20 2018-09-20 A kind of method and device of the log management based on cloud platform

Publications (1)

Publication Number Publication Date
CN109189745A true CN109189745A (en) 2019-01-11

Family

ID=64909235

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811102664.3A Pending CN109189745A (en) 2018-09-20 2018-09-20 A kind of method and device of the log management based on cloud platform

Country Status (1)

Country Link
CN (1) CN109189745A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112783849A (en) * 2021-01-29 2021-05-11 紫光云技术有限公司 Production environment log exporting system and method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1567851A (en) * 2003-07-07 2005-01-19 华为技术有限公司 A method for monitoring user behavior in network management system
CN103793479A (en) * 2014-01-14 2014-05-14 上海上讯信息技术股份有限公司 Log management method and log management system
CN103840969A (en) * 2014-01-20 2014-06-04 浪潮(北京)电子信息产业有限公司 Alarm log management method and system in cloud computing system
CN104144063A (en) * 2013-05-08 2014-11-12 朱烨 Website security monitoring and alarming system based on log analysis and firewall security matrixes
CN107612737A (en) * 2017-09-21 2018-01-19 郑州云海信息技术有限公司 A kind of alarm method and its device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1567851A (en) * 2003-07-07 2005-01-19 华为技术有限公司 A method for monitoring user behavior in network management system
CN104144063A (en) * 2013-05-08 2014-11-12 朱烨 Website security monitoring and alarming system based on log analysis and firewall security matrixes
CN103793479A (en) * 2014-01-14 2014-05-14 上海上讯信息技术股份有限公司 Log management method and log management system
CN103840969A (en) * 2014-01-20 2014-06-04 浪潮(北京)电子信息产业有限公司 Alarm log management method and system in cloud computing system
CN107612737A (en) * 2017-09-21 2018-01-19 郑州云海信息技术有限公司 A kind of alarm method and its device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112783849A (en) * 2021-01-29 2021-05-11 紫光云技术有限公司 Production environment log exporting system and method

Similar Documents

Publication Publication Date Title
US11119745B2 (en) Automated deployment of applications
US9898397B2 (en) Deployment pattern monitoring
US10212054B2 (en) Transparently tracking provenance information in distributed data systems
EP3304310B1 (en) System and method for automatic cloud-based full-data backup and restore on mobile devices
JP4473153B2 (en) Method, system and program for network configuration checking and repair
US11301419B2 (en) Data retention handling for data object stores
US10171291B2 (en) Tenant-specific log for events related to a cloud-based service
JP6077562B2 (en) Provide update notifications for distributed application objects
US10397161B2 (en) Electronic mail (email) message lifecycle management
US9182974B1 (en) System and methods for updating software of templates of virtual machines
US9237180B2 (en) System and method for verifying configuration item changes
US9965207B2 (en) Maintenance of cloned computer data
CN105591821B (en) Monitoring system and service system
US20070005320A1 (en) Model-based configuration management
US11727288B2 (en) Database-management system with artificially intelligent virtual database administration
US11853737B1 (en) Metadata driven product configuration management
US9971819B2 (en) Using cloud processing to integrate ETL into an analytic reporting mechanism
US20210042109A1 (en) Firmware management
CN109189342A (en) A kind of disk hanging method, device, equipment and storage medium
US20230236816A1 (en) Techniques for data package generation
US20130111443A1 (en) Methods and Systems for Source Control Management
CN109189745A (en) A kind of method and device of the log management based on cloud platform
US9805318B2 (en) Method, system and program product for conditionally controlling changes to key data fields in a project database
US20230066698A1 (en) Compute instance warmup operations
US10547700B2 (en) Document distribution from a processing system utilizing pushed references

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: 20190111