Presentation is loading. Please wait.

Presentation is loading. Please wait.

LogTree: A Framework for Generating System Events from Raw Textual Logs Liang Tang and Tao Li School of Computing and Information Sciences Florida International.

Similar presentations


Presentation on theme: "LogTree: A Framework for Generating System Events from Raw Textual Logs Liang Tang and Tao Li School of Computing and Information Sciences Florida International."— Presentation transcript:

1 LogTree: A Framework for Generating System Events from Raw Textual Logs Liang Tang and Tao Li School of Computing and Information Sciences Florida International University Miami, 33199, USA

2 2 Outline 1. Problem Statement 2. Motivation 3. Semi-structural Log Message Clustering 4. Message Segment Table 5. Evaluation

3 3 Problem Statement (1) 1. System log analysis is widely used for anomaly detection, fault prevention. 2. Many systems only generate textual log messages. Raw textual log messages are difficult to analyze.

4 4 Problem Statement (2) 1. Most temporal pattern mining algorithms are based on system events. We try to generate events from system log messages.

5 5 Problem Statement (3) 1. Traditional solution : Writing a full log parser. 2. Weaknesses: 1.Only famous systems, such as Apache Web Server, Microsoft IIS has well developed log parsers. 2.Time consuming to read documents and understand each type of log messages to write a parser by our own. 3.Many document is incomplete or only in the developer’s brain. 4.System is constantly updated, its log is constantly updated as well.

6 6 Outline 1. Problem Statement 2. Motivation 3. Semi-structural Log Message Clustering 4. Message Segment Table 5. Evaluation

7 Motivation (1)  Similar log messages describe the same event.  We can use data clustering algorithm on log messages.  However, how to define the similarity between two log messages? 7

8 Similarity between two sequences of terms: 1. Cosine similarity on Tf-idf vector 2. Jaccard Index Similarity. 3. Word Sequence Matching. Motivation (2) 8

9 Similarity between two sequences of terms: 1. Cosine similarity on Tf-idf vector 2. Jaccard Index Similarity. 3. Word Sequence Matching. Motivation (3) 9 How if two log messages have two different sets of words(terms)?

10 In PVFS2 log files, the two following log messages both belong to status event. However, none of terms are identical ! Motivation (4) 10

11 In PVFS2 log files, the two following log messages both belong to status event. However, none of terms are identical ! Motivation (4) 11 But, they have similar format. Format may be more useful than terms.

12 12 Outline 1. Problem Statement 2. Motivation 3. Semi-structural Log Message Clustering 4. Message Segment Table 5. Evaluation

13 13 Semi-structural Log Message Clustering (1) Step 1: Convert into semi-structural log messages ( log tree). Step 2: Compute similarities between pair-wise log trees. Step 3: Apply data clustering on the similarity matrix.

14 14 Semi-structural Log Message Clustering (2) Step 1: Convert into semi-structural log messages ( log tree).

15 15 Semi-structural Log Message Clustering (2) Step 1: Convert into semi-structural log messages ( log tree). Accomplished by a simple log parser.  It is only a context-free grammar parser.  It separates log message by comma, TAB, etc.  It does NOT identify the meaning of terms (words).  It can be automatically created by JLex and JCup (or JAVACC) tools.

16 16 Semi-structural Log Message Clustering (3) Step 2: Compute similarities between pair-wise log trees. s 1, s 2 are two log messages. Recursive Function for weight w

17 17 Semi-structural Log Message Clustering (3) Step 2: Compute similarities between pair-wise log trees. s 1, s 2 are two log messages. Root node of s 1 Root node of s 2 Message Segment at node v 1 Message Segment at node v 2

18 18 Semi-structural Log Message Clustering (3) Step 2: Compute similarities between pair-wise log trees. s 1, s 2 are two log messages. Root node of s 1 Root node of s 2 Message Segment at node v 1 Message Segment at node v 2 Best matching between subtree v 1 ’s nodes with subtree v 2 ’s nodes

19 19 Semi-structural Log Message Clustering (3) Step 2: Compute similarities between pair-wise log trees. s 1, s 2 are two log messages. Root node of s 1 Root node of s 2 Message Segment at node v 1 Message Segment at node v 2 Best matching between subtree v 1 ’s nodes with subtree v 2 ’s nodes Decrease weight for lower layer < 1

20 20 Semi-structural Log Message Clustering (3) Step 2: Compute similarities between pair-wise log trees. s 1, s 2 are two log messages. Root node of s 1 Root node of s 2 Message Segment at node v 1 Message Segment at node v 2 Best matching between subtree v 1 ’s nodes with subtree v 2 ’s nodes Decrease weight for lower layer < 1 Distance of Message Segment

21 Two message segments: m 1 =p 1 …p n1, m 2 =q 1 …q n2 t(.) is the type of a term, types={number, separator, word, hostname…} 21 Semi-structural Log Message Clustering (3) Distance of Message Segment m 1 and m 2 Type of a term

22 Why this similarity is better? 1. We use format information, take account the format similarity. 2. Similarity is computed based on best matched pair of message segments. For example, two message s 1 and s 2 both contain,. It is not fair to compute similarity of s 1 ’s and s 2 ’s. 22 Semi-structural Log Message Clustering (4)

23 Comparing to Tree Kernel:  Our similarity function is similar to tree kernel. However, –Tree kernel doesn’t assign importance weights for different layers of nodes. –Tree kernel compute every pair-wise nodes at each layer, very time-consuming. For our clustering, we don’t need similarity function to be a kernel function. 23 Semi-structural Log Message Clustering (5)

24 24 Outline 1. Problem Statement 2. Motivation 3. Semi-structural Log Message Clustering 4. Message Segment Table 5. Evaluation

25 25 Message Segment Table (1) 1. A lot of message segments are duplicated. 2. Duplicated computation for the similarity of two message segments have been seen before? 3. Therefore, we build a data structure in memory to maintain high frequent appeared message segments.

26 26 Message Segment Table (2) 1. Message Segment Table is composed by a hash table and a similarity matrix. Occurrences (For keeping track of the frequency) Column index Similarity Matrix

27 27 Message Segment Table (3)  MST Building: 1.Scan one pass, pick up high frequent message segments. 2.Put into Column Hash Table and similarity matrix. 3.Compute entries of the matrix.  Looking up MST: 1.Search Column Hash Table to find the column index. 2.Extract the value from the similarity matrix by column index.  Updating MST: 1.Search Column Hash Table to find the occurrence. 2.Insert/Remove Column Hash Table according to frequencies. 3.Then, modify similarity matrix… See details in the paper

28 28 Outline 1. Problem Statement 2. Motivation 3. Semi-structural Log Message Clustering 4. Message Segment Table 5. Evaluation

29 Experiment Machines, Data Collection : Evaluation (1) 29

30  Comparative Methods: –Two traditional clustering algorithms: k-means and single-link hierarchical clustering. –We implements all by Java 1.5  Comparing Metric: –F1-Score Evaluation (2) 30

31  Accuracy Result: Evaluation (3) 31 TF-IDF and Jaccard perform badly. Sometimes, Tree kernel is better than LogTree. But, it is much slower.

32  Efficiency Result: Note the running time of LogTree includes the time for building Message Segment Table. Evaluation (4) 32 TF-IDF is fastest, but the accuracy is very bad. Tree Kernel and Jaccard are slow. LogTree is the second fastest one.

33  Time Scalability: This experiment is done in the second machine ( 64-bits Linux server), and up to 10K log messages. Evaluation (5) 33

34  Memory Space Scalability: f min = 0.00001. Evaluation (6) 34 Number of Entries in Message Segment Table

35  A Case Study: for detecting configuration error in Apache Web Server. Evaluation (7) 35 An configuration error will case a series of continuous errors.

36 36 The End Thank you! Authors’ contact information: Liang Tang: ltang002@cs.fiu.edultang002@cs.fiu.edu Tao Li: taoli@cs.fiu.edutaoli@cs.fiu.edu


Download ppt "LogTree: A Framework for Generating System Events from Raw Textual Logs Liang Tang and Tao Li School of Computing and Information Sciences Florida International."

Similar presentations


Ads by Google