Method and system for enabling automated log analysis with controllable resource requirements

Information

  • Patent Grant
  • 11196758
  • Patent Number
    11,196,758
  • Date Filed
    Tuesday, February 6, 2018
    6 years ago
  • Date Issued
    Tuesday, December 7, 2021
    3 years ago
Abstract
Systems and methods for enabling automated log analysis with controllable resource requirements are provided. A training set for log pattern learning is generated based on heterogeneous logs generated by a computer system. An incremental learning process is implemented to generate a set of log patterns from the training set. The heterogeneous logs are parsed using the set of log patterns. A set of applications is applied to the parsed logs.
Description
BACKGROUND
Technical Field

The present invention relates to log analysis, and more particularly to enabling automated log analysis with controllable resource requirements.


Description of the Related Art

A computer-generated record, referred to as a log or a log record, is data output generated from source code associated with a computer system component (e.g., network device, operating system, application and programmable devices) that documents activities performed by the computer system component. A log can include one or more lines of sentences that record system/application events or status at a time corresponding to a time stamp. Log analytics can be performed for a variety of practical applications, such as software debugging, compliance, computer system troubleshooting, forensics and investigations, security incident response and web analytics (e.g., search engine optimization).


Computer systems can generate a vast number of logs from a variety of components, such as in the form of heterogeneous logs. Heterogeneous logs can provide rich contextual information describing system status and are critical sources for system monitoring and diagnosis. However, manually interpreting heterogeneous logs is not effective due to large volume and complicated domain-specific syntax and semantic knowledge.


SUMMARY

According to an aspect of the present principles, a computer-implemented method is provided for enabling automated log analysis with controllable resource requirements. The method includes a processor operatively coupled to a memory generating a training set for log pattern learning based on heterogeneous logs generated by a computer system. The method further includes the processor implementing an incremental learning process to generate a set of log patterns from the training set. Implementing the incremental learning process includes: defining a first set as the training set, a second set as a set of log patterns that have been generated, and a third set as a set of logs of the training set that lack a matching pattern in the second set; sampling the third set to generate a fourth set having a size corresponding to a parameter controlling a maximum resource requirement for the incremental learning process; and performing automatic log pattern recognition to generate a fifth set. The method further includes the processor parsing the heterogeneous logs using the set of log patterns, and applying a set of applications to the parsed logs.


According to another aspect of the present principles, a computer program product having program instructions embodied therewith is provided. The program instructions are executable by a computer to cause the computer to perform a method for enabling automated log analysis with controllable resource requirements. The method includes generating a training set for log pattern learning based on heterogeneous logs generated by a computer system. An incremental learning process is implemented to generate a set of log patterns from the training set. Implementing the incremental learning process includes: defining a first set as the training set, a second set as a set of log patterns that have been generated, and a third set as a set of logs of the training set that lack a matching pattern in the second set; sampling the third set to generate a fourth set having a size corresponding to a parameter controlling a maximum resource requirement for the incremental learning process; and performing automatic log pattern recognition to generate a fifth set. The heterogeneous logs are parsed using the set of log patterns. A set of applications is applied to the parsed logs.


According to another aspect of the present principles, a system is provided for enabling automated log analysis with controllable resource requirements. The system includes a computer system configured to generate heterogeneous logs, and at least one processor operatively coupled to a memory. The at least one processor is configured to obtain the heterogeneous logs from the computer system, generate a training set for log pattern learning based on the obtained logs, implement an incremental learning process to generate a set of log patterns from the training set, parse the one or more logs using the set of log patterns, and apply a set of applications to the parsed logs. The incremental learning process is implemented by: defining a first set as the training set, a second set as a set of log patterns that have been generated, and a third set as a set of logs of the training set that lack a matching pattern in the second set; sampling the third set to generate a fourth set having a size corresponding to a parameter controlling a maximum resource requirement for the incremental learning process; and performing automatic log pattern recognition to generate a fifth set.


These and other features and advantages will become apparent from the following detailed description of illustrative embodiments thereof, which is to be read in connection with the accompanying drawings.





BRIEF DESCRIPTION OF DRAWINGS

The disclosure will provide details in the following description of preferred embodiments with reference to the following figures wherein:



FIG. 1 is a block/flow diagram illustrating a system/method for generating a set of log patterns, in accordance with the present principles;



FIG. 2 is a block/flow diagram illustrating a system/method for implementing an incremental learning process to generate a set of log patterns, in accordance with the present principles.



FIG. 3 illustrates exemplary pseudocode for implementing an incremental learning process to generate a set of log patterns, in accordance with the present principles.



FIG. 4 is a block/flow diagram illustrating a system/method for security log analysis, in accordance with the present principles.



FIG. 5 is a block/flow diagram illustrating a system/method for applying a security information and event management service system, in accordance with the present principles.



FIG. 6 is a block/flow diagram illustrating a computer system, in accordance with the present principles.





DETAILED DESCRIPTION OF PREFERRED EMBODIMENTS

Numerous log messages are generated every day by social networks, banking systems, health care systems, smart cities, Internet of Things (IoT) devices etc. Administrators are interested in analyzing these log messages in order to, for example, predict future events, detect anomalies or debug performance problems. To analyze logs, the logs first need to be parsed understand their content. One traditional way to parse logs is to come up with some regular expressions (regex) manually. This is difficult to do, since logs have different formats, and there is no prior knowledge about how many unique formats exist in the logs. In addition, web servers and IoT devices can generate millions of logs every day. To keep up with this rate, the log parser should be able to handle millions of logs in few hours.


Heterogeneous log analysis (HLA) is a machine learning approach that can provide for log pattern analysis, and can perform heterogeneous log categorization, automatic log format recognition, and heterogeneous log indexing. Additionally, HLA can support queries and outlier detection on heterogeneous logs. HLA can provide a framework which is purely data-oriented and thus general enough to adapt to arbitrary log formats, applications or systems.


An illustrative implementation of HLA is Heterogeneous Log Analyzer (HLAer). HLAer generates clusters implementing OPTICS (Ordering Points to Identify the Clustering Structure) from the input logs based two parameters: ε and MinPts. Then, for every cluster, HLAer generates a pattern using an UPGMA (Unweighted Pair Group Method with Arithmetic Mean) algorithm.


HLA can suffer from scalability and flexibility problems due to operational complexity, making it hard to scale-up to a large training log set. In the particular context of HLAer, for a given dataset having n logs with average length of 1, the time complexity of OPTICS is O(n2·l), and the time complexity of UPGMA is






O


(

m
·


(

n
m

)

2

·

l
2


)






considering m clusters each having






n
m





logs. In addition, OPTICS requires O(n2) memory space. For a real dataset, there can be 100,000,000 logs with the average length of 100 fields. Accordingly, considering these numbers, HLAer particularly suffers from a severe scalability problem.


One manner of dealing with machine learning on a large data set is by using a scale-out Big-Data platform such as Apache™ Hadoop®. In Hadoop®, a MapReduce programming model is implemented so that multiple replicas of the same machine learning processes are executed concurrently on a cluster of machines, in which all the data set will be loaded and analyzed in the memory of multiple machines. This is a brute-force approach and requires the availability of abundant computing and networking resources.


The embodiments described herein address the above-noted scalability problem by implementing an incremental learning approach. When abundant computing and networking resources (e.g., a large cluster of networked servers) are not available for the log pattern learning task, the incremental learning approach according to the present principles takes a divide-and-conquer approach, and integrates learning and log filtering to overcome the above-noted scalability issue. This divide-and-conquer approach will continue until the procedure has processed all of the training logs.


The incremental learning scheme provided herein solves the aforementioned problems by applying and integrating advanced machine learning techniques with recursive algorithm design principles to enable automated log analysis with controllable resource requirements. The incremental learning approach recursively learns a subset of log patterns based on a log sample, and uses the learned patterns to filter out logs before proceeding to the next iteration. Multiple iterations are executed sequentially until all log patterns are discovered.


The embodiments described herein can significantly reduce the computing resource cost of learning log patterns within a vast amount of heterogeneous log data from various system components and/or applications, even when prior knowledge about the system might not be available. By integrating advanced machine learning techniques with recursive algorithm design principles, the incremental learning approach described herein constructs an automatic sequential pattern recognition method for heterogeneous logs in a principled way that allows for faster operation upon system updates. Accordingly, the incremental learning mechanism described herein improves the performance and operation of a computer system.


Although the embodiments described herein will be illustratively applied within the context of HLA (e.g., HLAer), the scalability of other similar techniques can be improved in accordance with the embodiments described herein.


Referring now in detail to the figures in which like numerals represent the same or similar elements and initially to FIG. 1, a system/method 100 for incremental learning on log pattern recognition is illustratively depicted in accordance with one embodiment of the present principles.


At block 110, logs are obtained from one or more sources to generate a training set for log pattern learning. Each log can include a time stamp and text content with one or more fields. In one embodiment, the logs include heterogeneous logs. The one or more sources can include arbitrary and/or unknown systems or applications.


At block 120, an incremental learning process is implemented to generate a set of log patterns from the training set. Each pattern of the set of log patterns can be in terms of regular expression (regex). Regex is a sequence of characters that defines a search pattern. Such a regex pattern can be used by a search algorithm (e.g., string searching algorithm) for performing one or more operations on strings (e.g., find operation). Further details regarding the incremental learning process performed at block 120 will now be described with reference to FIG. 2.


Referring now to FIG. 2, a system/method 200 for implementing an incremental learning process to generate a set of log patterns is illustratively depicted in accordance with one embodiment of the present principles.


At block 210, sets L, P and U are defined. L is defined as a training set of logs, such as the training set output at block 110 of FIG. 1. P is a set of log patterns that have been generated so far. U is defined as a set of logs of the training set that have no matching patterns in P. Accordingly, initially, P is defined as an empty set, and U is equivalent to L.


At block 220, a set of logs S is generated by sampling U. For example, S can be generated from U by sequential sampling. In one embodiment, S has size K, where K is a parameter that controls a maximum resource requirement for the incremental learning process (e.g., K=5000). K can be a user-specified value. Once S reaches K number of logs, the sampling procedure stops. If the size of U is less than K, then S is equivalent to U.


At block 230, automatic log pattern recognition is performed using S to generate a set of log patterns N. In one embodiment, performing the automatic log pattern recognition includes applying one or more machine learning techniques on set S. An example of such a machine learning technique is HLA (e.g., HLAer).


The following is an example of one possible automatic log pattern recognition procedure that can be performed at block 230 to generate N.


The logs of S are tokenized to generate semantically meaningful tokens from the logs. Any tokenization procedure suitable for generating tokens from the logs can be used in accordance with the embodiments described herein. After the logs are tokenized, a similarity measurement on the logs is applied. This similarity measurement leverages both log layout information and log content information, and is specially tailored to arbitrary logs. Once the similarities among the logs are captured, a hierarchical clustering method can be applied to generate and output a log cluster hierarchy. Any hierarchical clustering method can be implemented in accordance with the embodiments described herein. Once the log cluster hierarchies are received, the logs are aligned within each cluster that is on the lowest level in the log cluster hierarchy. The log alignment is designed to preserve the unknown layouts of the logs in order to facilitate log pattern recognition.


Once the logs are aligned, log motif discovery is conducted to find log motifs (e.g., the most representative layouts and log fields). Pattern recognition is then performed from such motifs. To do this, fields including time stamps, Internet Protocol (IP) addresses and universal resource locators (URLs) are recognized. Next, other fields which are highly conserved in the logs are recognized and organized in a data structure in the cluster hierarchy. Note that the log motif discovery and pattern recognition are initially performed in the lowest level of the log cluster hierarchy. All of the information is then backpropagated up to higher levels in the log cluster hierarchy, and fused with their local patterns to provide format pattern representations from the logs.


Blocks 240-290 collectively represent a log filtering process performed based on the set of log patterns generated at block 230 (i.e., N).


At block 240, it is determined if N is empty.


If N is determined to be empty, U is updated so that U=U−S at block 250.


If N is not determined to be empty at block 240, then P is updated so that P=P+N at block 260. That is, the log patterns of N are added to P.


At block 270, logs in U that have no matching patterns in P are identified, and U is updated with the identified logs. In one embodiment, a log parser is used to identify the logs. An example of a log parser that can be used to identify the logs is Logstash®.


After U is updated either at block 250 or at block 270, it is determined if U is empty at block 280. If U is determined not to be empty, then the process reverts back to block 220. However, if U is determined to be empty, P is output at block 290 and the incremental learning process ends.


Referring now to FIG. 3, exemplary pseudocode 300 for implementing the incremental learning process of FIG. 2 is illustratively depicted in accordance with one embodiment of the present principles.


As shown, IncrementalLearning inputs are defined, which include sets L, P and U, as described above in FIG. 2. P is returned after the training if U is empty or there are no more patterns that HLA can recognize on U. A set of logs S is generated by sampling U, as described above in FIG. 2. Automatic log pattern recognition is performed using S to generate a set of log patterns N (e.g., by calling HLA to learn N), as described above in FIG. 2. Patterns generated/learnt so far are accumulated into P, as described above in FIG. 2. A log parser (e.g., Logstash®) is called to update U with the logs identified from N, as described above in FIG. 2. IncrementalLearning (L, P, U) is returned.


Referring back to FIG. 1, at block 130, the logs are parsed using the set of log patterns, and a set of applications are applied to the parsed logs. The set of applications can include one or more management applications. For example, a log-based fault management application can be applied to detect abnormal logs that do not match any log pattern of the set of log patterns.


If the logs being analyzed are security logs or alerts, security log analysis can be performed to provide computer system security. One implementation of security log analysis is provided by security information and event management (SIEM) software products and services, which combine security information management (SIM) and security event management (SEM). These products and services provide real-time analysis of security logs generated by network hardware and applications. One challenge regarding SIEM log analytics is the scalability of log parsing. For example, during a Distributed Denial-of-Service (DDoS) attack, in which multiple computer systems flood the bandwidth and/or resources of a target computer system with traffic, the number of logs generated by the log-in process could be huge. The system administrator of the target computer system needs to quickly determine the origins of the DDoS attack by analyzing the logs. Therefore, it is imperative to produce log patterns (e.g., regex) in a timely manner to aid in the analysis. On the other hand, the large scale of logs may slow down the log pattern generation procedure if the resources are not managed properly. Thus, the incremental learning procedure in accordance with the embodiments described herein can handle the aforementioned scalability problem without sacrificing the accuracy and the quality of the log patterns.


Referring to FIG. 4, a system/method 400 for implementing a security log analysis service is illustratively depicted in accordance with one embodiment of the present principles.


In this illustrative embodiment, the system/method 400 is implemented utilizing a SIEM service that includes SEM 410 and SIM 420. SEM 410 can illustratively include one or more firewalls 412, one or more proxy servers 414, one or more virtual private networks (VPNs) 416, and one or more perimeter devices 418. SIM 420 can illustratively include one or more desktops 422, one or more servers 424, one or more routers 426, one or more switches 428, one or more applications 430 and one or more syslog devices 432.


Security logs from SEM 410 and SIM 420 are analyzed by Security Log Analysis (SLA) 440.


At block 442, the security logs are collected from SEM 410 and SIM 420. A vast number of log messages can be generated every day by SIEM network hardware and applications.


At block 444, the collected security logs are parsed as structured data. One traditional way to parse the logs is to come up with some regular expressions (regex) manually. This can be hard to do because logs can have different formats, and there may be no prior knowledge about how many unique formats exist in the logs. Thus, an automatic and scalable log pattern generation approach is highly desired for parsing the security logs, such as the approach described herein above with reference to FIGS. 1-3.


At block 446, the parsed security logs are archived and, at block 448, are further analyzed for different security applications. Examples of such security applications include intrusion detection and forensic analysis.


Referring to FIG. 5, a system/method 500 for implementing a security management service 510 is illustratively depicted in accordance with one embodiment of the present principles. In one embodiment, the security management service 510 utilizes SIEM, as described above with reference to FIG. 4. The security management service 510 can provide security against a multitude of potential computer system security threats, including but not limited to malicious e-mail 520, fraud 530, data theft 540 and compromised websites 550. In addition, the security management service 510 can provide security for a multitude of applications, including but not limited to IT systems 560 (e.g., data centers), cyber-physical systems 570 (e.g., power plant control systems) and social infrastructures 580 (e.g., smart cities).


Embodiments described herein may be entirely hardware, entirely software or including both hardware and software elements. In a preferred embodiment, aspects of the present invention are implemented in software, which includes but is not limited to firmware, resident software, microcode, etc.


Embodiments may include a computer program product accessible from a computer-usable or computer-readable medium providing program code for use by or in connection with a computer or any instruction execution system. A computer-usable or computer readable medium may include any apparatus that stores, communicates, propagates, or transports the program for use by or in connection with the instruction execution system, apparatus, or device. The medium can be magnetic, optical, electronic, electromagnetic, infrared, or semiconductor system (or apparatus or device) or a propagation medium. The medium may include a computer-readable storage medium such as a semiconductor or solid state memory, magnetic tape, a removable computer diskette, a random access memory (RAM), a read-only memory (ROM), a rigid magnetic disk and an optical disk, etc.


Each computer program may be tangibly stored in a machine-readable storage media or device (e.g., program memory or magnetic disk) readable by a general or special purpose programmable computer, for configuring and controlling operation of a computer when the storage media or device is read by the computer to perform the procedures described herein. The inventive system may also be considered to be embodied in a computer-readable storage medium, configured with a computer program, where the storage medium so configured causes a computer to operate in a specific and predefined manner to perform the functions described herein.


A data processing system suitable for storing and/or executing program code may include at least one processor coupled directly or indirectly to memory elements through a system bus. The memory elements can include local memory employed during actual execution of the program code, bulk storage, and cache memories which provide temporary storage of at least some program code to reduce the number of times code is retrieved from bulk storage during execution. Input/output or I/O devices (including but not limited to keyboards, displays, pointing devices, etc.) may be coupled to the system either directly or through intervening I/O controllers.


Network adapters may also be coupled to the system to enable the data processing system to become coupled to other data processing systems or remote printers or storage devices through intervening private or public networks. Modems, cable modem and Ethernet cards are just a few of the currently available types of network adapters.


Referring now to FIG. 6, an exemplary computer system 600 is shown which may represent a server or a network device, in accordance with an embodiment of the present invention. The computer system 600 includes at least one processor (CPU) 605 operatively coupled to other components via a system bus 602. A cache 606, a Read Only Memory (ROM) 608, a Random-Access Memory (RAM) 610, an input/output (I/O) adapter 620, a sound adapter 630, a network adapter 690, a user interface adapter 650, and a display adapter 660, are operatively coupled to the system bus 602.


A first storage device 622 and a second storage device 629 are operatively coupled to system bus 602 by the I/O adapter 620. The storage devices 622 and 629 can be any of a disk storage device (e.g., a magnetic or optical disk storage device), a solid state magnetic device, and so forth. The storage devices 622 and 629 can be the same type of storage device or different types of storage devices.


A speaker 632 may be operatively coupled to system bus 602 by the sound adapter 630. A transceiver 695 is operatively coupled to system bus 602 by network adapter 690. A display device 662 is operatively coupled to system bus 602 by display adapter 660.


A first user input device 652, a second user input device 659, and a third user input device 656 are operatively coupled to system bus 602 by user interface adapter 650. The user input devices 652, 659, and 656 can be any of a sensor, a keyboard, a mouse, a keypad, a joystick, an image capture device, a motion sensing device, a power measurement device, a microphone, a device incorporating the functionality of at least two of the preceding devices, and so forth. Of course, other types of input devices can also be used, while maintaining the spirit of the present invention. The user input devices 652, 659, and 656 can be the same type of user input device or different types of user input devices. The user input devices 652, 659, and 656 are used to input and output information to and from system 600.


Of course, the computer system 600 may also include other elements (not shown), as readily contemplated by one of skill in the art, as well as omit certain elements. For example, various other input devices and/or output devices can be included in computer system 600, depending upon the particular implementation of the same, as readily understood by one of ordinary skill in the art. For example, various types of wireless and/or wired input and/or output devices can be used. Moreover, additional processors, controllers, memories, and so forth, in various configurations can also be utilized as readily appreciated by one of ordinary skill in the art. These and other variations of the computer system 600 are readily contemplated by one of ordinary skill in the art given the teachings of the present invention provided herein.


The foregoing is to be understood as being in every respect illustrative and exemplary, but not restrictive, and the scope of the invention disclosed herein is not to be determined from the Detailed Description, but rather from the claims as interpreted according to the full breadth permitted by the patent laws. It is to be understood that the embodiments shown and described herein are only illustrative of the principles of the present invention and that those skilled in the art may implement various modifications without departing from the scope and spirit of the invention. Those skilled in the art could implement various other feature combinations without departing from the scope and spirit of the invention. Having thus described aspects of the invention, with the details and particularity required by the patent laws, what is claimed and desired protected by Letters Patent is set forth in the appended claims.

Claims
  • 1. A computer-implemented method for enabling automated log analysis with controllable resource requirements, comprising: generating, by a processor operatively coupled to a memory, a training set for log pattern learning based on heterogeneous logs generated by a computer system;implementing, by the processor, an incremental learning process to generate a set of log patterns from the training set, wherein implementing the incremental learning process comprises: defining a first set as the training set, a second set as a set of log patterns that have been generated, and a third set as a set of logs of the training set that lack a matching pattern in the second set;sampling the third set to generate a fourth set having a size corresponding to a parameter controlling a maximum resource requirement for the incremental learning process; andperforming automatic log pattern recognition to generate a fifth set;parsing, by the processor, the heterogeneous logs using the set of log patterns; andapplying, by the processor, a set of applications to the parsed logs.
  • 2. The method as recited in claim 1, further comprising performing, by the processor, a log filtering process based on the fifth set.
  • 3. The method as recited in claim 2, wherein performing the log filter process comprises determining if the fifth set is empty.
  • 4. The method as recited in claim 3, wherein, in response to determining that the fifth set includes at least one log pattern, performing the log filtering process further comprises: updating the second set by adding the fifth set to the second set;updating the third set with logs identified in the third set that lack a matching pattern in the second set;in response to determining that the updated third set is empty, outputting the updated second set; andin response to determining that the updated third set includes at least one log, updating the fourth set by sampling the updated third set, and updating the fifth set by performing automatic pattern recognition using the updated fourth set.
  • 5. The method as recited in claim 4, further comprising using a log parser to identify the logs in the third set that lack a matching pattern in the second set.
  • 6. The method as recited in claim 3, wherein, in response to determining that the fifth set is empty, performing the log filtering process further comprises: updating the third set by subtracting the fourth set from the third set;in response to determining that the updated third set is empty, outputting the second set; andin response to determining that the updated third set includes at least one log, updating the fourth set by sampling the updated third set, and updating the fifth set by performing automatic pattern recognition using the updated fourth set.
  • 7. The method as recited in claim 1, wherein performing the automatic log pattern recognition further comprises: tokenizing logs of the fourth set to generate tokens from the logs of the fourth set;applying a similarity measurement on the logs to capture similarities among the logs of the fourth set;implementing a hierarchical clustering algorithm to generate a log cluster hierarchy for the logs of the fourth set;aligning the logs of the fourth set within each cluster associated with a given level of the log cluster hierarchy;conducting log motif discovery on the aligned logs to find log motifs; andperforming pattern recognition from the log motifs by recognizing one or more log fields.
  • 8. The method as recited in claim 7, wherein the one or more log fields include one or more of time stamps, Internet Protocol (IP) addresses and universal resource locators (URLs).
  • 9. The method as recited in claim 7, further comprising backpropagating, by the processor, information to higher levels of the log cluster hierarchy.
  • 10. The method as recited in claim 1, further comprising obtaining the heterogeneous logs from the computer system.
  • 11. The method as recited in claim 1, wherein the set of applications include a log-based fault management application to detect abnormal logs that do not match any log pattern of the set of the log patterns.
  • 12. The method as recited in claim 1, wherein each pattern of the set of log patterns is in terms of regular expression.
  • 13. A computer program product comprising a non-transitory computer readable storage medium having program instructions embodied therewith, the program instructions executable by a computer to cause the computer to perform a method for enabling automated log analysis with controllable resource requirements comprising: generating a training set for log pattern learning based on heterogeneous logs generated by a computer system;implementing an incremental learning process to generate a set of log patterns from the training set, wherein implementing the incremental learning process comprises: defining a first set as the training set, a second set as a set of log patterns that have been generated, and a third set as a set of logs of the training set that lack a matching pattern in the second set;sampling the third set to generate a fourth set having a size corresponding to a parameter controlling a maximum resource requirement for the incremental learning process; andperforming automatic log pattern recognition to generate a fifth set;parsing the heterogeneous logs using the set of log patterns; andapplying a set of applications to the parsed logs.
  • 14. The computer program product as recited in claim 13, wherein performing the automatic log pattern recognition further comprises: tokenizing logs of the fourth set to generate tokens from the logs of the fourth set;applying a similarity measurement on the logs to capture similarities among the logs of the fourth set;implementing a hierarchical clustering algorithm to generate a log cluster hierarchy for the logs of the fourth set;aligning the logs of the fourth set within each cluster associated with a given level of the log cluster hierarchy;conducting log motif discovery on the aligned logs to find log motifs; andperforming pattern recognition from the log motifs by recognizing one or more log fields.
  • 15. The computer program product of claim 14, further comprising performing a log filtering process based on the fifth set.
  • 16. The computer program product of claim 15, wherein performing the log filtering process comprises determining if the fifth set is empty.
  • 17. The computer program product of claim 16, wherein, in response to determining that the fifth set includes at least one log pattern, performing the log filtering process further comprises: updating the second set by adding the fifth set to the second set;updating the third set with logs identified in the third set that lack a matching pattern in the second set;in response to determining that the updated third set is empty, outputting the updated second set; andin response to determining that the updated third set includes at least one log, updating the fourth set by sampling the updated third set, and updating the fifth set by performing automatic pattern recognition using the updated fourth set.
  • 18. The computer program product as recited in claim 17, further comprising using a log parser to identify the logs in the third set that lack a matching pattern in the second set.
  • 19. The computer program product of claim 16, wherein, in response to determining that the fifth set is empty, performing the log filtering process further comprises: updating the third set by subtracting the fourth set from the third set;in response to determining that the updated third set is empty, outputting the second set; andin response to determining that the updated third set includes at least one log, updating the fourth set by sampling the updated third set, and updating the fifth set by performing automatic pattern recognition using the updated fourth set.
  • 20. A system for enabling automated log analysis with controllable resource requirements, comprising: a computer system configured to generate heterogeneous logs; andat least one processor operatively coupled to a memory, wherein the at least one processor is configured to: obtain the heterogeneous logs from the computer system, and generate a training set for log pattern learning based on the obtained logs;implement an incremental learning process to generate a set of log patterns from the training set by: defining a first set as the training set, a second set as a set of log patterns that have been generated, and a third set as a set of logs of the training set that lack a matching pattern in the second set;sampling the third set to generate a fourth set having a size corresponding to a parameter controlling a maximum resource requirement for the incremental learning process; andperforming automatic log pattern recognition to generate a fifth set;parse the heterogeneous logs using the set of log patterns; andapply a set of applications to the parsed logs.
RELATED APPLICATION INFORMATION

This application claims priority to U.S. Provisional Patent Application No. 62/473,694, filed on Mar. 20, 2017, U.S. Provisional Patent Application No. 62/474,141, filed on Mar. 21, 2017, and U.S. Provisional Patent Application No. 62/537,015, filed on Jul. 25, 2017, all incorporated by reference herein in their entirety. This application is related to applications entitled “Automatic and Scalable Log Pattern Learning in Security Log Analysis,” now U.S. Pat. No. 10,567,409, and “Security System Using Automatic and Scalable Log Pattern Learning in Security Log Analysis,” now U.S. Pat. No. 10,855,707, all incorporated by reference herein in their entirety.

US Referenced Citations (9)
Number Name Date Kind
7424619 Fan Sep 2008 B1
8402543 Ranjan Mar 2013 B1
20020162017 Sorkin Oct 2002 A1
20140149323 Fisher May 2014 A1
20140344622 Huang et al. Nov 2014 A1
20150094959 Ning Apr 2015 A1
20150154646 Mishra Jun 2015 A1
20150256551 Kang Sep 2015 A1
20150281260 Arcamone Oct 2015 A1
Non-Patent Literature Citations (2)
Entry
Ning, et al., HLAer: a System for Heterogeneous Log Analysis, SDM Workshop on Heterogeneous Learning, 2014, pp. 1-22.
Apache Hadoop—http://hadoop.apache.org/, last published Dec. 18, 2017, pp. 1-8.
Related Publications (1)
Number Date Country
20180268312 A1 Sep 2018 US
Provisional Applications (3)
Number Date Country
62473694 Mar 2017 US
62474141 Mar 2017 US
62537015 Jul 2017 US