# US 11,120,033 B2 · Computer log retrieval based on multivariate log time series

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

- Number: US 11,120,033 B2
- Document ID: US11120033B2
- Status: Granted
- Kind: B2
- Application number: 16/400,348
- Filed: 2019-05-01
- Published: 2019-11-21
- Granted: 2021-09-14
- Earliest claimed: 2018-05-16
- Assignees: NEC Corporation
- Applicants: NEC Laboratories America, Inc.
- Inventors: Jianwu Xu; Haifeng Chen
- Web page: https://patentgrep.com/patent/US11120033B2

## CPC

- G06F 16/2477: {Temporal data queries}
- G06F 11/0709: {in a distributed system consisting of a plurality of standalone computer nodes, e.g. clusters, client-server systems}
- G06F 11/0751: {Error or fault detection not based on redundancy (power supply failures G06F1/30; network fault management H04L41/06)}
- G06F 11/0778: {Dumping, i.e. gathering error/state information after a fault for later diagnosis}
- 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)}
- G06F 16/2237: {Vectors, bitmaps or matrices}
- 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/3476: {Data logging (G06F11/14, G06F11/2205 take precedence)}
- G06F 40/30: Semantic analysis
- G06N 20/00: Machine learning
- H04L 43/04: Processing captured monitoring data, e.g. for logfile generation
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Systems and methods for computer log retrieval are provided. A system can receive a set of query logs, and transform the set of query logs into a query log multivariate time series. The system accesses log multivariate time series of historical logs, and computes and ranks a similarity distance between the query log multivariate time series and each of the log multivariate time series of the historical logs. The system also retrieves a highest ranked set of historical logs as a most similar set of logs compared to the set of query logs.

## Claims

### Claim 1

A method for computer log retrieval, comprising:
parsing, by a processor device, each log of a set of logs, and comparing each log against a model database, wherein parsing includes applying a clustering process and pattern recognition to unparsed logs from the set of logs to produce new log formats;
frequency counting each of one or more log formats of the set of logs to obtain single time series;
forming a multivariate time series from the single time series according to log message frequencies within a selected time resolution for each log format in the set of logs;
obtaining a time series signature for the set of logs based on the multivariate time series; and
storing and indexing the time series signature in the model database in a query accessible format.

### Claim 2 (depends on 1)

The method as recited in claim 1, wherein the new log formats include log formats that do not exist in an aggregation of all previous log formats.

### Claim 3 (depends on 1)

The method as recited in claim 1, wherein frequency counting for each log format of the set of logs to obtain single time series further comprises:
counting a number of log messages in each of a plurality of time ranges for each log format; and
generating the single time series based on the number of log messages in each of the plurality of time ranges.

### Claim 4 (depends on 1)

The method as recited in claim 1, wherein frequency counting further comprises:
setting a starting point for frequency counting based on a common reference in both a learning stage and a query stage; and
forming consecutive time periods based on a time range parameter and the common reference.

### Claim 5 (depends on 1)

The method as recited in claim 1, further comprising:
outputting a final multiple sets of multivariate log format time series for the set of logs to represent the set of logs.

### Claim 6 (depends on 1)

The method as recited in claim 1, wherein the multi-variate time series includes log system dynamics of the set of logs.

### Claim 7 (depends on 1)

The method as recited in claim 1, wherein each of at least one item and each of at least one entry in the database is a key-value pair and wherein a key is an index of the set of logs and a value is a corresponding joint syntactic and semantic feature vector.

### Claim 8 (depends on 1)

The method as recited in claim 1, further comprising:
retrieving computer logs based on log system dynamics information of the set of logs.

### Claim 9

A method for computer log retrieval, comprising:
receiving a set of query logs;
transforming, by a processor device, the set of query logs into a query log multi-variate time series;
accessing log multivariate time series of historical logs;
computing and ranking a similarity distance between the query log multivariate time series and the log multivariate time series of the historical logs;
providing a final similarity score including a summation of all similarity distances divided by a total number of distinct log formats between sets of multivariate time series; and
retrieving a highest ranked set of historical logs, the highest ranked set being a most similar set of logs compared to the set of query logs.

### Claim 10 (depends on 9)

The method as recited in claim 9, further comprising:
presenting the retrieved set of logs with extracted statistics.

### Claim 11 (depends on 9)

The method as recited in claim 9, wherein accessing the log multivariate time series of the historical logs further comprises:
determining the log multivariate time series of the historical logs.

### Claim 12 (depends on 9)

The method as recited in claim 9, further comprising:
ranking the similarity distance based on a cosine similarity.

### Claim 13 (depends on 9)

The method as recited in claim 9, further comprising:
extracting an entire log signature multivariate log format time series database with log format identifiers and corresponding time series; and
writing the entire log signature multivariate log format time series database into a file for subsequent processing.

### Claim 14 (depends on 9)

The method as recited in claim 9, further comprising:
identifying variables A and B associated with the set of query logs and the historical logs;
determining a cosine similarity, cos(θ), using a dot product and magnitude represented as
cos
⁡
(
θ
)
=
A
·
B

A

⁢
⁢

B

=
∑
i
=
1
n
⁢
A
i
⁢
B
i
∑
i
=
1
n
⁢
A
i
2
⁢
∑
i
=
1
n
⁢
B
i
2
,
wherein each Ai and Bi are term frequencies of log message counts within a particular time period.

### Claim 15 (depends on 9)

The method as recited in claim 9, wherein transforming the set of query logs into the query log multi-variate time series further comprises:
generating the query log multi-variate time series by sliding a time partition window for each of a plurality of time periods to a limit of a time range parameter.

### Claim 16 (depends on 9)

The method as recited in claim 9, further comprising:
determining a maximum value of self-similarity of a normal historical log of the set of historical logs; and
detecting an anomaly in response to determining that a value of similarity of the query logs to the set of historical logs is greater than the maximum value of self-similarity.

### Claim 17 (depends on 9)

The method as recited in claim 9, wherein the similarity distance is defined as a log formats multivariate time series similarity between sets of logs.

### Claim 18

A computer system for computer log retrieval, comprising:
a processor device operatively coupled to a memory device, the processor device being configured to:
receive a set of query logs;
transform the set of query logs into a query log multi-variate time series;
access a log multivariate time series of historical logs;
compute and rank a similarity distance between the query log multivariate time series and the log multivariate time series of the historical logs;
provide a final similarity score including a summation of all similarity distances divided by a total number of distinct log formats between sets of multivariate time series; and
retrieve a highest ranked set of historical logs as a most similar set of logs compared to the set of query logs.
