Systems and methods for trie-based automated discovery of patterns in computer logs
AssigneeSumo Logic, Inc.
InventorsPrzemyslaw Maciolek, Daniel Cincunegui, Krzysztof Koszyka
Life of this patent
Estimating the term…
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.
Claims20
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.
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.
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.
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.
The computer program product of claim 17, wherein the unique pattern identifier comprises an identifier of a pattern represented by the sequence of nodes.
Dependencies are inferred from the claim text.