# US 2017/0286525 A1 · Field Extraction Rules from Clustered Data Samples

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

- Number: US 2017/0286525 A1
- Document ID: US20170286525A1
- Status: Published application
- Kind: A1
- Application number: 15/143,563
- Filed: 2016-04-30
- Published: 2017-10-05
- Earliest claimed: 2016-03-31
- Assignees: Splunk Inc.
- Applicants: Splunk Inc.
- Inventors: Li Li; Gang Tao; Yongxin Su; Junqing Hao; Ting Wang; John Robert Coates; Elias Haddad; Guodong Wang
- Web page: https://patentgrep.com/patent/US20170286525A1

## CPC

- G06F 16/287: {Visualization; Browsing}
- G06F 16/2477: {Temporal data queries}
- G06N 20/00: Machine learning
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

The operation of an automatic data input and query system is controlled by well-defined control data. Certain control data may relate to data schemas and direct operations performed by the system to extract fields from machine data. Automatic methods may determine proper field extraction control information by analyzing a sample of data from a source, breaking the sample data into event segments, classifying the segments into groups based on a measure of similarity, determining an operable extraction rule for each group, and storing the resulting extraction model. Data patterns known by the system can be leveraged to perform the event breaking and field identification for the classifying. Embodiments may provide a user interface to view, interact with, and approve the computer-generated extraction model.

## Claims

### Claim 1

A method comprising:
receiving a sample of source data representative of machine data produced by a data source, the machine data comprising event segments;
identifying a plurality of event segments of the sample;
classifying the event segments into two or more groups based at least in part on a determination of similarity;
determining automatically, for each of the groups, an extraction rule to extract a common set of one or more fields from each event segment of the group;
storing the extraction rules in computer memory; and
wherein the method is performed by a computing system comprising one or more processors.

### Claim 2 (depends on 1)

The method of claim 1 wherein identifying a plurality of event segments includes matching patterns that indicate known event boundaries for one or more data sources.

### Claim 3 (depends on 1)

The method of claim 1 wherein classifying includes automatically identifying one or more fields in an event segment.

### Claim 4 (depends on 1)

The method of claim 1 wherein classifying includes automatically identifying one or more fields in an event segment by matching patterns associated with one or more known fields.

### Claim 5 (depends on 1)

The method of claim 1 wherein classifying includes automatically identifying one or more fields in an event segment by matching patterns associated with one or more known fields of a late-binding schema.

### Claim 6 (depends on 1)

The method of claim 1 wherein classifying includes automatically identifying one or more fields in an event segment by matching patterns associated with one or more known fields of a late-binding schema, the known fields having an association with a domain category.

### Claim 7 (depends on 1)

The method of claim 1 wherein the determination of similarity includes a statistical classification.

### Claim 8 (depends on 1)

The method of claim 1 wherein the determination of similarity includes a cluster analysis.

### Claim 9 (depends on 1)

The method of claim 1 wherein the determination of similarity includes a cluster analysis based at least in part on one or more from among connectivity-based clustering, centroid-based clustering, distribution-based clustering, density-based clustering, canopy clustering, K-means clustering, subspace clustering, and correlation clustering.

### Claim 10 (depends on 1)

The method of claim 1 wherein:
identifying a plurality of event segments includes matching patterns that indicate event boundaries for one or more known data sources;
classifying includes automatically identifying one or more fields in an event segment; and
the determination of similarity includes a statistical classification.

### Claim 11 (depends on 1)

The method of claim 1 wherein storing the extraction rules includes storing the extraction rules in association with a data sourcetype of the data source.

### Claim 12 (depends on 1)

The method of claim 1 wherein storing the extraction rules includes storing the extraction rules in association with the data source.

### Claim 13 (depends on 1)

The method of claim 1 wherein storing the extraction rules includes storing the extraction rules as an extraction model.

### Claim 14 (depends on 1)

The method of claim 1 wherein storing the extraction rules includes storing the extraction rules as an extraction model of a data source.

### Claim 15 (depends on 1)

The method of claim 1 wherein storing the extraction rules includes storing the extraction rules as an extraction model of a data sourcetype.

### Claim 16 (depends on 1)

The method of claim 1 wherein storing the extraction rules is conditioned, at least in part, on receiving an indication of acceptance based on user interaction with the user interface displaying a representation of one or more of the extraction rules.

### Claim 17 (depends on 1)

The method of claim 1 wherein storing the extraction rules is conditioned, at least in part, on receiving an indication of acceptance based on user interaction with the user interface displaying a representation of one or more of the extraction rules, the representation including a depiction of an event segment.

### Claim 18 (depends on 1)

The method of claim 1 wherein storing the extraction rules is conditioned, at least in part, on receiving an indication of acceptance based on user interaction with the user interface displaying a representation of one or more of the extraction rules, the representation including a depiction of an event segment having one or more field portions color-coded in accordance with a particular extraction rule.

### Claim 19 (depends on 1)

The method of claim 1 wherein storing the extraction rules is conditioned, at least in part, on receiving an indication of acceptance based on user interaction with the user interface displaying a representation of one or more of the extraction rules, the representation including a depiction of an event segment having one or more field portions each substituted with a field identifier in accordance with a particular extraction rule.

### Claim 20 (depends on 1)

The method of claim 1 wherein the method is further performed by the computer system with sufficient speed is to deliver an acceptable response time in an interactive user session.

### Claim 21 (depends on 1)

The method of claim 1 wherein the method is further performed by the computer system with sufficient speed is to deliver an acceptable response time of about 20 seconds or less.

### Claim 22 (depends on 1)

The method of claim 1 wherein the method is further performed by the computer system with sufficient speed is to deliver an acceptable response time of about 5 seconds or less.

### Claim 23

A system comprising:
a memory; and
a processing device coupled with the memory to:
receive a sample of source data representative of machine data produced by a data source, the machine data comprising event segments;
identify a plurality of event segments of the sample;
classify the event segments into two or more groups based at least in part on a determination of similarity;
determine automatically, for each of the groups, an extraction rule to extract a common set of one or more fields from each event segment of the group; and
store the extraction rules in computer memory.

### Claim 24 (depends on 23)

The system of claim 23 wherein to classify includes automatically identifying one or more fields in an event segment.

### Claim 25 (depends on 23)

The system of claim 23 wherein the determination of similarity includes a statistical classification.

### Claim 26 (depends on 23)

The system of claim 23 wherein to store the extraction rules is conditioned, at least in part, on receiving an indication of acceptance based on user interaction with the user interface displaying a representation of one or more of the extraction rules, the representation including a depiction of an event segment.

### Claim 27

A non-transitory computer readable storage medium encoding instructions thereon that, in response to execution by one or more processing devices, cause the one or more processing devices to perform operations comprising:
receiving a sample of source data representative of machine data produced by a data source, the machine data comprising event segments;
identifying a plurality of event segments of the sample;
classifying the event segments into two or more groups based at least in part on a determination of similarity;
determining automatically, for each of the groups, an extraction rule to extract a common set of one or more fields from each event segment of the group; and
storing the extraction rules in computer memory.

### Claim 28 (depends on 27)

The computer readable storage medium of claim 27 wherein classifying includes automatically identifying one or more fields in an event segment.

### Claim 29 (depends on 27)

The computer readable storage medium of claim 27 wherein the determination of similarity includes a statistical classification.

### Claim 30 (depends on 27)

The computer readable storage medium of claim 27 wherein storing the extraction rules is conditioned, at least in part, on receiving an indication of acceptance based on user interaction with the user interface displaying a representation of one or more of the extraction rules, the representation including a depiction of an event segment.
