CN110096419A - Acquisition methods, interface log management server and the service server of interface log - Google Patents
Acquisition methods, interface log management server and the service server of interface log Download PDFInfo
- Publication number
- CN110096419A CN110096419A CN201910322385.6A CN201910322385A CN110096419A CN 110096419 A CN110096419 A CN 110096419A CN 201910322385 A CN201910322385 A CN 201910322385A CN 110096419 A CN110096419 A CN 110096419A
- Authority
- CN
- China
- Prior art keywords
- interface
- log
- identifier information
- serial number
- interface 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
- 238000000034 method Methods 0.000 title claims abstract description 54
- 230000004044 response Effects 0.000 claims abstract description 18
- 230000008569 process Effects 0.000 claims description 19
- 238000012545 processing Methods 0.000 claims description 12
- 238000004891 communication Methods 0.000 claims description 3
- 230000006870 function Effects 0.000 description 14
- 238000011160 research Methods 0.000 description 3
- 230000006399 behavior Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 2
- 238000004422 calculation algorithm Methods 0.000 description 2
- 238000013461 design Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000003306 harvesting Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 230000000737 periodic effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0766—Error or fault reporting or storing
- G06F11/0778—Dumping, i.e. gathering error/state information after a fault for later diagnosis
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/30—Monitoring
- G06F11/34—Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
- G06F11/3466—Performance evaluation by tracing or monitoring
- G06F11/3476—Data logging
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Hardware Design (AREA)
- Health & Medical Sciences (AREA)
- Biomedical Technology (AREA)
- Debugging And Monitoring (AREA)
- Telephonic Communication Services (AREA)
Abstract
The present embodiments relate to Internet technical fields, disclose the acquisition methods, interface log management server and service server of a kind of interface log.In embodiment of the present invention, the interface log that each operation system reports is collected, wherein interface log is that operation system is generated in response to interface call request;Interface identifier information is included at least in interface log, interface identifier information is generated in real time based on the interface identifier information carried in interface call request;In response to interface log look-up command, simultaneously displaying target interface log is searched from the interface log being collected into based on interface log look-up command and interface identifier information.Operation personnel is facilitated quickly to check the interface log of each server, and can be according to these quick positioning failures of interface log.
Description
Technical field
The present embodiments relate to Internet technical field, in particular to a kind of acquisition methods of interface log, interface day
Will management server and service server.
Background technique
Inside a complete information system, log system is a very important functional component, it can be with
All behaviors caused by system are recorded, and are expressed according to certain specification.Operation personnel can be remembered according to log system
The information of record is that system carries out misarrangement, the performance of optimization system, or the behavior according to these information adjustment system.
Application programming interfaces are some functions predetermined, it is therefore an objective to it is soft based on certain with developer to provide application program
Part or hardware are able to the ability of one group of routine of access, and are not necessarily to access source code, or understand the details of internal work mechanism.It lifts a
Example, research staff is during developing first item application software, it is desirable to call the partial function of second item software to use, show
So, research staff's a line a line see the source code of second item software and analyze its function realization process be very consumption energy, and
And the source code of second item software also can not necessarily disclose, therefore, research staff wants that the partial function of second item software is called to have
Certain difficulty.During actual development, in order to solve this problem, the developer of software would generally be by each of software
Functional module is write as function and is packaged, and when there is operation personnel to want to call some functional module, calls directly this function
The corresponding function interface of module just, is not required to it is to be understood that specific function realizes process, in this way, can protect operation personnel can
Using this function, and can guarantee that source code is not leaked, at the same can also when software value it is bigger, more vitality.Also
It is to say, in practical applications, the server of various application software generally can all provide some interfaces for other server calls.
At least there are the following problems in the prior art for inventor's discovery: operation personnel is searching during positioning failure
It when Suo Zhi, since the condition of lookup can not be very accurate, often will appear a plurality of log recording, at this moment need further according to asking
Seeking time goes to analyze which log information specifically corresponded to, and takes time and effort in this way, and the time of log analysis is long, positioning failure when
Between it is also just very long.
Summary of the invention
The acquisition methods for being designed to provide a kind of interface log, the interface log management server of embodiment of the present invention
And service server, operation personnel can be facilitated quickly to check the interface log of each server, and can be fast according to these interface logs
Fast positioning failure.
In order to solve the above technical problems, embodiments of the present invention provide a kind of interface journal obtaining method, including with
Lower step: collecting the interface log that each operation system reports, and wherein interface log is operation system in response to interface call request
And generate;Interface identifier information is included at least in interface log, interface identifier information is to be based on carrying in interface call request
Interface identifier information generate in real time;In response to interface log look-up command, it is based on interface log look-up command and interface mark
Know information and searches simultaneously displaying target interface log from the interface log being collected into.
Embodiments of the present invention additionally provide a kind of interface log management server, comprising: at least one processor;With
And the memory being connect at least one processor communication;Wherein, memory is stored with and can be executed by least one processor
Instruction, instruction is executed by least one processor, so that at least one processor is able to carry out above-mentioned interface log acquisition side
Method.
Embodiments of the present invention additionally provide a kind of non-volatile memory medium, for storing computer-readable program,
The computer-readable program is for executing above-mentioned interface journal obtaining method for computer.
The interface log that embodiment of the present invention reports in terms of existing technologies, by collecting each operation system, can
The interface log of each operation system is put together;Wherein, interface log is that operation system is given birth in response to interface call request
At;Interface identifier information is included at least in interface log, interface identifier information is connect based on what is carried in interface call request
Mouth identification information generates in real time;Instruction and interface identifier information are checked based on log, so that it may directly in the interface log of collection
It is middle to search interface log corresponding with log lookup information, since interface log no longer mixes with other log informations,
Therefore many non-interface logs have been filtered out, workload of operation personnel when checking interface log has been alleviated, thus greatly
The time that operation personnel checks problem is saved greatly;The interface log of each server is summarised on a platform, and operation personnel can
The interface log of each server is directly seen on this platform, is searching the calling situation between each server in this way
When with regard to much more convenient;And the interface identifier information of the interface identifier information and called side in the interface log of each operation system
Correlation, therefore can more rapidly find is malloc failure malloc when carrying out interface calling between which two operation system, to may make
Operation personnel being capable of faster positioning failure.
In addition, interface identifier information further include: call serial number, call serial number for identifying belonging to interface log
Operation system is in the sequence being called in handling user's request process.Serial number is called in setting, so that in processing one
During secondary user's access, the called sequence of each interface is recorded, and operation personnel is facilitated to check a user
Interface in request process calls link.
In addition, calling the generation method of serial number includes: the interface identifier information for obtaining and carrying in interface call request;
If the interface identifier information carried in interface call request is sky, serial number will be called to be provided for instruction and called for the first time
Value, if the interface identifier information carried in interface call request be not it is empty, according to the interface carried in interface call request
The calling serial number that identification information is included determines current calling serial number.According to the interface mark in interface call request
Know information, it can be appreciated that called side order called during handling user's request, to facilitate operation personnel
Recognize the calling link of user's request, and is determined according to the calling serial number for including in the interface call request of called side
The order that operation system is called in handling user's request process, as a result reliably, exploitativeness is strong.
In addition, the calling serial number that the above-mentioned interface identifier information according in interface call request is included, determination is worked as
Preceding calling serial number, specifically includes: the calling sequence for being included by the interface identifier information carried in interface call request is compiled
Number a preset value is added, calls serial number as current, wherein preset value is greater than zero.The tune that will include in interface call request
The calling sequence for obtaining this interface calling plus preset value with serial number, so that in the mistake for handling user access
The calling sequence of Cheng Zhong, each interface are incrementally recorded, and realize simply, operation personnel is facilitated to check operation system
Calling situation and failure is positioned.
In addition, above-mentioned interface identifier information is generated according to following information according to preset coding rule: the mark of operation system
Knowledge, interface resource identifier, the identification information of user's request, calling serial number.These letters for including in interface identifier information
Breath can clearly embody called operation system, called interface, which specific corresponding user this time be called
The sequence that request and interface are called, so that operation personnel uses during grasping user's request of processing comprehensively
Operation system resource, and to these information according to preset coding rule carry out coding may make between different operation systems
Go on smoothly information transmitting.
In addition, interface log look-up command includes to search the target interface of generation in processing target user's request process
Simultaneously displaying target interface is searched in log based on interface log look-up command and interface identifier information from the interface log being collected into
Log specifically includes: finding out the interface log of the identification information comprising target user's request in interface identifier information, is determined as
Target interface log;Extract the calling serial number in the interface identifier information of target interface log;According to call serial number,
Successively displaying target interface log.The interface log of identification information will be requested to find out comprising target user, and according to calling
Serial number is successively shown, so as to be shown in processing target user's request process with most intuitive way to operation personnel
The order of total interface and calling facilitates operation personnel's problem analysis.
In addition, the above method further include: instruct in response to interface log statistic, determined from the interface log being collected into
Interface log statistic instructs corresponding interface log to be analyzed, includes based on the instruction of interface log statistic and interface log to be analyzed
Interface identifier information, treat analysis interface log and counted and show statistical result.Interface log to be analyzed is carried out
It counts and shows statistical result, operation personnel can be helped to be searched problem according to the analysis result of interface log to be analyzed.
Detailed description of the invention
One or more embodiments are illustrated by the picture in corresponding attached drawing, these exemplary theorys
The bright restriction not constituted to embodiment.
Fig. 1 is the interface journal obtaining method flow chart that first embodiment provides according to the present invention;
Fig. 2 is the interface journal obtaining method flow chart that second embodiment provides according to the present invention;
Fig. 3 is the interface log management server structural schematic diagram that third embodiment provides according to the present invention.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with attached drawing to the present invention
Each embodiment be explained in detail.However, it will be understood by those skilled in the art that in each embodiment party of the present invention
In formula, in order to make the reader understand this application better, many technical details are proposed.But even if without these technical details
And various changes and modifications based on the following respective embodiments, the application technical solution claimed also may be implemented.With
Under the division of each embodiment be for convenience, any restriction should not to be constituted to specific implementation of the invention, it is each
Embodiment can be combined with each other mutual reference under the premise of reconcilable.
The first embodiment of the present invention is related to a kind of interface journal obtaining methods.In present embodiment, each business is collected
The interface log that system reports, wherein interface log is that operation system is generated in response to interface call request;Interface log
In include at least interface identifier information, interface identifier information is real-time based on the interface identifier information carried in interface call request
It generates;In response to interface log look-up command, connect based on interface log look-up command and interface identifier information from what is be collected into
Simultaneously displaying target interface log is searched in mouth log.Operation personnel is greatly saved and checks the time of problem, and can help to transport
The quick positioning failure of battalion personnel.The realization details of the interface journal obtaining method of present embodiment is carried out specifically below
Bright, the following contents only for convenience of the realization details provided is understood, not implements the necessary of this programme.
Interface journal obtaining method flow chart in present embodiment is as shown in Figure 1, specifically described below.
Step 101, the interface log that each operation system reports is collected.
Specifically, interface log is the log that operation system is generated in response to interface call request, operation personnel can
Write script file in each operation system, enable each operation system by the interface log of itself report to one it is unified
Interface log management server, the interface log reported by interface log management server come each operation system of periodic harvest,
Include whether successfully etc. interface calls the time occurred, interface to call information in interface log, further includes interface identifier information, this
In described interface identifier information be to be generated in real time based on the interface identifier information carried in interface call request, in practical reality
Shi Zhong, can be by interface call request come passing interface identification information when being called between each interface, that is to say, that adjusted
The interface identifier information of operation system and the interface identifier information of called side are related.For example, operation system A is in response to business
After the interface call request that system B is sent, the interface call request that parsing operation system B is sent, and wrapped according in parsing result
The interface identifier information contained generates the interface identifier information of oneself.
Specifically, may include calling serial number in interface identifier information, call serial number for identifying described connect
The sequence that the mouth affiliated operation system of log is called in handling user's request process.If the interface call request of called side
The interface identifier information of middle carrying is sky, shows that operation system belonging to current interface is first in responding current user's request
A called operation system can will call serial number to be provided for the value that instruction is called for the first time, for example, primary in processing
It when user requests, needs first to call the interface 1 of operation system A, then calls the interface 2 of operation system B by operation system A, then,
The called sequence of interface 1 is to call for the first time, calls serial number to may be configured as 1, the called sequence of interface 2 is second of quilt
It calls, calling serial number can be 2.If the interface identifier information carried in the interface call request of called side is not sky, show
Operation system belonging to current interface is to be called again in current user requests after called side operation system is called,
Current calling sequence can be determined, for example, can incite somebody to action according to the calling sequence that the interface identifier information in interface call request includes
The calling serial number that the interface identifier information carried in interface call request is included adds a preset value for being greater than zero, as
Presently described calling serial number.In one example, preset value 1, operation system B receive the tune of operation system A transmission
With the interface call request of the interface 2 of operation system B, there are interface identifier information in this interface call request, and the interface
Calling serial number in identification information is 3, then the calling sequence in the interface identifier information of the interface 2 of operation system B is compiled
It number can be 3+1=4.
Step 102, in response to interface log look-up command, the interface log look-up command and the interface identifier are based on
Information is searched from the interface log being collected into and displaying target interface log.
Specifically, operation personnel when requiring to look up log, can issue log to interface log management server and look into
Instruction is looked for, after receiving log look-up command, interface log management server responds the interface log look-up command, from collection
To interface log in search satisfactory target interface log, and provide a log billboard, the target found connect
Mouth journal displaying is on this billboard.
In practical applications, in order to complete some user request, relying solely on an operation system is usually not finish,
It is generally necessary to which an operation system calls another operation system, or even an operation system is needed to call other multiple business systems
System could complete, during this calling, if the server of some operation system have occurred failure cause calling not at
Function can only see request failure and not can know that the reason of failure occurs in client, operation personnel in order to find out problem,
It needs to check system log, according to the time that request occurs, the interface type etc. of request obtains relevant log, further according to this
A little log informations go to check out on earth be call which server it is called when malloc failure malloc, orientation problem.
In this process, it since there are many system log quantity of each server, is searched in system one by one corresponding
Interface log complex steps, it is very time-consuming.Present embodiment compared with the prior art for, reported by collecting each operation system
Interface log, the interface log of each operation system can be put together;Wherein, interface log is operation system in response to interface
Call request and generate;Interface identifier information is included at least in interface log, interface identifier information is asked based on interface calling
The interface identifier information of middle carrying is asked to generate in real time;Instruction and interface identifier information are checked based on log, so that it may directly received
Interface log corresponding with log lookup information is searched in the interface log of collection, since interface log is no longer believed with other logs
Breath mixes, therefore has filtered out many non-interface logs, alleviates work of operation personnel when checking interface log
It measures, so that the time that operation personnel checks problem be greatly saved;The interface log of each server is summarised on a platform,
Operation personnel can directly see the interface log of each server on this platform, search between each server in this way
With regard to much more convenient when calling situation;And interface identifier information in the interface log of each operation system and called side connect
Mouth identification information is related, therefore can more rapidly find is malloc failure malloc when carrying out interface calling between which two operation system,
To aloow the faster positioning failure of operation personnel.
Second embodiment of the present invention is related to a kind of interface journal obtaining method.Second embodiment and the first embodiment party
Formula is roughly the same, is in place of the main distinction: in second embodiment of the invention, interface log look-up command includes to search
In processing target user's request process, the target interface log of generation, interface log management server can will include target user
The interface log of request identification information is found out, and is successively shown according to calling serial number.
In the present embodiment, the mark in interface identifier information including operation system, interface resource identifier, user ask
The mode of index coding can be used in the identification information and calling serial number, these information asked, and forms by certain coding rule
One interface identifier information.
Wherein, the mark of operation system can be used for determining interface log from which operation system;Interface resource mark
Symbol can be used for determining that log corresponds to which interface in operation system, i.e., when which interface specifically in operation system is called
It generates;The identification information of user's request is used to determine that the log to be requested for which user and generated, user's request
The mode of identification information available random code indicates, i.e., obtains unique value at random to identify specific user's request.Interface
These information for including in identification information can clearly embody called operation system, called interface, this time adjust
The sequence being called with which specific corresponding user's request and interface, so that operation personnel grasps processing one comprehensively
The operation system resource used during secondary user's request, and encoding to these information according to preset coding rule can
So that going on smoothly information transmitting between different operation systems.
The specific flow chart of present embodiment is as shown in Fig. 2, specifically described below.
Step 201, the interface log that each operation system reports is collected.
Step 201 is roughly the same with the step 101 in first embodiment, and to avoid repeating, which is not described herein again.
Step 202, it in response to interface log look-up command, finds out in interface identifier information comprising target user's request
The interface log of identification information, is determined as target interface log.
Specifically, interface log look-up command may include searching the mesh of generation in processing target user's request process
Tag splice mouth log.Due to all can during processing target user request in the interface identifier information of the interface log of generation
Identification information including target user's request refers to the identification information for the user's request that sets the goal in interface log look-up command, connects
Mouth log management server is after response interface log look-up command, so that it may which the identification information based on target user is found out
The corresponding interface log of all called interfaces in target user's request process.
It also may include time, to be checked that interface log occurs in interface log look-up command in other implementation methods
The interface identifier looked for or other interface identifier information etc..In actual implementation, if it is desired to search certain user's request process
In the corresponding interface log of all called interfaces, can also time for occurring of the log searched of appropriate adjustment, for example, user asks
Ask generation time be 12:00, then can be arranged in interface log look-up command to be searched interface log generation when
Between 11;55, between 12:05, to obtain the total interface log generated within this period, search in conjunction with log
User in instruction requests identification information etc., so that it may filter out target interface log.
Step 203, the calling serial number in the interface identifier information of target interface log is extracted.
Specifically, the calling sequential encoding parsed can be extracted after finding each target interface log.
Step 204, according to calling serial number, successively displaying target interface log.
Specifically, after extracting calling sequential encoding, it can be according to calling serial number to each target interface log
It is ranked up, and the successively displaying target interface log on log billboard according to ranking results, wherein each interface log connects
Mouth identification information is shown in the head of interface log.
It is noted that interface log management server is after collecting interface log, if detecting some interface log
The interface call result of record is malloc failure malloc, and the tool of interface calling can be collected from operation system belonging to the interface log
The log recording of body process.For example, the interface 2 of interface log recording operation system B is when 12:00 is called by operation system A
Malloc failure malloc is sent out since 11:50 to 12:00 and operation system B then interface log management server collects operation system A
All log informations of raw data interaction, so that it is determined that the specifically mistake of which data interaction during this interface calls
Journey there is a problem.Interface log for interface malloc failure malloc, collecting the detailed log information called about this interface can
Help the concrete reason of operation personnel's analysis interface malloc failure malloc.
In addition, operation personnel can also issue log statistic instruction, day to interface log management server in actual implementation
Will statistics instruction specifically can be interface call success rate statistics, can also be the log quantity statistics for some interface,
The statistics etc. of the total interface of some operation system, for different statistical demands, the form for counting instruction is also different, for example,
The statistics of success rate is called for interface, just calls the function name of success rate in statistics instruction comprising interface identifier and calculating,
And be directed to some interface log statistic, statistics instruction in just comprising interface identifier and calculating log quantity function name.It connects
Mouth log management server is instructed in response to interface log statistic, and outgoing interface log statistic is determined from the interface log being collected into
Corresponding interface log to be analyzed is instructed, the interface identifier letter for including based on the instruction of interface log statistic and interface log to be analyzed
Breath treats analysis interface log and is counted and shown point that statistical result can help operation personnel according to interface log to be analyzed
Analysis result searches problem.
Present embodiment compared with the prior art for, will comprising target user request identification information interface log find out
Come, and according to calling serial number successively to show, so as to be shown to operation personnel in processing target with most intuitive way
Genuine total interface and the order of calling, facilitate operation personnel's problem analysis in user's request process.
The step of various methods divide above, be intended merely to describe it is clear, when realization can be merged into a step or
Certain steps are split, multiple steps are decomposed into, as long as including identical logical relation, all in the protection scope of this patent
It is interior;To adding inessential modification in algorithm or in process or introducing inessential design, but its algorithm is not changed
Core design with process is all in the protection scope of the patent.
Third embodiment of the invention is related to a kind of interface log management server, as shown in figure 3, interface log management takes
Business device 300 includes at least one processor 301;And the memory 302 with the communication connection of at least one processor 301;Its
In, memory 302 is stored with the instruction that can be executed by least one processor 301, and instruction is held by least one processor 301
Row, so that at least one processor 301 is able to carry out above-mentioned interface journal obtaining method.
Wherein, memory 302 is connected with processor 301 using bus mode, and bus may include any number of interconnection
Bus and bridge, bus is by one or more processors 301 together with the various circuit connections of memory 302.Bus may be used also
With by such as peripheral equipment, voltage-stablizer, together with various other circuit connections of management circuit or the like, these are all
It is known in the art, therefore, it will not be further described herein.Bus interface provides between bus and transceiver
Interface.Transceiver can be an element, be also possible to multiple element, such as multiple receivers and transmitter, provide for
The unit communicated on transmission medium with various other devices.The data handled through processor 301 pass through antenna on the radio medium
It is transmitted, further, antenna also receives data and transfers data to processor 301.
Processor 301 is responsible for management bus and common processing, can also provide various functions, including timing, periphery connects
Mouthful, voltage adjusting, power management and other control functions.And memory 302 can be used for storage processor 301 and execute
Used data when operation.
Four embodiment of the invention is related to a kind of computer readable storage medium, is stored with computer program.Computer
Above method embodiment is realized when program is executed by processor.
That is, it will be understood by those skilled in the art that implement the method for the above embodiments be can be with
Relevant hardware is instructed to complete by program, which is stored in a storage medium, including some instructions are to make
It obtains an equipment (can be single-chip microcontroller, chip etc.) or processor (processor) executes each embodiment method of the application
All or part of the steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey
The medium of sequence code.
It will be understood by those skilled in the art that the respective embodiments described above are to realize specific embodiments of the present invention,
And in practical applications, can to it, various changes can be made in the form and details, without departing from the spirit and scope of the present invention.
Claims (10)
1. a kind of interface journal obtaining method characterized by comprising
The interface log that each operation system reports is collected, wherein the interface log is that the operation system is called in response to interface
Request and generate;Interface identifier information is included at least in the interface log, the interface identifier information is connect based on described
What the interface identifier information carried in mouth call request generated in real time;
In response to interface log look-up command, based on the interface log look-up command and the interface identifier information from being collected into
The interface log in search and displaying target interface log.
2. interface journal obtaining method according to claim 1, which is characterized in that
It include calling serial number in the interface identifier information, the calling serial number is for identifying the interface log institute
Belong to the sequence that operation system is called in handling user's request process.
3. interface journal obtaining method according to claim 2, which is characterized in that the generation side for calling serial number
Method includes:
Obtain the interface identifier information carried in the interface call request;
If the interface identifier information carried in the interface call request is sky, the calling serial number is provided for
The value called for the first time is indicated, if the interface identifier information carried in the interface call request is not sky, according to the interface
The calling serial number that the interface identifier information carried in call request is included determines presently described calling serial number.
4. interface journal obtaining method according to claim 3, which is characterized in that described according to the interface call request
In the interface identifier information calling serial number that is included, determine presently described calling serial number, specifically include:
The calling serial number for being included by the interface identifier information carried in the interface call request adds a preset value, makees
For presently described calling serial number, wherein the preset value is greater than zero.
5. interface journal obtaining method according to any one of claim 2 to 4, which is characterized in that the interface identifier
Information is generated according to following information according to preset coding rule: the mark of operation system, interface resource identifier, user's request
Identification information, call serial number.
6. interface journal obtaining method according to claim 5, which is characterized in that
The interface log look-up command includes to search the target interface log of generation in processing target user's request process;
It is described to be looked into from the interface log being collected into based on the interface log look-up command and the interface identifier information
It looks for and displaying target interface log specifically includes:
The interface log for finding out the identification information comprising target user request in interface identifier information, is determined as institute
State target interface log;
Extract the calling serial number in the interface identifier information of the target interface log;
According to the calling serial number, the target interface log is successively shown.
7. interface journal obtaining method according to claim 5, which is characterized in that
The interface identifier information is shown in the head of the interface log.
8. interface journal obtaining method according to claim 5, which is characterized in that the method also includes:
It is instructed in response to interface log statistic, the interface log statistic instruction is determined from the interface log being collected into
Corresponding interface log to be analyzed, the interface mark for including based on interface log statistic instruction and the interface log to be analyzed
Know information, the interface log to be analyzed is counted and shows statistical result.
9. a kind of interface log management server characterized by comprising
At least one processor;And
The memory being connect at least one described processor communication;Wherein,
The memory is stored with the instruction that can be executed by least one described processor, and described instruction is by described at least one
It manages device to execute, so that at least one described processor is able to carry out the interface log acquisition as described in any in claim 1 to 8
Method.
10. a kind of non-volatile memory medium, for storing computer-readable program, the computer-readable program is by for based on
Calculation machine executes such as interface journal obtaining method described in any item of the claim 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910322385.6A CN110096419A (en) | 2019-04-22 | 2019-04-22 | Acquisition methods, interface log management server and the service server of interface log |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910322385.6A CN110096419A (en) | 2019-04-22 | 2019-04-22 | Acquisition methods, interface log management server and the service server of interface log |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110096419A true CN110096419A (en) | 2019-08-06 |
Family
ID=67445446
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910322385.6A Pending CN110096419A (en) | 2019-04-22 | 2019-04-22 | Acquisition methods, interface log management server and the service server of interface log |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110096419A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110825465A (en) * | 2019-11-06 | 2020-02-21 | 北京达佳互联信息技术有限公司 | Log data processing method and device, electronic equipment and storage medium |
CN110888790A (en) * | 2019-11-29 | 2020-03-17 | 杭州迪普科技股份有限公司 | Log management method and device, electronic equipment and storage medium |
CN111339380A (en) * | 2020-03-04 | 2020-06-26 | 北京新氧科技有限公司 | Interface time-consuming data processing method and related device |
CN112422337A (en) * | 2020-11-11 | 2021-02-26 | 网宿科技股份有限公司 | Method, system and device for generating log identification |
CN112564935A (en) * | 2019-09-26 | 2021-03-26 | 中兴通讯股份有限公司 | Interface information acquisition method, network management system and storage medium |
CN113094348A (en) * | 2021-03-19 | 2021-07-09 | 北京达佳互联信息技术有限公司 | Log management method and device |
CN115410290A (en) * | 2021-09-30 | 2022-11-29 | 北京罗克维尔斯科技有限公司 | Log transmission method and device and computing equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120096465A1 (en) * | 2010-10-18 | 2012-04-19 | Ricoh Company, Ltd. | Image forming apparatus, log management method, and storage medium |
CN106776803A (en) * | 2016-11-24 | 2017-05-31 | 北京锐安科技有限公司 | The update method and device of a kind of log recording |
CN107122290A (en) * | 2016-02-25 | 2017-09-01 | 阿里巴巴集团控股有限公司 | The recording method of log information and device |
CN108804644A (en) * | 2018-06-05 | 2018-11-13 | 中国平安人寿保险股份有限公司 | Interface log storing method, device, computer equipment and storage medium |
CN109344061A (en) * | 2018-09-25 | 2019-02-15 | 阿里巴巴集团控股有限公司 | A kind of method for detecting abnormality of interface, device, equipment and system |
-
2019
- 2019-04-22 CN CN201910322385.6A patent/CN110096419A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120096465A1 (en) * | 2010-10-18 | 2012-04-19 | Ricoh Company, Ltd. | Image forming apparatus, log management method, and storage medium |
CN107122290A (en) * | 2016-02-25 | 2017-09-01 | 阿里巴巴集团控股有限公司 | The recording method of log information and device |
CN106776803A (en) * | 2016-11-24 | 2017-05-31 | 北京锐安科技有限公司 | The update method and device of a kind of log recording |
CN108804644A (en) * | 2018-06-05 | 2018-11-13 | 中国平安人寿保险股份有限公司 | Interface log storing method, device, computer equipment and storage medium |
CN109344061A (en) * | 2018-09-25 | 2019-02-15 | 阿里巴巴集团控股有限公司 | A kind of method for detecting abnormality of interface, device, equipment and system |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112564935A (en) * | 2019-09-26 | 2021-03-26 | 中兴通讯股份有限公司 | Interface information acquisition method, network management system and storage medium |
CN110825465A (en) * | 2019-11-06 | 2020-02-21 | 北京达佳互联信息技术有限公司 | Log data processing method and device, electronic equipment and storage medium |
CN110825465B (en) * | 2019-11-06 | 2024-05-07 | 北京达佳互联信息技术有限公司 | Log data processing method and device, electronic equipment and storage medium |
CN110888790A (en) * | 2019-11-29 | 2020-03-17 | 杭州迪普科技股份有限公司 | Log management method and device, electronic equipment and storage medium |
CN110888790B (en) * | 2019-11-29 | 2024-02-27 | 杭州迪普科技股份有限公司 | Log management method and device, electronic equipment and storage medium |
CN111339380A (en) * | 2020-03-04 | 2020-06-26 | 北京新氧科技有限公司 | Interface time-consuming data processing method and related device |
CN111339380B (en) * | 2020-03-04 | 2023-12-22 | 北京新氧科技有限公司 | Interface time-consuming data processing method and related device |
CN112422337A (en) * | 2020-11-11 | 2021-02-26 | 网宿科技股份有限公司 | Method, system and device for generating log identification |
CN113094348A (en) * | 2021-03-19 | 2021-07-09 | 北京达佳互联信息技术有限公司 | Log management method and device |
CN113094348B (en) * | 2021-03-19 | 2024-02-23 | 北京达佳互联信息技术有限公司 | Log management method and device |
CN115410290A (en) * | 2021-09-30 | 2022-11-29 | 北京罗克维尔斯科技有限公司 | Log transmission method and device and computing equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110096419A (en) | Acquisition methods, interface log management server and the service server of interface log | |
US8151248B1 (en) | Method and system for software defect management | |
US9639446B2 (en) | Trace monitoring | |
CN111506498A (en) | Automatic generation method and device of test case, computer equipment and storage medium | |
US20080065588A1 (en) | Selectively Logging Query Data Based On Cost | |
US20190116236A1 (en) | System and method for selecting proxy computer | |
CN111367760B (en) | Log collection method and device, computer equipment and storage medium | |
CN115543577B (en) | Covariate-based Kubernetes resource scheduling optimization method, storage medium and device | |
CN109829688A (en) | Client, server, movable attendance checking method and computer readable storage medium | |
CN110084476B (en) | Case adjustment method, device, computer equipment and storage medium | |
CN111124791A (en) | System testing method and device | |
CN113220597A (en) | Test method, test device, electronic apparatus, and storage medium | |
CN109582751A (en) | A kind of measure and server of retrieval effectiveness | |
RU2532714C2 (en) | Method of acquiring data when evaluating network resources and apparatus therefor | |
CN112235358A (en) | Data acquisition method and device, electronic equipment and computer readable storage medium | |
CN114610689B (en) | Recording and analyzing method for request log in distributed environment | |
CN114531340A (en) | Log acquisition method and device, electronic equipment, chip and storage medium | |
CN114300146A (en) | User information safety processing method and system applied to intelligent medical treatment | |
CN102377582A (en) | Data uploading method and device | |
CN113342647A (en) | Test data generation method and device | |
CN107465762B (en) | Testing method and system for distributed storage system | |
CN112800102A (en) | Alarm correlation calculation method and device and calculation equipment | |
CN115878439B (en) | System performance bottleneck positioning method and device, electronic equipment and storage medium | |
CN115756968B (en) | Data backup method and system based on network and cloud platform | |
CN109684158A (en) | Method for monitoring state, device, equipment and the storage medium of distributed coordination system |
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: 20190806 |