[go: up one dir, main page]

CN104601666A - Log service method and cloud platform - Google Patents

Log service method and cloud platform Download PDF

Info

Publication number
CN104601666A
CN104601666A CN201410808678.2A CN201410808678A CN104601666A CN 104601666 A CN104601666 A CN 104601666A CN 201410808678 A CN201410808678 A CN 201410808678A CN 104601666 A CN104601666 A CN 104601666A
Authority
CN
China
Prior art keywords
application
user
user access
request
inquiry
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.)
Granted
Application number
CN201410808678.2A
Other languages
Chinese (zh)
Other versions
CN104601666B (en
Inventor
唐盛军
曾晶
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Hangzhou Huawei Digital Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Huawei Digital Technologies Co Ltd filed Critical Hangzhou Huawei Digital Technologies Co Ltd
Priority to CN201410808678.2A priority Critical patent/CN104601666B/en
Publication of CN104601666A publication Critical patent/CN104601666A/en
Application granted granted Critical
Publication of CN104601666B publication Critical patent/CN104601666B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/069Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/1805Append-only file systems, e.g. using logs or journals to store data
    • G06F16/1815Journaling file systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention provides a log service method and a cloud platform and relates to the field of computer applications. By means of the method and the cloud platform, developers can use the cloud platform log service function conveniently, and rapid development and deployment of applications are achieved. The method comprises receiving user access behavior information generated by access of a first application by at least one user through a log service unit; determining whether the first application requires to use log services; recording the user access behavior information of access of the first application by the users if the first application requires to use log services; receiving searching requirements for searching the first application user access behavior information, and displaying the recorded user access behavior information of user access of the first application.

Description

Log services method and cloud platform
Technical field
The present invention relates to computer application field, particularly relate to a kind of log services method and cloud platform.
Background technology
Along with the development of computer technology, cloud computing technology has become the important directions of computer nowadays Information Technology Development.So-called cloud computing technology refers to the increase of the related service based on the Internet, use and delivery mode, is usually directed to provide dynamically easily expansion and virtualized Internet resources by the Internet.
Cloud computing has three large service modes, SaaS (software as a service respectively, namely software serve), PaaS (namely platform as a service platform serves) and IaaS (infrastructureas a service, namely infrastructure serve), wherein: PaaS is the business model that cloud platform is provided as a kind of service, use to developer by the opening of cloud platform, application for developer provides central processing unit (English: Central Processing Unit, abbreviation: CPU), the hardware resources such as internal memory and operating system, the software resources such as procedure dependency storehouse, application developer need not be paid close attention to and apply the hardware environment needed for running, concentrate on application and development itself.Developer by after application and development, by application deployment to cloud platform, required software environment when the application being supplied to developer by cloud platform runs, and make developer carry out the O&M in later stage to it.
Usually, when the fault that developer wants the log information obtaining application to occur for position application or detect is applied, the log services that cloud platform provides can be used.First, developer creates log services example according to the log services on cloud platform, and application and the log services example created is bound; Then, developer adds additional code in the code logic of the application of exploitation, by log information during this additional code acquisition user's access application, and the log information of this application is outputted in the log services example of binding, the log information of application is preserved by log services example, so that later development person is by the log services example of access binding, inquiry obtains the log information of application.
Can find out, log services of the prior art just serves preservation log information, for the function of checking after developer, the acquisition of log information exports and then need be completed by adding additional code in the code logic of application by developer, so, add the development task of developer, be unfavorable for fast Development and the deployment of application.
Summary of the invention
Embodiments of the invention provide a kind of log services method and cloud platform, make developer can use the log services function of cloud platform comparatively easily, realize fast Development and the deployment of application.
For achieving the above object, embodiments of the invention adopt following technical scheme:
First aspect, the embodiment of the present invention provides a kind of log services method, is applied on cloud platform, and described cloud Platform deployment has log services unit and comprises multiple application of the first application; Described method comprises:
Described log services unit receives at least one user and accesses described first and apply the user access activity information that produces;
According to the described mark of the first application and the mark of described log services unit, determine whether described first application requires usage log service;
If determine, described first application requires usage log service, then the user access activity information of described first application of recording user access;
Receive the inquiry request of the user access activity information for inquiring about described first application, according to described inquiry request, the user of display record accesses the user access activity information of described first application.
In the first possible implementation of first aspect, in conjunction with first aspect,
Described according to the described mark of the first application and the mark of described log services unit, inquire about described first application and whether require that usage log service comprises:
According to the described mark of the first application and the mark of described log services unit, inquiry dedicated memory device, wherein, the corresponding relation of application that described memory module stores at least one service unit and binds mutually with service unit, described bind mutually with service unit be applied as: the application requiring the service using described service unit to provide;
If described memory module stores described log services unit and the described first corresponding relation applied, then determine that described first application requires usage log service;
If do not store described log services unit and the described first corresponding relation applied in described memory module, then determine described first application failed call usage log service.
In the implementation that the second of first aspect is possible, in conjunction with the first possible implementation of first aspect, user's described first user access activity information applied of accessing of described display record comprises:
The user of display record accesses the statistics of all information in the user access activity information of described first application.
In the third possible implementation of first aspect, in conjunction with first aspect to any one implementation in the possible implementation of the second of first aspect, described cloud platform is also deployed with front end distributed components; Described log services unit receive at least one user access described first apply the user access activity information that produces before, described method also comprises:
Described front end distributed components receives the solicited message of the first application described at least one user's request access, and described in obtaining, at least one user accesses the user access activity information that the first application produces;
Described log services unit receives at least one user and accesses described first and apply the user access activity information that produces and comprise:
Described log services unit receives at least one user that described front end distributed components sends and accesses described first and apply the user access activity information produced.
In the 4th kind of possible implementation of first aspect, in conjunction with the third possible implementation of first aspect, described user access activity packets of information is containing one or more in the request method of the uniform resource position mark URL of the IP address of time of user's access application, user, user's access application, port, the application of user's request access;
Wherein, the request method of described user's request access application is establishment POST mode, checks GET mode, renewal UPDATE mode, any one mode of deleting in DELETE mode.
In the 5th kind of possible implementation of first aspect, in conjunction with the 4th kind of possible implementation of first aspect, described inquiry request also comprises: query type; Wherein, described query type comprises: based on one or more in the inquiry of access time, IP address-based inquiry, the inquiry based on URL and port, the inquiry based on the request method of user's request access application;
User's described first user access activity information applied of accessing of described display record comprises:
The user corresponding with described query type of display record accesses the statistics of the user access activity information that described first applies.
Second aspect, the embodiment of the present invention provides cloud platform, and described cloud platform comprises: log services unit and comprise multiple application of the first application; Described log services unit comprises:
User access activity collection assembly, accesses described first and applies for receiving at least one user the user access activity information that produces;
Cloud control assembly, for according to the described mark of the first application and the mark of described log services unit, determines whether described first application requires usage log service;
Described user access activity collection assembly, if also for determining that described first application requires usage log service, then the user access activity information of described first application of recording user access;
Inquiry component exhibiting, receives the inquiry request of the user access activity information for inquiring about described first application, and according to described inquiry request, the user of display record accesses the user access activity information of described first application.
In the first possible implementation of second aspect, in conjunction with second aspect,
Described cloud control assembly, specifically for:
According to the described mark of the first application and the mark of described log services unit, inquiry dedicated memory device, wherein, the corresponding relation of application that described memory module stores at least one service unit and binds mutually with service unit, described bind mutually with service unit be applied as: the application requiring the service using described service unit to provide;
If described memory module stores described log services unit and the described first corresponding relation applied, then determine that described first application requires usage log service;
If do not store described log services unit and the described first corresponding relation applied in described memory module, then determine described first application failed call usage log service.
In the implementation that the second of second aspect is possible, in conjunction with the first possible implementation of second aspect or second aspect, described inquiry component exhibiting, specifically for:
The user of display record accesses the statistics of all information in the user access activity information of described first application.
In the third possible implementation of second aspect, in conjunction with second aspect to any one implementation in the possible implementation of the second of second aspect, described cloud platform also comprises:
Front end distributed components, for receive at described user access activity collection assembly at least one user access described first apply the user access activity information that produces before, receive the solicited message of the first application described at least one user's request access, described in obtaining, at least one user accesses the user access activity information that the first application produces;
Described user access activity collection assembly, specifically for:
At least one user receiving the distributed components transmission of described front end accesses described first and applies the user access activity information produced.
In the 4th kind of possible implementation of second aspect, in conjunction with the third possible implementation of second aspect, described user access activity packets of information is containing one or more in the request method of the uniform resource position mark URL of the IP address of time of user's access application, user, user's access application, port, the application of user's request access;
Wherein, the request method of described user's request access application is establishment POST mode, checks GET mode, renewal UPDATE mode, any one mode of deleting in DELETE mode.
In the 5th kind of possible implementation of second aspect, in conjunction with the 4th kind of possible implementation of second aspect, described inquiry request also comprises: query type; Wherein, described query type comprises: based on one or more in the inquiry of access time, IP address-based inquiry, the inquiry based on URL and port, the inquiry based on the request method of user's request access application;
Described inquiry component exhibiting, specifically for:
The user corresponding with described query type of display record accesses the statistics of the user access activity information that described first applies.
As from the foregoing, the embodiment of the present invention provides a kind of log services method and cloud platform, is provided record and show the function of user access activity information by the log services unit on cloud platform.Concrete, log services unit first obtains the user access activity information that at least one user accesses the first application; Determine whether described first application requires usage log service, and the first application requires usage log service if determine, then the user access activity information of described first application of recording user access; Receive the inquiry request of the user access activity information for inquiring about described first application, according to described inquiry request, the user of display record accesses the user access activity information of described first application.So, the function of record queries log information is realized by means of the log services unit on cloud platform, avoid existing by increasing additional records code in the application, the problem of the application and development added cost that also output journal information to daily record Service Instance causes is obtained by application self, make developer can use the log services function of cloud platform comparatively easily, realize fast Development and the deployment of application.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The structure chart of a kind of cloud platform that Fig. 1 provides for the embodiment of the present invention;
The flow chart of a kind of log services method that Fig. 2 provides for the embodiment of the present invention;
The schematic diagram of the query interface that Fig. 3 provides for the embodiment of the present invention;
The schematic diagram of the query interface that Fig. 4 provides for the embodiment of the present invention;
The structure chart of a kind of cloud platform that Fig. 5 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with accompanying drawing of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The method of the log services that the embodiment of the present invention provides can typically be applied in cloud platform, Fig. 1 shows the structural representation of cloud platform, as shown in Figure 1, this cloud platform can comprise multiple application, front end distributed components 11 and the log services unit 10 of developer's exploitation, wherein, each application operates in independently in running environment, front end distributed components 11 is positioned at cloud platform rear end foremost, be one for receiving user to the access request of the application be deployed on cloud platform rear end and user access activity recorded information, and access request and user access activity information are forwarded to the application program of other assemblies of cloud platform rear end, log services unit 10 comprise for record and show user to application access line be the program of information, and this program is created according to the needs of serving user access activity record by developer, for performing the log services method that the embodiment of the present invention provides, wherein, the service of user access activity record be one for recording user to application access line be the program of information, cloud platform rear end can be deployed in advance by cloud platform management person, and the descriptor of this service is provided on the front end component exhibiting (as human-computer interaction interface) of cloud platform, create and use the flow process introduction of this service, and create or delete the interface of this service, this service routine can also be uploaded on the front end component exhibiting of cloud platform by third party ISP, audited by rear by cloud platform management person, be deployed in cloud platform rear end, and provide on the foreground component exhibiting of cloud platform the descriptor of this service, establishment and this service of use flow process introduction and create and delete the interface of this service, below log services method provided by the invention is introduced.
The flow chart of the log services method that Fig. 2 provides for the embodiment of the present invention one, as shown in Figure 2, the method can comprise:
201, log services unit receives at least one user and accesses first and apply the user access activity information that produces.
Wherein, described first application can be the arbitrary application on cloud platform.
Preferably, at least one user that the front end distributed components that log services unit can receive cloud platform sends accesses described first and applies the user access activity information produced; Wherein, described front end distributed components can receive the solicited message of the first application described in request access that at least one user sent by the front end component exhibiting of cloud platform, and obtains at least one user described and access the user access activity information that the first application produces.
Wherein, user access activity information can comprise one or more information following: the time of user's access application, the Internet Protocol (English: Internet Protocol of user, abbreviation: the URL(uniform resource locator) of IP address, user's access application (English: Uniform ResourceLocator, URL), the request method of port, user's request access application abbreviation:;
The request method of user's request access application can comprise establishment POST mode, checks GET mode, upgrades UPDATE mode, delete DELETE mode.
202, according to the described mark of the first application and the mark of described log services unit, determine whether described first application requires usage log service.
Preferably, log services unit can according to the described mark of the first application and the mark of described log services unit, inquiry dedicated memory device; If described memory module stores described log services unit and the described first corresponding relation applied, then determine that described first application requires usage log service; If do not store described log services unit and the described first corresponding relation applied in described memory module, then determine described first application failed call usage log service;
Wherein, the corresponding relation of application that described memory module stores at least one service unit and binds mutually with service unit, described bind mutually with service unit be applied as: the application requiring the service using described service unit to provide.
Such as, suppose in the present embodiment, there is log services unit in cloud platform upper administration, plays service unit, stores service unit, and the application of binding mutually with each unit is as shown in memory module (table 1), now, if first is applied as application 3, as shown in Table 1: log services unit and first is applied, and (applying 3) binds mutually; If first is applied as application 2, then as shown in Table 1: log services unit and first is applied, and (applying 2) does not bind.
Table 1
Service unit type The application of binding
Log services unit Application 1, application 3
Play service unit Application 1, application 2
Stores service unit Application 2, application 3
Wherein, the corresponding relation in memory module between service unit and application, is prestored according to the bind request of developer by cloud platform; Preferably, if the log services unit that developer determines according to self-demand to use cloud platform to provide provides log services for an application, then developer can according to the operating process of the binding log services unit that cloud platform front end component exhibiting provides, log services unit and application are bound mutually, and the bind request comprising the binding relationship of log services unit and application is sent to cloud platform, after cloud platform receives this bind request, binding relationship is stored in memory module, to realize by log services unit record and to show the access behavioural information of user to application.Such as, developer has application 1, application 2, application 3 and application 4 based on cloud platform development, the application of the log services needing usage log service unit to provide has: application 1, application 3, then application 1, application 3 can be bound with log services unit, and are stored in memory module by this binding relationship by cloud platform by developer mutually.
If 203 determine that described first application requires usage log service, then the user access activity information of described first application of recording user access.
Preferably, user access activity information user can being accessed the first application records in the form of a list.Such as, table 1 is the user access activity information that 4 users access the first application (application 1), comprises the time of user's access application and the request method of user's request access application.
204, receive the inquiry request of the user access activity information for inquiring about described first application, according to described inquiry request, the user of display record accesses the user access activity information of described first application.
Preferably, the inquiry request of the user access activity information for inquiring about described first application that developer is sent by a query interface of cloud platform front end can be received, and show that the statistics after inquiry is shown to described developer in interface by one of cloud platform front end; The schematic diagram of the query interface 30 that Fig. 3 provides for the embodiment of the present invention, comprise application message input field and inquire button, wherein, application message input field is for inputting application identification information; Described inquire button is for sending inquiry request; When developer is in application message input field input application identification information, and after pressing inquire button, acquiescence developer send inquiry request for asking all user access activity information of this application checking record, namely to the statistics of all user access activity information of described developer's display record; Such as, the application message of input is micro-letter, and the user behavior packets of information of record is containing user's access time and user's request method, then to developer show for the access time of micro-letter and the statistics of request method.
Further, the embodiment of the present invention can also need to carry out accordingly result inquiry according to developer, the schematic diagram of the query interface 30 that Fig. 4 provides for the embodiment of the present invention, as shown in Figure 4, this query interface 30 also comprises bag four options: based on the inquiry of access time, IP address-based inquiry, based on the inquiry of URL and port, the inquiry of request method based on the application of user's request access, so that developer selects one or more query types to carry out information inquiry needed for self on interface; Such as, developer chooses the inquiry of the request method based on the application of user's request access, then represent that the inquiry request of developer's transmission is only for the statistics of the request method of user's access application of requesting query record; If developer chooses the inquiry two based on the inquiry of access time and the request method based on the application of user's request access simultaneously, then represent that the inquiry request of developer's transmission is used for the statistics of user's access application time of requesting query record and request method two kinds of user behavior information of user's access application.
Further, described method also comprises:
If determine described first application failed call usage log service, then the user access activity information of not described first application of recording user access.
As from the foregoing, the embodiment of the present invention provides a kind of log services method, is provided record and show the function of user access activity information by the log services unit on cloud platform.Concrete, log services unit first obtains the user access activity information that at least one user accesses the first application; Determine whether described first application requires usage log service, and the first application requires usage log service if determine, then the user access activity information of described first application of recording user access; Receive the inquiry request of the user access activity information for inquiring about described first application, according to described inquiry request, the user of display record accesses the user access activity information of described first application.So, the function of record queries log information is realized by means of the log services unit on cloud platform, avoid existing by increasing additional records code in the application, the problem of the application and development added cost that also output journal information to daily record Service Instance causes is obtained by application self, make developer can use the log services function of cloud platform comparatively easily, realize fast Development and the deployment of application.
In addition, the invention process two, based on the structure chart of the cloud platform shown in Fig. 1, is specifically introduced log services unit 10, and as shown in Figure 1, described log services unit 10 can comprise:
User access activity collection assembly 101, accesses described first and applies for receiving at least one user the user access activity information that produces.
Cloud control assembly 102, for according to the described mark of the first application and the mark of described log services unit, determines whether described first application requires usage log service.
Wherein, described first application can be the arbitrary application on cloud platform; Described user access activity information can comprise one or more information following:
The time of user's access application, the Internet Protocol (English: InternetProtocol of user, abbreviation: the URL(uniform resource locator) of IP address, user's access application (English: Uniform Resource Locator, URL), the request method of port, user's request access application abbreviation:;
The request method of user's request access application can comprise establishment POST mode, checks GET mode, upgrades UPDATE mode, delete DELETE mode.
Described user access activity collection assembly 101, if also for determining that described first application requires usage log service, then the user access activity information of described first application of recording user access.
Inquiry component exhibiting 103, receives the inquiry request of the user access activity information for inquiring about described first application, and according to described inquiry request, the user of display record accesses the user access activity information of described first application.
Further, described cloud platform also comprises:
Front end distributed components 11, for receive at described user access activity collection assembly at least one user access described first apply the user access activity information that produces before, receive the solicited message of the first application described at least one user's request access, described in obtaining, at least one user accesses the user access activity information that the first application produces;
Described user access activity collection assembly 101, specifically for:
At least one user receiving the distributed components transmission of described front end accesses described first and applies the user access activity information produced.
Further, described cloud control assembly 102, specifically for:
According to the described mark of the first application and the mark of described log services unit, inquiry dedicated memory device; If described memory module stores described log services unit and the described first corresponding relation applied, then determine that described first application requires usage log service; If do not store described log services unit and the described first corresponding relation applied in described memory module, then determine described first application failed call usage log service;
Wherein, the corresponding relation of application that described memory module stores at least one service unit and binds mutually with service unit, described bind mutually with service unit be applied as: the application requiring the service using described service unit to provide.
Such as, suppose in the present embodiment, there is log services unit in cloud platform upper administration, plays service unit, stores service unit, and the application of binding mutually with each unit is as shown in memory module (table 1), now, if first is applied as application 3, as shown in Table 1: log services unit and first is applied, and (applying 3) binds mutually; If first is applied as application 2, then as shown in Table 1: log services unit and first is applied, and (applying 2) does not bind.
Wherein, the corresponding relation in memory module between service unit and application, is prestored according to the bind request of developer by cloud platform; Preferably, if the log services unit that developer determines according to self-demand to use cloud platform to provide provides log services for an application, then developer can according to the operating process of the binding log services unit that cloud platform front end component exhibiting provides, log services unit and application are bound mutually, and the bind request comprising the binding relationship of log services unit and application is sent to cloud platform, after cloud platform receives this bind request, binding relationship is stored in memory module, to realize by log services unit record and to show the access behavioural information of user to application.Such as, developer has application 1, application 2, application 3 and application 4 based on cloud platform development, the application of the log services needing usage log service unit to provide has: application 1, application 3, then application 1, application 3 can be bound with log services unit, and are stored in memory module by this binding relationship by cloud platform by developer mutually.
Further, described user access activity collection assembly 101, specifically for:
The user access activity information of user being accessed the first application records in the form of a list.Such as, table 1 is the user access activity information that 4 users access the first application (application 1), comprises the time of user's access application and the request method of user's request access application.
Further, described inquiry component exhibiting 103, specifically for:
Receive the inquiry request of the user access activity information for inquiring about described first application that developer is sent by a query interface of cloud platform front end, and show that the statistics after inquiry is shown to described developer in interface by one of cloud platform front end; The schematic diagram of the query interface 30 that Fig. 3 provides for the embodiment of the present invention, comprise application message input field and inquire button, wherein, application message input field is for inputting application identification information; Described inquire button is for sending inquiry request; When developer is in application message input field input application identification information, and after pressing inquire button, acquiescence developer send inquiry request for asking all user access activity information of this application checking record, namely to the statistics of all user access activity information of described developer's display record; Such as, the application message of input is micro-letter, and the user behavior packets of information of record is containing user's access time and user's request method, then to developer show for the access time of micro-letter and the statistics of request method.
Further, the embodiment of the present invention can also need to carry out accordingly result inquiry according to developer, the schematic diagram of the query interface 30 that Fig. 4 provides for the embodiment of the present invention, as shown in Figure 4, this query interface 30 also comprises bag four options: based on the inquiry of access time, IP address-based inquiry, based on the inquiry of URL and port, the inquiry of request method based on the application of user's request access, so that developer selects one or more query types to carry out information inquiry needed for self on interface; Such as, developer chooses the inquiry of the request method based on the application of user's request access, then represent that the inquiry request of developer's transmission is only for the statistics of the request method of user's access application of requesting query record; If developer chooses the inquiry two based on the inquiry of access time and the request method based on the application of user's request access simultaneously, then represent that the inquiry request of developer's transmission is used for the statistics of user's access application time of requesting query record and request method two kinds of user behavior information of user's access application.
As from the foregoing, the embodiment of the present invention provides a kind of cloud platform, is provided record and show the function of user access activity information by the log services unit on cloud platform.Concrete, log services unit first obtains the user access activity information that at least one user accesses the first application; Determine whether described first application requires usage log service, and the first application requires usage log service if determine, then the user access activity information of described first application of recording user access; Receive the inquiry request of the user access activity information for inquiring about described first application, according to described inquiry request, the user of display record accesses the user access activity information of described first application.So, the function of record queries log information is realized by means of the log services unit on cloud platform, avoid existing by increasing additional records code in the application, the problem of the application and development added cost that also output journal information to daily record Service Instance causes is obtained by application self, make developer can use the log services function of cloud platform comparatively easily, realize fast Development and the deployment of application.
In addition, Fig. 5 embodiment of the present invention also provides a kind of cloud platform 50, and as shown in Figure 5, this log services unit 50 can comprise: communication unit 501, processor 502, memory 503, at least one communication bus 504, for realizing connection between these devices and intercoming mutually;
Communication unit 501 can User Interface, for realizing the input and output function of cloud platform 50.User can be collected or neighbouring touch operation (such as user uses any applicable objects such as finger, stylus or annex to operate on communication unit 501) thereon, and drive corresponding jockey according to the formula preset, also can be used for sending the information inputted by developer or the information being supplied to developer.
Processor 502 may be a central processing unit (English: central processing unit, referred to as CPU).
Memory 503 can be that (English: volatile memory), such as (English: random-access memory, abridges: RAM) random access memory volatile memory; Or nonvolatile memory is (English: non-volatile memory), such as read-only memory is (English: read-only memory, abbreviation: ROM), flash memory is (English: flash memory), hard disk is (English: hard disk drive, abbreviation: HDD) or solid state hard disc (English: solid-state drive, abbreviation: SSD); Or the combination of the memory of mentioned kind, for the user access activity information of stored record, and provides instruction and data to processor 502.
Communication unit 501, accesses described first and applies for receiving at least one user the user access activity information that produces.
Processor 502, for according to the described mark of the first application and the mark of described log services unit, determines whether described first application requires usage log service;
If determine, described first application requires usage log service, then the user access activity information of described first application of recording user access.
Wherein, described first application can be the arbitrary application on cloud platform; Described user access activity information can comprise one or more information following:
The time of user's access application, the Internet Protocol (English: InternetProtocol of user, abbreviation: the URL(uniform resource locator) of IP address, user's access application (English: Uniform Resource Locator, URL), the request method of port, user's request access application abbreviation:;
The request method of user's request access application can comprise establishment POST mode, checks GET mode, upgrades UPDATE mode, delete DELETE mode.
Communication unit 501, also for receiving the inquiry request of the user access activity information for inquiring about described first application, according to described inquiry request, accesses the user access activity information of described first application by the user of the user interface display record of cloud platform.
Further, described communication unit 501, also for receive at described user access activity collection assembly at least one user access described first apply the user access activity information that produces before, receive the solicited message of the first application described at least one user's request access, described in obtaining, at least one user accesses the user access activity information that the first application produces.
Further, described processor 502, specifically for:
According to the described mark of the first application and the mark of described log services unit, inquiry dedicated memory device; If described memory module stores described log services unit and the described first corresponding relation applied, then determine that described first application requires usage log service; If do not store described log services unit and the described first corresponding relation applied in described memory module, then determine described first application failed call usage log service;
Wherein, the corresponding relation of application that described memory module stores at least one service unit and binds mutually with service unit, described bind mutually with service unit be applied as: the application requiring the service using described service unit to provide.
Such as, suppose in the present embodiment, there is log services unit in cloud platform upper administration, plays service unit, stores service unit, and the application of binding mutually with each unit is as shown in memory module (table 1), now, if first is applied as application 3, as shown in Table 1: log services unit and first is applied, and (applying 3) binds mutually; If first is applied as application 2, then as shown in Table 1: log services unit and first is applied, and (applying 2) does not bind.
Wherein, the corresponding relation in memory module between service unit and application, is prestored according to the bind request of developer by cloud platform; Preferably, if the log services unit that developer determines according to self-demand to use cloud platform to provide provides log services for an application, then developer can according to the operating process of the binding log services unit that cloud platform front end component exhibiting provides, log services unit and application are bound mutually, and the bind request comprising the binding relationship of log services unit and application is sent to cloud platform, after cloud platform receives this bind request, binding relationship is stored in memory module, to realize by log services unit record and to show the access behavioural information of user to application.Such as, developer has application 1, application 2, application 3 and application 4 based on cloud platform development, the application of the log services needing usage log service unit to provide has: application 1, application 3, then application 1, application 3 can be bound with log services unit, and are stored in memory module by this binding relationship by cloud platform by developer mutually.
Further, described processor 502, specifically for:
The user access activity information of user being accessed the first application records in the form of a list.Such as, table 1 is the user access activity information that 4 users access the first application (application 1), comprises the time of user's access application and the request method of user's request access application.
Further, described communication unit 501, specifically for:
Receive the inquiry request of the user access activity information for inquiring about described first application that developer is sent by a query interface of cloud platform front end, and show that the statistics after inquiry is shown to described developer in interface by one of cloud platform front end; The schematic diagram of the query interface 30 that Fig. 3 provides for the embodiment of the present invention, comprise application message input field and inquire button, wherein, application message input field is for inputting application identification information; Described inquire button is for sending inquiry request; When developer is in application message input field input application identification information, and after pressing inquire button, acquiescence developer send inquiry request for asking all user access activity information of this application checking record, namely to the statistics of all user access activity information of described developer's display record; Such as, the application message of input is micro-letter, and the user behavior packets of information of record is containing user's access time and user's request method, then to developer show for the access time of micro-letter and the statistics of request method.
Further, the embodiment of the present invention can also need to carry out accordingly result inquiry according to developer, the schematic diagram of the query interface 30 that Fig. 4 provides for the embodiment of the present invention, as shown in Figure 4, this query interface 30 also comprises bag four options: based on the inquiry of access time, IP address-based inquiry, based on the inquiry of URL and port, the inquiry of request method based on the application of user's request access, so that developer selects one or more query types to carry out information inquiry needed for self on interface; Such as, developer chooses the inquiry of the request method based on the application of user's request access, then represent that the inquiry request of developer's transmission is only for the statistics of the request method of user's access application of requesting query record; If developer chooses the inquiry two based on the inquiry of access time and the request method based on the application of user's request access simultaneously, then represent that the inquiry request of developer's transmission is used for the statistics of user's access application time of requesting query record and request method two kinds of user behavior information of user's access application.
As from the foregoing, the embodiment of the present invention provides a kind of cloud platform, is provided record and show the function of user access activity information by the log services unit on cloud platform.Concrete, log services unit first obtains the user access activity information that at least one user accesses the first application; Determine whether described first application requires usage log service, and the first application requires usage log service if determine, then the user access activity information of described first application of recording user access; Receive the inquiry request of the user access activity information for inquiring about described first application, according to described inquiry request, the user of display record accesses the user access activity information of described first application.So, the function of record queries log information is realized by means of the log services unit on cloud platform, avoid existing by increasing additional records code in the application, the problem of the application and development added cost that also output journal information to daily record Service Instance causes is obtained by application self, make developer can use the log services function of cloud platform comparatively easily, realize fast Development and the deployment of application.
As from the foregoing, the embodiment of the present invention provides a kind of cloud platform 50, first obtains the user access activity information that at least one user accesses the first application; Determine whether described first application requires usage log service, and the first application requires usage log service if determine, then the user access activity information of described first application of recording user access; Receive the inquiry request of the user access activity information for inquiring about described first application, according to described inquiry request, the user of display record accesses the user access activity information of described first application.So, by means of function cloud platform realizing record queries log information, avoid existing by increasing additional records code in the application, the problem of the application and development added cost that also output journal information to daily record Service Instance causes is obtained by application self, make developer can use the log services function of cloud platform comparatively easily, realize fast Development and the deployment of application.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of described claim.

Claims (12)

1. a log services method, is characterized in that, is applied on cloud platform, and described cloud Platform deployment has log services unit and comprises multiple application of the first application; Described method comprises:
Described log services unit receives at least one user and accesses described first and apply the user access activity information that produces;
According to the described mark of the first application and the mark of described log services unit, determine whether described first application requires usage log service;
If determine, described first application requires usage log service, then the user access activity information of described first application of recording user access;
Receive the inquiry request of the user access activity information for inquiring about described first application, according to described inquiry request, the user of display record accesses the user access activity information of described first application.
2. method according to claim 1, is characterized in that, described according to the described mark of the first application and the mark of described log services unit, inquires about described first application and whether requires that usage log service comprises:
According to the described mark of the first application and the mark of described log services unit, inquiry dedicated memory device, wherein, the corresponding relation of application that described memory module stores at least one service unit and binds mutually with service unit, described bind mutually with service unit be applied as: the application requiring the service using described service unit to provide;
If described memory module stores described log services unit and the described first corresponding relation applied, then determine that described first application requires usage log service;
If do not store described log services unit and the described first corresponding relation applied in described memory module, then determine described first application failed call usage log service.
3. method according to claim 1 and 2, is characterized in that, user's described first user access activity information applied of accessing of described display record comprises:
The user of display record accesses the statistics of all information in the user access activity information of described first application.
4. the method according to any one of claim 1-3, is characterized in that, described cloud platform is also deployed with front end distributed components; Described log services unit receive at least one user access described first apply the user access activity information that produces before, described method also comprises:
Described front end distributed components receives the solicited message of the first application described at least one user's request access, and described in obtaining, at least one user accesses the user access activity information that the first application produces;
Described log services unit receives at least one user and accesses described first and apply the user access activity information that produces and comprise:
Described log services unit receives at least one user that described front end distributed components sends and accesses described first and apply the user access activity information produced.
5. method according to claim 4, is characterized in that,
Described user access activity packets of information is containing one or more in the request method of time of user's access application, the IP address of user, the uniform resource position mark URL of user's access application and port, the application of user's request access;
Wherein, the request method of described user's request access application is establishment POST mode, checks GET mode, renewal UPDATE mode, any one mode of deleting in DELETE mode.
6. method according to claim 5, is characterized in that, described inquiry request also comprises: query type; Wherein, described query type comprises: based on one or more in the inquiry of access time, IP address-based inquiry, the inquiry based on URL and port, the inquiry based on the request method of user's request access application;
User's described first user access activity information applied of accessing of described display record comprises:
The user corresponding with described query type of display record accesses the statistics of the user access activity information that described first applies.
7. a cloud platform, is characterized in that, described cloud platform comprises: log services unit and comprise multiple application of the first application; Described log services unit comprises:
User access activity collection assembly, accesses described first and applies for receiving at least one user the user access activity information that produces;
Cloud control assembly, for according to the described mark of the first application and the mark of described log services unit, determines whether described first application requires usage log service;
Described user access activity collection assembly, if also for determining that described first application requires usage log service, then the user access activity information of described first application of recording user access;
Inquiry component exhibiting, receives the inquiry request of the user access activity information for inquiring about described first application, and according to described inquiry request, the user of display record accesses the user access activity information of described first application.
8. cloud platform according to claim 7, is characterized in that, described cloud control assembly, specifically for:
According to the described mark of the first application and the mark of described log services unit, inquiry dedicated memory device, wherein, the corresponding relation of application that described memory module stores at least one service unit and binds mutually with service unit, described bind mutually with service unit be applied as: the application requiring the service using described service unit to provide;
If described memory module stores described log services unit and the described first corresponding relation applied, then determine that described first application requires usage log service;
If do not store described log services unit and the described first corresponding relation applied in described memory module, then determine described first application failed call usage log service.
9. the cloud platform according to claim 7 or 8, is characterized in that, described inquiry component exhibiting, specifically for:
The user of display record accesses the statistics of all information in the user access activity information of described first application.
10. the cloud platform according to any one of claim 7-9, is characterized in that, described cloud platform also comprises:
Front end distributed components, for receive at described user access activity collection assembly at least one user access described first apply the user access activity information that produces before, receive the solicited message of the first application described at least one user's request access, described in obtaining, at least one user accesses the user access activity information that the first application produces;
Described user access activity collection assembly, specifically for:
At least one user receiving the distributed components transmission of described front end accesses described first and applies the user access activity information produced.
11. cloud platforms according to claim 10, is characterized in that,
Described user access activity packets of information is containing one or more in the request method of the uniform resource position mark URL of the IP address of time of user's access application, user, user's access application, port, the application of user's request access;
Wherein, the request method of described user's request access application is establishment POST mode, checks GET mode, renewal UPDATE mode, any one mode of deleting in DELETE mode.
12. cloud platforms according to claim 11, it is characterized in that, described inquiry request also comprises: query type; Wherein, described query type comprises: based on one or more in the inquiry of access time, IP address-based inquiry, the inquiry based on URL and port, the inquiry based on the request method of user's request access application;
Described inquiry component exhibiting, specifically for:
The user corresponding with described query type of display record accesses the statistics of the user access activity information that described first applies.
CN201410808678.2A 2014-12-22 2014-12-22 Log services method and cloud platform Active CN104601666B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410808678.2A CN104601666B (en) 2014-12-22 2014-12-22 Log services method and cloud platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410808678.2A CN104601666B (en) 2014-12-22 2014-12-22 Log services method and cloud platform

Publications (2)

Publication Number Publication Date
CN104601666A true CN104601666A (en) 2015-05-06
CN104601666B CN104601666B (en) 2018-04-27

Family

ID=53127160

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410808678.2A Active CN104601666B (en) 2014-12-22 2014-12-22 Log services method and cloud platform

Country Status (1)

Country Link
CN (1) CN104601666B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104993957A (en) * 2015-06-29 2015-10-21 浪潮软件股份有限公司 Method for providing cloud Log service for distributed application using Log4j
CN105978852A (en) * 2016-04-14 2016-09-28 北京北信源软件股份有限公司 Network equipment access history information determination method, equipment and switch
CN106802790A (en) * 2015-11-26 2017-06-06 华为技术有限公司 Method, equipment and system that application user use information based on cloud platform is managed
CN107153600A (en) * 2016-03-02 2017-09-12 昆达电脑科技(昆山)有限公司 The method of record system daily record during system boot
CN108768957A (en) * 2015-06-12 2018-11-06 华为技术有限公司 A kind of method, equipment and the system of the subscriber information management of application
CN110245060A (en) * 2019-05-20 2019-09-17 北京奇艺世纪科技有限公司 Service monitoring method and equipment, service monitoring device and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103259843A (en) * 2013-03-22 2013-08-21 嘉兴安尚云信软件有限公司 Intelligentized PaaS cloud computing platform system
CN103283209A (en) * 2011-04-18 2013-09-04 北京新媒传信科技有限公司 Application service platform system and implementation method thereof
US20140109188A1 (en) * 2012-10-16 2014-04-17 Vladimir Pavlov Providing Remote Application Logs for Cloud Applications
US20140149576A1 (en) * 2012-11-29 2014-05-29 Vladimir Pavlov Managing Application Log Levels in Cloud Environment
CN104023033A (en) * 2014-06-24 2014-09-03 浪潮电子信息产业股份有限公司 Safety production method for cloud services
CN104113605A (en) * 2014-07-30 2014-10-22 浪潮软件股份有限公司 Enterprise cloud application development monitoring processing method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103283209A (en) * 2011-04-18 2013-09-04 北京新媒传信科技有限公司 Application service platform system and implementation method thereof
US20140109188A1 (en) * 2012-10-16 2014-04-17 Vladimir Pavlov Providing Remote Application Logs for Cloud Applications
US20140149576A1 (en) * 2012-11-29 2014-05-29 Vladimir Pavlov Managing Application Log Levels in Cloud Environment
CN103259843A (en) * 2013-03-22 2013-08-21 嘉兴安尚云信软件有限公司 Intelligentized PaaS cloud computing platform system
CN104023033A (en) * 2014-06-24 2014-09-03 浪潮电子信息产业股份有限公司 Safety production method for cloud services
CN104113605A (en) * 2014-07-30 2014-10-22 浪潮软件股份有限公司 Enterprise cloud application development monitoring processing method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
高允翔,汤泳,肖伟: ""私有云PaaS平台服务能力的规划与设计的初步讨论"", 《邮电设计技术》 *

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108768957A (en) * 2015-06-12 2018-11-06 华为技术有限公司 A kind of method, equipment and the system of the subscriber information management of application
US10986166B2 (en) 2015-06-12 2021-04-20 Huawei Technologies Co., Ltd. Method for managing user information of application, device, and system
CN108768957B (en) * 2015-06-12 2021-10-15 华为技术有限公司 Method, device and system for user information management of an application
US11388224B2 (en) 2015-06-12 2022-07-12 Huawei Technologies Co., Ltd. Method for managing user information of application, device, and system
US12120173B2 (en) 2015-06-12 2024-10-15 Huawei Technologies Co., Ltd. Method for managing user information of application, device, and system
CN104993957A (en) * 2015-06-29 2015-10-21 浪潮软件股份有限公司 Method for providing cloud Log service for distributed application using Log4j
CN104993957B (en) * 2015-06-29 2018-09-21 浪潮软件股份有限公司 Method for providing cloud log service for distributed application using L og4j
CN106802790A (en) * 2015-11-26 2017-06-06 华为技术有限公司 Method, equipment and system that application user use information based on cloud platform is managed
CN106802790B (en) * 2015-11-26 2020-07-24 华为技术有限公司 Method, equipment and system for managing application user use information based on cloud platform
CN107153600A (en) * 2016-03-02 2017-09-12 昆达电脑科技(昆山)有限公司 The method of record system daily record during system boot
CN105978852A (en) * 2016-04-14 2016-09-28 北京北信源软件股份有限公司 Network equipment access history information determination method, equipment and switch
CN110245060A (en) * 2019-05-20 2019-09-17 北京奇艺世纪科技有限公司 Service monitoring method and equipment, service monitoring device and medium

Also Published As

Publication number Publication date
CN104601666B (en) 2018-04-27

Similar Documents

Publication Publication Date Title
EP3657358B1 (en) Method, device and system for persistent data processing, and readable storage medium
US10812566B2 (en) Distributed steam processing
US8627310B2 (en) Capturing multi-disk virtual machine images automatically
US9485305B2 (en) API platform that includes server-executed client-based code
CN104020961B (en) Distributed data storage method, apparatus and system
CN101650660B (en) boot computer system from central storage
KR101497167B1 (en) Management of external hardware devices in distributed operating systems
US20100050173A1 (en) Provisioning Virtual Resources Using Name Resolution
CN104601666A (en) Log service method and cloud platform
CN105765526A (en) Bootstrapping from a remote disk image via a network
CN107135242B (en) Mongodb cluster access method, device and system
CN106817388B (en) Method and device for acquiring data by virtual machine and host machine and system for accessing data
US9767118B2 (en) Optimized UEFI file system with network file system compound statements
WO2015200383A1 (en) Converting desktop applications into cloud services
CN105446794A (en) Disc operation method, apparatus and system based on virtual machine
CN110928557A (en) Method, device and system for realizing migration of operating system
CN107580011A (en) A kind of data sharing method and desktop cloud server terminal
CN106648838B (en) Resource pool management configuration method and device
US20140082275A1 (en) Server, host and method for reading base image through storage area network
WO2021139264A1 (en) Object storage control method and apparatus, computer device and storage medium
CN114328026A (en) Virtual disk backup method, device, equipment and medium
CN106126419A (en) The adjustment method of a kind of application program and device
US20140297953A1 (en) Removable Storage Device Identity and Configuration Information
CN115002140A (en) Distributed file storage system based on MogileFS and implementation method
US20150127682A1 (en) Data connectors in large scale processing clusters

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200423

Address after: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee after: HUAWEI TECHNOLOGIES Co.,Ltd.

Address before: 301, A building, room 3, building 301, foreshore Road, No. 310052, Binjiang District, Zhejiang, Hangzhou

Patentee before: Huawei Technologies Co.,Ltd.