# US 2021/0081437 A1 · Systems and methods for trie-based automated discovery of patterns in computer logs

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0081437 A1
- Document ID: US20210081437A1
- Status: Published application
- Kind: A1
- Application number: 17/098,170
- Filed: 2020-11-13
- Published: 2021-03-18
- Earliest claimed: 2016-08-15
- Assignees: Sumo Logic, Inc.
- Applicants: Sumo Logic
- Inventors: Przemyslaw Maciolek; Daniel Cincunegui; Krzysztof Koszyka
- Web page: https://patentgrep.com/patent/US20210081437A1

## CPC

- G06F 16/285: {Clustering or classification}
- G06F 16/2452: Query translation
- G06F 16/24575: {using context}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Systems and methods for tokenization of log records for efficient data storage, log querying, and log data analytics can utilize a trie pattern conversion of the log files, storing trie data pattern IDs, free parameters, and metadata instead of the entire log record. New trie patterns can be discovered automatically by counting the occurrences of tokens matching wildcards for existing patterns.

## Claims

### Claim 1

A system, comprising:
a processor configured to:
collect logs from a plurality of applications;
tokenize a log into a plurality of tokens;
based at least in part on tokens in the plurality of tokens, match the log to a pattern in a stored trie, wherein the pattern is associated with a unique pattern identifier;
extract a set of free parameters and a set of metadata from the log; and
store the log as a combination of the unique pattern identifier, the set of free parameters, and the set of metadata; and
a memory coupled to the processor and configured to provide the processor with instructions.

### Claim 2 (depends on 1)

The system recited in claim 1, wherein tokenizing the log comprises tokenizing the log into a sequence of tokens.

### Claim 3 (depends on 2)

The system recited in claim 2, wherein the matching comprises matching iteratively, token by token, the sequence of tokens to a sequence of nodes in the stored trie.

### Claim 4 (depends on 3)

The system recited in claim 3, wherein the unique pattern identifier comprises an identifier of a pattern represented by the sequence of nodes.

### Claim 5 (depends on 4)

The system recited in claim 4, wherein the unique pattern identifier is associated with a last matched node in the sequence of nodes.

### Claim 6 (depends on 2)

The system recited in claim 2, wherein the sequence of tokens comprises character strings delimited by spaces.

### Claim 7 (depends on 1)

The sequence recited in claim 1, wherein the processor is further configured to perform a query at least in part by:
tokenizing a query request; and
matching the tokenized query request to one or more patterns associated with the stored trie.

### Claim 8

A method, comprising:
collecting logs from a plurality of applications;
tokenizing a log into a plurality of tokens;
based at least in part on tokens in the plurality of tokens, matching the log to a pattern in a stored trie, wherein the pattern is associated with a unique pattern identifier;
extracting a set of free parameters and a set of metadata from the log; and
storing the log as a combination of the unique pattern identifier, the set of free parameters, and the set of metadata.

### Claim 9 (depends on 8)

The method of claim 8, wherein tokenizing the log comprises tokenizing the log into a sequence of tokens.

### Claim 10 (depends on 9)

The method of claim 9, wherein the matching comprises matching iteratively, token by token, the sequence of tokens to a sequence of nodes in the stored trie.

### Claim 11 (depends on 10)

The method of claim 10, wherein the unique pattern identifier comprises an identifier of a pattern represented by the sequence of nodes.

### Claim 12 (depends on 11)

The method of claim 11, wherein the unique pattern identifier is associated with a last matched node in the sequence of nodes.

### Claim 13 (depends on 9)

The method of claim 9, wherein the sequence of tokens comprises character strings delimited by spaces.

### Claim 14 (depends on 8)

The method of claim 8, further comprising performing a query at least in part by:
tokenizing a query request; and
matching the tokenized query request to one or more patterns associated with the stored trie.

### Claim 15

A computer program product embodied in a non-transitory computer readable storage medium and comprising computer instructions for:
collecting logs from a plurality of applications;
tokenizing a log into a plurality of tokens;
based at least in part on tokens in the plurality of tokens, matching the log to a pattern in a stored trie, wherein the pattern is associated with a unique pattern identifier;
extracting a set of free parameters and a set of metadata from the log; and
storing the log as a combination of the unique pattern identifier, the set of free parameters, and the set of metadata.

### Claim 16 (depends on 15, 16)

The computer program product of claim 15, wherein tokenizing the log comprises tokenizing the log into a sequence of tokens. s 17. The computer program product of claim 16, wherein the matching comprises matching iteratively, token by token, the sequence of tokens to a sequence of nodes in the stored trie.

### Claim 18 (depends on 17)

The computer program product of claim 17, wherein the unique pattern identifier comprises an identifier of a pattern represented by the sequence of nodes.

### Claim 19 (depends on 18)

The computer program product of claim 18, wherein the unique pattern identifier is associated with a last matched node in the sequence of nodes.

### Claim 20 (depends on 16)

The computer program product of claim 16, wherein the sequence of tokens comprises character strings delimited by spaces.

### Claim 21 (depends on 15)

The computer program product of claim 15, further comprising computer instructions for performing a query at least in part by:
tokenizing a query request; and
matching the tokenized query request to one or more patterns associated with the stored trie.
