The present invention relates generally to the field of problem diagnosis and event log management in a computer environment, and more particularly to techniques for controlling log processing given different log rates in a cloud-based environment.
Event logs may be used to understand events that happen during the execution of a system operation. Event logs create an audit trail that will help diagnose problems. They may also help anticipate future issues that may lead to problems and manage better system operations. When problems arise, event logs may allow the attention to be focused on the right issues so that the problem can be resolved quickly. Event logs, therefore, may be an important resource and a main focus of every system operation.
Recording event logs for troubleshooting and monitoring system behavior may not without its challenges. When the systems are local and the number of server or operating system components are less numerous, event logs management may be relatively easy. However, in more complex environments, recording event logs and processing them to resolve arising issues in a timely manner may be challenging. The more complex the environment, the more difficult it may be to manage event logs. In distributed environments, such as cloud computing environments, managing event logs may be difficult. This is mainly because in such environments, while the applications and resources are typically deployed in a distributed manner, event log recording and processing may be collected and handled using local collectors.
Applications logs may be logged at various rates at different time periods based on application workload state, internal logic complexity, and logging practices. Unfortunately, these varied rates, especially in cloud computing environments may contribute to bottle necks that slow computing processing rates. Current prior art systems may not provide a good solution to resolve this problem effectively.
Consequently, a new technique may be desirous that can enable log processing that is being generated at different rates in a manner that does not create processing bottlenecks.
Embodiments of the present invention disclose a method, computer system, and a computer program for automatically processing computer logging events. In one embodiment, the process comprises determining an application priority model relating to a plurality of computer applications being executed on a device. A usage pattern model is also determined by monitoring utilization of the plurality of applications based on usage of the applications by a priority of users. A log flow control policy is also determined using logging information. All determined models also use a set of metrics to derive a log flow rules. These rules are used to manage log flow control policies when processing a plurality of logs.
These and other objects, features and advantages of the present invention will become apparent from the following detailed description of illustrative embodiments thereof, which is to be read in connection with the accompanying drawings. The various features of the drawings are not to scale as the illustrations are for clarity in facilitating one skilled in the art in understanding the invention in conjunction with the detailed description. In the drawings:
Detailed embodiments of the claimed structures and methods are disclosed herein; however, it can be understood that the disclosed embodiments are merely illustrative of the claimed structures and methods that may be embodied in various forms. This invention may, however, be embodied in many different forms and should not be construed as limited to the exemplary embodiments set forth herein. Rather, these exemplary embodiments are provided so that this disclosure will be thorough and complete and will fully convey the scope of this invention to those skilled in the art. In the description, details of well-known features and techniques may be omitted to avoid unnecessarily obscuring the presented embodiments.
The present invention may be a system, a method, and/or a computer program product at any possible technical detail level of integration. The computer program product may include a computer readable storage medium (or media) having computer readable program instructions thereon for causing a processor to carry out aspects of the present invention.
The computer readable storage medium can be a tangible device that can retain and store instructions for use by an instruction execution device. The computer readable storage medium may be, for example, but may not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. A non-exhaustive list of more specific examples of the computer readable storage medium includes the following: a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanically encoded device such as punch-cards or raised structures in a groove having instructions recorded thereon, and any suitable combination of the foregoing. A computer readable storage medium, as used herein, may not to be construed as being transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission media (e.g., light pulses passing through a fiber-optic cable), or electrical signals transmitted through a wire.
Computer readable program instructions described herein can be downloaded to respective computing/processing devices from a computer readable storage medium or to an external computer or external storage device via a network, for example, the Internet, a local area network, a wide area network and/or a wireless network. The network may comprise copper transmission cables, optical transmission fibers, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. A network adapter card or network interface in each computing/processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium within the respective computing/processing device.
Computer readable program instructions for carrying out operations of the present invention may be assembler instructions, instruction-set-architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state-setting data, configuration data for integrated circuitry, or either source code or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C++, or the like, and procedural programming languages, such as the “C” programming language or similar programming languages. The computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider). In some embodiments, electronic circuitry including, for example, programmable logic circuitry, field-programmable gate arrays (FPGA), or programmable logic arrays (PLA) may execute the computer readable program instructions by utilizing state information of the computer readable program instructions to customize the electronic circuitry, in order to perform aspects of the present invention.
Aspects of the present invention are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer readable program instructions.
These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer readable program instructions may also be stored in a computer readable storage medium that can direct a computer, a programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer readable storage medium having instructions stored therein comprises an article of manufacture including instructions which implement aspects of the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process, such that the instructions which execute on the computer, other programmable apparatus, or other device implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the blocks may occur out of the order noted in the Figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts or carry out combinations of special purpose hardware and computer instructions.
As discussed, logs are an important source for observability and provide information for troubleshooting and monitoring system behavior. In cloud computing environment, applications are typically deployed in a distributed manner while logs are collected using local collectors. Application logs get recorded at various rates and time periods based on application workloads state, internal logic complexity, and logging practices. There are situations in which less priority applications emit logs at a higher rate than higher priority applications. This often creates bottlenecks that affect system performance. A more detailed look at this problem has been provided in connection with
Consequently, it may be desirous to provide a system that can prevent such bottlenecks and improve system performance and integrity. Furthermore, it may be advantageous to, among other things, provide a technique to automatically manage and dynamically control logging rates based on current and historical operational data to minimize application-level critical log loss.
The following described exemplary embodiments provide a system, method and program product for automatically processing computer logging events. In one embodiment, the process comprises determining an application priority model relating to a plurality of computer applications being executed on a device. A usage pattern model is also determined by monitoring utilization of the plurality of applications based on usage of the applications by a priority of users. A log flow control policy is also determined using logging information. All determined models also use a set of metrics to derive a log flow rules. These rules are used to manage log flow control policies when processing a plurality of logs.
The client computer 102 may communicate with the server computer 112 via the communications network 116. The communications network 116 may include connections, such as wire, wireless communication links, or fiber optic cables. As will be discussed with reference to
According to the present embodiment, a user using a client computer 102 or a server computer 112 may use the program 110a, application 110b (respectively) to provide a task management technique. This technique will be provided in more detail below with respect to
The process is generally enumerated as 200 and comprised of several steps. In step 210, application priority is determined for a plurality of applications running on at least one computer device. An application priority model is then determined. The applications that are being analyzed may be running on a plurality of computers, instead of just one device. These computers may be connected to one another via a network (LAN, WAN etc.) or through a cloud computing environment. The application priority may be automatically calculated and discovered through a variety of different components. These components can include historical or current metrics received. The metrics are continuously updated. These metrics include a variety of information such as logs (recordings etc.), traces, tickets and the resource usage information such as network or cluster usage. The application priority model provides a set of rules that will later be used for log control, management and processing. A more detailed look at these components are provided and further discussed in detail in connection with
In step 220, user patterns are analyzed and a usage pattern model is determined. Usage patterns are often based on the manner that a plurality of users may be utilizing the applications. A set of rules will also be provided by this model to be used in management of log flows later.
To provide ease of understanding, one example can be provided. In one embodiment, Application Workloads characterization are established based on several metrics. One of these metrics may be number of requests made by a user as a function of time. For example, usage may be monitored to see how many requests are made per hour of each day, and whether these are continued consistently or further dependent upon the “Day of Week”, “Week of Month”, “Month of Year” or other similar distributions.
Usage pattern model also uses a variety of metrics as before such as logs (recordings etc.), traces, tickets and the resource usage information such as network or cluster usage. Another metric used, may be the number of dependent services upon a particular application. Other important metrics may be the amount of usage of a particular component such as memory usage, or CPU (central processing unit) usage, or network usage. As before this information may be historical and/or current and will be continuously updated. A series of rules will also be developed to later help with log processing.
In Step 230, a log control policy may be determined. This policy takes the previous metrics (traces, tickets and the resource usage information) into consideration as well as additional information about log recordings including log severities etc. More details about this process is provided in relation with
In Step 240, it may be determined if one or more logs are received for processing. If there are no logs provided for processing, continuous monitoring will be conducted, and the steps 210-230 will be repeated as to update any newly received information. However, if one or more logs needs to be processed, as illustrated, the process moves to Step 250.
In Step 250, the number of logs that need to be processed may be determined. Other data may be also analyzed such as rate, number of logs that required simultaneous processor and other similar information as can be appreciated by one skilled in the art. Once this information is obtained, then the flow policy previously provided and the rules developed by steps 210-230 (models) are used to manage and process logs (such as according to the rules/policy). This will allow logs to be automatically managed and dynamically controlled (independent of their rates) based on current and historical operational data to minimize application-level critical log loss.
To provide a better understanding of some information that may be considered in each historical data category, some examples of each category will be presently provided with the understanding that in alternate embodiments, other components may also be examined.
For example, in the category of Logs all recorded logs are examined. This includes extracting their severity and importance in loglines.
The metrics examined may include Cluster Resources Utilization (minimum values, maximum values, averages, and variance). Other similar resource utilization will also be considered depending on the architecture of the computing environment, for example, when a network may be used, the Network Resource Utilization (minimum values, maximum values, averages and variance) will be considered.
As with regards to Events analysis, components such as Rate of Non-healthy Events, rates of upgrades, and other similar event counts such as specific patches and the like are considered and analyzed.
Information analyzed regarding Tickets includes number of tickets received and processed, average response time, number of escalations and number of users that were involved (affected) in each ticket generated.
Trace information can include latencies, request rates and dependencies such as micro-service level.
These derived indicators 608 will then be used to determine application priority using a calculator (processor calculating) as shown at 650. This calculation may include certain conditions shown within each application itself 640 (as opposed to previously at 608 which reflected applications and errors overall across the multiple functions). This will ultimately produce a set of rules 660 which will be also used in policy development.
A set of rules can then be provided leading to the ultimate policy established. In this scenario, classifications are extracted and used in determining the rules. For example, the Applications are first categorized by their order of importance (priority) as shown at 740. This may be then grouped further according to Log lines and certain metrics be further calculated as shown at 750. One of the other criteria that may be determined has to do with the severity of each log (751-753). This determination, in one embodiment will be rendered, for example, by reviewing and processing all of the High priority ones 751. For Medium priority 752, for example, a limit rate may be used as a cutoff (for example may be 10%, or 20%, etc.). Low Priority 753 may also use a percentage, as previous example but rely on a higher percentage (50%, 60% etc.).
Data processing system 902, 904 may be representative of any electronic device capable of executing machine-readable program instructions. Data processing system 902, 904 may be representative of a smart phone, a computer system, PDA, or other electronic devices. Examples of computing systems, environments, and/or configurations that may represented by data processing system 902, 904 include, but are not limited to, individual computer systems, server computer systems, thin clients, thick clients, hand-held or laptop devices, multiprocessor systems, microprocessor-based systems, network PCs, minicomputer systems, and distributed cloud computing environments that include any of the above systems or devices.
User client computer 102 and network server 112 may include respective sets of internal components 902a, b and external components 904a, b illustrated in
Each set of internal components 902a, b also includes a R/W drive or interface 918 to read from and write to one or more portable computer-readable tangible storage devices 920 such as a CD-ROM, DVD, memory stick, magnetic tape, magnetic disk, optical disk or semiconductor storage device. A software program, such as the software program 108, the log management program 110a and the logging flow control application 110b can be stored on one or more of the respective portable computer-readable tangible storage devices 920, read via the respective R/W drive or interface 918 and loaded into the respective hard drive 916.
Each set of internal components 902a, b may also include network adapters (or switch port cards) or interfaces 922 such as a TCP/IP adapter cards, wireless wi-fi interface cards, or 3G or 4G wireless interface cards or other wired or wireless communication links. The software program 108 and the log management program 110a in client computer 102 and the logging flow control application 110b in network server computer 112 can be downloaded from an external computer (e.g., server) via a network (for example, the Internet, a local area network or other, wide area network) and respective network adapters or interfaces 922. From the network adapters (or switch port adaptors) or interfaces 922, the software program 108 and the log management 110a in client computer 102 and the logging flow control application 110b in network server computer 112 are loaded into the respective hard drive 916. The network may comprise copper wires, optical fibers, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers.
Each of the sets of external components 904a, b can include a computer display monitor 924, a keyboard 926, and a computer mouse 928. External components 904a, b can also include touch screens, virtual keyboards, touch pads, pointing devices, and other human interface devices. Each of the sets of internal components 902a, b also includes device drivers 930 to interface to computer display monitor 924, keyboard 926 and computer mouse 928. The device drivers 930, R/W drive or interface 918 and network adapter or interface 922 comprise hardware and software (stored in storage device 916 and/or ROM 910).
It may be understood in advance that although this disclosure includes a detailed description on cloud computing, implementation of the teachings recited herein are not limited to a cloud computing environment. Rather, embodiments of the present invention are capable of being implemented in conjunction with any other type of computing environment now known or later developed.
Cloud computing may provide a model of service delivery for enabling convenient, on-demand network access to a shared pool of configurable computing resources (e.g. networks, network bandwidth, servers, processing, memory, storage, applications, virtual machines, and services) that can be rapidly provisioned and released with minimal management effort or interaction with a provider of the service. This cloud model may include at least five characteristics, at least three service models, and at least four deployment models.
Characteristics are as follows:
Service Models are as follows:
Deployment Models are as follows:
A cloud computing environment may be a service oriented with a focus on statelessness, low coupling, modularity, and semantic interoperability. At the heart of cloud computing is an infrastructure comprising a network of interconnected nodes.
Referring now to
Referring now to
Hardware and software layer 1102 includes hardware and software components. Examples of hardware components include: mainframes 1104; RISC (Reduced Instruction Set Computer) architecture based servers 1106; servers 1108; blade servers 1110; storage devices 1112; and networks and networking components 1114. In some embodiments, software components include network application server software 1116 and database software 1118.
Virtualization layer 1120 provides an abstraction layer from which the following examples of virtual entities may be provided: virtual servers 1122; virtual storage 1124; virtual networks 1126, including virtual exclusive networks; virtual applications and operating systems 1128; and virtual clients 1130.
In one example, management layer 1132 may provide the functions described below. Resource provisioning 1134 provides dynamic procurement of computing resources and other resources that are utilized to perform tasks within the cloud computing environment. Metering and Pricing 1136 provide cost tracking as resources are utilized within the cloud computing environment, and billing or invoicing for consumption of these resources. In one example, these resources may comprise application software licenses. Security provides identity verification for cloud consumers and tasks, as well as protection for data and other resources. User portal 1138 provides access to the cloud computing environment for consumers and system administrators. Service level management 1140 provides cloud computing resource allocation and management such that required service levels are met. Service Level Agreement (SLA) planning and fulfillment 1142 provide pre-arrangement for, and procurement of, cloud computing resources for which a future requirement may be anticipated in accordance with an SLA.
Workloads layer 1144 provides examples of functionality for which the cloud computing environment may be utilized. Examples of workloads and functions which may be provided from this layer include: mapping and navigation 1146; software development and lifecycle management 1148; virtual classroom education delivery 1150; data analytics processing 1152; transaction processing 1154; and data management 1156.
The descriptions of the various embodiments of the present invention have been presented for purposes of illustration but are not intended to be exhaustive or limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope of the described embodiments. The terminology used herein was chosen to best explain the principles of the embodiments, the practical application or technical improvement over technologies found in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.