CN110351126A - Log rank method of adjustment, device and electronic equipment - Google Patents
Log rank method of adjustment, device and electronic equipment Download PDFInfo
- Publication number
- CN110351126A CN110351126A CN201910562193.2A CN201910562193A CN110351126A CN 110351126 A CN110351126 A CN 110351126A CN 201910562193 A CN201910562193 A CN 201910562193A CN 110351126 A CN110351126 A CN 110351126A
- Authority
- CN
- China
- Prior art keywords
- service interface
- destination service
- log
- rank
- serve log
- 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
Abstract
This application provides a kind of log rank method of adjustment, device and electronic equipments, applied to technical field of software development, wherein this method comprises: obtaining the corresponding current performance indication information of destination service interface, it is then based on current performance indication information and scheduled threshold condition, it determines the adjustment information being adjusted to the rank of the corresponding serve log of destination service interface, is then adjusted based on rank of the adjustment information to the corresponding serve log of destination service interface.Current performance indication information and scheduled threshold condition i.e. based on destination service interface, adjust the rank of serve log, the adjust automatically of serve log rank is realized, to improve the efficiency of serve log rank adjusting, ensure that the performance of service system at the same time.
Description
Technical field
This application involves technical field of software development, specifically, this application involves a kind of log rank methods of adjustment, dress
It sets and electronic equipment.
Background technique
With the development of cloud, corresponding service system can be deployed in cloud platform, for monitoring service system
Operating condition, serve log output are widely adopted as an effective means, but serve log output is to service system
Performance has certain influence, in the biggish situation of serve log quantity especially exported, seriously affects the performance of service system, such as
Serve log is carried out in the case where where ensureing service system performance has been output into a problem.
Currently, the control of serve log output is realized by way of manual intervention, i.e., configured by manual amendment
File adjusts the output level of serve log, to achieve the purpose that the output quantity for controlling serve log, however, according to current
In such a way that manual amendment's configuration file controls serve log output quantity, need manually to repair corresponding configuration file
Change, there are problems that low efficiency, it is difficult to which the flowing of access peak for coping with burst, which causes log amount to increase bring performance on foot, to be influenced.Cause
This, there is low efficiency in existing log rank adjustment mode.
Summary of the invention
This application provides a kind of log rank method of adjustment, device and electronic equipments, for promoting serve log rank
Regulated efficiency, the application the technical solution adopted is as follows:
In a first aspect, provide a kind of log rank method of adjustment, this method includes,
Obtain the corresponding current performance indication information of destination service interface;
Based on current performance indication information and scheduled threshold condition, determine to the corresponding serve log of destination service interface
The adjustment information that is adjusted of rank;
It is adjusted based on rank of the adjustment information to the corresponding serve log of destination service interface.
It is preferably based on current performance indication information and scheduled threshold condition, determination is corresponding to destination service interface
The adjustment information that the rank of serve log is adjusted includes: before
The corresponding serve log of destination service interface is obtained, and determines the current of the corresponding serve log of destination service interface
Level information;
Based on current performance indication information and scheduled threshold condition, determine to the corresponding serve log of destination service interface
The adjustment information that is adjusted of rank, comprising:
Based on current performance indication information serve log corresponding with scheduled threshold condition and destination service interface
Current level information determines the adjustment information being adjusted to the rank of the corresponding serve log of destination service interface.
Preferably, the mode for determining the corresponding serve log of destination service interface, includes at least one of the following:
Service interface and service relation table based on pre-configuration, determine the corresponding serve log of destination service interface;
It is the global serial number of service request distribution based on system, determines the corresponding serve log of destination service interface, entirely
Office's serial number be destination service interface to service request when system distribute to the unique number of service request.
Wherein, performance index information includes amount of access information and/or response time information.
Second aspect provides a kind of log dynamic level adjusting device, which includes,
First obtains module, for obtaining the corresponding current performance indication information of destination service interface;
Determining module, for obtaining the current performance indication information and scheduled threshold condition that module obtains based on first,
Determine the adjustment information being adjusted to the rank of the corresponding serve log of destination service interface;
Module is adjusted, the adjustment information for determining based on determining module is to the corresponding serve log of destination service interface
Rank is adjusted.
Preferably, the device further include:
Second obtains module, for obtaining the corresponding serve log of destination service interface, and determines destination service interface pair
The current level information for the serve log answered;
Determining module is specifically used for obtaining module based on current performance indication information and scheduled threshold condition and second
The current level information of the corresponding serve log of destination service interface of acquisition is determined to the corresponding service day of destination service interface
The adjustment information that the rank of will is adjusted.
Preferably, the mode for determining the corresponding serve log of destination service interface, includes at least one of the following:
Service interface and service relation table based on pre-configuration, determine the corresponding serve log of destination service interface;
It is the global serial number of service request distribution based on system, determines the corresponding serve log of destination service interface, entirely
Office's serial number be destination service interface to service request when system distribute to the unique number of service request.
Wherein, performance index information includes amount of access information and/or response time information.
The third aspect provides a kind of electronic equipment, which includes:
One or more processors;
Memory;
One or more application program, wherein one or more application programs be stored in memory and be configured as by
One or more processors execute, and one or more programs are configured to: executing log rank adjusting side shown in first aspect
Method.
Fourth aspect, provides a kind of computer readable storage medium, and computer storage medium refers to for storing computer
It enables, when run on a computer, computer is allowed to execute log rank method of adjustment shown in first aspect.
This application provides a kind of log rank method of adjustment, device and electronic equipments, with the prior art by manually repairing
The output quantity for changing configuration file control serve log is compared, and the application is referred to by obtaining the corresponding current performance of destination service interface
Information is marked, current performance indication information and scheduled threshold condition are then based on, is determined to the corresponding service of destination service interface
The adjustment information that the rank of log is adjusted, then based on adjustment information to the grade of the corresponding serve log of destination service interface
It is not adjusted.Current performance indication information and scheduled threshold condition i.e. based on destination service interface, adjust serve log
Rank, the adjust automatically of serve log rank is realized, to improve the efficiency of serve log rank adjusting, at the same time
It ensure that the performance of service system.
The additional aspect of the application and advantage will be set forth in part in the description, these will become from the following description
It obtains obviously, or recognized by the practice of the application.
Detailed description of the invention
The application is above-mentioned and/or additional aspect and advantage will become from the following description of the accompanying drawings of embodiments
Obviously and it is readily appreciated that, in which:
Fig. 1 is a kind of flow diagram of log rank method of adjustment of the embodiment of the present application;
Fig. 2 is a kind of structural schematic diagram of log level adjusting device of the embodiment of the present application;
Fig. 3 is the structural schematic diagram of another log level adjusting device of the embodiment of the present application;
Fig. 4 is the structural schematic diagram of a kind of electronic equipment of the embodiment of the present application.
Specific embodiment
Embodiments herein is described below in detail, the example of each embodiment is shown in the accompanying drawings, wherein phase from beginning to end
Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached drawing
The embodiment of description is exemplary, and is only used for explaining the application, and cannot be construed to the limitation to the application.
Those skilled in the art of the present technique are appreciated that unless expressly stated, singular " one " used herein, "one"
It may also comprise plural form with "the".It is to be further understood that wording " comprising " used in the description of the present application is
Refer to existing characteristics, integer, step, operation, element and/or component, but it is not excluded that in the presence of or addition it is one or more other
Feature, integer, step, operation, element, component and/or their group.Wording "and/or" used herein is including one or more
Multiple associated wholes for listing item or any cell and all combination.
To keep the purposes, technical schemes and advantages of the application clearer, below in conjunction with attached drawing to the application embodiment party
Formula is described in further detail.
How the technical solution of the application and the technical solution of the application are solved with specifically embodiment below above-mentioned
Technical problem is described in detail.These specific embodiments can be combined with each other below, for the same or similar concept
Or process may repeat no more in certain embodiments.Below in conjunction with attached drawing, embodiments herein is described.
The embodiment of the present application provides a kind of log rank method of adjustment, as shown in Figure 1, this method may include following step
It is rapid:
Step S101 obtains the corresponding current performance indication information of destination service interface;
Specifically, service system can have one or more sub-services interfaces, any sub-services can be corresponding with one or
Multiple micro services interfaces, the destination service interface can be the sub-services interface or micro services interface of service system;Wherein, in incognito
Business is a kind of mode approach developed using a set of small service and individually applied, and each micro services operate in the process of oneself,
And communicated using lightweight mechanism, usually HTTP API, micro services are constructed based on professional ability, and can pass through Automation
Administration mechanism is independently disposed, wherein micro services can be used different programming languages and realize, and be stored using different data
Technology, and keep the centralized management of bottom line.
Specifically, service system is configured with corresponding monitoring module, can monitor the property of each destination service interface in real time
It can indication information;Specifically, by corresponding data calling method or communication means, the current performance of destination service interface is obtained
Indication information.
Step S102 is determined corresponding to destination service interface based on current performance indication information and scheduled threshold condition
Serve log the adjustment information that is adjusted of rank;
Specifically, corresponding threshold condition is preset, based on current performance indication information and scheduled threshold condition, really
The fixed adjustment information that the rank that destination service connects wealthy corresponding serve log is adjusted.
Wherein, performance index information includes but is not limited to amount of access information and/or response time information.
Illustratively, preset threshold condition can be when the response time of destination service interface being greater than 500ms,
The rank of serve log is turned up;When the response time of destination service interface being less than 100ms, by the rank tune of serve log
It is low;Wherein, the rank of serve log more highoutput is fewer, and the rank of serve log is lower, and corresponding output quantity is higher;Its
In, the rank of serve log can be five ranks of TRACE, DEBUG, INFO, ERROR, OFF, be also possible to setting level-one,
The ranks such as second level, three-level, herein without limitation.Wherein, it is determined based on current performance indication information and scheduled threshold condition
Adjustment information can be the information that serve log rank is accordingly turned up or is turned down, and be also possible to adjust to specific service journal stage
Other level information.
Step S103 is adjusted based on rank of the adjustment information to the corresponding serve log of destination service interface.
Specifically, according to determining adjustment information, the rank of the corresponding serve log of destination service interface is adjusted.
The embodiment of the present application provides a kind of log rank method of adjustment, passes through manual amendment's configuration file with the prior art
The output quantity of control serve log is compared, and the embodiment of the present application is by obtaining the corresponding current performance index letter of destination service interface
Breath is then based on current performance indication information and scheduled threshold condition, determines to the corresponding serve log of destination service interface
The adjustment information that is adjusted of rank, then based on adjustment information to the rank of the corresponding serve log of destination service interface into
Row adjustment.Current performance indication information and scheduled threshold condition i.e. based on destination service interface, adjust the grade of serve log
Not, the adjust automatically of serve log rank is realized, to improve the efficiency of serve log rank adjusting, is guaranteed at the same time
The performance of service system.
The embodiment of the present application provides a kind of possible implementation, includes: before step S102
Step S104 obtains the corresponding serve log of destination service interface, and determines the corresponding service of destination service interface
The current level information of log;
Specifically, the corresponding serve log of destination service interface is obtained by corresponding method, and determines that destination service connects
The current level information of the corresponding serve log of mouth;Wherein, the corresponding serve log of destination service interface can be one or more
It is a;
Illustratively, constituting the customer transaction and supplementing the micro services of destination service with money includes micro services A, micro services B, micro services
C, then the corresponding serve log of destination service interface includes micro services A serve log, micro services B serve log, micro services C clothes
Business log;Wherein, micro services A, micro services B, micro services C can also respectively include corresponding sub- micro services, as micro services A can be with
Including sub- micro services a, sub- micro services b;Wherein, corresponding serve log between each micro services, between sub- micro services
Initial level can be the same or different.
Specifically, step S103 includes:
Step S1031 (not shown) is taken based on current performance indication information and scheduled threshold condition and target
The current level information for the corresponding serve log of interface of being engaged in is determined and is carried out to the rank of the corresponding serve log of destination service interface
The adjustment information of adjustment.
Specifically, according to current performance indication information and scheduled threshold condition and the current level information of serve log
Determine the adjustment information being adjusted to serve log, wherein can be according to current performance indication information and scheduled threshold value
Condition determines the height-regulating of rank, turns down information, is then determined and is adjusted to corresponding a certain tool according to the current level of serve log
Body rank.
For the embodiment of the present application, based on current performance indication information and scheduled threshold condition and destination service interface
The current level information of corresponding serve log, determines the adjustment information of the rank of serve log, is the tune of serve log rank
It is whole to lay a good foundation.
The embodiment of the present application provides a kind of possible implementation, determines the corresponding serve log of destination service interface
Mode includes at least one of the following:
Service interface and service relation table based on pre-configuration, determine the corresponding serve log of destination service interface;
Specifically, it can be pre-configured with the relation table of each service interface and service, wherein the relation table can be service
The relationship of interface and micro services can also if service interface A (user supplements interface with money) includes micro services a, micro services b, micro services c
To be the relation table of micro services interface Yu sub- micro services;
Illustratively, by the service interface of pre-configuration and service relation table, determine that destination service interface is corresponding each
Then micro services or sub- micro services are called respectively and obtain each micro services or the corresponding serve log of sub- micro services.
It is the global serial number of service request distribution based on system, determines the corresponding serve log of destination service interface, entirely
Office's serial number be destination service interface to service request when system distribute to the unique number of service request.
Wherein, global serial number: in the service system that micro services are constituted, primary network service request generally requires one
Or multiple systems could complete the collaborative process of information in different periods or identical period, due to inevitable system defect
Or mistake, the service request are not always that can successfully complete, in order to quickly position the original that this request fails in systems
Cause, it usually needs the secondary request is represented with a unique number, no matter it circulates to which node in system, the number value
It is constant.This number is referred to as global serial number.
Specifically, global serial number be destination service interface to service request when system distribute to service request only
One number is the global serial number of service request distribution based on system, determines the corresponding serve log of destination service interface, i.e., logical
It crosses and obtains the corresponding global serial number of each serve log determines whether it is the corresponding serve log of destination service interface.
For the embodiment of the present application, solves the problems, such as the determination of the corresponding serve log of destination service interface, for based on this
The rank that the performance index information of destination service interface adjusts the corresponding serve log of destination service interface provides the foundation.
Fig. 2 is a kind of log level adjusting device provided by the embodiments of the present application, which includes: the first acquisition module
201, determining module 202 and adjustment module 203, wherein
First obtains module 201, for obtaining the corresponding current performance indication information of destination service interface;
Determining module 202, for obtaining the current performance indication information and scheduled threshold value that module 201 obtains based on first
Condition determines the adjustment information being adjusted to the rank of the corresponding serve log of destination service interface;
Module 203 is adjusted, the adjustment information for determining based on determining module 202 is to the corresponding service of destination service interface
The rank of log is adjusted.
The embodiment of the present application provides a kind of log level adjusting device, passes through manual amendment's configuration file with the prior art
The output quantity of control serve log is compared, and the embodiment of the present application is by obtaining the corresponding current performance index letter of destination service interface
Breath is then based on current performance indication information and scheduled threshold condition, determines to the corresponding serve log of destination service interface
The adjustment information that is adjusted of rank, then based on adjustment information to the rank of the corresponding serve log of destination service interface into
Row adjustment.Current performance indication information and scheduled threshold condition i.e. based on destination service interface, adjust the grade of serve log
Not, the adjust automatically of serve log rank is realized, to improve the efficiency of serve log rank adjusting, is guaranteed at the same time
The performance of service system.
A kind of log rank provided in the above embodiments of the present application can be performed in the log level adjusting device of the present embodiment
Method of adjustment, realization principle is similar, and details are not described herein again.
As shown in figure 3, the embodiment of the present application provides another log level adjusting device, which includes: first
Obtain module 301, determining module 302 and adjustment module 303, wherein
First obtains module 301, for obtaining the corresponding current performance indication information of destination service interface;
Wherein, first in Fig. 3 obtains module 301 function of module 201 is identical or phase with the first acquisition in Fig. 2
Seemingly.
Determining module 302, for obtaining the current performance indication information and scheduled threshold value that module 301 obtains based on first
Condition determines the adjustment information being adjusted to the rank of the corresponding serve log of destination service interface;
Wherein, the determining module 302 in Fig. 3 is same or similar with the function of determining module 202 in Fig. 2.
Module 303 is adjusted, the adjustment information for determining based on determining module 302 is to the corresponding service of destination service interface
The rank of log is adjusted.
Wherein, the adjustment module 303 in Fig. 3 is same or similar with the function of adjustment module 203 in Fig. 2.
The embodiment of the present application provides a kind of possible implementation, which further includes the second acquisition module 304,
Second obtains module 304, for obtaining the corresponding serve log of destination service interface, and determines destination service interface
The current level information of corresponding serve log;
Determining module 302 is specifically used for obtaining based on current performance indication information and scheduled threshold condition and second
The current level information for the corresponding serve log of destination service interface that module obtains is determined to the corresponding clothes of destination service interface
The adjustment information that the rank of business log is adjusted.
For the embodiment of the present application, based on current performance indication information and scheduled threshold condition and destination service interface
The current level information of corresponding serve log, determines the adjustment information of the rank of serve log, is the tune of serve log rank
It is whole to lay a good foundation.
The embodiment of the present application provides a kind of possible implementation, wherein determines the corresponding service of destination service interface
The mode of log, including but not limited at least one of following:
Service interface and service relation table based on pre-configuration, determine the corresponding serve log of destination service interface;
It is the global serial number of service request distribution based on system, determines the corresponding serve log of destination service interface, entirely
Office's serial number be destination service interface to service request when system distribute to the unique number of service request.
The application solves the problems, such as the determination of the corresponding serve log of destination service interface, is for the embodiment of the present application
The rank that performance index information based on the destination service interface adjusts the corresponding serve log of destination service interface provides
Basis.
The embodiment of the present application provides a kind of log level adjusting device, passes through manual amendment's configuration file with the prior art
The output quantity of control serve log is compared, and the embodiment of the present application is by obtaining the corresponding current performance index letter of destination service interface
Breath is then based on current performance indication information and scheduled threshold condition, determines to the corresponding serve log of destination service interface
The adjustment information that is adjusted of rank, then based on adjustment information to the rank of the corresponding serve log of destination service interface into
Row adjustment.Current performance indication information and scheduled threshold condition i.e. based on destination service interface, adjust the grade of serve log
Not, the adjust automatically of serve log rank is realized, to improve the efficiency of serve log rank adjusting, is guaranteed at the same time
The performance of service system.
The embodiment of the present application provides a kind of log level adjusting device, is suitable for method shown in above-described embodiment,
This is repeated no more.
The embodiment of the present application provides a kind of electronic equipment, as shown in figure 4, electronic equipment shown in Fig. 4 40 includes: processing
Device 4001 and memory 4003.Wherein, processor 4001 is connected with memory 4003, is such as connected by bus 4002.Further
Ground, electronic equipment 40 can also include transceiver 4004.It should be noted that transceiver 4004 is not limited to one in practical application
A, the structure of the electronic equipment 400 does not constitute the restriction to the embodiment of the present application.Wherein, processor 4001 is applied to this Shen
Module, determining module and the function of adjusting module please be obtained for realizing Fig. 2 or shown in Fig. 3 first in embodiment, and
Shown in Fig. 3 second obtains the function of module 304.Transceiver 4004 includes Receiver And Transmitter.
Processor 4001 can be CPU, general processor, DSP, ASIC, FPGA or other programmable logic device, crystalline substance
Body pipe logical device, hardware component or any combination thereof.It, which may be implemented or executes, combines described by present disclosure
Various illustrative logic blocks, module and circuit.Processor 4001 is also possible to realize the combination of computing function, such as wraps
It is combined containing one or more microprocessors, DSP and the combination of microprocessor etc..
Bus 4002 may include an access, and information is transmitted between said modules.Bus 4002 can be pci bus or
Eisa bus etc..Bus 4002 can be divided into address bus, data/address bus, control bus etc..Only to be used in Fig. 4 convenient for indicating
One thick line indicates, it is not intended that an only bus or a type of bus.
Memory 4003 can be ROM or can store the other kinds of static storage device of static information and instruction, RAM
Or the other kinds of dynamic memory of information and instruction can be stored, it is also possible to EEPROM, CD-ROM or other CDs
Storage, optical disc storage (including compression optical disc, laser disc, optical disc, Digital Versatile Disc, Blu-ray Disc etc.), magnetic disk storage medium
Or other magnetic storage apparatus or can be used in carry or store have instruction or data structure form desired program generation
Code and can by any other medium of computer access, but not limited to this.
Memory 4003 is used to store the application code for executing application scheme, and is held by processor 4001 to control
Row.Processor 4001 is for executing the application code stored in memory 4003, to realize Fig. 2 or embodiment illustrated in fig. 3
The function of the log level adjusting device of offer.
The embodiment of the present application provides a kind of electronic equipment, is serviced with the prior art by the control of manual amendment's configuration file
The output quantity of log is compared, and the embodiment of the present application is by obtaining the corresponding current performance indication information of destination service interface, then
Based on current performance indication information and scheduled threshold condition, determine to the rank of the corresponding serve log of destination service interface into
The adjustment information of row adjustment, is then adjusted based on rank of the adjustment information to the corresponding serve log of destination service interface.
Current performance indication information and scheduled threshold condition i.e. based on destination service interface, adjust the rank of serve log, realize
The adjust automatically of serve log rank to improve the efficiency of serve log rank adjusting ensure that service at the same time
The performance of system.
The embodiment of the present application provides a kind of electronic equipment suitable for above method embodiment.Details are not described herein.
The embodiment of the present application provides a kind of computer readable storage medium, is stored on the computer readable storage medium
Computer program, the program realize method shown in above-described embodiment when being executed by processor.
The embodiment of the present application provides a kind of computer readable storage medium, configures text by manual amendment with the prior art
The output quantity of part control serve log is compared, and the embodiment of the present application is by obtaining the corresponding current performance index of destination service interface
Information is then based on current performance indication information and scheduled threshold condition, determines to the corresponding service day of destination service interface
The adjustment information that the rank of will is adjusted, then based on adjustment information to the rank of the corresponding serve log of destination service interface
It is adjusted.Current performance indication information and scheduled threshold condition i.e. based on destination service interface, adjust serve log
Rank, realizes the adjust automatically of serve log rank, to improve the efficiency of serve log rank adjusting, protects at the same time
The performance of service system is demonstrate,proved.
The embodiment of the present application provides a kind of computer readable storage medium and is suitable for above method embodiment.Herein no longer
It repeats.
It should be understood that although each step in the flow chart of attached drawing is successively shown according to the instruction of arrow,
These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps
Execution there is no stringent sequences to limit, can execute in the other order.Moreover, at least one in the flow chart of attached drawing
Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps
Completion is executed, but can be executed at different times, execution sequence, which is also not necessarily, successively to be carried out, but can be with other
At least part of the sub-step or stage of step or other steps executes in turn or alternately.
The above is only some embodiments of the application, it is noted that those skilled in the art are come
It says, under the premise of not departing from the application principle, several improvements and modifications can also be made, these improvements and modifications also should be regarded as
The protection scope of the application.
Claims (10)
1. a kind of log rank method of adjustment characterized by comprising
Obtain the corresponding current performance indication information of destination service interface;
Based on the current performance indication information and scheduled threshold condition, determine to the corresponding service of the destination service interface
The adjustment information that the rank of log is adjusted;
It is adjusted based on rank of the adjustment information to the corresponding serve log of the destination service interface.
2. the method according to claim 1, wherein it is described based on the current performance indication information with it is scheduled
Threshold condition determines the adjustment information being adjusted to the rank of the corresponding serve log of the destination service interface, wraps before
It includes:
The corresponding serve log of the destination service interface is obtained, and determines the corresponding serve log of the destination service interface
Current level information;
Described to be based on the current performance indication information and scheduled threshold condition, determination is corresponding to the destination service interface
The adjustment information that the rank of serve log is adjusted, comprising:
Based on current performance indication information service day corresponding with scheduled threshold condition and the destination service interface
The current level information of will determines and believes the adjustment that the rank of the corresponding serve log of the destination service interface is adjusted
Breath.
3. according to the method described in claim 2, it is characterized in that, determining the corresponding serve log of the destination service interface
Mode includes at least one of the following:
Service interface and service relation table based on pre-configuration, determine the corresponding serve log of the destination service interface;
It is the global serial number of service request distribution based on system, determines the corresponding serve log of the destination service interface, institute
State global serial number be the destination service interface to the service request when system distribute to the service request only
One number.
4. method according to claim 1-3, which is characterized in that the performance index information includes amount of access letter
Breath and/or response time information.
5. a kind of log level adjusting device characterized by comprising
First obtains module, for obtaining the corresponding current performance indication information of destination service interface;
Determining module, for obtaining the current performance indication information and scheduled threshold value item that module obtains based on described first
Part determines the adjustment information being adjusted to the rank of the corresponding serve log of the destination service interface;
Module is adjusted, the adjustment information determining for module based on the determination is to the corresponding clothes of the destination service interface
The rank of business log is adjusted.
6. device according to claim 5, which is characterized in that the device further include:
Second obtains module, for obtaining the corresponding serve log of the destination service interface, and determines that the destination service connects
The current level information of the corresponding serve log of mouth;
The determining module is specifically used for based on the current performance indication information and scheduled threshold condition and described second
The current level information for the corresponding serve log of the destination service interface that module obtains is obtained, is determined to the destination service
The adjustment information that the rank of the corresponding serve log of interface is adjusted.
7. device according to claim 5, which is characterized in that determine the corresponding serve log of the destination service interface
Mode includes at least one of the following:
Service interface and service relation table based on pre-configuration, determine the corresponding serve log of the destination service interface;
It is the global serial number of service request distribution based on system, determines the corresponding serve log of the destination service interface, institute
State global serial number be the destination service interface to the service request when system distribute to the service request only
One number.
8. according to the described in any item devices of claim 5-7, which is characterized in that the performance index information includes amount of access letter
Breath and/or response time information.
9. a kind of electronic equipment characterized by comprising
One or more processors;
Memory;
One or more application program, wherein one or more of application programs are stored in the memory and are configured
To be executed by one or more of processors, one or more of programs are configured to: being executed according to claim 1 to 4
Described in any item log rank methods of adjustment.
10. a kind of computer readable storage medium, which is characterized in that the computer storage medium refers to for storing computer
It enables, when run on a computer, computer is allowed to execute log described in any one of the claims 1 to 4
Rank adjusting method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910562193.2A CN110351126A (en) | 2019-06-26 | 2019-06-26 | Log rank method of adjustment, device and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910562193.2A CN110351126A (en) | 2019-06-26 | 2019-06-26 | Log rank method of adjustment, device and electronic equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110351126A true CN110351126A (en) | 2019-10-18 |
Family
ID=68183206
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910562193.2A Pending CN110351126A (en) | 2019-06-26 | 2019-06-26 | Log rank method of adjustment, device and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110351126A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111182066A (en) * | 2019-12-31 | 2020-05-19 | 青梧桐有限责任公司 | Log level dynamic adjustment method based on token authentication |
CN112100043A (en) * | 2020-08-28 | 2020-12-18 | 珠海格力电器股份有限公司 | Method and device for adjusting log level of equipment, storage medium and electronic device |
US20220043704A1 (en) * | 2017-01-27 | 2022-02-10 | Pure Storage, Inc. | Increasing Or Decreasing The Amount Of Log Data Generated Based On Performance Characteristics Of A Device |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105933163A (en) * | 2016-06-24 | 2016-09-07 | 微梦创科网络科技(中国)有限公司 | Real-time distributed debugging tracking method and system |
CN106681891A (en) * | 2015-11-05 | 2017-05-17 | 阿里巴巴集团控股有限公司 | Method and device for adjusting log levels in Java application system |
CN106775885A (en) * | 2016-12-26 | 2017-05-31 | 中国建设银行股份有限公司 | A kind of daily record output control method and system and bank management system |
CN107040415A (en) * | 2017-04-06 | 2017-08-11 | 青岛海信宽带多媒体技术有限公司 | A kind of terminal and data reporting method, server and data receiver method |
CN107612950A (en) * | 2016-07-11 | 2018-01-19 | 阿里巴巴集团控股有限公司 | A kind of method, apparatus, system, electronic equipment that service is provided |
CN107678908A (en) * | 2017-06-23 | 2018-02-09 | 平安科技(深圳)有限公司 | Log recording method, device, computer equipment and storage medium |
CN107947954A (en) * | 2016-10-12 | 2018-04-20 | 腾讯科技(深圳)有限公司 | Dynamic adjustment journal stage other system, method and server |
CN108108231A (en) * | 2016-11-24 | 2018-06-01 | 阿里巴巴集团控股有限公司 | Generation, processing method, device, system and the electronic equipment of user's request |
CN108173915A (en) * | 2017-12-21 | 2018-06-15 | 中国联合网络通信集团有限公司 | Call chain processing method and processing device |
JP2018097461A (en) * | 2016-12-09 | 2018-06-21 | 株式会社日立製作所 | Computer system, log analysis method and log analysis device |
CN108804152A (en) * | 2018-05-04 | 2018-11-13 | 北京信安世纪科技股份有限公司 | Configure the adjusting method and device of parameter |
CN108846070A (en) * | 2018-06-07 | 2018-11-20 | 北京京东尚科信息技术有限公司 | Log processing method, system, electronic equipment and the storage medium of distributed system |
CN109600279A (en) * | 2018-12-14 | 2019-04-09 | 平安城市建设科技(深圳)有限公司 | Dynamic monitoring and controlling method, equipment, storage medium and device based on log stream |
-
2019
- 2019-06-26 CN CN201910562193.2A patent/CN110351126A/en active Pending
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106681891A (en) * | 2015-11-05 | 2017-05-17 | 阿里巴巴集团控股有限公司 | Method and device for adjusting log levels in Java application system |
CN105933163A (en) * | 2016-06-24 | 2016-09-07 | 微梦创科网络科技(中国)有限公司 | Real-time distributed debugging tracking method and system |
CN107612950A (en) * | 2016-07-11 | 2018-01-19 | 阿里巴巴集团控股有限公司 | A kind of method, apparatus, system, electronic equipment that service is provided |
CN107947954A (en) * | 2016-10-12 | 2018-04-20 | 腾讯科技(深圳)有限公司 | Dynamic adjustment journal stage other system, method and server |
CN108108231A (en) * | 2016-11-24 | 2018-06-01 | 阿里巴巴集团控股有限公司 | Generation, processing method, device, system and the electronic equipment of user's request |
JP2018097461A (en) * | 2016-12-09 | 2018-06-21 | 株式会社日立製作所 | Computer system, log analysis method and log analysis device |
CN106775885A (en) * | 2016-12-26 | 2017-05-31 | 中国建设银行股份有限公司 | A kind of daily record output control method and system and bank management system |
CN107040415A (en) * | 2017-04-06 | 2017-08-11 | 青岛海信宽带多媒体技术有限公司 | A kind of terminal and data reporting method, server and data receiver method |
CN107678908A (en) * | 2017-06-23 | 2018-02-09 | 平安科技(深圳)有限公司 | Log recording method, device, computer equipment and storage medium |
CN108173915A (en) * | 2017-12-21 | 2018-06-15 | 中国联合网络通信集团有限公司 | Call chain processing method and processing device |
CN108804152A (en) * | 2018-05-04 | 2018-11-13 | 北京信安世纪科技股份有限公司 | Configure the adjusting method and device of parameter |
CN108846070A (en) * | 2018-06-07 | 2018-11-20 | 北京京东尚科信息技术有限公司 | Log processing method, system, electronic equipment and the storage medium of distributed system |
CN109600279A (en) * | 2018-12-14 | 2019-04-09 | 平安城市建设科技(深圳)有限公司 | Dynamic monitoring and controlling method, equipment, storage medium and device based on log stream |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20220043704A1 (en) * | 2017-01-27 | 2022-02-10 | Pure Storage, Inc. | Increasing Or Decreasing The Amount Of Log Data Generated Based On Performance Characteristics Of A Device |
US11726850B2 (en) * | 2017-01-27 | 2023-08-15 | Pure Storage, Inc. | Increasing or decreasing the amount of log data generated based on performance characteristics of a device |
CN111182066A (en) * | 2019-12-31 | 2020-05-19 | 青梧桐有限责任公司 | Log level dynamic adjustment method based on token authentication |
CN112100043A (en) * | 2020-08-28 | 2020-12-18 | 珠海格力电器股份有限公司 | Method and device for adjusting log level of equipment, storage medium and electronic device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110351126A (en) | Log rank method of adjustment, device and electronic equipment | |
CN103186466B (en) | Information interactive testing device and method based on association automatic generating test case | |
CN104869023B (en) | A kind of time-correcting method, apparatus and system | |
CN107967316A (en) | A kind of method of data synchronization, equipment and computer-readable recording medium | |
CN107819861A (en) | Business data processing method, apparatus and system | |
CN107689982A (en) | Multi-data source method of data synchronization, application server and computer-readable recording medium | |
CN105530272B (en) | A kind of synchronous method and device using data | |
WO2009083827A1 (en) | Methods and systems for generating availability management framework (amf) configurations | |
CN108134690B (en) | Network service deployment process control method, device and system | |
CN102105848A (en) | A resource manager for managing hardware resources | |
US20170336846A1 (en) | Power distribution for mobile devices | |
CN108197155A (en) | Information data synchronous method, device and computer readable storage medium | |
CN108549592A (en) | A kind of monitoring method and monitoring device, application server of database connection pool | |
CN106406821A (en) | Data processing request sorting method and device | |
CN104866556A (en) | Database fault handling method and apparatus, and database system | |
CN107360233A (en) | Method, apparatus, equipment and the readable storage medium storing program for executing that file uploads | |
CN109450708A (en) | A kind of Nginx Dynamic Configuration and system | |
CN111163149B (en) | Intelligent contract platform method based on block chain | |
CN109739627A (en) | Dispatching method, electronic equipment and the medium of task | |
CN109840074A (en) | A kind of business generating method, device and the network equipment | |
CN109684084A (en) | A kind of distribution method of bus resource, system and associated component | |
CN109379158A (en) | Increase method for synchronizing time, device and the equipment of node in a kind of storage cluster newly | |
CN105635173A (en) | Intelligent power distribution terminal communication weak coupling modularized system and method | |
CN106294037A (en) | Strike-machine method of testing and device | |
CN105978709A (en) | Application upgrading method and device thereof |
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: 20191018 |