# US 2021/0174253 A1 · Analysis of system log data using machine learning

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

- Number: US 2021/0174253 A1
- Document ID: US20210174253A1
- Status: Published application
- Kind: A1
- Application number: 17/061,956
- Filed: 2020-10-02
- Published: 2021-06-10
- Earliest claimed: 2019-12-10
- Assignees: Triad National Security, LLC
- Applicants: Triad National Security, LLC
- Inventors: Elisabeth Ann Moore; Nathan A. Debardeleben; Sean P. Blanchard
- Web page: https://patentgrep.com/patent/US20210174253A1

## CPC

- G06F 11/079: {Root cause analysis, i.e. error or fault diagnosis (in a hardware test environment G06F11/22; in a software test environment G06F11/36)}
- G06N 20/00: Machine learning
- G06F 11/0751: {Error or fault detection not based on redundancy (power supply failures G06F1/30; network fault management H04L41/06)}
- G06F 11/0769: {Readable error formats, e.g. cross-platform generic formats, human understandable formats}
- G06F 11/0775: {Content or structure details of the error report, e.g. specific table structure, specific error fields}
- G06F 11/0781: {Error filtering or prioritizing based on a policy defined by the user or on a policy defined by a hardware/software module, e.g. according to a severity level}
- G06F 11/323: {Visualisation of programs or trace data}
- G06F 21/552: {involving long-term monitoring or reporting}
- G06N 5/01: Dynamic search techniques; Heuristics; Dynamic trees; Branch-and-bound
- G06N 7/01: Probabilistic graphical models, e.g. probabilistic networks
- G06N 20/20: Ensemble learning
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Systems and methods for detecting anomalies in machine-generated logs are described. Machine-generated logs are processed and analyzed using machine learning models to determine whether a log message is anomalous. The system may use machine learning models that are configured to process particular types of log messages. An explanation for why the system detected an anomaly in the log message is also generated based on processing of the log message.

## Claims

### Claim 1

A computer-implemented method for detecting an anomalous message in a machine-generated log, the method comprising:
receiving a plurality of log messages of the machine-generated log, the plurality of log messages including at least a first log message and a second log message;
determining a first process tag associated with the first log message and a second process tag associated with the second log message;
selecting, from a plurality of machine learning models, a first machine learning model corresponding to the first process tag;
processing the first log message using the first machine learning model to determine model data;
determining, using the model data, that the first log message is potentially anomalous;
determining, using the model data, an explanation for determining that the first log message is potentially anomalous; and
generating output data including the explanation and an indicator that the first log message is anomalous.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, further comprising:
processing the first log message using the first machine learning model to determine a first score, the first score representing a likelihood that the first log message is potentially anomalous,
wherein the output data is further generated based on the first score satisfying a condition.

### Claim 3 (depends on 2)

The computer-implemented method of claim 2, further comprising:
processing the first log message using a second machine learning model to determine a second score corresponding to the first log message, the second score representing the first log message is of interest to a user,
wherein the second machine learning model is configured using inputs received from the user, the inputs indicating a first set of log messages of interest to the user and a second set of log message of non-interest to the user.

### Claim 4 (depends on 3)

The computer-implemented method of claim 3, further comprising:
determining a third score, based at least in part on the first score and the second score, corresponding to the first log message; and
determining that the third score satisfies a condition,
wherein generating the output data is further based on the third score satisfying a condition.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, further comprising:
determining feature data corresponding to the first log message,
wherein the first machine learning model is a random forest model, and
wherein processing the first log message using the first machine learning model comprises processing the feature data using the random forest model.

### Claim 6 (depends on 5)

The computer-implemented method of claim 5, wherein the model data corresponds to a traversal path taken in processing the feature data using the random forest model, and
wherein the explanation is determined based at least in part on the traversal path and a decision threshold corresponding to at least one feature included in the feature data.

### Claim 7 (depends on 5)

The computer-implemented method of claim 5, wherein the feature data includes a first feature representing a word in the first log message and a second feature representing a numerical value in the first log message.

### Claim 8 (depends on 1)

The computer-implemented method of claim 1, further comprising:
sending, to a device, the output data; and
causing the device to display to the output data and the first log message.

### Claim 9 (depends on 8)

The computer-implemented method of claim 8, further comprising:
receiving, from the device, an input confirming the first log message is anomalous;
storing feedback data in response to receiving the input, the feedback data associated with the first log message; and
configuring the first machine learning model or a second machine learning model using the feedback data, the second machine learning model configured to determine that an input log message is of interest to a user associated with the device.

### Claim 10

A computing system for detecting an anomalous message in a machine-generated log, the system comprising:
at least one processor; and
at least one memory comprising instructions that, when executed by the at least one processor, cause the computing system to:
receive a plurality of log messages of the machine-generated log;
process the plurality of log messages to determine a first process tag associated with a first log message of the plurality of log messages and a second process tag associated with a second log message;
select, from a plurality of machine learning models, a first machine learning model corresponding to the first process tag;
process the first log message using the first machine learning model to determine model data;
determine, using the model data, that the first log message is potentially anomalous;
determine, using the model data, an explanation for determining that the first log message is potentially anomalous; and
generate output data including the explanation and an indicator that the first log message is anomalous.

### Claim 11 (depends on 10)

The computing system of claim 10, wherein the at least one memory further comprises instructions that, when executed by the at least one processor, further cause the computing system to:
process the first log message using the first machine learning model to determine a first score, the first score representing a likelihood that the first log message is potentially anomalous,
wherein the output data is further generated based on the first score satisfying a condition.

### Claim 12 (depends on 11)

The computing system of claim 11, wherein the at least one memory further comprises instructions that, when executed by the at least one processor, further cause the computing system to:
process the first log message using a second machine learning model to determine a second score corresponding to the first log message, the second score representing the first log message is of interest to a user,
wherein the second machine learning model is configured using inputs received from the user, the inputs indicating a first set of log messages of interest to the user and a second set of log message of non-interest to the user.

### Claim 13 (depends on 12)

The computing system of claim 12, wherein the at least one memory further comprises instructions that, when executed by the at least one processor, further cause the computing system to:
determine a third score, based at least in part on the first score and the second score, corresponding to the first log message; and
determine that the third score satisfies a condition,
wherein generating the output data is further based on the third score satisfying a condition.

### Claim 14 (depends on 10)

The computing system of claim 10, wherein the at least one memory further comprises instructions that, when executed by the at least one processor, further cause the computing system to:
determine feature data corresponding to the first log message,
wherein the first machine learning model is a random forest model, and
wherein processing the first log message using the first machine learning model comprises processing the feature data using the random forest model.

### Claim 15 (depends on 14)

The computing system of claim 14, wherein the model data corresponds to a traversal path taken in processing the feature data using the random forest model, and
wherein the explanation is determined based at least in part on the traversal path and a decision threshold corresponding to at least one feature included in the feature data.

### Claim 16 (depends on 14)

The computing system of claim 14, wherein the feature data includes a first feature representing a word in the first log message and a second feature representing a numerical value in the first log message.

### Claim 17 (depends on 10)

The computing system of claim 10, wherein the at least one memory further comprises instructions that, when executed by the at least one processor, further cause the computing system to:
send, to a device, the output data; and
cause the device to display to the output data and the first log message.

### Claim 18 (depends on 17)

The computing system of claim 17, wherein the at least one memory further comprises instructions that, when executed by the at least one processor, further cause the computing system to:
receive, from the device, an input confirming the first log message is anomalous;
store feedback data in response to receiving the input, the feedback data associated with the first log message; and
configure the first machine learning model or a second machine learning model using the feedback data, the second machine learning model configured to determine that an input log message is of interest to a user associated with the device.

### Claim 19

At least one non-transitory, computer-readable medium may be encoded with instructions which, when executed by at least one processor included in a system, cause the system to:
receive a plurality of log messages of a machine-generated log;
process the plurality of log messages to determine a first process tag associated with a first log message of the plurality of log messages and a second process tag associated with a second log message;
select, from a plurality of machine learning models, a first machine learning model corresponding to the first process tag;
process the first log message using the first machine learning model to determine model data;
determine, using the model data, that the first log message is potentially anomalous;
determine, using the model data, an explanation for determining that the first log message is potentially anomalous; and
generate output data including the explanation and an indicator that the first log message is anomalous.

### Claim 20 (depends on 19)

The at least one non-transitory, computer-readable medium of claim 19, further encoded with instructions which, when executed by at least one processor included in a system, cause the system to:
determine feature data corresponding to the first log message,
wherein the first machine learning model is a random forest model, and
wherein processing the first log message using the first machine learning model comprises processing the feature data using the random forest model.
