Searching for associated events in log data
First Claim
Patent Images
1. A method comprising:
- creating an index of terms in log messages for retrieving one or more events in response to an input search query, the log messages comprising one or more stored events, the input search query comprising a constant component;
parsing the input search query, including identifying the constant component from the input search query;
based on results obtained from parsing the input search query, forming a span query for associated events, the span query including a first constraint for a first event, a second constraint for a second event, and a relation between the first event and second event, the span query being selected from a group of query types consisting of a sequence of events query, a multiple restriction query, and a causation query; and
running the input search query, including performing the span query on the index to determine the first event and the second event, the second event being associated with the first event according to the relation, wherein performing the span query comprises;
performing a constant query based on the constant components of the input search query to identify one or more constant events;
retrieving events preceding the one or more constant events;
building a merged event intersection lattice for one or more merged events and a constant event intersection lattice for the identified one or more constant events, each lattice including a set of event intersections between two or more sets of events;
performing a set subtraction to determine one or more differences between the merged event intersection lattice and the constant event intersection lattice; and
outputting the one or more differences as answers to the input search query, andwherein the method is executed by one or more computers.
15 Assignments
0 Petitions
Accused Products
Abstract
To retrieve a sequence of associated events in log data, a request expression is parsed to retrieve types of dependencies between events which are searched, and the constraints (e.g., keywords) which characterize each event. Based on the parsing results, query components can be formed, expressing the constraints for individual events and interrelations (e.g., time spans) between events. A resultant span query comprising the query components can then be run against an index of events, which encodes a mutual location of associated events in storage.
-
Citations
21 Claims
-
1. A method comprising:
-
creating an index of terms in log messages for retrieving one or more events in response to an input search query, the log messages comprising one or more stored events, the input search query comprising a constant component; parsing the input search query, including identifying the constant component from the input search query; based on results obtained from parsing the input search query, forming a span query for associated events, the span query including a first constraint for a first event, a second constraint for a second event, and a relation between the first event and second event, the span query being selected from a group of query types consisting of a sequence of events query, a multiple restriction query, and a causation query; and running the input search query, including performing the span query on the index to determine the first event and the second event, the second event being associated with the first event according to the relation, wherein performing the span query comprises; performing a constant query based on the constant components of the input search query to identify one or more constant events; retrieving events preceding the one or more constant events; building a merged event intersection lattice for one or more merged events and a constant event intersection lattice for the identified one or more constant events, each lattice including a set of event intersections between two or more sets of events; performing a set subtraction to determine one or more differences between the merged event intersection lattice and the constant event intersection lattice; and outputting the one or more differences as answers to the input search query, and wherein the method is executed by one or more computers. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A system comprising:
-
a storage device operable for storing one or more events as log messages; and a processor coupled to the storage device and configured to perform operations comprising; creating an index of terms in the log messages in retrieving the one or more events in response to an input search query, the log messages comprising one or more stored events, the input search query comprising a constant component; parsing the input search query, including identifying the constant component from the input search query; based on results obtained from parsing the input search query, forming a span query for associated events, the span query including a first constraint for a first event, a second constraint for a second event, and a relation between the first event and second event, the span query being selected from a group of query types consisting of a sequence of events query, a multiple restriction query, and a causation query; and running the input search query, including performing the span query on the index to determine the first event and the second event, the second event being associated with the first event according to the relation, wherein performing the span query comprises; performing a constant query based on the constant components of the input search query to identify one or more constant events; retrieving events preceding the one or more constant events; building a merged event intersection lattice for one or more merged events and a constant event intersection lattice for the identified one or more constant events, each lattice including a set of event intersections between two or more sets of events; performing a set subtraction to determine one or more differences between the merged event intersection lattice and the constant event intersection lattice; and outputting the one or more differences as answers to the input search query. - View Dependent Claims (10, 11, 12, 13, 14, 15)
-
-
16. A non-transitory computer-readable medium having instructions stored thereon, which, when executed by a processor, causes the processor to perform operations comprising:
-
creating an index of terms in log messages for retrieving one or more events in response to an input search query, the log messages comprising one or more stored events, the input search query comprising a constant component; parsing the input search query, including identifying the constant component from the input search query; based on results obtained from parsing the input search query, forming a span query for associated events, the span query including a first constraint for a first event, a second constraint for a second event, and a relation between the first event and second event, the span query being selected from a group of query types consisting of a sequence of events query, a multiple restriction query, and a causation query; and running the input search query, including performing the span query on the index to determine the first event and the second event, the second event being associated with the first event according to the relation, wherein performing the span query comprises; performing a constant query based on the constant components of the input search query to identify one or more constant events; retrieving events preceding the one or more constant events; building a merged event intersection lattice for one or more merged events and a constant event intersection lattice for the identified one or more constant events, each lattice including a set of event intersections between two or more sets of events; performing a set subtraction to determine one or more differences between the merged event intersection lattice and the constant event intersection lattice; and outputting the one or more differences as answers to the input search query. - View Dependent Claims (17, 18)
-
-
19. A system comprising:
-
means for creating an index of terms in log messages for retrieving one or more events in response to an input search query, the log messages comprising one or more stored events, the input search query comprising a constant component; means for parsing the input search query, including means for identifying the constant component from the input search query; means for forming, based on results obtained from parsing the input search query, a span query for associated events, the span query including a first constraint for a first event, a second constraint for a second event, and a relation between the first event and second event the span query being selected from a group of query types consisting of a sequence of events query, a multiple restriction query, and a causation query; and means for running the input search query, including means for performing the span query on the index to determine the first event and the second event, the second event being associated with the first event according to the relation, wherein performing the span query comprises; performing a constant query based on the constant components of the input search query to identify one or more constant events; retrieving events preceding the one or more constant events; building a merged event intersection lattice for one or more merged events and a constant event intersection lattice for the identified one or more constant events, each lattice including a set of event intersections between two or more sets of events; performing a set subtraction to determine one or more differences between the merged event intersection lattice and the constant event intersection lattice; and outputting the one or more differences as answers to the input search query. - View Dependent Claims (20, 21)
-
Specification