WO2022164925A1 - Flux de données défini par l'utilisateur pour acheminer des données - Google Patents
Flux de données défini par l'utilisateur pour acheminer des données Download PDFInfo
- Publication number
- WO2022164925A1 WO2022164925A1 PCT/US2022/013937 US2022013937W WO2022164925A1 WO 2022164925 A1 WO2022164925 A1 WO 2022164925A1 US 2022013937 W US2022013937 W US 2022013937W WO 2022164925 A1 WO2022164925 A1 WO 2022164925A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- data
- search
- buckets
- stream
- query
- Prior art date
Links
- 238000012545 processing Methods 0.000 claims abstract description 643
- 238000000034 method Methods 0.000 claims abstract description 263
- 238000003860 storage Methods 0.000 claims description 485
- 230000037406 food intake Effects 0.000 claims description 311
- 239000000872 buffer Substances 0.000 claims description 299
- 238000013501 data transformation Methods 0.000 claims description 109
- 230000014759 maintenance of location Effects 0.000 claims description 10
- 230000008569 process Effects 0.000 abstract description 150
- 238000005192 partition Methods 0.000 description 281
- 230000000875 corresponding effect Effects 0.000 description 81
- 238000000605 extraction Methods 0.000 description 81
- 238000012544 monitoring process Methods 0.000 description 78
- 238000010586 diagram Methods 0.000 description 74
- 238000013499 data model Methods 0.000 description 58
- 230000004044 response Effects 0.000 description 55
- 230000006870 function Effects 0.000 description 54
- 208000018910 keratinopathic ichthyosis Diseases 0.000 description 44
- 230000001133 acceleration Effects 0.000 description 42
- 238000013507 mapping Methods 0.000 description 40
- 230000009466 transformation Effects 0.000 description 39
- 230000003993 interaction Effects 0.000 description 37
- 230000000670 limiting effect Effects 0.000 description 36
- 230000015654 memory Effects 0.000 description 34
- 238000012800 visualization Methods 0.000 description 30
- 238000001914 filtration Methods 0.000 description 29
- 238000004891 communication Methods 0.000 description 28
- 238000007726 management method Methods 0.000 description 26
- 238000000844 transformation Methods 0.000 description 26
- 239000003550 marker Substances 0.000 description 25
- 230000036961 partial effect Effects 0.000 description 23
- 238000012552 review Methods 0.000 description 23
- 230000014509 gene expression Effects 0.000 description 18
- 238000004458 analytical method Methods 0.000 description 17
- 238000013500 data storage Methods 0.000 description 14
- 230000005540 biological transmission Effects 0.000 description 13
- 238000004422 calculation algorithm Methods 0.000 description 13
- 230000007423 decrease Effects 0.000 description 11
- 239000000284 extract Substances 0.000 description 11
- 241000720945 Hosta Species 0.000 description 10
- 230000002776 aggregation Effects 0.000 description 10
- 238000004220 aggregation Methods 0.000 description 10
- 230000000737 periodic effect Effects 0.000 description 10
- 230000000694 effects Effects 0.000 description 9
- 230000002452 interceptive effect Effects 0.000 description 9
- 230000007246 mechanism Effects 0.000 description 9
- 230000009286 beneficial effect Effects 0.000 description 8
- 238000001514 detection method Methods 0.000 description 8
- 230000008520 organization Effects 0.000 description 8
- 239000000047 product Substances 0.000 description 8
- 230000008859 change Effects 0.000 description 7
- 238000004590 computer program Methods 0.000 description 6
- 238000000638 solvent extraction Methods 0.000 description 6
- 238000012360 testing method Methods 0.000 description 6
- 230000008676 import Effects 0.000 description 5
- 230000002829 reductive effect Effects 0.000 description 5
- 230000010076 replication Effects 0.000 description 5
- 230000004043 responsiveness Effects 0.000 description 5
- 230000009471 action Effects 0.000 description 4
- 230000002596 correlated effect Effects 0.000 description 4
- 238000013075 data extraction Methods 0.000 description 4
- 238000013523 data management Methods 0.000 description 4
- 230000018109 developmental process Effects 0.000 description 4
- 238000009826 distribution Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 230000036541 health Effects 0.000 description 4
- 238000010801 machine learning Methods 0.000 description 4
- 238000005259 measurement Methods 0.000 description 4
- 230000002085 persistent effect Effects 0.000 description 4
- 238000007781 pre-processing Methods 0.000 description 4
- 230000000717 retained effect Effects 0.000 description 4
- 239000007787 solid Substances 0.000 description 4
- 230000000007 visual effect Effects 0.000 description 4
- 230000004075 alteration Effects 0.000 description 3
- 238000013475 authorization Methods 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 3
- 230000001413 cellular effect Effects 0.000 description 3
- 238000007906 compression Methods 0.000 description 3
- 230000006835 compression Effects 0.000 description 3
- 238000004883 computer application Methods 0.000 description 3
- 238000007405 data analysis Methods 0.000 description 3
- 238000012217 deletion Methods 0.000 description 3
- 230000037430 deletion Effects 0.000 description 3
- 238000011161 development Methods 0.000 description 3
- 238000007689 inspection Methods 0.000 description 3
- 230000006855 networking Effects 0.000 description 3
- 230000009467 reduction Effects 0.000 description 3
- 238000005070 sampling Methods 0.000 description 3
- 238000007619 statistical method Methods 0.000 description 3
- 230000004931 aggregating effect Effects 0.000 description 2
- 230000002547 anomalous effect Effects 0.000 description 2
- 230000003466 anti-cipated effect Effects 0.000 description 2
- 230000006399 behavior Effects 0.000 description 2
- 230000008901 benefit Effects 0.000 description 2
- 238000012790 confirmation Methods 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 238000010168 coupling process Methods 0.000 description 2
- 238000005859 coupling reaction Methods 0.000 description 2
- 230000006378 damage Effects 0.000 description 2
- 238000013079 data visualisation Methods 0.000 description 2
- 230000003247 decreasing effect Effects 0.000 description 2
- 230000001934 delay Effects 0.000 description 2
- 208000015181 infectious disease Diseases 0.000 description 2
- 230000010354 integration Effects 0.000 description 2
- 238000011835 investigation Methods 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 230000000873 masking effect Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000010606 normalization Methods 0.000 description 2
- 238000005457 optimization Methods 0.000 description 2
- 230000011218 segmentation Effects 0.000 description 2
- 238000000926 separation method Methods 0.000 description 2
- 230000001502 supplementing effect Effects 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 230000001131 transforming effect Effects 0.000 description 2
- 230000035899 viability Effects 0.000 description 2
- 241000549556 Nanos Species 0.000 description 1
- 230000002159 abnormal effect Effects 0.000 description 1
- 239000008186 active pharmaceutical agent Substances 0.000 description 1
- 238000013459 approach Methods 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 238000013528 artificial neural network Methods 0.000 description 1
- 230000001174 ascending effect Effects 0.000 description 1
- 238000012550 audit Methods 0.000 description 1
- 239000005441 aurora Substances 0.000 description 1
- 239000006227 byproduct Substances 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 210000001072 colon Anatomy 0.000 description 1
- 230000005574 cross-species transmission Effects 0.000 description 1
- 238000013479 data entry Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000011156 evaluation Methods 0.000 description 1
- 239000000945 filler Substances 0.000 description 1
- 238000011049 filling Methods 0.000 description 1
- 238000009472 formulation Methods 0.000 description 1
- 230000004941 influx Effects 0.000 description 1
- 230000000977 initiatory effect Effects 0.000 description 1
- 238000003780 insertion Methods 0.000 description 1
- 230000037431 insertion Effects 0.000 description 1
- 230000032297 kinesis Effects 0.000 description 1
- 238000011068 loading method Methods 0.000 description 1
- 230000001404 mediated effect Effects 0.000 description 1
- 230000007334 memory performance Effects 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 229920001690 polydopamine Polymers 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
- 230000001172 regenerating effect Effects 0.000 description 1
- 238000013468 resource allocation Methods 0.000 description 1
- 230000002441 reversible effect Effects 0.000 description 1
- 238000013515 script Methods 0.000 description 1
- 239000013589 supplement Substances 0.000 description 1
- 230000009897 systematic effect Effects 0.000 description 1
- 230000002123 temporal effect Effects 0.000 description 1
- 238000013519 translation Methods 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
- 238000011144 upstream manufacturing Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/25—Integrating or interfacing systems involving database management systems
- G06F16/254—Extract, transform and load [ETL] procedures, e.g. ETL data flows in data warehouses
Definitions
- At least one embodiment of the present disclosure pertains to one or more tools for facilitating searching and analyzing large sets of data to locate data of interest.
- Information technology (IT) environments can include diverse types of data systems that store large amounts of diverse data types generated by numerous devices.
- a big data ecosystem may include databases such as MySQL and Oracle databases, cloud computing services such as Amazon web services (AWS), and other data systems that store passively or actively generated data, including machine-generated data ("machine data").
- the machine data can include performance data, diagnostic data, or any other data that can be analyzed to diagnose equipment performance problems, monitor user interactions, and to derive other insights.
- raw data minimally processed or unprocessed data
- storage capacity becomes more inexpensive and plentiful.
- storing raw data and performing analysis on that data later can provide greater flexibility because it enables an analyst to analyze all of the generated data instead of only a fraction of it.
- FIG. 1 is a block diagram of an example networked computer environment, in accordance with example embodiments.
- FIG. 2 is a block diagram of an example data intake and query system, in accordance with example embodiments.
- FIG. 3A is a block diagram of one embodiment an intake system.
- FIG. 3B is a block diagram of another embodiment of an intake system.
- FIG. 4 is a block diagram illustrating an embodiment of an indexing system of the data intake and query system.
- FIG. 5 is a block diagram illustrating an embodiment of a query system of the data intake and query system.
- FIG. 6 is a flow diagram depicting illustrative interactions for processing data through an intake system, in accordance with example embodiments.
- FIG. 7 is a flowchart depicting an illustrative routine for processing data at an intake system, according to example embodiments.
- FIG. 8 is a data flow diagram illustrating an embodiment of the data flow and communications between a variety of the components of the data intake and query system during indexing.
- FIG. 9 is a flow diagram illustrative of an embodiment of a routine implemented by an indexing system to store data in common storage.
- FIG. 10 is a flow diagram illustrative of an embodiment of a routine implemented by an indexing system to store data in common storage.
- FIG. 11 is a flow diagram illustrative of an embodiment of a routine implemented by an indexing node to update a location marker in an ingestion buffer.
- FIG. 12 is a flow diagram illustrative of an embodiment of a routine implemented by an indexing node to merge buckets.
- FIG. 13 is a data flow diagram illustrating an embodiment of the data flow and communications between a variety of the components of the data intake and query system during execution of a query.
- FIG. 14 is a flow diagram illustrative of an embodiment of a routine implemented by a query system to execute a query.
- FIG. 15 is a flow diagram illustrative of an embodiment of a routine implemented by a query system to execute a query.
- FIG. 16 is a flow diagram illustrative of an embodiment of a routine implemented by a query system to identify buckets for query execution.
- FIG. 17 is a flow diagram illustrative of an embodiment of a routine implemented by a query system to identify search nodes for query execution.
- FIG. 18 is a flow diagram illustrative of an embodiment of a routine implemented by a query system to hash bucket identifiers for query execution.
- FIG. 19 is a flow diagram illustrative of an embodiment of a routine implemented by a search node to execute a search on a bucket.
- FIG. 20 is a flow diagram illustrative of an embodiment of a routine implemented by the query system to store search results.
- FIG. 21 A is a flowchart of an example method that illustrates how indexers process, index, and store data received from intake system, in accordance with example embodiments.
- FIG. 2 IB is a block diagram of a data structure in which time-stamped event data can be stored in a data store, in accordance with example embodiments.
- FIG. 21C provides a visual representation of the manner in which a pipelined search language or query operates, in accordance with example embodiments.
- FIG. 22A is a flow diagram of an example method that illustrates how a search head and indexers perform a search query, in accordance with example embodiments.
- FIG. 22B provides a visual representation of an example manner in which a pipelined command language or query operates, in accordance with example embodiments.
- FIG. 23A is a diagram of an example scenario where a common customer identifier is found among log data received from three disparate data sources, in accordance with example embodiments.
- FIG. 23B illustrates an example of processing keyword searches and field searches, in accordance with disclosed embodiments.
- FIG. 23C illustrates an example of creating and using an inverted index, in accordance with example embodiments.
- FIG. 23D depicts a flowchart of example use of an inverted index in a pipelined search query, in accordance with example embodiments.
- FIG. 24A is an interface diagram of an example user interface for a search screen, in accordance with example embodiments.
- FIG. 24B is an interface diagram of an example user interface for a data summary dialog that enables a user to select various data sources, in accordance with example embodiments.
- FIGS. 25, 26, 27A-27D, 28, 29, 30, and 31 are interface diagrams of example report generation user interfaces, in accordance with example embodiments.
- FIG. 32 is an example search query received from a client and executed by search peers, in accordance with example embodiments.
- FIG. 33A is an interface diagram of an example user interface of a key indicators view, in accordance with example embodiments.
- FIG. 33B is an interface diagram of an example user interface of an incident review dashboard, in accordance with example embodiments.
- FIG. 33C is a tree diagram of an example a proactive monitoring tree, in accordance with example embodiments.
- FIG. 33D is an interface diagram of an example a user interface displaying both log data and performance data, in accordance with example embodiments.
- FIG. 34A is a block diagram of a data structure in which a user defined data stream can obtain data from a processing pipeline and provide the data to another processing pipeline, in accordance with example embodiments
- FIG. 34B is a block diagram of a data structure in which a processing pipeline can obtain data from a user defined data stream and provide data to another user defined data stream, in accordance with example embodiments
- FIG. 35 is an interface diagram of an example a user interface displaying controls for defining a data stream, in accordance with example embodiments.
- FIG. 36 is an interface diagram of an example a user interface displaying controls for define a processing pipeline, in accordance with example embodiments.
- FIG. 37 is a flow diagram illustrative of an embodiment of a routine implemented by a query system to route data for data ingestion.
- FIG. 38 is a flow diagram illustrative of an embodiment of a routine implemented by a query system to route data for data ingestion.
- FIG. 39 is a flow diagram illustrative of an embodiment of a routine implemented by a query system to route data for data ingestion.
- Machine data is any data produced by a machine or component in an information technology (IT) environment and that reflects activity in the IT environment.
- machine data can be raw machine data that is generated by various components in IT environments, such as servers, sensors, routers, mobile devices, Internet of Things (loT) devices, etc.
- Machine data can include system logs, network packet data, sensor data, application program data, error logs, stack traces, system performance data, etc.
- machine data can also include performance data, diagnostic information, and many other types of data that can be analyzed to diagnose performance problems, monitor user interactions, and to derive other insights.
- a number of tools are available to analyze machine data.
- many of these tools typically pre- process the data based on anticipated data-analysis needs.
- pre-specified data items may be extracted from the machine data and stored in a database to facilitate efficient retrieval and analysis of those data items at search time.
- the rest of the machine data typically is not saved and is discarded during pre-processing.
- storage capacity becomes progressively cheaper and more plentiful, there are fewer incentives to discard these portions of machine data and many reasons to retain more of the data.
- a data center, servers, or network appliances may generate many different types and formats of machine data (e.g., system logs, network packet data (e.g., wire data, etc.), sensor data, application program data, error logs, stack traces, system performance data, operating system data, virtualization data, etc.) from thousands of different components, which can collectively be very time-consuming to analyze.
- machine data e.g., system logs, network packet data (e.g., wire data, etc.), sensor data, application program data, error logs, stack traces, system performance data, operating system data, virtualization data, etc.
- mobile devices may generate large amounts of information relating to data accesses, application performance, operating system performance, network performance, etc. There can be millions of mobile devices that report these types of information.
- the SPLUNK® ENTERPRISE system is the leading platform for providing real-time operational intelligence that enables organizations to collect, index, and search machine data from various websites, applications, servers, networks, and mobile devices that power their businesses.
- the data intake and query system is particularly useful for analyzing data which is commonly found in system log files, network data, and other data input sources.
- An event comprises a portion of machine data and is associated with a specific point in time.
- the portion of machine data may reflect activity in an IT environment and may be produced by a component of that IT environment, where the events may be searched to provide insight into the IT environment, thereby improving the performance of components in the IT environment.
- Events may be derived from “time series data,” where the time series data comprises a sequence of data points (e.g., performance measurements from a computer system, etc.) that are associated with successive points in time.
- each event has a portion of machine data that is associated with a timestamp that is derived from the portion of machine data in the event.
- a timestamp of an event may be determined through interpolation between temporally proximate events having known timestamps or may be determined based on other configurable rules for associating timestamps with events.
- machine data can have a predefined format, where data items with specific data formats are stored at predefined locations in the data.
- the machine data may include data associated with fields in a database table.
- machine data may not have a predefined format (e.g., may not be at fixed, predefined locations), but may have repeatable (e.g., non-random) patterns.
- This means that some machine data can comprise various data items of different data types that may be stored at different locations within the data.
- an event can include one or more lines from the operating system log containing machine data that includes different types of performance and diagnostic information associated with a specific point in time (e.g., a timestamp).
- Examples of components which may generate machine data from which events can be derived include, but are not limited to, web servers, application servers, databases, firewalls, routers, operating systems, and software applications that execute on computer systems, mobile devices, sensors, Internet of Things (loT) devices, etc.
- the machine data generated by such data sources can include, for example and without limitation, server log files, activity log files, configuration files, messages, network packet data, performance measurements, sensor measurements, etc.
- the data intake and query system uses a flexible schema to specify how to extract information from events.
- a flexible schema may be developed and redefined as needed. Note that a flexible schema may be applied to events “on the fly,” when it is needed (e.g., at search time, index time, ingestion time, etc.). When the schema is not applied to events until search time, the schema may be referred to as a “late-binding schema.”
- the data intake and query system receives machine data from any type and number of sources (e.g., one or more system logs, streams of network packet data, sensor data, application program data, error logs, stack traces, system performance data, etc.).
- the system parses the machine data to produce events each having a portion of machine data associated with a timestamp.
- the system stores the events in a data store.
- the system enables users to run queries against the stored events to, for example, retrieve events that meet criteria specified in a query, such as criteria indicating certain keywords or having specific values in defined fields.
- the term “field” refers to a location in the machine data of an event containing one or more values for a specific data item.
- a field may be referenced by a field name associated with the field.
- a field is defined by an extraction rule (e.g., a regular expression) that derives one or more values or a sub-portion of text from the portion of machine data in each event to produce a value for the field for that event.
- the set of values produced are semantically-related (such as IP address), even though the machine data in each event may be in different formats (e.g., semantically-related values may be in different positions in the events derived from different sources).
- the system stores the events in a data store.
- the events stored in the data store are field- searchable, where field-searchable herein refers to the ability to search the machine data (e.g., the raw machine data) of an event based on a field specified in search criteria.
- a search having criteria that specifies a field name “UserID” may cause the system to field-search the machine data of events to identify events that have the field name “UserID.”
- a search having criteria that specifies a field name “UserID” with a corresponding field value “12345” may cause the system to field-search the machine data of events to identify events having that fieldvalue pair (e.g., field name “UserID” with a corresponding field value of “12345”).
- Events are field- searchable using one or more configuration files associated with the events. Each configuration file includes one or more field names, where each field name is associated with a corresponding extraction rule and a set of events to which that extraction rule applies.
- the set of events to which an extraction rule applies may be identified by metadata associated with the set of events.
- an extraction rule may apply to a set of events that are each associated with a particular host, source, or source type.
- the system uses one or more configuration files to determine whether there is an extraction rule for that particular field name that applies to each event that falls within the criteria of the search. If so, the event is considered as part of the search results (and additional processing may be performed on that event based on criteria specified in the search). If not, the next event is similarly analyzed, and so on.
- the data intake and query system utilizes a late-binding schema while performing queries on events.
- a late-binding schema is applying extraction rules to events to extract values for specific fields during search time.
- the extraction rule for a field can include one or more instructions that specify how to extract a value for the field from an event.
- An extraction rule can generally include any type of instruction for extracting values from events.
- an extraction rule comprises a regular expression, where a sequence of characters form a search pattern.
- An extraction rule comprising a regular expression is referred to herein as a regex rule.
- the system applies a regex rule to an event to extract values for a field associated with the regex rule, where the values are extracted by searching the event for the sequence of characters defined in the regex rule.
- a field extractor may be configured to automatically generate extraction rules for certain fields in the events when the events are being created, indexed, or stored, or possibly at a later time.
- a user may manually define extraction rules for fields using a variety of techniques.
- a late-binding schema is not defined at data ingestion time. Instead, the late-binding schema can be developed on an ongoing basis until the time a query is actually executed. This means that extraction rules for the fields specified in a query may be provided in the query itself, or may be located during execution of the query.
- the user can continue to refine the late-binding schema by adding new fields, deleting fields, or modifying the field extraction rules for use the next time the schema is used by the system.
- the data intake and query system maintains the underlying machine data and uses a late-binding schema for searching the machine data, it enables a user to continue investigating and learn valuable insights about the machine data.
- a common field name may be used to reference two or more fields containing equivalent and/or similar data items, even though the fields may be associated with different types of events that possibly have different data formats and different extraction rules.
- CIM common information model
- FIG. 1 is a block diagram of an example networked computer environment 100, in accordance with example embodiments. It will be understood that FIG. 1 represents one example of a networked computer system and other embodiments may use different arrangements.
- the networked computer system 100 comprises one or more computing devices. These one or more computing devices comprise any combination of hardware and software configured to implement the various logical components described herein.
- the one or more computing devices may include one or more memories that store instructions for implementing the various components described herein, one or more hardware processors configured to execute the instructions stored in the one or more memories, and various data repositories in the one or more memories for storing data structures utilized and manipulated by the various components.
- one or more client devices 102 are coupled to one or more host devices 106 and a data intake and query system 108 via one or more networks 104.
- Networks 104 broadly represent one or more LANs, WANs, cellular networks (e.g., LTE, HSPA, 3G, and other cellular technologies), and/or networks using any of wired, wireless, terrestrial microwave, or satellite links, and may include the public Internet.
- a system 100 includes one or more host devices 106.
- Host devices 106 may broadly include any number of computers, virtual machine instances, and/or data centers that are configured to host or execute one or more instances of host applications 114.
- a host device 106 may be involved, directly or indirectly, in processing requests received from client devices 102.
- Each host device 106 may comprise, for example, one or more of a network device, a web server, an application server, a database server, etc.
- a collection of host devices 106 may be configured to implement a network-based service.
- a provider of a network-based service may configure one or more host devices 106 and host applications 114 (e.g., one or more web servers, application servers, database servers, etc.) to collectively implement the network-based application.
- client devices 102 communicate with one or more host applications 114 to exchange information.
- the communication between a client device 102 and a host application 114 may, for example, be based on the Hypertext Transfer Protocol (HTTP) or any other network protocol.
- Content delivered from the host application 114 to a client device 102 may include, for example, HTML documents, media content, etc.
- the communication between a client device 102 and host application 114 may include sending various requests and receiving data packets.
- a client device 102 or application running on a client device may initiate communication with a host application 114 by making a request for a specific resource (e.g., based on an HTTP request), and the application server may respond with the requested content stored in one or more response packets.
- a specific resource e.g., based on an HTTP request
- one or more of host applications 114 may generate various types of performance data during operation, including event logs, network data, sensor data, and other types of machine data.
- a host application 114 comprising a web server may generate one or more web server logs in which details of interactions between the web server and any number of client devices 102 is recorded.
- a host device 106 comprising a router may generate one or more router logs that record information related to network traffic managed by the router.
- a host application 114 comprising a database server may generate one or more logs that record information related to requests sent from other host applications 114 (e.g., web servers or application servers) for data managed by the database server.
- Client devices 102 of FIG. 1 represent any computing device capable of interacting with one or more host devices 106 via a network 104.
- client devices 102 may include, without limitation, smart phones, tablet computers, handheld computers, wearable devices, laptop computers, desktop computers, servers, portable media players, gaming devices, and so forth.
- a client device 102 can provide access to different content, for instance, content provided by one or more host devices 106, etc.
- Each client device 102 may comprise one or more client applications 110, described in more detail in a separate section hereinafter.
- each client device 102 may host or execute one or more client applications 110 that are capable of interacting with one or more host devices 106 via one or more networks 104.
- a client application 110 may be or comprise a web browser that a user may use to navigate to one or more websites or other resources provided by one or more host devices 106.
- a client application 110 may comprise a mobile application or “app.”
- an operator of a network-based service hosted by one or more host devices 106 may make available one or more mobile apps that enable users of client devices 102 to access various resources of the network-based service.
- client applications 110 may include background processes that perform various operations without direct interaction from a user.
- a client application 110 may include a “plug-in” or “extension” to another application, such as a web browser plug-in or extension.
- a client application 110 may include a monitoring component 112.
- the monitoring component 112 comprises a software component or other logic that facilitates generating performance data related to a client device’s operating state, including monitoring network traffic sent and received from the client device and collecting other device and/or application-specific information.
- Monitoring component 112 may be an integrated component of a client application 110, a plug-in, an extension, or any other type of add-on component. Monitoring component 112 may also be a stand-alone process.
- a monitoring component 112 may be created when a client application 110 is developed, for example, by an application developer using a software development kit (SDK).
- SDK software development kit
- the SDK may include custom monitoring code that can be incorporated into the code implementing a client application 110.
- the custom code implementing the monitoring functionality can become part of the application itself.
- an SDK or other code for implementing the monitoring functionality may be offered by a provider of a data intake and query system, such as a system 108.
- the provider of the system 108 can implement the custom code so that performance data generated by the monitoring functionality is sent to the system 108 to facilitate analysis of the performance data by a developer of the client application or other users.
- the custom monitoring code may be incorporated into the code of a client application 110 in a number of different ways, such as the insertion of one or more lines in the client application code that call or otherwise invoke the monitoring component 112.
- a developer of a client application 110 can add one or more lines of code into the client application 110 to trigger the monitoring component 112 at desired points during execution of the application.
- Code that triggers the monitoring component may be referred to as a monitor trigger.
- a monitor trigger may be included at or near the beginning of the executable code of the client application 110 such that the monitoring component 112 is initiated or triggered as the application is launched, or included at other points in the code that correspond to various actions of the client application, such as sending a network request or displaying a particular interface.
- the monitoring component 112 may monitor one or more aspects of network traffic sent and/or received by a client application 110.
- the monitoring component 112 may be configured to monitor data packets transmitted to and/or from one or more host applications 114. Incoming and/or outgoing data packets can be read or examined to identify network data contained within the packets, for example, and other aspects of data packets can be analyzed to determine a number of network performance statistics. Monitoring network traffic may enable information to be gathered particular to the network performance associated with a client application 110 or set of applications.
- network performance data refers to any type of data that indicates information about the network and/or network performance.
- Network performance data may include, for instance, a URL requested, a connection type (e.g., HTTP, HTTPS, etc.), a connection start time, a connection end time, an HTTP status code, request length, response length, request headers, response headers, connection status (e.g., completion, response time(s), failure, etc.), and the like.
- the network performance data can be transmitted to a data intake and query system 108 for analysis.
- the client application 110 can be distributed to client devices 102.
- Applications generally can be distributed to client devices 102 in any manner, or they can be pre-loaded.
- the application may be distributed to a client device 102 via an application marketplace or other application distribution system.
- an application marketplace or other application distribution system might distribute the application to a client device based on a request from the client device to download the application.
- the monitoring component 112 may also monitor and collect performance data related to one or more aspects of the operational state of a client application 110 and/or client device 102.
- a monitoring component 112 may be configured to collect device performance information by monitoring one or more client device operations, or by making calls to an operating system and/or one or more other applications executing on a client device 102 for performance information.
- Device performance information may include, for instance, a current wireless signal strength of the device, a current connection type and network carrier, current memory performance information, a geographic location of the device, a device orientation, and any other information related to the operational state of the client device.
- the monitoring component 112 may also monitor and collect other device profile information including, for example, a type of client device, a manufacturer, and model of the device, versions of various software applications installed on the device, and so forth.
- a monitoring component 112 may be configured to generate performance data in response to a monitor trigger in the code of a client application 110 or other triggering application event, as described above, and to store the performance data in one or more data records.
- Each data record for example, may include a collection of field- value pairs, each field-value pair storing a particular item of performance data in association with a field for the item.
- a data record generated by a monitoring component 112 may include a “networkLatency” field (not shown in the Figure) in which a value is stored. This field indicates a network latency measurement associated with one or more network requests.
- the data record may include a “state” field to store a value indicating a state of a network connection, and so forth for any number of aspects of collected performance data.
- the data intake and query system 108 can process and store data received data from the data sources client devices 102 or host devices 106, and execute queries on the data in response to requests received from one or more computing devices. In some cases, the data intake and query system 108 can generate events from the received data and store the events in buckets in a common storage system. In response to received queries, the data intake and query system can assign one or more search nodes to search the buckets in the common storage.
- the data intake and query system 108 can include various components that enable it to provide stateless services or enable it to recover from an unavailable or unresponsive component without data loss in a time efficient manner.
- the data intake and query system 108 can store contextual information about its various components in a distributed way such that if one of the components becomes unresponsive or unavailable, the data intake and query system 108 can replace the unavailable component with a different component and provide the replacement component with the contextual information. In this way, the data intake and query system 108 can quickly recover from an unresponsive or unavailable component while reducing or eliminating the loss of data that was being processed by the unavailable component.
- FIG. 2 is a block diagram of an embodiment of a data processing environment 200.
- the environment 200 includes data sources 202 and client devices 204a, 204b, 204c (generically referred to as client device(s) 204) in communication with a data intake and query system 108 via networks 206, 208, respectively.
- the networks 206, 208 may be the same network, may correspond to the network 104, or may be different networks. Further, the networks 206, 208 may be implemented as one or more EANs, WANs, cellular networks, intranetworks, and/or internetworks using any of wired, wireless, terrestrial microwave, satellite links, etc., and may include the Internet.
- Each data source 202 broadly represents a distinct source of data that can be consumed by the data intake and query system 108.
- Examples of data sources 202 include, without limitation, data files, directories of files, data sent over a network, event logs, registries, streaming data services (examples of which can include, by way of non-limiting example, Amazon’s Simple Queue Service (“SQS”) or KinesisTM services, devices executing Apache KafkaTM software, or devices implementing the Message Queue Telemetry Transport (MQTT) protocol, Microsoft Azure EventHub, Google Cloud PubSub, devices implementing the Java Message Service (JMS) protocol, devices implementing the Advanced Message Queuing Protocol (AMQP)), performance metrics, etc.
- SQS Amazon’s Simple Queue Service
- KinesisTM services KinesisTM services
- MQTT Message Queue Telemetry Transport
- Microsoft Azure EventHub Microsoft Azure EventHub
- Google Cloud PubSub devices implementing the Java Message Service (JMS) protocol
- JMS
- the client devices 204 can be implemented using one or more computing devices in communication with the data intake and query system 108, and represent some of the different ways in which computing devices can submit queries to the data intake and query system 108.
- the client device 204a is illustrated as communicating over an Internet (Web) protocol with the data intake and query system 108
- the client device 204b is illustrated as communicating with the data intake and query system 108 via a command line interface
- the client device 204b is illustrated as communicating with the data intake and query system 108 via a software developer kit (SDK).
- SDK software developer kit
- the client devices 204 can communicate with and submit queries to the data intake and query system 108 in a variety of ways.
- the data intake and query system 108 can process and store data received data from the data sources 202 and execute queries on the data in response to requests received from the client devices 204.
- the data intake and query system 108 includes an intake system 210, an indexing system 212, a query system 214, common storage 216 including one or more data stores 218, a data store catalog 220, and a query acceleration data store 222.
- the data intake and query system 108 can receive data from different sources 202.
- the data sources 202 can be associated with different tenants or customers.
- each tenant may be associated with one or more indexes, hosts, sources, sourcetypes, or users.
- company ABC, Inc. can correspond to one tenant
- company XYZ, Inc. can correspond to a different tenant. While the two companies may be unrelated, each company may have a main index and test index associated with it, as well as one or more data sources or systems (e.g., billing system, CRM system, etc.).
- the data intake and query system 108 can concurrently receive and process the data from the various systems and sources of ABC, Inc. and XYZ, Inc.
- the data intake and query system 108 can take steps to avoid combining or co-mingling data from the different tenants. For example, the data intake and query system 108 can assign a tenant identifier for each tenant and maintain a separation between the data using the tenant identifier. In some cases, the tenant identifier can be assigned to the data at the data sources 202, or can be assigned to the data by the data intake and query system 108 at ingest.
- the intake system 210 can receive data from the data sources 202, perform one or more preliminary processing operations on the data, and communicate the data to the indexing system 212, query system 214, or to other systems 262 (which may include, for example, data processing systems, telemetry systems, real-time analytics systems, data stores, databases, etc., any of which may be operated by an operator of the data intake and query system 108 or a third party).
- the intake system 210 can receive data from the data sources 202 in a variety of formats or structures.
- the received data corresponds to raw machine data, structured or unstructured data, correlation data, data files, directories of files, data sent over a network, event logs, registries, messages published to streaming data sources, performance metrics, sensor data, image and video data, etc.
- the intake system 210 can process the data based on the form in which it is received. In some cases, the intake system 210 can utilize one or more rules to process data and to make the data available to downstream systems (e.g., the indexing system 212, query system 214, etc.). Illustratively, the intake system 210 can enrich the received data.
- the intake system may add one or more fields to the data received from the data sources 202, such as fields denoting the host, source, sourcetype, index, or tenant associated with the incoming data.
- the intake system 210 can perform additional processing on the incoming data, such as transforming structured data into unstructured data (or vice versa), identifying timestamps associated with the data, removing extraneous data, parsing data, indexing data, separating data, categorizing data, routing data based on criteria relating to the data being routed, and/or performing other data transformations, etc.
- the indexing system 212 can process the data and store it, for example, in common storage 216. As part of processing the data, the indexing system can identify timestamps associated with the data, organize the data into buckets or time series buckets, convert editable buckets to non-editable buckets, store copies of the buckets in common storage 216, merge buckets, generate indexes of the data, etc. In addition, the indexing system 212 can update the data store catalog 220 with information related to the buckets (pre-merged or merged) or data that is stored in common storage 216, and can communicate with the intake system 210 about the status of the data storage.
- the query system 214 can receive queries that identify a set of data to be processed and a manner of processing the set of data from one or more client devices 204, process the queries to identify the set of data, and execute the query on the set of data.
- the query system 214 can use the data store catalog 220 to identify the set of data to be processed or its location in common storage 216 and/or can retrieve data from common storage 216 or the query acceleration data store 222.
- the query system 214 can store some or all of the query results in the query acceleration data store 222.
- the common storage 216 can be made up of one or more data stores 218 storing data that has been processed by the indexing system 212.
- the common storage 216 can be configured to provide high availability, highly resilient, low loss data storage.
- the common storage 216 can store multiple copies of the data in the same and different geographic locations and across different types of data stores (e.g., solid state, hard drive, tape, etc.). Further, as data is received at the common storage 216 it can be automatically replicated multiple times according to a replication factor to different data stores across the same and/or different geographic locations.
- the common storage 216 can correspond to cloud storage, such as Amazon Simple Storage Service (S3) or Elastic Block Storage (EBS), Google Cloud Storage, Microsoft Azure Storage, etc.
- S3 Amazon Simple Storage Service
- EBS Elastic Block Storage
- Google Cloud Storage Google Cloud Storage
- Microsoft Azure Storage etc.
- indexing system 212 can read to and write from the common storage 216.
- the indexing system 212 can copy buckets of data from its local or shared data stores to the common storage 216.
- the query system 214 can read from, but cannot write to, the common storage 216.
- the query system 214 can read the buckets of data stored in common storage 216 by the indexing system 212, but may not be able to copy buckets or other data to the common storage 216.
- the intake system 210 does not have access to the common storage 216. However, in some embodiments, one or more components of the intake system 210 can write data to the common storage 216 that can be read by the indexing system 212.
- data in the data intake and query system 108 can be stored in one or more time series buckets.
- Each bucket can include raw machine data associated with a time stamp and additional information about the data or bucket, such as, but not limited to, one or more filters, indexes (e.g., TSIDX, inverted indexes, keyword indexes, etc.), bucket summaries, etc.
- the bucket data and information about the bucket data is stored in one or more files.
- the raw machine data, filters, indexes, bucket summaries, etc. can be stored in respective files in or associated with a bucket.
- the group of files can be associated together to form the bucket.
- the data store catalog 220 can store information about the data stored in common storage 216, such as, but not limited to an identifier for a set of data or buckets, a location of the set of data, tenants or indexes associated with the set of data, timing information about the data, etc.
- the data store catalog 220 can include a bucket identifier for the buckets in common storage 216, a location of or path to the bucket in common storage 216, a time range of the data in the bucket (e.g., range of time between the first- in-time event of the bucket and the last-in-time event of the bucket), a tenant identifier identifying a customer or computing device associated with the bucket, and/or an index (also referred to herein as a partition) associated with the bucket, etc.
- the data intake and query system 108 includes multiple data store catalogs 220.
- the data intake and query system 108 can include a data store catalog 220 for each tenant (or group of tenants), each partition of each tenant (or group of indexes), etc.
- the data intake and query system 108 can include a single data store catalog 220 that includes information about buckets associated with multiple or all of the tenants associated with the data intake and query system 108.
- the indexing system 212 can update the data store catalog 220 as the indexing system 212 stores data in common storage 216. Furthermore, the indexing system 212 or other computing device associated with the data store catalog 220 can update the data store catalog 220 as the information in the common storage 216 changes (e.g., as buckets in common storage 216 are merged, deleted, etc.).
- the query system 214 can use the data store catalog 220 to identify data to be searched or data that satisfies at least a portion of a query. In some embodiments, the query system 214 makes requests to and receives data from the data store catalog 220 using an application programming interface (“API”).
- API application programming interface
- the query acceleration data store 222 can store the results or partial results of queries, or otherwise be used to accelerate queries. For example, if a user submits a query that has no end date, the system can query system 214 can store an initial set of results in the query acceleration data store 222. As additional query results are determined based on additional data, the additional results can be combined with the initial set of results, and so on. In this way, the query system 214 can avoid researching all of the data that may be responsive to the query and instead search the data that has not already been searched. [00105] In some environments, a user of a data intake and query system 108 may install and configure, on computing devices owned and operated by the user, one or more software applications that implement some or all of these system components.
- a user may install a software application on server computers owned by the user and configure each server to operate as one or more of intake system 210, indexing system 212, query system 214, common storage 216, data store catalog 220, or query acceleration data store 222, etc.
- This arrangement generally may be referred to as an “on-premises” solution. That is, the system 108 is installed and operates on computing devices directly controlled by the user of the system. Some users may prefer an on-premises solution because it may provide a greater level of control over the configuration of certain aspects of the system (e.g., security, privacy, standards, controls, etc.). However, other users may instead prefer an arrangement in which the user is not directly responsible for providing and managing the computing devices upon which various components of system 108 operate.
- a remote distributed computing system or cloud-based service can refer to a service hosted by one more computing resources that are accessible to end users over a network, for example, by using a web browser or other application on a client device to interface with the remote computing resources.
- a service provider may provide a data intake and query system 108 by managing computing resources configured to implement various aspects of the system (e.g., intake system 210, indexing system 212, query system 214, common storage 216, data store catalog 220, or query acceleration data store 222, etc.) and by providing access to the system to end users via a network.
- a user may pay a subscription or other fee to use such a service.
- Each subscribing user of the cloud-based service may be provided with an account that enables the user to configure a customized cloud-based system based on the user’s preferences.
- various components of the system 108 can be implemented using containerization or operating-system-level virtualization, or other virtualization technique.
- one or more components of the intake system 210, indexing system 212, or query system 214 can be implemented as separate software containers or container instances.
- Each container instance can have certain resources (e.g., memory, processor, etc.) of the underlying host computing system assigned to it, but may share the same operating system and may use the operating system’s system call interface.
- Each container may provide an isolated execution environment on the host system, such as by providing a memory space of the host system that is logically isolated from memory space of other containers. Further, each container may run the same or different computer applications concurrently or separately, and may interact with each other.
- containerization and container instances it will be understood that other virtualization techniques can be used.
- the components can be implemented using virtual machines using full virtualization or paravirtualization, etc.
- containerized components it should be understood that such components may additionally or alternatively be implemented in other isolated execution environments, such as a virtual machine environment.
- data may be ingested at the data intake and query system 108 through an intake system 210 configured to conduct preliminary processing on the data, and make the data available to downstream systems or components, such as the indexing system 212, query system 214, third party systems, etc.
- FIG. 3 A One example configuration of an intake system 210 is shown in FIG. 3 A.
- the intake system 210 includes a forwarder 302, a data retrieval subsystem 304, an intake ingestion buffer 306, a streaming data processor 308, and an output ingestion buffer 310.
- the components of the intake system 210 may be configured to process data according to a streaming data model, such that data ingested into the data intake and query system 108 is processed rapidly (e.g., within seconds or minutes of initial reception at the intake system 210) and made available to downstream systems or components.
- the initial processing of the intake system 210 may include search or analysis of the data ingested into the intake system 210.
- the initial processing can transform data ingested into the intake system 210 sufficiently, for example, for the data to be searched by a query system 214, thus enabling “real-time” searching for data on the data intake and query system 108 (e.g., without requiring indexing of the data).
- a query system 214 e.g., a query system 214
- Various additional and alternative uses for data processed by the intake system 210 are described below.
- the forwarder 302, data retrieval subsystem 304, intake ingestion buffer 306, streaming data processors 308, and output ingestion buffer 310 may reside on the same machine or be distributed across multiple machines in any combination.
- any or all of the components of the intake system can be implemented using one or more computing devices as distinct computing devices or as one or more container instances or virtual machines across one or more computing devices.
- the intake system 210 may have more of fewer components than are illustrated in FIGS. 3 A and 3B.
- the intake system 210 could include various web services and/or peer-to-peer network configurations or inter container communication network provided by an associated container instantiation or orchestration platform.
- components of the intake system 210 may be executed by one more virtual machines implemented in a hosted computing environment.
- a hosted computing environment may include one or more rapidly provisioned and released computing resources, which computing resources may include computing, networking and/or storage devices.
- a hosted computing environment may also be referred to as a cloud computing environment.
- the hosted computing environment can include any proprietary or open source extensible computing technology, such as Apache Flink or Apache Spark, to enable fast or on-demand horizontal compute capacity scaling of the streaming data processor 308.
- some or all of the elements of the intake system 210 may reside on one or more computing devices, such as servers, which may be communicatively coupled with each other and with the data sources 202, query system 214, indexing system 212, or other components.
- some or all of the elements of the intake system 210 may be implemented as worker nodes as disclosed in U.S. Pat. App. Nos.
- the intake system 210 can function to conduct preliminary processing of data ingested at the data intake and query system 108.
- the intake system 210 illustratively includes a forwarder 302 that obtains data from a data source 202 and transmits the data to a data retrieval subsystem 304.
- the data retrieval subsystem 304 may be configured to convert or otherwise format data provided by the forwarder 302 into an appropriate format for inclusion at the intake ingestion buffer and transmit the message to the intake ingestion buffer 306 for processing.
- a streaming data processor 308 may obtain data from the intake ingestion buffer 306, process the data according to one or more rules, and republish the data to either the intake ingestion buffer 306 (e.g., for additional processing) or to the output ingestion buffer 310, such that the data is made available to downstream components or systems.
- the intake system 210 may repeatedly or iteratively process data according to any of a variety of rules, such that the data is formatted for use on the data intake and query system 108 or any other system.
- the intake system 210 may be configured to conduct such processing rapidly (e.g., in “real-time” with little or no perceptible delay), while ensuring resiliency of the data. 3.1.1. FORWARDER
- the forwarder 302 can include or be executed on a computing device configured to obtain data from a data source 202 and transmit the data to the data retrieval subsystem 304. In some implementations the forwarder 302 can be installed on a computing device associated with the data source 202. While a single forwarder 302 is illustratively shown in FIG. 3 A, the intake system 210 may include a number of different forwarders 302. Each forwarder 302 may illustratively be associated with a different data source 202. A forwarder 302 initially may receive the data as a raw data stream generated by the data source 202.
- a forwarder 302 may receive a data stream from a log file generated by an application server, from a stream of network data from a network device, or from any other source of data.
- a forwarder 302 receives the raw data and may segment the data stream into “blocks”, possibly of a uniform data size, to facilitate subsequent processing steps.
- the forwarder 302 may additionally or alternatively modify data received, prior to forwarding the data to the data retrieval subsystem 304.
- the forwarder 302 may “tag” metadata for each data block, such as by specifying a source, source type, or host associated with the data, or by appending one or more timestamp or time ranges to each data block.
- a forwarder 302 may comprise a service accessible to data sources 202 via a network 206.
- one type of forwarder 302 may be capable of consuming vast amounts of real-time data from a potentially large number of data sources 202.
- the forwarder 302 may, for example, comprise a computing device which implements multiple data pipelines or “queues” to handle forwarding of network data to data retrieval subsystems 304.
- the data retrieval subsystem 304 illustratively corresponds to a computing device which obtains data (e.g., from the forwarder 302), and transforms the data into a format suitable for publication on the intake ingestion buffer 306.
- the data retrieval subsystem 304 may generate a message for each block, and publish the message to the intake ingestion buffer 306.
- Generation of a message for each block may include, for example, formatting the data of the message in accordance with the requirements of a streaming data system implementing the intake ingestion buffer 306, the requirements of which may vary according to the streaming data system.
- the intake ingestion buffer 306 formats messages according to the protocol buffers method of serializing structured data.
- the intake ingestion buffer 306 may be configured to convert data from an input format into a protocol buffer format. Where a forwarder 302 does not segment input data into discrete blocks, the data retrieval subsystem 304 may itself segment the data. Similarly, the data retrieval subsystem 304 may append metadata to the input data, such as a source, source type, or host associated with the data.
- Generation of the message may include “tagging” the message with various information, which may be included as metadata for the data provided by the forwarder 302, and determining a “topic” for the message, under which the message should be published to the intake ingestion buffer 306.
- the “topic” of a message may reflect a categorization of the message on a streaming data system.
- each topic may be associated with a logically distinct queue of messages, such that a downstream device or system may “subscribe” to the topic in order to be provided with messages published to the topic on the streaming data system.
- the data retrieval subsystem 304 may obtain a set of topic rules (e.g., provided by a user of the data intake and query system 108 or based on automatic inspection or identification of the various upstream and downstream components of the data intake and query system 108) that determine a topic for a message as a function of the received data or metadata regarding the received data. For example, the topic of a message may be determined as a function of the data source 202 from which the data stems. After generation of a message based on input data, the data retrieval subsystem can publish the message to the intake ingestion buffer 306 under the determined topic.
- a set of topic rules e.g., provided by a user of the data intake and query system 108 or based on automatic inspection or identification of the various upstream and downstream components of the data intake and query system 108
- the topic of a message may be determined as a function of the data source 202 from which the data stems.
- the data retrieval subsystem can publish the message to the intake ingestion buffer 306 under the determined topic
- the data retrieval and subsystem 304 may additionally or alternatively obtain data from other sources.
- the data retrieval and subsystem 304 may be implemented as a plurality of intake points, each functioning to obtain data from one or more corresponding data sources (e.g., the forwarder 302, data sources 202, or any other data source), generate messages corresponding to the data, determine topics to which the messages should be published, and to publish the messages to one or more topics of the intake ingestion buffer 306.
- FIG. 3B One illustrative set of intake points implementing the data retrieval and subsystem 304 is shown in FIG. 3B.
- the data retrieval and subsystem 304 of FIG. 3 A may be implemented as a set of push-based publishers 320 or a set of pull-based publishers 330.
- the illustrative push-based publishers 320 operate on a “push” model, such that messages are generated at the push-based publishers 320 and transmitted to an intake ingestion buffer 306 (shown in FIG. 3B as primary and secondary intake ingestion buffers 306A and 306B, which are discussed in more detail below).
- push data transmission models generally correspond to models in which a data source determines when data should be transmitted to a data target.
- a variety of mechanisms exist to provide “push” functionality including “true push” mechanisms (e.g., where a data source independently initiates transmission of information) and “emulated push” mechanisms, such as “long polling” (a mechanism whereby a data target initiates a connection with a data source, but allows the data source to determine within a timeframe when data is to be transmitted to the data source).
- the push-based publishers 320 illustratively include an HTTP intake point 322 and a data intake and query system (DIQS) intake point 324.
- the HTTP intake point 322 can include a computing device configured to obtain HTTP-based data (e.g., as JavaScript Object Notation, or JSON messages) to format the HTTP-based data as a message, to determine a topic for the message (e.g., based on fields within the HTTP-based data), and to publish the message to the primary intake ingestion buffer 306A.
- HTTP-based data e.g., as JavaScript Object Notation, or JSON messages
- the DIQS intake point 324 can be configured to obtain data from a forwarder 302, to format the forwarder data as a message, to determine a topic for the message, and to publish the message to the primary intake ingestion buffer 306A. In this manner, the DIQS intake point 324 can function in a similar manner to the operations described with respect to the data retrieval subsystem 304 of FIG. 3 A.
- one or more pull-based publishers 330 may be used to implement the data retrieval subsystem 304.
- the pull-based publishers 330 may function on a “pull” model, whereby a data target (e.g., the primary intake ingestion buffer 306A) functions to continuously or periodically (e.g., each n seconds) query the pull-based publishers 330 for new messages to be placed on the primary intake ingestion buffer 306A.
- a data target e.g., the primary intake ingestion buffer 306A
- development of pull-based systems may require less coordination of functionality between a pull-based publisher 330 and the primary intake ingestion buffer 306A.
- pull-based publishers 330 may be more readily developed by third parties (e.g., other than a developer of the data intake a query system 108), and enable the data intake and query system 108 to ingest data associated with third party data sources 202.
- FIG. 3B includes a set of custom intake points 332A through 332N, each of which functions to obtain data from a third-party data source 202, format the data as a message for inclusion in the primary intake ingestion buffer 306A, determine a topic for the message, and make the message available to the primary intake ingestion buffer 306A in response to a request (a “pull”) for such messages.
- the pull-based publishers 330 are illustratively described as developed by third parties, push-based publishers 320 may also in some instances be developed by third parties. Additionally or alternatively, pull-based publishers may be developed by the developer of the data intake and query system 108.
- the primary intake ingestion buffer 306A may provide an API through which an intake point may publish messages to the primary intake ingestion buffer 306A.
- the API may enable an intake point to “push” messages to the primary intake ingestion buffer 306A, or request that the primary intake ingestion buffer 306A “pull” messages from the intake point.
- the streaming data processors 308 may provide an API through which ingestions buffers may register with the streaming data processors 308 to facilitate pre-processing of messages on the ingestion buffers
- the output ingestion buffer 310 may provide an API through which the streaming data processors 308 may publish messages or through which downstream devices or systems may subscribe to topics on the output ingestion buffer 310.
- any one or more of the intake points 322 through 332N may provide an API through which data sources 202 may submit data to the intake points.
- any one or more of the components of FIGS. 3 A and 3B may be made available via APIs to enable integration of systems potentially provided by disparate parties.
- the specific configuration of publishers 320 and 330 shown in FIG. 3B is intended to be illustrative in nature.
- the specific number and configuration of intake points may vary according to embodiments of the present application.
- one or more components of the intake system 210 may be omitted.
- a data source 202 may in some embodiments publish messages to an intake ingestion buffer 306, and thus an intake point 332 may be unnecessary.
- Other configurations of the intake system 210 are possible.
- the intake system 210 is illustratively configured to ensure message resiliency, such that data is persisted in the event of failures within the intake system 210.
- the intake system 210 may utilize one or more ingestion buffers, which operate to resiliently maintain data received at the intake system 210 until the data is acknowledged by downstream systems or components.
- resiliency is provided at the intake system 210 by use of ingestion buffers that operate according to a publish-subscribe (“pub-sub”) message model.
- pub-sub publish-subscribe
- data ingested into the data intake and query system 108 may be atomized as “messages,” each of which is categorized into one or more “topics.”
- An ingestion buffer can maintain a queue for each such topic, and enable devices to “subscribe” to a given topic.
- the ingestion buffer can function to transmit the messages to each subscriber, and ensure message resiliency until at least each subscriber has acknowledged receipt of the message (e.g., at which point the ingestion buffer may delete the message). In this manner, the ingestion buffer may function as a “broker” within the pub-sub model.
- an ingestion buffer is implemented by a streaming data source.
- streaming data sources include (but are not limited to) Amazon’s Simple Queue Service (“SQS”) or KinesisTM services, devices executing Apache KafkaTM software, or devices implementing the Message Queue Telemetry Transport (MQTT) protocol. Any one or more of these example streaming data sources may be utilized to implement an ingestion buffer in accordance with embodiments of the present disclosure.
- the intake system 210 may include at least two logical ingestion buffers: an intake ingestion buffer 306 and an output ingestion buffer 310.
- the intake ingestion buffer 306 can be configured to receive messages from the data retrieval subsystem 304 and resiliently store the message.
- the intake ingestion buffer 306 can further be configured to transmit the message to the streaming data processors 308 for processing.
- the streaming data processors 308 can be configured with one or more data transformation rules to transform the messages, and republish the messages to one or both of the intake ingestion buffer 306 and the output ingestion buffer 310.
- the output ingestion buffer 310 may make the messages available to various subscribers to the output ingestion buffer 310, which subscribers may include the query system 214, the indexing system 212, or other third-party devices (e.g., client devices 102, host devices 106, etc.).
- subscribers may include the query system 214, the indexing system 212, or other third-party devices (e.g., client devices 102, host devices 106, etc.).
- Both the input ingestion buffer 306 and output ingestion buffer 310 may be implemented on a streaming data source, as noted above.
- the intake ingestion buffer 306 operates to maintain source-oriented topics, such as topics for each data source 202 from which data is obtained, while the output ingestion buffer operates to maintain content-oriented topics, such as topics to which the data of an individual message pertains.
- the streaming data processors 308 can be configured to transform messages from the intake ingestion buffer 306 (e.g., arranged according to source-oriented topics) and publish the transformed messages to the output ingestion buffer 310 (e.g., arranged according to content-oriented topics).
- the streaming data processors 308 may additionally or alternatively republish transformed messages to the intake ingestion buffer 306, enabling iterative or repeated processing of the data within the message by the streaming data processors 308.
- these ingestion buffers 306 and 310 may be implemented as a common ingestion buffer.
- use of distinct ingestion buffers may be beneficial, for example, where a geographic region in which data is received differs from a region in which the data is desired.
- use of distinct ingestion buffers may beneficially allow the intake ingestion buffer 306 to operate in a first geographic region associated with a first set of data privacy restrictions, while the output ingestion buffer 310 operates in a second geographic region associated with a second set of data privacy restrictions.
- the intake system 210 can be configured to comply with all relevant data privacy restrictions, ensuring privacy of data processed at the data intake and query system 108.
- the intake system 210 may include both a primary intake ingestion buffer 306A and a secondary intake ingestion buffer 306B.
- the primary intake ingestion buffer 306 A is illustratively configured to obtain messages from the data retrieval subsystem 304 (e.g., implemented as a set of intake points 322 through 332N).
- the secondary intake ingestion buffer 306B is illustratively configured to provide an additional set of messages (e.g., from other data sources 202).
- the primary intake ingestion buffer 306A is provided by an administrator or developer of the data intake and query system 108, while the secondary intake ingestion buffer 306B is a user- supplied ingestion buffer (e.g., implemented externally to the data intake and query system 108).
- an intake ingestion buffer 306 may in some embodiments categorize messages according to source-oriented topics (e.g., denoting a data source 202 from which the message was obtained). In other embodiments, an intake ingestion buffer 306 may in some embodiments categorize messages according to intake-oriented topics (e.g., denoting the intake point from which the message was obtained). The number and variety of such topics may vary, and thus are not shown in FIG. 3B. In one embodiment, the intake ingestion buffer 306 maintains only a single topic (e.g., all data to be ingested at the data intake and query system 108).
- the output ingestion buffer 310 may in one embodiment categorize messages according to content-centric topics (e.g., determined based on the content of a message). Additionally or alternatively, the output ingestion buffer 310 may categorize messages according to consumer-centric topics (e.g., topics intended to store messages for consumption by a downstream device or system). An illustrative number of topics are shown in FIG. 3B, as topics 342 through 352N. Each topic may correspond to a queue of messages (e.g., in accordance with the pub-sub model) relevant to the corresponding topic.
- the streaming data processors 308 may be configured to process messages from the intake ingestion buffer 306 and determine which topics of the topics 342 through 352N into which to place the messages.
- the index topic 342 may be intended to store messages holding data that should be consumed and indexed by the indexing system 212.
- the notable event topic 344 may be intended to store messages holding data that indicates a notable event at a data source 202 (e.g., the occurrence of an error or other notable event).
- the metrics topic 346 may be intended to store messages holding metrics data for data sources 202.
- the search results topic 348 may be intended to store messages holding data responsive to a search query.
- the mobile alerts topic 350 may be intended to store messages holding data for which an end user has requested alerts on a mobile device.
- a variety of custom topics 352A through 352N may be intended to hold data relevant to end-user-created topics.
- the intake system 210 may divide and categorize messages from the intake ingestion buffer 306, partitioning the message into output topics relevant to a specific downstream consumer. In this manner, specific portions of data input to the data intake and query system 108 may be “divided out” and handled separately, enabling different types of data to be handled differently, and potentially at different speeds.
- the index topic 342 may be configured to include all or substantially all data included in the intake ingestion buffer 306. Given the volume of data, there may be a significant delay (e.g., minutes or hours) before a downstream consumer (e.g., the indexing system 212) processes a message in the index topic 342. Thus, for example, searching data processed by the indexing system 212 may incur significant delay.
- the search results topic 348 may be configured to hold only messages corresponding to data relevant to a current query.
- the query system 214 may transmit to the intake system 210 a rule that detects, within messages from the intake ingestion buffer 306A, data potentially relevant to the query.
- the streaming data processors 308 may republish these messages within the search results topic 348, and the query system 214 may subscribe to the search results topic 348 in order to obtain the data within the messages.
- the query system 214 can “bypass” the indexing system 212 and avoid delay that may be caused by that system, thus enabling faster (and potentially real time) display of search results.
- FIGS. 3 A and 3B While shown in FIGS. 3 A and 3B as a single output ingestion buffer 310, the intake system 210 may in some instances utilize multiple output ingestion buffers 310.
- the streaming data processors 308 may apply one or more rules to process messages from the intake ingestion buffer 306A into messages on the output ingestion buffer 310. These rules may be specified, for example, by an end user of the data intake and query system 108 or may be automatically generated by the data intake and query system 108 (e.g., in response to a user query).
- each rule may correspond to a set of selection criteria indicating messages to which the rule applies, as well as one or more processing sub-rules indicating an action to be taken by the streaming data processors 308 with respect to the message.
- the selection criteria may include any number or combination of criteria based on the data included within a message or metadata of the message (e.g., a topic to which the message is published).
- the selection criteria are formatted in the same manner or similarly to extraction rules, discussed in more detail below.
- selection criteria may include regular expressions that derive one or more values or a subportion of text from the portion of machine data in each message to produce a value for the field for that message.
- Processing sub-rules may indicate, for example, a topic of the output ingestion buffer 310 into which the message should be placed.
- Processing sub-rules may further indicate transformations, such as field or unit normalization operations, to be performed on the message.
- a transformation may include modifying data within the message, such as altering a format in which the data is conveyed (e.g., converting millisecond timestamps values to microsecond timestamp values, converting imperial units to metric units, etc.), or supplementing the data with additional information (e.g., appending an error descriptor to an error code).
- the streaming data processors 308 may be in communication with one or more external data stores (the locations of which may be specified within a rule) that provide information used to supplement or enrich messages processed at the streaming data processors 308.
- a specific rule may include selection criteria identifying an error code within a message of the primary ingestion buffer 306A, and specifying that when the error code is detected within a message, that the streaming data processors 308 should conduct a lookup in an external data source (e.g., a database) to retrieve the human-readable descriptor for that error code, and inject the descriptor into the message.
- rules may be used to process, transform, or enrich messages.
- the streaming data processors 308 may include a set of computing devices configured to process messages from the intake ingestion buffer 306 at a speed commensurate with a rate at which messages are placed into the intake ingestion buffer 306.
- the number of streaming data processors 308 used to process messages may vary based on a number of messages on the intake ingestion buffer 306 awaiting processing. Thus, as additional messages are queued into the intake ingestion buffer 306, the number of streaming data processors 308 may be increased to ensure that such messages are rapidly processed.
- the streaming data processors 308 may be extensible on a per topic basis.
- individual devices implementing the streaming data processors 308 may subscribe to different topics on the intake ingestion buffer 306, and the number of devices subscribed to an individual topic may vary according to a rate of publication of messages to that topic (e.g., as measured by a backlog of messages in the topic).
- the intake system 210 can support ingestion of massive amounts of data from numerous data sources 202.
- an intake system may comprise a service accessible to client devices 102 and host devices 106 via a network 104.
- the forwarder may, for example, comprise a computing device which implements multiple data pipelines or “queues” to handle forwarding of network data to indexers.
- a forwarder may also perform many of the functions that are performed by an indexer. For example, a forwarder may perform keyword extractions on raw data or parse raw data to create events. A forwarder may generate time stamps for events. Additionally or alternatively, a forwarder may perform routing of events to indexers.
- Data store 212 may contain events derived from machine data from a variety of sources all pertaining to the same component in an IT environment, and this data may be produced by the machine in question or by other components in the IT environment.
- FIG. 4 is a block diagram illustrating an embodiment of an indexing system 212 of the data intake and query system 108.
- the indexing system 212 can receive, process, and store data from multiple data sources 202, which may be associated with different tenants, users, etc. Using the received data, the indexing system can generate events that include a portion of machine data associated with a timestamp and store the events in buckets based on one or more of the timestamps, tenants, indexes, etc., associated with the data.
- the indexing system 212 can include various components that enable it to provide a stateless indexing service, or indexing service that is able to rapidly recover without data loss if one or more components of the indexing system 212 become unresponsive or unavailable.
- the indexing system 212 includes an indexing system manager 402 and one or more indexing nodes 404.
- the indexing system 212 can include fewer or more components.
- the common storage 216 or data store catalog 220 can form part of the indexing system 212, etc.
- each of the components of the indexing system 212 can be implemented using one or more computing devices as distinct computing devices or as one or more container instances or virtual machines across one or more computing devices.
- the indexing system manager 402 and indexing nodes 404 can be implemented as distinct computing devices with separate hardware, memory, and processors.
- the indexing system manager 402 and indexing nodes 404 can be implemented on the same or across different computing devices as distinct container instances, with each container having access to a subset of the resources of a host computing device (e.g., a subset of the memory or processing time of the processors of the host computing device), but sharing a similar operating system.
- the components can be implemented as distinct virtual machines across one or more computing devices, where each virtual machine can have its own unshared operating system but shares the underlying hardware with other virtual machines on the same host computing device.
- the indexing system manager 402 can monitor and manage the indexing nodes 404, and can be implemented as a distinct computing device, virtual machine, container, container of a pod, or a process or thread associated with a container.
- the indexing system 212 can include one indexing system manager 402 to manage all indexing nodes 404 of the indexing system 212.
- the indexing system 212 can include multiple indexing system managers 402. For example, an indexing system manager 402 can be instantiated for each computing device (or group of computing devices) configured as a host computing device for multiple indexing nodes 404.
- the indexing system manager 402 can handle resource management, creation/destruction of indexing nodes 404, high availability, load balancing, application upgrades/rollbacks, logging and monitoring, storage, networking, service discovery, and performance and scalability, and otherwise handle containerization management of the containers of the indexing system 212.
- the indexing system manager 402 can be implemented using Kubemetes or Swarm.
- the indexing system manager 402 can monitor the available resources of a host computing device and request additional resources in a shared resource environment, based on workload of the indexing nodes 404 or create, destroy, or reassign indexing nodes 404 based on workload. Further, the indexing system manager 402 system can assign indexing nodes 404 to handle data streams based on workload, system resources, etc.
- the indexing nodes 404 can include one or more components to implement various functions of the indexing system 212.
- the indexing node 404 includes an indexing node manager 406, partition manager 408, indexer 410, data store 412, and bucket manager 414.
- the indexing nodes 404 can be implemented on separate computing devices or as containers or virtual machines in a virtualization environment.
- an indexing node 404 can be implemented as a distinct computing device, virtual machine, container, container of a pod, or a process or thread associated with a container, or using multiple-related containers.
- each indexing node 404 can be implemented as a separate container or pod.
- one or more of the components of the indexing node 404 can be implemented as different containers of a single pod, e.g., on a containerization platform, such as Docker, the one or more components of the indexing node can be implemented as different Docker containers managed by synchronization platforms such as Kubernetes or Swarm.
- reference to a containerized indexing node 404 can refer to the indexing node 404 as being a single container or as one or more components of the indexing node 404 being implemented as different, related containers or virtual machines.
- the indexing node manager 406 can manage the processing of the various streams or partitions of data by the indexing node 404, and can be implemented as a distinct computing device, virtual machine, container, container of a pod, or a process or thread associated with a container. For example, in certain embodiments, as partitions or data streams are assigned to the indexing node 404, the indexing node manager 406 can generate one or more partition manager(s) 408 to manage each partition or data stream. In some cases, the indexing node manager 406 generates a separate partition manager 408 for each partition or shard that is processed by the indexing node 404. In certain embodiments, the partition can correspond to a topic of a data stream of the ingestion buffer 310.
- Each topic can be configured in a variety of ways.
- a topic may correspond to data from a particular data source 202, tenant, index/partition, or sourcetype.
- the indexing system 212 can discriminate between data from different sources or associated with different tenants, or indexes/partitions. For example, the indexing system 212 can assign more indexing nodes 404 to process data from one topic (associated with one tenant) than another topic (associated with another tenant), or store the data from one topic more frequently to common storage 216 than the data from a different topic, etc.
- the indexing node manager 406 monitors the various shards of data being processed by the indexing node 404 and the read pointers or location markers for those shards. In some embodiments, the indexing node manager 406 stores the read pointers or location marker in one or more data stores, such as but not limited to, common storage 216, DynamoDB, S3, or another type of storage system, shared storage system, or networked storage system, etc. As the indexing node 404 processes the data and the markers for the shards are updated by the intake system 210, the indexing node manager 406 can be updated to reflect the changes to the read pointers or location markers.
- common storage 216 such as but not limited to, common storage 216, DynamoDB, S3, or another type of storage system, shared storage system, or networked storage system, etc.
- the indexing node manager 406 can generate a new partition manager 408 to handle the data stream without losing context of what data is to be read from the intake system 210. Accordingly, in some embodiments, by using the ingestion buffer 310 and tracking the location of the location markers in the shards of the ingestion buffer, the indexing system 212 can aid in providing a stateless indexing service.
- the indexing node manager 406 is implemented as a background process, or daemon, on the indexing node 404 and the partition manager(s) 408 are implemented as threads, copies, or forks of the background process.
- an indexing node manager 406 can copy itself, or fork, to create a partition manager 408 or cause a template process to copy itself, or fork, to create each new partition manager 408, etc. This may be done for multithreading efficiency or for other reasons related to containerization and efficiency of managing indexers 410.
- the indexing node manager 406 generates a new process for each partition manager 408.
- the indexing node manager 408 can support multiple language implementations and be language agnostic. For example, the indexing node manager 408 can generate a process for a partition manager 408 in python and create a second process for a partition manager 408 in golang, etc.
- the partition manager(s) 408 can manage the processing of one or more of the partitions or shards of a data stream processed by an indexing node 404 or the indexer 410 of the indexing node 404, and can be implemented as a distinct computing device, virtual machine, container, container of a pod, or a process or thread associated with a container.
- managing the processing of a partition or shard can include, but it not limited to, communicating data from a particular shard to the indexer 410 for processing, monitoring the indexer 410 and the size of the data being processed by the indexer 410, instructing the indexer 410 to move the data to common storage 216, and reporting the storage of the data to the intake system 210.
- the indexing node manager 406 can assign a particular partition manager 408.
- the partition manager 408 for that partition can receive the data from the intake system 210 and forward or communicate that data to the indexer 410 for processing.
- the partition manager 408 receives data from a pub-sub messaging system, such as the ingestion buffer 310.
- the ingestion buffer 310 can have one or more streams of data and one or more shards or partitions associated with each stream of data. Each stream of data can be separated into shards and/or other partitions or types of organization of data.
- each shard can include data from multiple tenants, indexes/partition, etc.
- each shard can correspond to data associated with a particular tenant, index/partition, source, sourcetype, etc.
- the indexing system 212 can include a partition manager 408 for individual tenants, indexes/partitions, sources, sourcetypes, etc.
- the indexing system 212 can manage and process the data differently. For example, the indexing system 212 can assign more indexing nodes 404 to process data from one tenant than another tenant, or store buckets associated with one tenant or partition/index more frequently to common storage 216 than buckets associated with a different tenant or partition/index, etc.
- a partition manager 408 receives data from one or more of the shards or partitions of the ingestion buffer 310.
- the partition manager 408 can forward the data from the shard to the indexer 410 for processing.
- the amount of data coming into a shard may exceed the shard’s throughput.
- 4 MB/s of data may be sent to an ingestion buffer 310 for a particular shard, but the ingestion buffer 310 may be able to process only 2 MB/s of data per shard.
- the data in the shard can include a reference to a location in storage where the indexing system 212 can retrieve the data.
- a reference pointer to data can be placed in the ingestion buffer 310 rather than putting the data itself into the ingestion buffer.
- the reference pointer can reference a chunk of data that is larger than the throughput of the ingestion buffer 310 for that shard.
- the data intake and query system 108 can increase the throughput of individual shards of the ingestion buffer 310.
- the partition manager 408 can obtain the reference pointer from the ingestion buffer 310 and retrieve the data from the referenced storage for processing.
- the referenced storage to which reference pointers in the ingestion buffer 310 may point can correspond to the common storage 216 or other cloud or local storage.
- the chunks of data to which the reference pointers refer may be directed to common storage 216 from intake system 210, e.g., streaming data processor 308 or ingestion buffer 310.
- the partition manager 408 can monitor the indexer 410 and the size of the data on the indexer 410 (inclusive of the data store 412) associated with the partition.
- the size of the data on the indexer 410 can correspond to the data that is actually received from the particular partition of the intake system 210, as well as data generated by the indexer 410 based on the received data (e.g., inverted indexes, summaries, etc.), and may correspond to one or more buckets.
- the indexer 410 may have generated one or more buckets for each tenant and/or partition associated with data being processed in the indexer 410.
- the partition manager 408 can instruct the indexer 410 to convert editable groups of data or buckets to non-editable groups or buckets and/or copy the data associated with the partition to common storage 216.
- the bucket roll-over policy can indicate that the data associated with the particular partition, which may have been indexed by the indexer 410 and stored in the data store 412 in various buckets, is to be copied to common storage 216 based on a determination that the size of the data associated with the particular partition satisfies a threshold size.
- the bucket roll-over policy can include different threshold sizes for different partitions.
- the bucket roll-over policy may be modified by other factors, such as an identity of a tenant associated with indexing node 404, system resource usage, which could be based on the pod or other container that contains indexing node 404, or one of the physical hardware layers with which the indexing node 404 is running, or any other appropriate factor for scaling and system performance of indexing nodes 404 or any other system component.
- the bucket roll-over policy can indicate data is to be copied to common storage 216 based on a determination that the amount of data associated with all partitions (or a subset thereof) of the indexing node 404 satisfies a threshold amount. Further, the bucket rollover policy can indicate that the one or more partition managers 408 of an indexing node 404 are to communicate with each other or with the indexing node manager 406 to monitor the amount of data on the indexer 410 associated with all of the partitions (or a subset thereof) assigned to the indexing node 404 and determine that the amount of data on the indexer 410 (or data store 412) associated with all the partitions (or a subset thereof) satisfies a threshold amount.
- one or more of the partition managers 408 or the indexing node manager 406 can instruct the indexer 410 to convert editable buckets associated with the partitions (or subsets thereof) to non-editable buckets and/or store the data associated with the partitions (or subset thereof) in common storage 216.
- the bucket roll-over policy can indicate that buckets are to be converted to non-editable buckets and stored in common storage based on a collective size of buckets satisfying a threshold size.
- the bucket roll-over policy can use different threshold sizes for conversion and storage. For example, the bucket roll-over policy can use a first threshold size to indicate when editable buckets are to be converted to non-editable buckets (e.g., stop writing to the buckets) and a second threshold size to indicate when the data (or buckets) are to be stored in common storage 216.
- the bucket roll-over policy can indicate that the partition manager(s) 408 are to send a single command to the indexer 410 that causes the indexer 410 to convert editable buckets to non-editable buckets and store the buckets in common storage 216.
- the partition manager 408 can communicate to the intake system 210, either directly, or through the indexing node manager 406, that the data has been stored and/or that the location marker or read pointer can be moved or updated.
- the partition manager 408 receives the acknowledgement that the data has been stored from common storage 216 and/or from the indexer 410.
- the intake system 210 does not receive communication that the data stored in intake system 210 has been read and processed until after that data has been stored in common storage 216.
- the acknowledgement that the data has been stored in common storage 216 can also include location information about the data within the common storage 216.
- the acknowledgement can provide a link, map, or path to the copied data in the common storage 216.
- the partition manager 408 can update the data store catalog 220.
- the partition manager 408 can update the data store catalog 220 with an identifier of the data (e.g., bucket identifier, tenant identifier, partition identifier, etc.), the location of the data in common storage 216, a time range associated with the data, etc. In this way, the data store catalog 220 can be kept up-to-date with the contents of the common storage 216.
- the partition manager 408 can continue to communicate the data to the indexer 410, monitor the size or amount of data on the indexer 410, instruct the indexer 410 to copy the data to common storage 216, communicate the successful storage of the data to the intake system 210, and update the data store catalog 220.
- the intake system 210 communicates data from a particular shard or partition to the indexing system 212.
- the intake system 210 can track which data it has sent and a location marker for the data in the intake system 210 (e.g., a marker that identifies data that has been sent to the indexing system 212 for processing).
- the intake system 210 can retain or persistently make available the sent data until the intake system 210 receives an acknowledgement from the indexing system 212 that the sent data has been processed, stored in persistent storage (e.g., common storage 216), or is safe to be deleted.
- persistent storage e.g., common storage 216
- an indexing node 404 assigned to process the sent data becomes unresponsive or is lost, e.g., due to a hardware failure or a crash of the indexing node manager 406 or other component, process, or daemon, the data that was sent to the unresponsive indexing node 404 will not be lost. Rather, a different indexing node 404 can obtain and process the data from the intake system 210.
- the indexing system 212 can report the storage to the intake system 210.
- the intake system 210 can update its marker to identify different data that has been sent to the indexing system 212 for processing, but has not yet been stored. By moving the marker, the intake system 210 can indicate that the previously-identified data has been stored in common storage 216, can be deleted from the intake system 210 or, otherwise, can be allowed to be overwritten, lost, etc.
- the indexing node manager 406 can track the marker used by the ingestion buffer 310, and the partition manager 408 can receive the data from the ingestion buffer 310 and forward it to an indexer 410 for processing (or use the data in the ingestion buffer to obtain data from a referenced storage location and forward the obtained data to the indexer).
- the partition manager 408 can monitor the amount of data being processed and instruct the indexer 410 to copy the data to common storage 216. Once the data is stored in common storage 216, the partition manager 408 can report the storage to the ingestion buffer 310, so that the ingestion buffer 310 can update its marker.
- the indexing node manager 406 can update its records with the location of the updated marker.
- the indexing node manager 406 can assign a different partition manager 408 to obtain the data from the data stream without losing the location information, or if the indexer 410 becomes unavailable or fails, the indexing node manager 406 can assign a different indexer 410 to process and store the data.
- the indexer 410 can be the primary indexing execution engine, and can be implemented as a distinct computing device, container, container within a pod, etc.
- the indexer 410 can tasked with parsing, processing, indexing, and storing the data received from the intake system 210 via the partition manager(s) 408.
- the indexer 410 can parse the incoming data to identify timestamps, generate events from the incoming data, group and save events into buckets, generate summaries or indexes (e.g., time series index, inverted index, keyword index, etc.) of the events in the buckets, and store the buckets in common storage 216.
- one indexer 410 can be assigned to each partition manager 408, and in certain embodiments, one indexer 410 can receive and process the data from multiple (or all) partition mangers 408 on the same indexing node 404 or from multiple indexing nodes 404.
- the indexer 410 can store the events and buckets in the data store 412 according to a bucket creation policy.
- the bucket creation policy can indicate how many buckets the indexer 410 is to generate for the data that it processes.
- the indexer 410 based on the bucket creation policy, the indexer 410 generates at least one bucket for each tenant and index (also referred to as a partition) associated with the data that it processes.
- the indexer 410 can generate at least six buckets: at least one bucket for each of Tenant A::Index X, Tenant A::Index Y, Tenant B::Index X, Tenant B::Index Y, Tenant C::Index X, and Tenant C::Index Y. Additional buckets may be generated for a tenant/partition pair based on the amount of data received that is associated with the tenant/partition pair. However, it will be understood that the indexer 410 can generate buckets using a variety of policies. For example, the indexer 410 can generate one or more buckets for each tenant, partition, source, sourcetype, etc.
- the indexer 410 receives data that it determines to be “old,” e.g., based on a timestamp of the data or other temporal determination regarding the data, then it can generate a bucket for the “old” data. In some embodiments, the indexer 410 can determine that data is “old,” if the data is associated with a timestamp that is earlier in time by a threshold amount than timestamps of other data in the corresponding bucket (e.g., depending on the bucket creation policy, data from the same partition and/or tenant) being processed by the indexer 410.
- the indexer 410 can determine that the data with the earlier timestamps is “old” data and generate a new bucket for that data. In this way, the indexer 410 can avoid placing data in the same bucket that creates a time range that is significantly larger than the time range of other buckets, which can decrease the performance of the system as the bucket could be identified as relevant for a search more often than it otherwise would.
- the threshold amount of time used to determine if received data is “old,” can be predetermined or dynamically determined based on a number of factors, such as, but not limited to, time ranges of other buckets, amount of data being processed, timestamps of the data being processed, etc.
- the indexer 410 can determine an average time range of buckets that it processes for different tenants and indexes. If incoming data would cause the time range of a bucket to be significantly larger (e.g., 25%, 50%, 75%, double, or other amount) than the average time range, then the indexer 410 can determine that the data is “old” data, and generate a separate bucket for it.
- the indexer 410 can reduce the instances in which the bucket is identified as storing data that may be relevant to a query. For example, by having a smaller time range, the query system 214 may identify the bucket less frequently as a relevant bucket then if the bucket had the large time range due to the “old” data. Additionally, in a process that will be described in more detail herein, time-restricted searches and search queries may be executed more quickly because there may be fewer buckets to search for a particular time range. In this manner, computational efficiency of searching large amounts of data can be improved.
- the indexer 410 can use similar techniques to determine that “new” data should be placed in a new bucket or that a time gap between data in a bucket and “new” data is larger than a threshold amount such that the “new” data should be stored in a separate bucket.
- the indexer 410 can store the bucket in or copy the bucket to common storage 216.
- the partition manager 408 can monitor the size of the buckets and instruct the indexer 410 to copy the bucket to common storage 216.
- the threshold size can be predetermined or dynamically determined.
- the partition manager 408 can monitor the size of multiple, or all, buckets associated with the partition being managed by the partition manager 408, and based on the collective size of the buckets satisfying a threshold size, instruct the indexer 410 to copy the buckets associated with the partition to common storage 216.
- one or more partition managers 408 or the indexing node manager 406 can monitor the size of buckets across multiple, or all partitions, associated with the indexing node 404, and instruct the indexer to copy the buckets to common storage 216 based on the size of the buckets satisfying a threshold size.
- buckets in the data store 412 that are being edited by the indexer 410 can be referred to as hot buckets or editable buckets .
- the indexer 410 can add data, events , and indexes to editable buckets in the data store 412, etc.
- Buckets in the data store 412 that are no longer edited by the indexer 410 can be referred to as warm buckets or non-editable buckets.
- the indexer 410 determines that a hot bucket is to be copied to common storage 216, it can convert the hot (editable) bucket to a warm (non-editable) bucket, and then move or copy the warm bucket to the common storage 216.
- the indexer 410 can notify the partition manager 408 that the data associated with the warm bucket has been processed and stored. As mentioned, the partition manager 408 can relay the information to the intake system 210. In addition, the indexer 410 can provide the partition manager 408 with information about the buckets stored in common storage 216, such as, but not limited to, location information, tenant identifier, index identifier, time range, etc. As described herein, the partition manager 408 can use this information to update the data store catalog 220. 3.2.3. BUCKET MANAGER
- the bucket manager 414 can manage the buckets stored in the data store 412, and can be implemented as a distinct computing device, virtual machine, container, container of a pod, or a process or thread associated with a container. In some cases, the bucket manager 414 can be implemented as part of the indexer 410, indexing node 404, or as a separate component of the indexing system 212.
- the indexer 410 stores data in the data store 412 as one or more buckets associated with different tenants, indexes, etc.
- the contents of the buckets are not searchable by the query system 214 until they are stored in common storage 216.
- the query system 214 may be unable to identify data responsive to a query that is located in hot (editable) buckets in the data store 412 and/or the warm (non-editable) buckets in the data store 412 that have not been copied to common storage 216.
- query results may be incomplete or inaccurate, or slowed as the data in the buckets of the data store 412 are copied to common storage 216.
- the indexing system 212 can use a bucket roll-over policy that instructs the indexer 410 to convert hot buckets to warm buckets more frequently (or convert based on a smaller threshold size) and/or copy the warm buckets to common storage 216. While converting hot buckets to warm buckets more frequently or based on a smaller storage size can decrease the lag between processing the data and making it searchable, it can increase the storage size and overhead of buckets in common storage 216. For example, each bucket may have overhead associated with it, in terms of storage space required, processor power required, or other resource requirement.
- buckets in common storage 216 can result in more storage used for overhead than for storing data, which can lead to increased storage size and costs.
- a larger number of buckets in common storage 216 can increase query times, as the opening of each bucket as part of a query can have certain processing overhead or time delay associated with it.
- the bucket manager 414 can monitor the buckets stored in the data store 412 and/or common storage 216 and merge buckets according to a bucket merge policy. For example, the bucket manager 414 can monitor and merge warm buckets stored in the data store 412 before, after, or concurrently with the indexer copying warm buckets to common storage 216.
- the bucket merge policy can indicate which buckets are candidates for a merge or which bucket to merge (e.g., based on time ranges, size, tenant/partition or other identifiers), the number of buckets to merge, size or time range parameters for the merged buckets, and/or a frequency for creating the merged buckets.
- the bucket merge policy can indicate that a certain number of buckets are to be merged, regardless of size of the buckets.
- the bucket merge policy can indicate that multiple buckets are to be merged until a threshold bucket size is reached (e.g., 750 MB, or 1 GB, or more).
- the bucket merge policy can indicate that buckets having a time range within a set period of time (e.g., 30 sec, 1 min., etc.) are to be merged, regardless of the number or size of the buckets being merged.
- a set period of time e.g. 30 sec, 1 min., etc.
- the bucket merge policy can indicate which buckets are to be merged or include additional criteria for merging buckets.
- the bucket merge policy can indicate that only buckets having the same tenant identifier and/or partition are to be merged, or set constraints on the size of the time range for a merged bucket (e.g., the time range of the merged bucket is not to exceed an average time range of buckets associated with the same source, tenant, partition, etc.).
- the bucket merge policy can indicate that buckets that are older than a threshold amount (e.g., one hour, one day, etc.) are candidates for a merge or that a bucket merge is to take place once an hour, once a day, etc.
- a threshold amount e.g., one hour, one day, etc.
- the bucket merge policy can indicate that buckets are to be merged based on a determination that the number or size of warm buckets in the data store 412 of the indexing node 404 satisfies a threshold number or size, or the number or size of warm buckets associated with the same tenant identifier and/or partition satisfies the threshold number or size. It will be understood, that the bucket manager 414 can use any one or any combination of the aforementioned or other criteria for the bucket merge policy to determine when, how, and which buckets to merge.
- the bucket manager 414 can copy or instruct the indexer 406 to copy the merged buckets to common storage 216. Based on a determination that the merged buckets are successfully copied to the common storage 216, the bucket manager 414 can delete the merged buckets and the buckets used to generate the merged buckets (also referred to herein as unmerged buckets or pre-merged buckets) from the data store 412. [00178] In some cases, the bucket manager 414 can also remove or instruct the common storage 216 to remove corresponding pre-merged buckets from the common storage 216 according to a bucket management policy. The bucket management policy can indicate when the pre-merged buckets are to be deleted or designated as able to be overwritten from common storage 216.
- the bucket management policy can indicate that the pre-merged buckets are to be deleted immediately, once any queries relying on the pre-merged buckets are completed, after a predetermined amount of time, etc.
- the pre-merged buckets may be in use or identified for use by one or more queries. Removing the pre-merged buckets from common storage 216 in the middle of a query may cause one or more failures in the query system 214 or result in query responses that are incomplete or erroneous.
- the bucket management policy in some cases, can indicate to the common storage 216 that queries that arrive before a merged bucket is stored in common storage 216 are to use the corresponding pre-merged buckets and queries that arrive after the merged bucket is stored in common storage 216 are to use the merged bucket.
- the bucket management policy can indicate that once queries using the pre-merged buckets are completed, the buckets are to be removed from common storage 216.
- the bucket management policy can indicate removal of the buckets in a variety of ways.
- the common storage 216 can remove the buckets after on one or more hours, one day, one week, etc., with or without regard to queries that may be relying on the pre-merged buckets.
- the bucket management policy can indicate that the pre-merged buckets are to be removed without regard to queries relying on the premerged buckets and that any queries relying on the pre-merged buckets are to be redirected to the merged bucket.
- the bucket manger 414 can update the data store catalog 220 or cause the indexer 410 or partition manager 408 to update the data store catalog 220 with the relevant changes. These changes can include removing reference to the pre-merged buckets in the data store catalog 220 and/or adding information about the merged bucket, including, but not limited to, a bucket, tenant, and/or partition identifier associated with the merged bucket, a time range of the merged bucket, location information of the merged bucket in common storage 216, etc. In this way, the data store catalog 220 can be kept up-to-date with the contents of the common storage 216.
- FIG. 5 is a block diagram illustrating an embodiment of a query system 214 of the data intake and query system 108.
- the query system 214 can receive, process, and execute queries from multiple client devices 204, which may be associated with different tenants, users, etc.
- the query system 214 can include various components that enable it to provide a stateless or state-free search service, or search service that is able to rapidly recover without data loss if one or more components of the query system 214 become unresponsive or unavailable.
- the query system 214 includes one or more query system managers 502 (collectively or individually referred to as query system manager 502), one or more search heads 504 (collectively or individually referred to as search head 504 or search heads 504), one or more search nodes 506 (collectively or individually referred to as search node 506 or search nodes 506), a search node monitor 508, and a search node catalog 510.
- query system manager 502 collectively or individually referred to as query system manager 502
- search heads 504 collectively or individually referred to as search head 504 or search heads 504
- search nodes 506 collectively or individually referred to as search node 506 or search nodes 506
- search node monitor 508 search node monitor 508
- search node catalog 510 search node catalog 510.
- the query system 214 can include fewer or more components as desired.
- the common storage 216, data store catalog 220, or query acceleration data store 222 can form part of the query system 214, etc.
- each of the components of the query system 214 can be implemented using one or more computing devices as distinct computing devices or as one or more container instances or virtual machines across one or more computing devices.
- the query system manager 502, search heads 504, and search nodes 506 can be implemented as distinct computing devices with separate hardware, memory, and processors.
- the query system manager 502, search heads 504, and search nodes 506 can be implemented on the same or across different computing devices as distinct container instances, with each container having access to a subset of the resources of a host computing device (e.g., a subset of the memory or processing time of the processors of the host computing device), but sharing a similar operating system.
- the components can be implemented as distinct virtual machines across one or more computing devices, where each virtual machine can have its own unshared operating system but shares the underlying hardware with other virtual machines on the same host computing device.
- the query system manager 502 can monitor and manage the search heads 504 and search nodes 506, and can be implemented as a distinct computing device, virtual machine, container, container of a pod, or a process or thread associated with a container. For example, the query system manager 502 can determine which search head 504 is to handle an incoming query or determine whether to generate an additional search node 506 based on the number of queries received by the query system 214 or based on another search node 506 becoming unavailable or unresponsive. Similarly, the query system manager 502 can determine that additional search heads 504 should be generated to handle an influx of queries or that some search heads 504 can be de-allocated or terminated based on a reduction in the number of queries received.
- the query system 214 can include one query system manager 502 to manage all search heads 504 and search nodes 506 of the query system 214.
- the query system 214 can include multiple query system managers 502.
- a query system manager 502 can be instantiated for each computing device (or group of computing devices) configured as a host computing device for multiple search heads 504 and/or search nodes 506.
- the query system manager 502 can handle resource management, creation, assignment, or destruction of search heads 504 and/or search nodes 506, high availability, load balancing, application upgrades/rollbacks, logging and monitoring, storage, networking, service discovery, and performance and scalability, and otherwise handle containerization management of the containers of the query system 214.
- the query system manager 502 can be implemented using Kubernetes or Swarm.
- the query system manager 502 may be part of a sidecar or sidecar container, that allows communication between various search nodes 506, various search heads 504, and/or combinations thereof.
- the query system manager 502 can monitor the available resources of a host computing device and/or request additional resources in a shared resource environment, based on workload of the search heads 504 and/or search nodes 506 or create, destroy, or reassign search heads 504 and/or search nodes 506 based on workload. Further, the query system manager 502 system can assign search heads 504 to handle incoming queries and/or assign search nodes 506 to handle query processing based on workload, system resources, etc.
- the search heads 504 can manage the execution of queries received by the query system 214. For example, the search heads 504 can parse the queries to identify the set of data to be processed and the manner of processing the set of data, identify the location of the data, identify tasks to be performed by the search head and tasks to be performed by the search nodes 506, distribute the query (or sub-queries corresponding to the query) to the search nodes 506, apply extraction rules to the set of data to be processed, aggregate search results from the search nodes 506, store the search results in the query acceleration data store 222, etc.
- the search heads 504 can be implemented on separate computing devices or as containers or virtual machines in a virtualization environment.
- the search heads 504 may be implemented using multiple-related containers.
- each search head 504 can be implemented as a separate container or pod.
- one or more of the components of the search head 504 can be implemented as different containers of a single pod, e.g., on a containerization platform, such as Docker, the one or more components of the indexing node can be implemented as different Docker containers managed by synchronization platforms such as Kubernetes or Swarm.
- reference to a containerized search head 504 can refer to the search head 504 as being a single container or as one or more components of the search head 504 being implemented as different, related containers.
- the search head 504 includes a search master 512 and one or more search managers 514 to carry out its various functions.
- the search head 504 can include fewer or more components as desired.
- the search head 504 can include multiple search masters 512.
- the search master 512 can manage the execution of the various queries assigned to the search head 504, and can be implemented as a distinct computing device, virtual machine, container, container of a pod, or a process or thread associated with a container. For example, in certain embodiments, as the search head 504 is assigned a query, the search master 512 can generate one or more search manager(s) 514 to manage the query. In some cases, the search master 512 generates a separate search manager 514 for each query that is received by the search head 504. In addition, once a query is completed, the search master 512 can handle the termination of the corresponding search manager 514.
- the search master 512 can track and store the queries assigned to the different search managers 514. Accordingly, if a search manager 514 becomes unavailable or unresponsive, the search master 512 can generate a new search manager 514 and assign the query to the new search manager 514. In this way, the search head 504 can increase the resiliency of the query system 214, reduce delay caused by an unresponsive component, and can aid in providing a stateless searching service.
- the search master 512 is implemented as a background process, or daemon, on the search head 504 and the search manager(s) 514 are implemented as threads, copies, or forks of the background process.
- a search master 512 can copy itself, or fork, to create a search manager 514 or cause a template process to copy itself, or fork, to create each new search manager 514, etc., in order to support efficient multithreaded implementations
- the search managers 514 can manage the processing and execution of the queries assigned to the search head 504, and can be implemented as a distinct computing device, virtual machine, container, container of a pod, or a process or thread associated with a container. In some embodiments, one search manager 514 manages the processing and execution of one query at a time. In such embodiments, if the search head 504 is processing one hundred queries, the search master 512 can generate one hundred search managers 514 to manage the one hundred queries. Upon completing an assigned query, the search manager 514 can await assignment to a new query or be terminated.
- a search manager 514 can parse the query to identify the set of data and the manner in which the set of data is to be processed (e.g., the transformations that are to be applied to the set of data), determine tasks to be performed by the search manager 514 and tasks to be performed by the search nodes 506, identify search nodes 506 that are available to execute the query, map search nodes 506 to the set of data that is to be processed, instruct the search nodes 506 to execute the query and return results, aggregate and/or transform the search results from the various search nodes 506, and provide the search results to a user and/or to the query acceleration data store 222.
- the manner in which the set of data is to be processed e.g., the transformations that are to be applied to the set of data
- determine tasks to be performed by the search manager 514 and tasks to be performed by the search nodes 506 identify search nodes 506 that are available to execute the query, map search nodes 506 to the set of data that is to be processed, instruct the search nodes 506 to
- the search manager 514 can consult the data store catalog 220 (depicted in Fig. 2).
- the data store catalog 220 can include information regarding the data stored in common storage 216.
- the data store catalog 220 can include bucket identifiers, a time range, and a location of the buckets in common storage 216.
- the data store catalog 220 can include a tenant identifier and partition identifier for the buckets. This information can be used to identify buckets that include data that satisfies at least a portion of the query.
- the search manager 514 can consult the data store catalog 220. Specifically, the search manager 514 can use the data store catalog 220 to identify buckets associated with the _sales partition and the tenant ABC, Inc. and that include data from the past hour. In some cases, the search manager 514 can obtain bucket identifiers and location information from the data store catalog 220 for the buckets storing data that satisfies at least the aforementioned filter criteria. In certain embodiments, if the data store catalog 220 includes keyword pairs, it can use the keyword: Error to identify buckets that have at least one event that include the keyword Error.
- the search manager 514 can assign one or more search nodes 506 to search the corresponding buckets. Accordingly, the data store catalog 220 can be used to identify relevant buckets and reduce the number of buckets that are to be searched by the search nodes 506. In this way, the data store catalog 220 can decrease the query response time of the data intake and query system 108. [00200] In some embodiments, the use of the data store catalog 220 to identify buckets for searching can contribute to the statelessness of the query system 214 and search head 504.
- the query system manager 502 or search master 512 can spin up or assign an additional resource (new search head 504 or new search manager 514) to execute the query.
- an additional resource new search head 504 or new search manager 514.
- the bucket information is persistently stored in the data store catalog 220, data lost due to the unavailability or unresponsiveness of a component of the query system 214 can be recovered by using the bucket information in the data store catalog 220.
- the search manager 514 can consult the search node catalog 510.
- the search node catalog 510 can include information regarding the search nodes 506.
- the search node catalog 510 can include an identifier for each search node 506, as well as utilization and availability information.
- the search node catalog 510 can identify search nodes 506 that are instantiated but are unavailable or unresponsive.
- the search node catalog 510 can identify the utilization rate of the search nodes 506.
- the search node catalog 510 can identify search nodes 506 that are working at maximum capacity or at a utilization rate that satisfies utilization threshold, such that the search node 506 should not be used to execute additional queries for a time.
- the search node catalog 510 can include architectural information about the search nodes 506.
- the search node catalog 510 can identify search nodes 506 that share a data store and/or are located on the same computing device, or on computing devices that are colocated.
- a search manager 514 can consult the search node catalog 510 for search nodes 506 that are available to execute the received query. Based on the consultation of the search node catalog 510, the search manager 514 can determine which search nodes 506 to assign to execute the query.
- the search manager 514 can map the search nodes 506 to the data that is to be processed according to a search node mapping policy.
- the search node mapping policy can indicate how search nodes 506 are to be assigned to data (e.g., buckets) and when search nodes 506 are to be assigned to (and instructed to search) the data or buckets.
- the search manager 514 can map the search nodes 506 to buckets that include data that satisfies at least a portion of the query. For example, in some cases, the search manager 514 can consult the data store catalog 220 to obtain bucket identifiers of buckets that include data that satisfies at least a portion of the query, e.g., as a non-limiting example, to obtain bucket identifiers of buckets that include data associated with a particular time range. Based on the identified buckets and search nodes 506, the search manager 514 can dynamically assign (or map) search nodes 506 to individual buckets according to a search node mapping policy.
- the search node mapping policy can indicate that the search manager 514 is to assign all buckets to search nodes 506 as a single operation. For example, where ten buckets are to be searched by five search nodes 506, the search manager 514 can assign two buckets to a first search node 506, two buckets to a second search node 506, etc. In another embodiment, the search node mapping policy can indicate that the search manager 514 is to assign buckets iteratively.
- the search manager 514 can initially assign five buckets (e.g., one buckets to each search node 506), and assign additional buckets to each search node 506 as the respective search nodes 506 complete the execution on the assigned buckets.
- Retrieving buckets from common storage 216 to be searched by the search nodes 506 can cause delay or may use a relatively high amount of network bandwidth or disk read/write bandwidth.
- a local or shared data store associated with the search nodes 506 may include a copy of a bucket that was previously retrieved from common storage 216.
- the search node mapping policy can indicate that the search manager 514 is to assign, preferably assign, or attempt to assign the same search node 506 to search the same bucket over time. In this way, the assigned search node 506 can keep a local copy of the bucket on its data store (or a data store shared between multiple search nodes 506) and avoid the processing delays associated with obtaining the bucket from the common storage 216.
- the search node mapping policy can indicate that the search manager 514 is to use a consistent hash function or other function to consistently map a bucket to a particular search node 506.
- the search manager 514 can perform the hash using the bucket identifier obtained from the data store catalog 220, and the output of the hash can be used to identify the search node 506 assigned to the bucket.
- the consistent hash function can be configured such that even with a different number of search nodes 506 being assigned to execute the query, the output will consistently identify the same search node 506, or have an increased probability of identifying the same search node 506.
- the query system 214 can store a mapping of search nodes 506 to bucket identifiers.
- the search node mapping policy can indicate that the search manager 514 is to use the mapping to determine whether a particular bucket has been assigned to a search node 506. If the bucket has been assigned to a particular search node 506 and that search node 506 is available, then the search manager 514 can assign the bucket to the search node 506. If the bucket has not been assigned to a particular search node 506, the search manager 514 can use a hash function to identify a search node 506 for assignment. Once assigned, the search manager 514 can store the mapping for future use.
- the search node mapping policy can indicate that the search manager 514 is to use architectural information about the search nodes 506 to assign buckets. For example, if the identified search node 506 is unavailable or its utilization rate satisfies a threshold utilization rate, the search manager 514 can determine whether an available search node 506 shares a data store with the unavailable search node 506. If it does, the search manager 514 can assign the bucket to the available search node 506 that shares the data store with the unavailable search node 506. In this way, the search manager 514 can reduce the likelihood that the bucket will be obtained from common storage 216, which can introduce additional delay to the query while the bucket is retrieved from common storage 216 to the data store shared by the available search node 506.
- the search node mapping policy can indicate that the search manager 514 is to assign buckets to search nodes 506 randomly, or in a simple sequence (e.g., a first search nodes 506 is assigned a first bucket, a second search node 506 is assigned a second bucket, etc.). In other instances, as discussed, the search node mapping policy can indicate that the search manager 514 is to assign buckets to search nodes 506 based on buckets previously assigned to a search nodes 506, in a prior or current search.
- each search node 506 may be associated with a local data store or cache of information (e.g., in memory of the search nodes 506, such as random access memory [“RAM”], disk-based cache, a data store, or other form of storage).
- Each search node 506 can store copies of one or more buckets from the common storage 216 within the local cache, such that the buckets may be more rapidly searched by search nodes 506.
- the search manager 514 (or cache manager 516) can maintain or retrieve from search nodes 506 information identifying, for each relevant search node 506, what buckets are copied within local cache of the respective search nodes 506.
- the search manager 514 determines that a search node 506 assigned to execute a search has within its data store or local cache a copy of an identified bucket, the search manager 514 can preferentially assign the search node 506 to search that locally- cached bucket.
- search nodes 506 may be assigned based on overlaps of computing resources of the search nodes 506. For example, where a containerized search node 506 is to retrieve a bucket from common storage 216 (e.g., where a local cached copy of the bucket does not exist on the search node 506), such retrieval may use a relatively high amount of network bandwidth or disk read/write bandwidth. Thus, assigning a second containerized search node 506 instantiated on the same host computing device might be expected to strain or exceed the network or disk read/write bandwidth of the host computing device.
- the search manager 514 can assign buckets to search nodes 506 such that two containerized search nodes 506 on a common host computing device do not both retrieve buckets from common storage 216 at the same time.
- the search manager 514 can, according to the search node mapping policy, assign both such buckets to the same search node 506 or to two different search nodes 506 that share the data store, such that both buckets can be searched in parallel by the respective search nodes 506.
- the search node mapping policy can indicate that the search manager 514 is to use any one or any combination of the above-described mechanisms to assign buckets to search nodes 506. Furthermore, the search node mapping policy can indicate that the search manager 514 is to prioritize assigning search nodes 506 to buckets based on any one or any combination of: assigning search nodes 506 to process buckets that are in a local or shared data store of the search nodes 506, maximizing parallelization (e.g., assigning as many different search nodes 506 to execute the query as are available), assigning search nodes 506 to process buckets with overlapping timestamps, maximizing individual search node 506 utilization (e.g., ensuring that each search node 506 is searching at least one bucket at any given time, etc.), or assigning search nodes 506 to process buckets associated with a particular tenant, user, or other known feature of data stored within the bucket (e.g., buckets holding data known to be used in time- sensitive searches may be prioritized).
- the search manager 514 can assign any search node 506 to search any bucket. This flexibility can decrease query response time as the search manager can dynamically determine which search nodes 506 are best suited or available to execute the query on different buckets. Further, if one bucket is being used by multiple queries, the search manager 515 can assign multiple search nodes 506 to search the bucket. In addition, in the event a search node 506 becomes unavailable or unresponsive, the search manager 514 can assign a different search node 506 to search the buckets assigned to the unavailable search node 506. [00216] As part of the query execution, the search manager 514 can instruct the search nodes 506 to execute the query (or sub-query) on the assigned buckets. As described herein, the search manager 514 can generate specific queries or sub-queries for the individual search nodes 506. The search nodes 506 can use the queries to execute the query on the buckets assigned thereto.
- the search manager 514 stores the sub-queries and bucket assignments for the different search nodes 506. Storing the sub-queries and bucket assignments can contribute to the statelessness of the query system 214. For example, in the event an assigned search node 506 becomes unresponsive or unavailable during the query execution, the search manager 514 can re-assign the sub-query and bucket assignments of the unavailable search node 506 to one or more available search nodes 506 or identify a different available search node 506 from the search node catalog 510 to execute the sub-query. In certain embodiments, the query system manager 502 can generate an additional search node 506 to execute the sub-query of the unavailable search node 506. Accordingly, the query system 214 can quickly recover from an unavailable or unresponsive component without data loss and while reducing or minimizing delay.
- the search manager 514 can monitor the status of the assigned search nodes 506. In some cases, the search manager 514 can ping or set up a communication link between it and the search nodes 506 assigned to execute the query. As mentioned, the search manager 514 can store the mapping of the buckets to the search nodes 506. Accordingly, in the event a particular search node 506 becomes unavailable for his unresponsive, the search manager 514 can assign a different search node 506 to complete the execution of the query for the buckets assigned to the unresponsive search node 506.
- the search nodes 506 can provide the search manager with partial results and information regarding the buckets that have been searched.
- the search manager 514 can store the partial results and bucket information in persistent storage. Accordingly, if a search node 506 partially executes the query and becomes unresponsive or unavailable, the search manager 514 can assign a different search node 506 to complete the execution, as described above. For example, the search manager 514 can assign a search node 506 to execute the query on the buckets that were not searched by the unavailable search node 506. In this way, the search manager 514 can more quickly recover from an unavailable or unresponsive search node 506 without data loss and while reducing or minimizing delay.
- the search manager 514 can process the data. In some cases, the search manager 514 processes the partial results as it receives them. For example, if the query includes a count, the search manager 514 can increment the count as it receives the results from the different search nodes 506. In certain cases, the search manager 514 waits for the complete results from the search nodes before processing them.
- the search manager 514 can wait for the results from all the search nodes 506 before executing the stats command.
- a stats command e.g., a command that calculates one or more aggregate statistics over the results set, e.g., average, count, or standard deviation, as examples
- the search manager 514 processes the results or completes processing the results, it can store the results in the query acceleration data store 222 or communicate the results to a client device 204. As described herein, results stored in the query acceleration data store 222 can be combined with other results over time. For example, if the query system 212 receives an open-ended query (e.g., no set end time), the search manager 515 can store the query results over time in the query acceleration data store 222. Query results in the query acceleration data store 222 can be updated as additional query results are obtained. In this manner, if an open-ended query is run at time B, query results may be stored from initial time A to time B.
- an open-ended query is run at time B
- query results may be stored from initial time A to time B.
- the query results from the prior open-ended query can be obtained from the query acceleration data store 222 (which gives the results from time A to time B), and the query can be run from time B to time C and combined with the prior results, rather than running the entire query from time A to time C. In this manner, the computational efficiency of ongoing search queries can be improved.
- each search node 506 can be the primary query execution engines for the query system 214, and can be implemented as distinct computing devices, virtual machines, containers, container of a pods, or processes or threads associated with one or more containers. Accordingly, each search node 506 can include a processing device and a data store, as depicted at a high level in Fig. 5.
- the processing device and data store can be dedicated to the search node (e.g., embodiments where each search node is a distinct computing device) or can be shared with other search nodes or components of the data intake and query system 108 (e.g., embodiments where the search nodes are implemented as containers or virtual machines or where the shared data store is a networked data store, etc.).
- the search nodes 506 can obtain and search buckets identified by the search manager 514 that include data that satisfies at least a portion of the query, identify the set of data within the buckets that satisfies the query, perform one or more transformations on the set of data, and communicate the set of data to the search manager 514.
- a search node 506 can obtain the buckets assigned to it by the search manager 514 for a particular query, search the assigned buckets for a subset of the set of data, perform one or more transformation on the subset of data, and communicate partial search results to the search manager 514 for additional processing and combination with the partial results from other search nodes 506.
- the buckets to be searched may be located in a local data store of the search node 506 or a data store that is shared between multiple search nodes 506.
- the search nodes 506 can identify the location of the buckets and search the buckets for the set of data that satisfies the query.
- the buckets may be located in the common storage 216.
- the search nodes 506 can search the buckets in the common storage 216 and/or copy the buckets from the common storage 216 to a local or shared data store and search the locally stored copy for the set of data.
- the cache manager 516 can coordinate with the search nodes 506 to identify the location of the buckets (whether in a local or shared data store or in common storage 216) and/or obtain buckets stored in common storage 216.
- the search nodes 506 can search their contents to identify the set of data to be processed. In some cases, upon obtaining a bucket from the common storage 216, a search node 506 can decompress the bucket from a compressed format, and accessing one or more files stored within the bucket. In some cases, the search node 506 references a bucket summary or manifest to locate one or more portions (e.g., records or individual files) of the bucket that potentially contain information relevant to the search.
- the search nodes 506 can use all of the files of a bucket to identify the set of data. In certain embodiments, the search nodes 506 use a subset of the files of a bucket to identify the set of data. For example, in some cases, a search node 506 can use an inverted index, bloom filter, or bucket summary or manifest to identify a subset of the set of data without searching the raw machine data of the bucket. In certain cases, the search node 506 uses the inverted index, bloom filter, bucket summary, and raw machine data to identify the subset of the set of data that satisfies the query.
- the search nodes 506 can perform one or more transformations on the data from the buckets.
- the search nodes 506 may perform various data transformations, scripts, and processes, e.g., a count of the set of data, etc.
- search nodes 506 execute the query, they can provide the search manager 514 with search results.
- a search node 506 provides the search manager 514 results as they are identified by the search node 506, and updates the results over time.
- a search node 506 waits until all of its partial results are gathered before sending the results to the search manager 504.
- the search nodes 506 provide a status of the query to the search manager 514. For example, an individual search node 506 can inform the search manager 514 of which buckets it has searched and/or provide the search manager 514 with the results from the searched buckets.
- the search manager 514 can track or store the status and the results as they are received from the search node 506. In the event the search node 506 becomes unresponsive or unavailable, the tracked information can be used to generate and assign a new search node 506 to execute the remaining portions of the query assigned to the unavailable search node 506.
- the cache manager 516 can communicate with the search nodes 506 to obtain or identify the location of the buckets assigned to the search nodes 506, and can be implemented as a distinct computing device, virtual machine, container, container of a pod, or a process or thread associated with a container.
- a search node 506 can provide the cache manager 516 with an identifier of the bucket that it is to search, a file associated with the bucket that it is to search, and/or a location of the bucket.
- the cache manager 516 can determine whether the identified bucket or file is located in a local or shared data store or is to be retrieved from the common storage 216.
- multiple search nodes 506 can share a data store. Accordingly, if the cache manager 516 determines that the requested bucket is located in a local or shared data store, the cache manager 516 can provide the search node 506 with the location of the requested bucket or file. In certain cases, if the cache manager 516 determines that the requested bucket or file is not located in the local or shared data store, the cache manager 516 can request the bucket or file from the common storage 216, and inform the search node 506 that the requested bucket or file is being retrieved from common storage 216.
- the cache manager 516 can request one or more files associated with the requested bucket prior to, or in place of, requesting all contents of the bucket from the common storage 216.
- a search node 506 may request a subset of files from a particular bucket. Based on the request and a determination that the files are located in common storage 216, the cache manager 516 can download or obtain the identified files from the common storage 216.
- the cache manager 516 may be unable to uniquely identify a requested file or files within the common storage 216. Accordingly, in certain embodiments, the cache manager 516 can retrieve a bucket summary or manifest file from the common storage 216 and provide the bucket summary to the search node 506. In some cases, the cache manager 516 can provide the bucket summary to the search node 506 while concurrently informing the search node 506 that the requested files are not located in a local or shared data store and are to be retrieved from common storage 216.
- the search node 506 can uniquely identify the files to be used to execute the query. Using the unique identification, the cache manager 516 can request the files from the common storage 216. Accordingly, rather than downloading the entire contents of the bucket from common storage 216, the cache manager 516 can download those portions of the bucket that are to be used by the search node 506 to execute the query. In this way, the cache manager 516 can decrease the amount of data sent over the network and decrease the search time.
- a search node 506 may determine that an inverted index of a bucket is to be used to execute a query. For example, the search node 506 may determine that all the information that it needs to execute the query on the bucket can be found in an inverted index associated with the bucket. Accordingly, the search node 506 can request the file associated with the inverted index of the bucket from the cache manager 516. Based on a determination that the requested file is not located in a local or shared data store, the cache manager 516 can determine that the file is located in the common storage 216.
- the cache manager 516 can request a bucket summary or manifest from the common storage 216, and forward it to the search node 506.
- the search node 506 can analyze the bucket summary to identify the particular inverted index that is to be used to execute the query, and request the identified particular inverted index from the cache manager 516 (e.g., by name and/or location).
- the cache manager 516 can obtain the identified particular inverted index from the common storage 216.
- the cache manager 516 can reduce the amount of data communicated over the network and reduce the search time for the query.
- the search node 506 can include a priority level for the file.
- the files of a bucket may be of different sizes and may be used more or less frequently when executing queries.
- the bucket manifest may be a relatively small file. However, if the bucket is searched, the bucket manifest can be a relatively valuable file (and frequently used) because it includes a list or index of the various files of the bucket.
- a bloom filter of a bucket may be a relatively small file but frequently used as it can relatively quickly identify the contents of the bucket.
- an inverted index may be used more frequently than raw data of a bucket to satisfy a query.
- the search node 506 can include a priority level for the requested file.
- the cache manager 516 can use the priority level received from the search node 506 to determine how long to keep or when to evict the file from the local or shared data store. For example, files identified by the search node 506 as having a higher priority level can be stored for a greater period of time than files identified as having a lower priority level.
- the cache manager 516 can determine what data and how long to retain the data in the local or shared data stores of the search nodes 506 based on a bucket caching policy.
- the bucket caching policy can rely on any one or any combination of the priority level received from the search nodes 506 for a particular file, least recently used, most recent in time, or other policies to indicate how long to retain files in the local or shared data store.
- the cache manager 516 or other component of the query system 214 can instruct search nodes 506 to retrieve and locally cache copies of various buckets from the common storage 216, independently of processing queries.
- the query system 214 is configured, according to the bucket caching policy, such that one or more buckets from the common storage 216 (e.g., buckets associated with a tenant or partition of a tenant) or each bucket from the common storage 216 is locally cached on at least one search node 506.
- the query system 214 is configured such that at least one bucket from the common storage 216 is locally cached on at least two search nodes 506. Caching a bucket on at least two search nodes 506 may be beneficial, for example, in instances where different queries both require searching the bucket (e.g., because the at least search nodes 506 may process their respective local copies in parallel).
- the query system 214 is configured, according to the bucket caching policy, such that one or more buckets from the common storage 216 or all buckets from the common storage 216 are locally cached on at least a given number n of search nodes 506, wherein n is defined by a replication factor on the system 108. For example, a replication factor of five may be established to ensure that five copies of a bucket are locally cached across different search nodes 506.
- the search manager 514 (or search master 512) can assign buckets to different search nodes 506 based on time. For example, buckets that are less than one day old can be assigned to a first group of search nodes 506 for caching, buckets that are more than one day but less than one week old can be assigned to a different group of search nodes 506 for caching, and buckets that are more than one week old can be assigned to a third group of search nodes 506 for caching.
- the first group can be larger than the second group, and the second group can be larger than the third group. In this way, the query system 214 can provide better/faster results for queries searching data that is less than one day old, and so on, etc.
- search nodes can be grouped and assigned buckets in a variety of ways.
- search nodes 506 can be grouped based on a tenant identifier, index, etc. In this way, the query system 212 can dynamically provide faster results based any one or any number of factors.
- the cache manager 516 can, based on the bucket caching policy, instruct the search node 506 to download one or more buckets from common storage 216 prior to receiving a query.
- the cache manager 516 can instruct the search node 506 to download specific buckets, such as most recent in time buckets, buckets associated with a particular tenant or partition, etc.
- the cache manager 516 can instruct the search node 506 to download the buckets before the search node 506 reports to the search node monitor 508 that it is available for executing queries. It will be understood that other components of the query system 214 can implement this functionality, such as, but not limited to the query system manager 502, search node monitor 508, search manager 514, or the search nodes 506 themselves.
- the cache manager 516 can identify the buckets that the removed search node 506 was responsible for and instruct the remaining search nodes 506 that they will be responsible for the identified buckets. In some cases, the remaining search nodes 506 can download the identified buckets from common storage 516 or retrieve them from the data store associated with the removed search node 506.
- the cache manager 516 can change the bucket- search node 506 assignments, such as when a search node 506 is removed or added. In certain embodiments, based on a reassignment, the cache manager 516 can inform a particular search node 506 to remove buckets to which it is no longer assigned, reduce the priority level of the buckets, etc. In this way, the cache manager 516 can make it so the reassigned bucket will be removed more quickly from the search node 506 than it otherwise would without the reassignment. In certain embodiments, the search node 506 that receives the new for the bucket can retrieve the bucket from the now unassigned search node 506 and/or retrieve the bucket from common storage 216. 3.3.5. SEARCH NODE MONITOR AND CATALOG
- the search node monitor 508 can monitor search nodes and populate the search node catalog 510 with relevant information, and can be implemented as a distinct computing device, virtual machine, container, container of a pod, or a process or thread associated with a container.
- the search node monitor 508 can ping the search nodes 506 over time to determine their availability, responsiveness, and/or utilization rate.
- each search node 506 can include a monitoring module that provides performance metrics or status updates about the search node 506 to the search node monitor 508.
- the monitoring module can indicate the amount of processing resources in use by the search node 506, the utilization rate of the search node 506, the amount of memory used by the search node 506, etc.
- the search node monitor 508 can determine that a search node 506 is unavailable or failing based on the data in the status update or absence of a state update from the monitoring module of the search node 506.
- the search node monitor 508 can populate the search node catalog 510 and update it over time.
- the search manager 514 can use the search node catalog 510 to identify search nodes 506 available to execute a query.
- the search manager 214 can communicate with the search node catalog 510 using an API.
- the search node monitor 508 can update the search node catalog 510.
- the search node catalog 510 can retain an up-to-date list of search nodes 506 available to execute a query.
- the search node monitor 508 can update the search node catalog 510 with information about the search node 506, such as, but not limited to its computing resources, utilization, network architecture (identification of machine where it is instantiated, location with reference to other search nodes 506, computing resources shared with other search nodes 506, such as data stores, processors, I/O, etc.), etc.
- the common storage 216 can be used to store data indexed by the indexing system 212, and can be implemented using one or more data stores 218.
- the same computing devices operate both to ingest, index, store, and search data.
- the use of an indexer to both ingest and search information may be beneficial, for example, because an indexer may have ready access to information that it has ingested, and can quickly access that information for searching purposes.
- use of an indexer to both ingest and search information may not be desirable in all instances.
- ingested data is organized into buckets, and each indexer is responsible for maintaining buckets within a data store corresponding to the indexer.
- a set of ten indexers may maintain 100 buckets, distributed evenly across ten data stores (each of which is managed by a corresponding indexer). Information may be distributed throughout the buckets according to a load-balancing mechanism used to distribute information to the indexers during data ingestion.
- information responsive to a query would be spread across the 100 buckets, such that each indexer may search their corresponding ten buckets in parallel, and provide search results to a search head.
- this idealized scenario may not always occur, and that there will be at least some instances in which information responsive to a query is unevenly distributed across data stores.
- Common storage 216 may correspond to any data storage system accessible to the indexing system 212 and the query system 214.
- common storage 216 may correspond to a storage area network (SAN), network attached storage (NAS), other network-accessible storage system (e.g., a hosted storage system, such as Amazon S3 or EBS provided by Amazon, Inc., Google Cloud Storage, Microsoft Azure Storage, etc., which may also be referred to as “cloud” storage), or combination thereof.
- the common storage 216 may include, for example, hard disk drives (HDDs), solid state storage devices (SSDs), or other substantially persistent or non-transitory media.
- HDDs hard disk drives
- SSDs solid state storage devices
- Data stores 218 within common storage 216 may correspond to physical data storage devices (e.g., an individual HDD) or a logical storage device, such as a grouping of physical data storage devices or a containerized or virtualized storage device hosted by an underlying physical storage device.
- the common storage 216 may also be referred to as a shared storage system or shared storage environment as the data stores 218 may store data associated with multiple customers, tenants, etc., or across different data intake and query systems 108 or other systems unrelated to the data intake and query systems 108.
- the common storage 216 can be configured to provide high availability, highly resilient, low loss data storage. In some cases, to provide the high availability, highly resilient, low loss data storage, the common storage 216 can store multiple copies of the data in the same and different geographic locations and across different types of data stores (e.g., solid state, hard drive, tape, etc.). Further, as data is received at the common storage 216 it can be automatically replicated multiple times according to a replication factor to different data stores across the same and/or different geographic locations.
- data stores e.g., solid state, hard drive, tape, etc.
- common storage 216 may be multi-tiered, with each tier providing more rapid access to information stored in that tier.
- a first tier of the common storage 216 may be physically co-located with the indexing system 212 or the query system 214 and provide rapid access to information of the first tier, while a second tier may be located in a different physical location (e.g., in a hosted or “cloud” computing environment) and provide less rapid access to information of the second tier.
- Distribution of data between tiers may be controlled by any number of algorithms or mechanisms.
- a first tier may include data generated or including timestamps within a threshold period of time (e.g., the past seven days), while a second tier or subsequent tiers includes data older than that time period.
- a first tier may include a threshold amount (e.g., n terabytes) or recently accessed data, while a second tier stores the remaining less recently accessed data.
- data within the data stores 218 is grouped into buckets, each of which is commonly accessible to the indexing system 212 and query system 214.
- the size of each bucket may be selected according to the computational resources of the common storage 216 or the data intake and query system 108 overall. For example, the size of each bucket may be selected to enable an individual bucket to be relatively quickly transmitted via a network, without introducing excessive additional data storage requirements due to metadata or other overhead associated with an individual bucket.
- each bucket is 750 megabytes in size. Further, as mentioned, in some embodiments, some buckets can be merged to create larger buckets.
- each bucket can include one or more files, such as, but not limited to, one or more compressed or uncompressed raw machine data files, metadata files, filter files, indexes files, bucket summary or manifest files, etc.
- each bucket can store events including raw machine data associated with a timestamp.
- the indexing nodes 404 can generate buckets during indexing and communicate with common storage 216 to store the buckets. For example, data may be provided to the indexing nodes 404 from one or more ingestion buffers of the intake system 210 The indexing nodes 404 can process the information and store it as buckets in common storage 216, rather than in a data store maintained by an individual indexer or indexing node. Thus, the common storage 216 can render information of the data intake and query system 108 commonly accessible to elements of the system 108. As described herein, the common storage 216 can enable parallelized searching of buckets to occur independently of the operation of indexing system 212.
- the search nodes 506 of the query system 214 can search for data stored within common storage 216.
- the search nodes 506 may therefore be communicatively attached (e.g., via a communication network) with the common storage 216, and be enabled to access buckets within the common storage 216.
- the buckets searched by an individual search node 506 may be selected dynamically, to increase the parallelization with which the buckets can be searched. For example, consider an instance where information is stored within 100 buckets, and a query is received at the data intake and query system 108 for information within ten buckets. Unlike a scenario in which buckets are statically assigned to an indexer, which could result in a bottleneck if the ten relevant buckets are associated with the same indexer, the ten buckets holding relevant information may be dynamically distributed across multiple search nodes 506.
- each search node 506 may be assigned to retrieve and search within one bucket greatly increasing parallelization when compared to the low-parallelization scenarios (e.g., where a single indexer 206 is required to search all ten buckets).
- indexing resources can be allocated independently to searching operations.
- search nodes 506 may be executed by a separate processor or computing device than indexing nodes 404, enabling computing resources available to search nodes 506 to scale independently of resources available to indexing nodes 404.
- the impact on data ingestion and indexing due to above- average volumes of search query requests is reduced or eliminated, and similarly, the impact of data ingestion on search query result generation time also is reduced or eliminated.
- a common storage 216 can provide many advantages within the data intake and query system 108. Specifically, use of a common storage 216 can enable the system 108 to decouple functionality of data indexing by indexing nodes 404 with functionality of searching by search nodes 506. Moreover, because buckets containing data are accessible by each search node 506, a search manager 514 can dynamically allocate search nodes 506 to buckets at the time of a search in order to increase parallelization. Thus, use of a common storage 216 can substantially improve the speed and efficiency of operation of the system 108.
- the data store catalog 220 can store information about the data stored in common storage 216, and can be implemented using one or more data stores.
- the data store catalog 220 can be implemented as a portion of the common storage 216 and/or using similar data storage techniques (e.g., local or cloud storage, multi-tiered storage, etc.).
- the data store catalog 22- may utilize a database, e.g., a relational database engine, such as commercially-provided relational database services, e.g., Amazon’s Aurora.
- the data store catalog 220 may use an API to allow access to register buckets, and to allow query system 214 to access buckets.
- data store catalog 220 may be implemented through other means, and maybe stored as part of common storage 216, or another type of common storage, as previously described.
- requests for buckets may include a tenant identifier and some form of user authentication, e.g., a user access token that can be authenticated by authentication service.
- the data store catalog 220 may store one data structure, e.g., table, per tenant, for the buckets associated with that tenant, one data structure per partition of each tenant, etc.
- a single data structure e.g., a single table, may be used for all tenants, and unique tenant IDs may be used to identify buckets associated with the different tenants.
- the data store catalog 220 can be updated by the indexing system 212 with information about the buckets or data stored in common storage 216.
- the data store catalog can store an identifier for a sets of data in common storage 216, a location of the sets of data in common storage 216, tenant or indexes associated with the sets of data, timing information about the sets of data, etc.
- the data store catalog 220 can include a bucket identifier for the buckets in common storage 216, a location of or path to the buckets in common storage 216, a time range of the data in the bucket (e.g., range of time between the first-in-time event of the bucket and the last- in-time event of the bucket), a tenant identifier identifying a customer or computing device associated with the bucket, and/or an index or partition associated with the bucket, etc.
- the data store catalog 220 can include an indication of a location of a copy of a bucket found in one or more search nodes 506. For example, as buckets are copied to search nodes 506, the query system 214 can update the data store catalog 220 with information about which search nodes 506 include a copy of the buckets. This information can be used by the query system 214 to assign search nodes 506 to buckets as part of a query.
- the data store catalog 220 can function as an index or inverted index of the buckets stored in common storage 216.
- the data store catalog 220 can provide location and other information about the buckets stored in common storage 216.
- the data store catalog 220 can provide additional information about the contents of the buckets.
- the data store catalog 220 can provide a list of sources, sourcetypes, or hosts associated with the data in the buckets.
- the data store catalog 220 can include one or more keywords found within the data of the buckets.
- the data store catalog can be similar to an inverted index, except rather than identifying specific events associated with a particular host, source, sourcetype, or keyword, it can identify buckets with data associated with the particular host, source, sourcetype, or keyword.
- the query system 214 can communicate with the data store catalog 220 as part of processing and executing a query.
- the query system 214 communicates with the data store catalog 220 using an API.
- the query system 214 can provide the data store catalog 220 with at least a portion of the query or one or more filter criteria associated with the query.
- the data store catalog 220 can provide the query system 214 with an identification of buckets that store data that satisfies at least a portion of the query.
- the data store catalog 220 can provide the query system 214 with an indication of the location of the identified buckets in common storage 216 and/or in one or more local or shared data stores of the search nodes 506.
- the query system 214 can reduce (or filter) the amount of data or number of buckets to be searched. For example, using tenant or partition information in the data store catalog 220, the query system 214 can exclude buckets associated with a tenant or a partition, respectively, that is not to be searched. Similarly, using time range information, the query system 214 can exclude buckets that do not satisfy a time range from a search. In this way, the data store catalog 220 can reduce the amount of data to be searched and decrease search times.
- the query system 214 can update the data store catalog 220 with the location information of the copy of the bucket. The query system 214 can use this information to assign search nodes 506 to buckets. For example, if the data store catalog 220 indicates that a copy of a bucket in common storage 216 is stored in a particular search node 506, the query system 214 can assign the particular search node to the bucket. In this way, the query system 214 can reduce the likelihood that the bucket will be retrieved from common storage 216. In certain embodiments, the data store catalog 220 can store an indication that a bucket was recently downloaded to a search node 506. The query system 214 for can use this information to assign search node 506 to that bucket.
- the query acceleration data store 222 can be used to store query results or datasets for accelerated access, and can be implemented as, a distributed inmemory database system, storage subsystem, local or networked storage (e.g., cloud storage), and so on, which can maintain (e.g., store) datasets in both low-latency memory (e.g., random access memory, such as volatile or non-volatile memory) and longer-latency memory (e.g., solid state storage, disk drives, and so on).
- the accelerated data store 222 can maintain particular datasets in the low-latency memory, and other datasets in the longer-latency memory.
- the datasets can be stored in-memory (non-limiting examples: RAM or volatile memory) with disk spillover (non-limiting examples: hard disks, disk drive, non-volatile memory, etc.).
- RAM random access memory
- disk spillover non-limiting examples: hard disks, disk drive, non-volatile memory, etc.
- the query acceleration data store 222 can be used to serve interactive or iterative searches.
- datasets which are determined to be frequently accessed by a user can be stored in the lower-latency memory.
- datasets of less than a threshold size can be stored in the lower-latency memory.
- the search manager 514 or search nodes 506 can store query results in the query acceleration data store 222.
- the query results can correspond to partial results from one or more search nodes 506 or to aggregated results from all the search nodes 506 involved in a query or the search manager 514.
- the results stored in the query acceleration data store 222 can be served at a later time to the search head 504, combined with additional results obtained from a later query, transformed or further processed by the search nodes 506 or search manager 514, etc.
- the search manager 514 can store initial results in the acceleration data store 222 and update the initial results as additional results are received. At any time, the initial results, or iteratively updated results can be provided to a client device 204, transformed by the search nodes 506 or search manager 514, etc.
- a user can indicate in a query that particular datasets or results are to be stored in the query acceleration data store 222.
- the query can then indicate operations to be performed on the particular datasets.
- the search nodes 506 can obtain information directly from the query acceleration data store 222.
- the query acceleration data store 222 can be utilized to service requests from different client devices 204, the query acceleration data store 222 can implement access controls (e.g., an access control list) with respect to the stored datasets.
- access controls e.g., an access control list
- the stored datasets can optionally be accessible only to users associated with requests for the datasets.
- a user who provides a query can indicate that one or more other users are authorized to access particular requested datasets. In this way, the other users can utilize the stored datasets, thus reducing latency associated with their queries.
- data from the intake system 210 can be stored in the acceleration data store 222.
- the data from the intake system 210 can be transformed by the search nodes 506 or combined with data in the common storage 216
- the search manager 514 or search nodes 506 can begin processing the data in the query acceleration data store 222, while also obtaining and processing the other data from the common storage 216. In this way, the query system 214 can rapidly provide initial results for the query, while the search nodes 506 obtain and search the data from the common storage 216.
- the data intake and query system 108 can include fewer or more components as desired.
- the system 108 does not include an acceleration data store 222.
- the functionality described herein for one component can be performed by another component.
- the search master 512 and search manager 514 can be combined as one component, etc.
- the various components of the data intake and query system 108 can perform a variety of functions associated with the intake, indexing, storage, and querying of data from a variety of sources. It will be understood that any one or any combination of the functions described herein can be combined as part of a single routine or method.
- a routine can include any one or any combination of one or more data ingestion functions, one or more indexing functions, and/or one or more searching functions.
- ingestion into the data intake and query system 108 can be facilitated by an intake system 210, which functions to process data according to a streaming data model, and make the data available as messages on an output ingestion buffer 310, categorized according to a number of potential topics.
- Messages may be published to the output ingestion buffer 310 by streaming data processors 308, based on preliminary processing of messages published to an intake ingestion buffer 306.
- the intake ingestion buffer 306 is, in turn, populated with messages by one or more publishers, each of which may represent an intake point for the data intake and query system 108.
- the publishers may collectively implement a data retrieval subsystem 304 for the data intake and query system 108, which subsystem 304 functions to retrieve data from a data source 202 and publish the data in the form of a message on the intake ingestion buffer 306.
- a flow diagram depicting an illustrative embodiment for processing data at the intake system 210 is shown at FIG. 6. While the flow diagram is illustratively described with respect to a single message, the same or similar interactions may be used to process multiple messages at the intake system 210.
- processing of data at the intake system 210 can illustratively begin at (1), where a data retrieval subsystem 304 or a data source 202 publishes a message to a topic at the intake ingestion buffer 306.
- the data retrieval subsystem 304 may include either or both push-based and pull-based publishers.
- Push-based publishers can illustratively correspond to publishers which independently initiate transmission of messages to the intake ingestion buffer 306.
- Pull-based publishes can illustratively correspond to publishers which await an inquiry by the intake ingestion buffer 306 for messages to be published to the buffer 306.
- the publication of a message at (1) is intended to include publication under either push- or pull-based models.
- the data retrieval subsystem 304 may generate the message based on data received from a forwarder 302 and/or from one or more data sources 202.
- generation of a message may include converting a format of the data into a format suitable for publishing on the intake ingestion buffer 306.
- Generation of a message may further include determining a topic for the message.
- the data retrieval subsystem 304 selects a topic based on a data source 202 from which the data is received, or based on the specific publisher (e.g., intake point) on which the message is generated. For example, each data source 202 or specific publisher may be associated with a particular topic on the intake ingestion buffer 306 to which corresponding messages are published.
- the same source data may be used to generate multiple messages to the intake ingestion buffer 306 (e.g., associated with different topics).
- the intake ingestion buffer 306, at (2) determines subscribers to the topic. For the purposes of example, it will be associated that at least one device of the streaming data processors 308 has subscribed to the topic (e.g., by previously transmitting to the intake ingestion buffer 306 a subscription request).
- the streaming data processors 308 may be implemented by a number of (logically or physically) distinct devices. As such, the streaming data processors 308, at (2), may operate to determine which devices of the streaming data processors 308 have subscribed to the topic (or topics) to which the message was published.
- the intake ingestion buffer 306 publishes the message to the streaming data processors 308 in accordance with the pub-sub model.
- This publication may correspond to a “push” model of communication, whereby an ingestion buffer determines topic subscribers and initiates transmission of messages within the topic to the subscribers. While interactions of FIG. 6 are described with reference to such a push model, in some embodiments a pull model of transmission may additionally or alternatively be used.
- an ingestion buffer may enable a subscriber to query for unread messages for a topic, and for the subscriber to initiate transmission of the messages from the ingestion buffer to the subscriber.
- an ingestion buffer e.g., the intake ingestion buffer 306
- an ingestion buffer may enable subscribers to “pull” messages from the buffer.
- interactions of FIG. 6 e.g., including interactions (2) and (3) as well as (9), (10), (16), and (17) described below
- rules maintained at the streaming data processors 308 can generally include selection criteria indicating messages to which the rule applies. This selection criteria may be formatted in the same manner or similarly to extraction rules, discussed in more detail below, and may include any number or combination of criteria based on the data included within a message or metadata of the message, such as regular expressions based on the data or metadata.
- processing subrules may include modifying data or metadata of the message.
- processing sub-rules may edit or normalize data of the message (e.g., to convert a format of the data) or inject additional information into the message (e.g., retrieved based on the data of the message).
- a processing sub-rule may specify that the data of the message be transformed according to a transformation algorithmically specified within the sub-rule.
- the streaming data processors 308 applies the sub-rule to transform the data of the message.
- processing sub-rules can specify a destination of the message after the message is processed at the streaming data processors 308.
- the destination may include, for example, a specific ingestion buffer (e.g., intake ingestion buffer 306, output ingestion buffer 310, etc.) to which the message should be published, as well as the topic on the ingestion buffer to which the message should be published.
- a particular rule may state that messages including metrics within a first format (e.g., imperial units) should have their data transformed into a second format (e.g., metric units) and be republished to the intake ingestion buffer 306.
- the streaming data processors 308 can determine a target ingestion buffer and topic for the transformed message based on the rule determined to apply to the message. Thereafter, the streaming data processors 308 publishes the message to the destination buffer and topic.
- the interactions of FIG. 6 assume that, during an initial processing of a message, the streaming data processors 308 determines (e.g., according to a rule of the data processor) that the message should be republished to the intake ingestion buffer 306, as shown at (7).
- the streaming data processors 308 further acknowledges the initial message to the intake ingestion buffer 306, at (8), thus indicating to the intake ingestion buffer 306 that the streaming data processors 308 has processed the initial message or published it to an intake ingestion buffer.
- the intake ingestion buffer 306 may be configured to maintain a message until all subscribers have acknowledged receipt of the message. Thus, transmission of the acknowledgement at (8) may enable the intake ingestion buffer 306 to delete the initial message.
- the streaming data processors 308 is expected to again receive the message (e.g., as previously transformed the streaming data processors 308), determine whether any rules apply to the message, and process the message in accordance with one or more applicable rules. In this manner, interactions (2) through (8) may occur repeatedly, as designated in FIG. 6 by the iterative processing loop 602. By use of iterative processing, the streaming data processors 308 may be configured to progressively transform or enrich messages obtained at data sources 202.
- each rule may specify only a portion of the total transformation or enrichment of a message
- rules may be created without knowledge of the entire transformation.
- a first rule may be provided by a first system to transform a message according to the knowledge of that system (e.g., transforming an error code into an error descriptor), while a second rule may process the message according to the transformation (e.g., by detecting that the error descriptor satisfies alert criteria).
- the streaming data processors 308 enable highly granulized processing of data without requiring an individual entity (e.g., user or system) to have knowledge of all permutations or transformations of the data.
- the interactions of FIG. 6 proceed to interaction (9), where the intake ingestion buffer 306 again determines subscribers of the message.
- interactions are similar to interactions (4), (5), (6), and (8) discussed above, and therefore will not be re-described.
- the streaming data processors 308 may determine that a target ingestion buffer for the message is the output ingestion buffer 310. Thus, the streaming data processors 308, at (14), publishes the message to the output ingestion buffer 310, making the data of the message available to a downstream system.
- FIG. 6 illustrates one processing path for data at the streaming data processors 308.
- a rule applicable to an initially published message on the intake ingestion buffer 306 may cause the streaming data processors 308 to publish the message out ingestion buffer 310 on first processing the data of the message, without entering the iterative processing loop 602.
- interactions (2) through (8) may be omitted.
- a single message published to the intake ingestion buffer 306 may spawn multiple processing paths at the streaming data processors 308.
- the streaming data processors 308 may be configured to maintain a set of rules, and to independently apply to a message all rules applicable to the message. Each application of a rule may spawn an independent processing path, and potentially a new message for publication to a relevant ingestion buffer.
- the streaming data processors 308 may maintain a ranking of rules to be applied to messages, and may be configured to process only a highest ranked rule which applies to the message.
- a single message on the intake ingestion buffer 306 may result in a single message or multiple messages published by the streaming data processors 308, according to the configuration of the streaming data processors 308 in applying rules.
- the rules applied by the streaming data processors 308 may vary during operation of those processors 308.
- the rules may be updated as user queries are received (e.g., to identify messages whose data is relevant to those queries).
- rules of the streaming data processors 308 may be altered during the processing of a message, and thus the interactions of FIG. 6 may be altered dynamically during operation of the streaming data processors 308.
- rules in some instances be used to remove data from messages, or to alter the structure of the messages to conform to the format requirements of a downstream system or component. Removal of information may be beneficial, for example, where the messages include private, personal, or confidential information which is unneeded or should not be made available by a downstream system. In some instances, removal of information may include replacement of the information with a less confidential value. For example, a mailing address may be considered confidential information, whereas a postal code may not be. Thus, a rule may be implemented at the streaming data processors 308 to replace mailing addresses with a corresponding postal code, to ensure confidentiality.
- Various other alterations will be apparent in view of the present disclosure.
- the rules applied by the streaming data processors 308 may eventually cause a message containing data from a data source 202 to be published to a topic on an output ingestion buffer 310, which topic may be specified, for example, by the rule applied by the streaming data processors 308.
- the output ingestion buffer 310 may thereafter make the message available to downstream systems or components. These downstream systems or components are generally referred to herein as “subscribers.”
- the indexing system 212 may subscribe to an indexing topic 342
- the query system 214 may subscribe to a search results topic 348
- a client device 102 may subscribe to a custom topic 352A, etc.
- the output ingestion buffer 310 may transmit each message published to a topic to each subscriber of that topic, and resiliently store the messages until acknowledged by each subscriber (or potentially until an error is logged with respect to a subscriber).
- the output ingestion buffer 310 may be configured to allow a subscriber 602 to query the buffer 310 for messages (e.g., unread messages, new messages since last transmission, etc.), and to initiate transmission of those messages form the buffer 310 to the subscriber 602. In some instances, such querying may remove the need for the subscriber 602 to separately “subscribe” to the topic.
- the output ingestion buffer 310 determines the subscribers to the topic (e.g., based on prior subscription requests transmitted to the output ingestion buffer 310).
- the output ingestion buffer 310 transmits the message to a subscriber 602. Thereafter, the subscriber may process the message at (18). Illustrative examples of such processing are described below, and may include (for example) preparation of search results for a client device 204, indexing of the data at the indexing system 212, and the like.
- the subscriber can acknowledge the message to the output ingestion buffer 310, thus confirming that the message has been processed at the subscriber.
- the interactions of FIG. 6 may be ordered such that resiliency is maintained at the intake system 210.
- data streaming systems which may be used to implement ingestion buffers
- the interactions of FIG. 6 may be ordered such that data from a data source 202 is expected or guaranteed to be included in at least one message on an ingestion system until confirmation is received that the data is no longer required.
- interaction (8) wherein the streaming data processors 308 acknowledges receipt of an initial message at the intake ingestion buffer 306 — can illustratively occur after interaction (7) — wherein the streaming data processors 308 republishes the data to the intake ingestion buffer 306.
- interaction (15) wherein the streaming data processors 308 acknowledges receipt of an initial message at the intake ingestion buffer 306 — can illustratively occur after interaction (14) — wherein the streaming data processors 308 republishes the data to the intake ingestion buffer 306.
- This ordering of interactions can ensure, for example, that the data being processed by the streaming data processors 308 is, during that processing, always stored at the ingestion buffer 306 in at least one message. Because an ingestion buffer 306 can be configured to maintain and potentially resend messages until acknowledgement is received from each subscriber, this ordering of interactions can ensure that, should a device of the streaming data processors 308 fail during processing, another device implementing the streaming data processors 308 can later obtain the data and continue the processing.
- each subscriber 602 may be configured to acknowledge a message to the output ingestion buffer 310 after processing for the message is completed. In this manner, should a subscriber 602 fail after receiving a message but prior to completing processing of the message, the processing of the subscriber 602 can be restarted to successfully process the message.
- the interactions of FIG. 6 can maintain resiliency of data on the intake system 210 commensurate with the resiliency provided by an individual ingestion buffer 306.
- message acknowledgement is described herein as an illustrative mechanism to ensure data resiliency at an intake system 210, other mechanisms for ensuring data resiliency may additionally or alternatively be used.
- the configuration and operation of the intake system 210 can further provide high amounts of security to the messages of that system.
- the intake ingestion buffer 306 or output ingestion buffer 310 may maintain an authorization record indicating specific devices or systems with authorization to publish or subscribe to a specific topic on the ingestion buffer.
- an ingestion buffer may ensure that only authorized parties are able to access sensitive data.
- this security may enable multiple entities to utilize the intake system 210 to manage confidential information, with little or no risk of that information being shared between the entities.
- the managing of data or processing for multiple entities is in some instances referred to as “multi-tenancy.”
- a first entity may publish messages to a first topic on the intake ingestion buffer 306, and the intake ingestion buffer 306 may verify that any intake point or data source 202 publishing to that first topic be authorized by the first entity to do so.
- the streaming data processors 308 may maintain rules specific to the first entity, which the first entity may illustrative provide through authenticated session on an interface (e.g., GUI, API, command line interface (CLI), etc.).
- the rules of the first entity may specify one or more entity- specific topics on the output ingestion buffer 310 to which messages containing data of the first entity should be published by the streaming data processors 308.
- the output ingestion buffer 310 may maintain authorization records for such entity- specific topics, thus restricting messages of those topics to parties authorized by the first entity. In this manner, data security for the first entity can be ensured across the intake system 210. Similar operations may be performed for other entities, thus allowing multiple entities to separately and confidentially publish data to and retrieve data from the intake system.
- the routine begins at block 702, where the intake system 210 obtains one or more rules for handling messages queued at an intake ingestion buffer 306.
- the rules may, for example, be human-generated, or may be automatically generated based on operation of the data intake and query system 108 (e.g., in response to user submission of a query to the system 108).
- the intake system 210 obtains a message at the intake ingestion buffer 306.
- the message may be published to the intake ingestion buffer 306, for example, by the data retrieval subsystem 304 (e.g., working in conjunction with a forwarder 302) and reflect data obtained from a data source 202.
- the intake system 210 determines whether any obtained rule applies to the message.
- the intake system 210 e.g., via the streaming data processors 308 may apply selection criteria of each rule to the message to determine whether the message satisfies the selection criteria. Thereafter, the routine varies according to whether a rule applies to the message. If no rule applies, the routine can continue to block 714, where the intake system 210 transmits an acknowledgement for the message to the intake ingestion buffer 306, thus enabling the buffer 306 to discard the message (e.g., once all other subscribers have acknowledged the message).
- a “default rule” may be applied at the intake system 210, such that all messages are processed as least according to the default rule. The default rule may, for example, forward the message to an indexing topic 342 for processing by an indexing system 212. In such a configuration, block 706 may always evaluate as true.
- the routine continues to block 708, where the intake system 210 (e.g., via the streaming data processors 308) transforms the message as specified by the applicable rule.
- a processing sub-rule of the applicable rule may specify that data or metadata of the message be converted from one format to another via an algorithmic transformation.
- the intake system 210 may apply the algorithmic transformation to the data or metadata of the message at block 708 to transform the data or metadata of the message.
- no transformation may be specified within intake system 210, and thus block 708 may be omitted.
- the intake system 210 determines a destination ingestion buffer to which to publish the (potentially transformed) message, as well as a topic to which the message should be published.
- the destination ingestion buffer and topic may be specified, for example, in processing sub-rules of the rule determined to apply to the message.
- the destination ingestion buffer and topic may vary according to the data or metadata of the message. In another embodiment, the destination ingestion buffer and topic may be fixed with respect to a particular rule.
- the intake system 210 publishes the (potentially transformed) message to the determined destination ingestion buffer and topic.
- the determined destination ingestion buffer may be, for example, the intake ingestion buffer 306 or the output ingestion buffer 310.
- the intake system 210 acknowledges the initial message on the intake ingestion buffer 306, thus enabling the intake ingestion buffer 306 to delete the message.
- the routine returns to block 704, where the intake system 210 continues to process messages from the intake ingestion buffer 306. Because the destination ingestion buffer determined during a prior implementation of the routine may be the intake ingestion buffer 306, the routine may continue to process the same underlying data within multiple messages published on that buffer 306 (thus implementing an iterative processing loop with respect to that data). The routine may then continue to be implemented during operation of the intake system 210, such that data published to the intake ingestion buffer 306 is processed by the intake system 210 and made available on an output ingestion buffer 310 to downstream systems or components.
- the intake system 210 is configured to process a message according to all rules determined to apply to that message.
- the intake system 210 may implement five instances of blocks 708 through 714, each of which may transform the message in different ways or publish the message to different ingestion buffers or topics. These five instances may be implemented in serial, parallel, or a combination thereof.
- the linear description of FIG. 7 is intended simply for illustrative purposes.
- streaming data processors 308 may be configured to process multiple messages concurrently or as a batch. Similarly, all or a portion of the rules used by the streaming data processors 308 may apply to sets or batches of messages. Illustratively, the streaming data processors 308 may obtain a batch of messages from the intake ingestion buffer 306 and process those messages according to a set of “batch” rules, whose criteria and/or processing sub-rules apply to the messages of the batch collectively. Such rules may, for example, determine aggregate attributes of the messages within the batch, sort messages within the batch, group subsets of messages within the batch, and the like.
- such rules may further alter messages based on aggregate attributes, sorting, or groupings. For example, a rule may select the third messages within a batch, and perform a specific operation on that message. As another example, a rule may determine how many messages within a batch are contained within a specific group of messages. Various other examples for batchbased rules will be apparent in view of the present disclosure. Batches of messages may be determined based on a variety of criteria.
- the streaming data processors 308 may batch messages based on a threshold number of messages (e.g., each thousand messages), based on timing (e.g., all messages received over a ten minute window), or based on other criteria (e.g., the lack of new messages posted to a topic within a threshold period of time).
- a threshold number of messages e.g., each thousand messages
- timing e.g., all messages received over a ten minute window
- other criteria e.g., the lack of new messages posted to a topic within a threshold period of time.
- FIG. 8 is a data flow diagram illustrating an embodiment of the data flow and communications between a variety of the components of the data intake and query system 108 during indexing.
- FIG. 8 is a data flow diagram illustrating an embodiment of the data flow and communications between an ingestion buffer 310, an indexing node manager 406 or partition manager 408, an indexer 410, common storage 216, and the data store catalog 220.
- an indexing node manager 406 or partition manager 408 an indexer 410
- common storage 216 common storage 216
- the data store catalog 220 common storage 216
- FIG. 8 it will be understood, that in some of embodiments, one or more of the functions described herein with respect to FIG. 8 can be omitted, performed in a different order and/or performed by a different component of the data intake and query system 108. Accordingly, the illustrated embodiment and description should not be construed as limiting.
- the indexing node manager 406 activates a partition manager 408 for a partition.
- the indexing node manager 406 can activate a partition manager 408 for each partition or shard that is processed by an indexing node 404.
- the indexing node manager 406 can activate the partition manager 408 based on an assignment of a new partition to the indexing node 404 or a partition manager 408 becoming unresponsive or unavailable, etc.
- the partition manager 408 can be a copy of the indexing node manager 406 or a copy of a template process. In certain embodiments, the partition manager 408 can be instantiated in a separate container from the indexing node manager 406.
- the ingestion buffer 310 sends data and a buffer location to the indexing node 212.
- the data can be raw machine data, performance metrics data, correlation data, JSON blobs, XML data, data in a datamodel, report data, tabular data, streaming data, data exposed in an API, data in a relational database, etc.
- the buffer location can correspond to a marker in the ingestion buffer 310 that indicates the point at which the data within a partition has been communicated to the indexing node 404. For example, data before the marker can correspond to data that has not been communicated to the indexing node 404, and data after the marker can correspond to data that has been communicated to the indexing node.
- the marker can correspond to a set of data that has been communicated to the indexing node 404, but for which no indication has been received that the data has been stored. Accordingly, based on the marker, the ingestion buffer 310 can retain a portion of its data persistently until it receives confirmation that the data can be deleted or has been stored in common storage 216. [00318]
- the indexing node manager 406 tracks the buffer location and the partition manager 408 communicates the data to the indexer 410. As described herein, the indexing node manager 406 can track (and/or store) the buffer location for the various partitions received from the ingestion buffer 310.
- the partition manager 408 can forward the data received from the ingestion buffer 310 to the indexer 410 for processing.
- the data from ingestion buffer 310 that is sent to the indexer 410 may include a path to stored data, e.g., data stored in common store 216 or another common store, which is then retrieved by the indexer 410 or another component of the indexing node 404.
- the indexer 410 processes the data.
- the indexer 410 can perform a variety of functions, enrichments, or transformations on the data as it is indexed.
- the indexer 410 can parse the data, identify events from the data, identify and associate timestamps with the events, associate metadata or one or more field values with the events, group events (e.g., based on time, partition, and/or tenant ID, etc.), etc.
- the indexer 410 can generate buckets based on a bucket creation policy and store the events in the hot buckets, which may be stored in data store 412 of the indexing node 404 associated with that indexer 410 (see Fig. 4).
- the indexer 410 reports the size of the data being indexed to the partition manager 408. In some cases, the indexer 410 can routinely provide a status update to the partition manager 408 regarding the data that is being processed by the indexer 410.
- the status update can include, but is not limited to the size of the data, the number of buckets being created, the amount of time since the buckets have been created, etc.
- the indexer 410 can provide the status update based on one or more thresholds being satisfied (e.g., one or more threshold sizes being satisfied by the amount of data being processed, one or more timing thresholds being satisfied based on the amount of time the buckets have been created, one or more bucket number thresholds based on the number of buckets created, the number of hot or warm buckets, number of buckets that have not been stored in common storage 216, etc.).
- the indexer 410 can provide an update to the partition manager 408 regarding the size of the data that is being processed by the indexer 410 in response to one or more threshold sizes being satisfied. For example, each time a certain amount of data is added to the indexer 410 (e.g., 5 MB, 10 MB, etc.), the indexer 410 can report the updated size to the partition manager 408. In some cases, the indexer 410 can report the size of the data stored thereon to the partition manager 408 once a threshold size is satisfied.
- the indexer 410 reports the size of the date being indexed to the partition manager 408 based on a query by the partition manager 408. In certain embodiments, the indexer 410 and partition manager 408 maintain an open communication link such that the partition manager 408 is persistently aware of the amount of data on the indexer 410.
- a partition manager 408 monitors the data processed by the indexer 410.
- the partition manager 408 can track the size of the data on the indexer 410 that is associated with the partition being managed by the partition manager 408.
- one or more partition managers 408 can track the amount or size of the data on the indexer 410 that is associated with any partition being managed by the indexing node manager 406 or that is associated with the indexing node 404.
- the partition manager 408 instructs the indexer 410 to copy the data to common storage 216.
- the partition manager 408 can instruct the indexer 410 to copy the data to common storage 216 based on a bucket roll-over policy.
- the bucket roll-over policy can indicate that one or more buckets are to be rolled over based on size.
- the partition manager 408 can instruct the indexer 410 to copy the data to common storage 216 based on a determination that the amount of data stored on the indexer 410 satisfies a threshold amount.
- the threshold amount can correspond to the amount of data associated with the partition that is managed by the partition manager 408 or the amount of data being processed by the indexer 410 for any partition.
- the partition manager 408 can instruct the indexer 410 to copy the data that corresponds to the partition being managed by the partition manager 408 to common storage 216 based on the size of the data that corresponds to the partition satisfying the threshold amount. In certain embodiments, the partition manager 408 can instruct the indexer 410 to copy the data associated with any partition being processed by the indexer 410 to common storage 216 based on the amount of the data from the partitions that are being processed by the indexer 410 satisfying the threshold amount.
- (5) and/or (6) can be omitted.
- the indexer 410 can monitor the data stored thereon. Based on the bucket roll-over policy, the indexer 410 can determine that the data is to be copied to common storage 216. Accordingly, in some embodiments, the indexer 410 can determine that the data is to be copied to common storage 216 without communication with the partition manager 408.
- the indexer 410 copies and/or stores the data to common storage 216.
- the indexer 410 processes the data, it generates events and stores the events in hot buckets.
- the indexer 410 can convert the hot buckets to warm buckets, and copy or move the warm buckets to the common storage 216.
- the indexer 410 can verify or obtain acknowledgements that the data is stored successfully. In some embodiments, the indexer 410 can determine information regarding the data stored in the common storage 216.
- the information can include location information regarding the data that was stored to the common storage 216, bucket identifiers of the buckets that were copied to common storage 216, as well as additional information, e.g., in implementations in which the ingestion buffer 310 uses sequences of records as the form for data storage, the list of record sequence numbers that were used as part of those buckets that were copied to common storage 216.
- the indexer 410 reports or acknowledges to the partition manager 408 that the data is stored in the common storage 216. In various implementations, this can be in response to periodic requests from the partition manager 408 to the indexer 410 regarding which buckets and/or data have been stored to common storage 216.
- the indexer 410 can provide the partition manager 408 with information regarding the data stored in common storage 216 similar to the data that is provided to the indexer 410 by the common storage 216. In some cases, (8) can be replaced with the common storage 216 acknowledging or reporting the storage of the data to the partition manager 408.
- the partition manager 408 updates the data store catalog 220.
- the partition manager 408 can update the data store catalog 220 with information regarding the data or buckets stored in common storage 216.
- the partition manager 408 can update the data store catalog 220 to include location information, a bucket identifier, a time range, and tenant and partition information regarding the buckets copied to common storage 216, etc.
- the data store catalog 220 can include up-to-date information regarding the buckets stored in common storage 216.
- the partition manager 408 reports the completion of the storage to the ingestion buffer 310, and at (11), the ingestion buffer 310 updates the buffer location or marker. Accordingly, in some embodiments, the ingestion buffer 310 can maintain its marker until it receives an acknowledgement that the data that it sent to the indexing node 404 has been indexed by the indexing node 404 and stored to common storage 216. In addition, the updated buffer location or marker can be communicated to and stored by the indexing node manager 406. In this way, a data intake and query system 108 can use the ingestion buffer 310 to provide a stateless environment for the indexing system 212.
- indexing system 212 can generate or assign a new indexing node 404 (or component), to process the data that was assigned to the now unavailable indexing node 404 (or component) while reducing, minimizing, or eliminating data loss.
- a bucket manager 414 which may form part of the indexer 410, the indexing node 404, or indexing system 212, merges multiple buckets into one or more merged buckets.
- the indexer 410 can convert smaller hot buckets to warm buckets and copy the warm buckets to common storage 216.
- the bucket manager 414 can monitor warm buckets in the indexer 410 and merge the warm buckets into one or more merged buckets.
- the bucket manager 414 can merge the buckets according to a bucket merge policy.
- the bucket merge policy can indicate which buckets are candidates for a merge (e.g., based on time ranges, size, tenant/partition or other identifiers, etc.), the number of buckets to merge, size or time range parameters for the merged buckets, a frequency for creating the merged buckets, etc.
- the bucket manager 414 stores and/or copies the merged data or buckets to common storage 216, and obtains information about the merged buckets stored in common storage 216. Similar to (7), the obtained information can include information regarding the storage of the merged buckets, such as, but not limited to, the location of the buckets, one or more bucket identifiers, tenant or partition identifiers, etc.
- the bucket manager 414 reports the storage of the merged data to the partition manager 408, similar to the reporting of the data storage at (8).
- the indexer 410 deletes data from the data store (e.g., data store 412). As described herein, once the merged buckets have been stored in common storage 216, the indexer 410 can delete corresponding buckets that it has stored locally. For example, the indexer 410 can delete the merged buckets from the data store 412, as well as the pre-merged buckets (buckets used to generate the merged buckets). By removing the data from the data store 412, the indexer 410 can free up additional space for additional hot buckets, warm buckets, and/or merged buckets.
- the data store e.g., data store 412
- the indexer 410 can free up additional space for additional hot buckets, warm buckets, and/or merged buckets.
- the common storage 216 deletes data according to a bucket management policy. As described herein, once the merged buckets have been stored in common storage 216, the common storage 216 can delete the pre-merged buckets stored therein. In some cases, as described herein, the common storage 216 can delete the pre-merged buckets immediately, after a predetermined amount of time, after one or more queries relying on the pre-merged buckets have completed, or based on other criteria in the bucket management policy, etc. In certain embodiments, a controller at the common storage 216 handles the deletion of the data in common storage 216 according to the bucket management policy. In certain embodiments, one or more components of the indexing node 404 delete the data from common storage 216 according to the bucket management policy. However, for simplicity, reference is made to common storage 216 performing the deletion.
- the partition manager 408 updates the data store catalog 220 with the information about the merged buckets. Similar to (9), the partition manager 408 can update the data store catalog 220 with the merged bucket information. The information can include, but is not limited to, the time range of the merged buckets, location of the merged buckets in common storage 216, a bucket identifier for the merged buckets, tenant and partition information of the merged buckets, etc.
- the partition manager 408 can remove reference to the pre-merged buckets. Accordingly, the data store catalog 220 can be revised to include information about the merged buckets and omit information about the pre-merged buckets. In this way, as the search managers 514 request information about buckets in common storage 216 from the data store catalog 220, the data store catalog 220 can provide the search managers 514 with the merged bucket information.
- one or more of the functions described herein with respect to FIG. 8 can be omitted, performed in a variety of orders and/or performed by a different component of the data intake and query system 108.
- the partition manager 408 can (9) update the data store catalog 220 before, after, or concurrently with the deletion of the data in the (15) indexer 410 or (16) common storage 216.
- the indexer 410 can (12) merge buckets before, after, or concurrently with (7)-(l 1), etc.
- FIG. 9 is a flow diagram illustrative of an embodiment of a routine 900 implemented by the indexing system 212 to store data in common storage 216.
- routine 900 can be implemented by one or more computing devices/components that are associated with the data intake and query system 108, such as, but not limited to, the indexing manager 402, the indexing node 404, indexing node manager 406, the partition manager 408, the indexer 410, the bucket manager 414, etc.
- the following illustrative embodiment should not be construed as limiting.
- the indexing system 212 receives data.
- the system 312 can receive data from a variety of sources in various formats.
- the data received can be machine data, performance metrics, correlated data, etc.
- the indexing system 212 stores the data in buckets using one or more containerized indexing nodes 404.
- the indexing system 212 can include multiple containerized indexing nodes 404 to receive and process the data.
- the containerized indexing nodes 404 can enable the indexing system 212 to provide a highly extensible and dynamic indexing service. For example, based on resource availability and/or workload, the indexing system 212 can instantiate additional containerized indexing nodes 404 or terminate containerized indexing nodes 404. Further, multiple containerized indexing nodes 404 can be instantiated on the same computing device, and share the resources of the computing device.
- each indexing node 404 can be implemented using containerization or operating-system-level virtualization, or other virtualization technique.
- the indexing node 404, or one or more components of the indexing node 404 can be implemented as separate containers or container instances.
- Each container instance can have certain resources (e.g., memory, processor, etc.) of the underlying computing system assigned to it, but may share the same operating system and may use the operating system’s system call interface.
- each container may run the same or different computer applications concurrently or separately, and may interact with each other.
- the containerized indexing nodes 404 can be implemented using virtual machines using full virtualization or paravirtualization, etc.
- the indexing node 404 can be implemented as a group of related containers or a pod, and the various components of the indexing node 404 can be implemented as related containers of a pod. Further, the indexing node 404 can assign different containers to execute different tasks. For example, one container of a containerized indexing node 404 can receive the incoming data and forward it to a second container for processing, etc. The second container can generate buckets for the data, store the data in buckets, and communicate the buckets to common storage 216. A third container of the containerized indexing node 404 can merge the buckets into merged buckets and store the merged buckets in common storage.
- the containerized indexing node 404 can be implemented in a variety of configurations.
- the containerized indexing node 404 can be implemented as a single container and can include multiple processes to implement the tasks described above by the three containers. Any combination of containerization and processed can be used to implement the containerized indexing node 404 as desired.
- the containerized indexing node 404 processes the received data (or the data obtained using the received data) and stores it in buckets. As part of the processing, the containerized indexing node 404 can determine information about the data (e.g., host, source, sourcetype), extract or identify timestamps, associated metadata fields with the data, extract keywords, transform the data, identify and organize the data into events having raw machine data associated with a timestamp, etc. In some embodiments, the containerized indexing node 404 uses one or more configuration files and/or extraction rules to extract information from the data or events.
- the containerized indexing node 404 can generate buckets for the data according to a bucket creation policy. As described herein, the containerized indexing node 404 can concurrently generate and fill multiple buckets with the data that it processes. In some embodiments, the containerized indexing node 404 generates buckets for each partition or tenant associated with the data that is being processed. In certain embodiments, the indexing node 404 stores the data or events in the buckets based on the identified timestamps.
- containerized indexing node 404 can generate one or more indexes associated with the buckets, such as, but not limited to, one or more inverted indexes, TSIDXs, keyword indexes, etc.
- the data and the indexes can be stored in one or more files of the buckets.
- the indexing node 404 can generate additional files for the buckets, such as, but not limited to, one or more filter files, a bucket summary, or manifest, etc.
- the indexing node 404 stores buckets in common storage 216.
- the indexing node 404 stores the buckets in common storage 216 according to a bucket roll-over policy.
- the buckets are stored in common storage 216 in one or more directories based on an index/partition or tenant associated with the buckets.
- the buckets can be stored in a time series manner to facilitate time series searching as described herein.
- the common storage 216 can replicate the buckets across multiple tiers and data stores across one or more geographical locations.
- the containerized indexing node 404 or a indexing system manager 402 can monitor the amount of data received by the indexing system 212. Based on the amount of data received and/or a workload or utilization of the containerized indexing node 404, the indexing system 212 can instantiate an additional containerized indexing node 404 to process the data.
- the containerized indexing node 404 can instantiate a container or process to manage the processing and storage of data from an additional shard or partition of data received from the intake system. For example, as described herein, the containerized indexing node 404 can instantiate a partition manager 408 for each partition or shard of data that is processed by the containerized indexing node 404. [00351] In certain embodiments, the indexing node 404 can delete locally stored buckets. For example, once the buckets are stored in common storage 216, the indexing node 404 can delete the locally stored buckets. In this way, the indexing node 404 can reduce the amount of data stored thereon.
- the indexing node 404 can merge buckets and store merged buckets in the common storage 216. In some cases, as part of merging and storing buckets in common storage 216, the indexing node 404 can delete locally storage pre-merged buckets (buckets used to generate the merged buckets) and/or the merged buckets or can instruct the common storage 216 to delete the pre-merged buckets. In this way, the indexing node 404 can reduce the amount of data stored in the indexing node 404 and/or the amount of data stored in common storage 216.
- the indexing node 404 can update a data store catalog 220 with information about pre-merged or merged buckets stored in common storage 216.
- the information can identify the location of the buckets in common storage 216 and other information, such as, but not limited to, a partition or tenant associated with the bucket, time range of the bucket, etc.
- the information stored in the data store catalog 220 can be used by the query system 214 to identify buckets to be searched as part of a query.
- the various blocks described herein with reference to FIG. 9 can be implemented in a variety of orders, or can be performed concurrently.
- the indexing node 404 can concurrently convert buckets and store them in common storage 216, or concurrently receive data from a data source and process data from the data source, etc.
- FIG. 10 is a flow diagram illustrative of an embodiment of a routine 1000 implemented by the indexing node 404 to store data in common storage 216.
- routine 1000 can be implemented by one or more computing devices/components that are associated with the data intake and query system 108, such as, but not limited to, the indexing manager 402, the indexing node manager 406, the partition manager 408, the indexer 410, the bucket manager 414, etc.
- the following illustrative embodiment should not be construed as limiting.
- the indexing node 404 receives data.
- the indexing node 404 can receive data from a variety of sources in various formats.
- the data received can be machine data, performance metrics, correlated data, etc.
- the indexing node 404 can receive data from one or more components of the intake system 210 (e.g., the ingesting buffer 310, forwarder 302, etc.) or other data sources 202. In some embodiments, the indexing node 404 can receive data from a shard or partition of the ingestion buffer 310. Further, in certain cases, the indexing node 404 can generate a partition manager 408 for each shard or partition of a data stream. In some cases, the indexing node 404 receives data from the ingestion buffer 310 that references or points to data stored in one or more data stores, such as a data store 218 of common storage 216, or other network accessible data store or cloud storage. In such embodiments, the indexing node 404 can obtain the data from the referenced data store using the information received from the ingestion buffer 310.
- the indexing node 404 can obtain the data from the referenced data store using the information received from the ingestion buffer 310.
- the indexing node 404 stores data in buckets.
- the indexing node 404 processes the received data (or the data obtained using the received data) and stores it in buckets.
- the indexing node 404 can determine information about the data (e.g., host, source, sourcetype), extract or identify timestamps, associated metadata fields with the data, extract keywords, transform the data, identify and organize the data into events having raw machine data associated with a timestamp, etc.
- the indexing node 404 uses one or more configuration files and/or extraction rules to extract information from the data or events.
- the indexing node 404 can generate buckets for the data according to a bucket creation policy. As described herein, the indexing node 404 can concurrently generate and fill multiple buckets with the data that it processes. In some embodiments, the indexing node 404 generates buckets for each partition or tenant associated with the data that is being processed. In certain embodiments, the indexing node 404 stores the data or events in the buckets based on the identified timestamps.
- indexing node 404 can generate one or more indexes associated with the buckets, such as, but not limited to, one or more inverted indexes, TSIDXs, keyword indexes, bloom filter files, etc.
- the data and the indexes can be stored in one or more files of the buckets.
- the indexing node 404 can generate additional files for the buckets, such as, but not limited to, one or more filter files, buckets summary, or manifest, etc.
- the indexing node 404 monitors the buckets.
- the indexing node 404 can process significant amounts of data across a multitude of buckets, and can monitor the size or amount of data stored in individual buckets, groups of buckets or all the buckets that it is generating and filling.
- one component of the indexing node 404 can monitor the buckets (e.g., partition manager 408), while another component fills the buckets (e.g., indexer 410).
- the indexing node 404 can compare the individual size of the buckets or the collective size of multiple buckets with a threshold size. Once the threshold size is satisfied, the indexing node 404 can determine that the buckets are to be stored in common storage 216. In certain embodiments, the indexing node 404 can monitor the amount of time that has passed since the buckets have been stored in common storage 216. Based on a determination that a threshold amount of time has passed, the indexing node 404 can determine that the buckets are to be stored in common storage 216. Further, it will be understood that the indexing node 404 can use a bucket roll-over policy and/or a variety of techniques to determine when to store buckets in common storage 216.
- the indexing node 404 converts the buckets.
- the indexing node 404 can convert the buckets from editable buckets to non-editable buckets.
- the indexing node 404 convert hot buckets to warm buckets based on the bucket roll-over policy.
- the bucket roll-over policy can indicate that buckets are to be converted from hot to warm buckets based on a predetermined period of time, one or more buckets satisfying a threshold size, the number of hot buckets, etc.
- the indexing node 404 converts hot buckets to warm buckets based on a collective size of multiple hot buckets satisfying a threshold size.
- the multiple hot buckets can correspond to any one or any combination of randomly selected hot buckets, hot buckets associated with a particular partition or shard (or partition manager 408), hot buckets associated with a particular tenant or partition, all hot buckets in the data store 412 or being processed by the indexer 410, etc.
- the indexing node 404 stores the converted buckets in a data store.
- the indexing node 404 can store the buckets in common storage 216 or other location accessible to the query system 214. In some cases, the indexing node 404 stores a copy of the buckets in common storage 416 and retains the original bucket in its data store 412. In certain embodiments, the indexing node 404 stores a copy of the buckets in common storage and deletes any reference to the original buckets in its data store 412.
- the indexing node 404 can store the one or more buckets based on the bucket roll-over policy.
- the bucket roll-over policy can indicate when buckets are to be stored in common storage 216.
- the bucket roll-over policy can use the same or different policies or thresholds to indicate when hot buckets are to be converted to warm and when buckets are to be stored in common storage 216.
- the bucket roll-over policy can indicate that buckets are to be stored in common storage 216 based on a collective size of buckets satisfying a threshold size.
- the threshold size used to determine that the buckets are to be stored in common storage 216 can be the same as or different from the threshold size used to determine that editable buckets should be converted to non-editable buckets.
- the indexing node 404 can convert the buckets to non-editable buckets and store the buckets in common storage 216.
- bucket roll-over policy can indicate that buckets are to be stored in common storage 216 based on the passage of a threshold amount of time.
- bucket roll-over policy can indicate that buckets are to be stored in common storage 216 based on the number of buckets satisfying a threshold number.
- the bucket roll-over policy can use a variety of techniques or thresholds to indicate when to store the buckets in common storage 216.
- the bucket roll-over policy can use any one or any combination of a threshold time period, threshold number of buckets, user information, tenant or partition information, query frequency, amount of data being received, time of day or schedules, etc., to indicate when buckets are to be stored in common storage 216 (and/or converted to non-editable buckets).
- the bucket roll-over policy can use different priorities to determine how to store the buckets, such as, but not limited to, minimizing or reducing time between processing and storage to common storage 216, maximizing or increasing individual bucket size, etc.
- the bucket roll-over policy can use dynamic thresholds to indicate when buckets are to be stored in common storage 216.
- the bucket roll-over policy can indicate that buckets are to be moved to common storage 216 more frequently by adjusting one more thresholds used to determine when the buckets are to be stored to common storage 216 (e.g., threshold size, threshold number, threshold time, etc.).
- the bucket roll-over policy can indicate that different sets of buckets are to be rolled-over differently or at different rates or frequencies.
- the bucket roll-over policy can indicate that buckets associated with a first tenant or partition are to be rolled over according to one policy and buckets associated with a second tenant or partition are to be rolled over according to a different policy.
- the different policies may indicate that the buckets associated with the first tenant or partition are to be stored more frequently to common storage 216 than the buckets associated with the second tenant or partition.
- the bucket roll-over policy can use one set of thresholds (e.g., threshold size, threshold number, and/or threshold time, etc.) to indicate when the buckets associated with the first tenant or partition are to be stored in common storage 216 and a different set of thresholds for the buckets associated with the second tenant or partition.
- thresholds e.g., threshold size, threshold number, and/or threshold time, etc.
- the bucket roll-over policy can indicate that based on the increased frequency of queries for buckets from partition _main, buckets associated with partition _main should be moved more frequently to common storage 216, for example, by adjusting the threshold size used to determine when to store the buckets in common storage 216.
- the query system 214 can obtain relevant search results more quickly for data associated with the _main partition. Further, if the frequency of queries for buckets from the _main partition decreases, the data intake and query system 108 can adjust the threshold accordingly.
- the bucket roll-over policy may indicate that the changes are only for buckets associated with the partition _main or that the changes are to be made for all buckets, or all buckets associated with a particular tenant that is associated with the partition _main, etc.
- the bucket roll-over policy can indicate that buckets are to be stored in common storage 216 at different rates or frequencies based on time of day.
- the data intake and query system 108 can adjust the thresholds so that the buckets are moved to common storage 216 more frequently during working hours and less frequently during non-working hours. In this way, the delay between processing and making the data available for searching during working hours can be reduced, and can decrease the amount of merging performed on buckets generated during non-working hours.
- the data intake and query system 108 can adjust the thresholds so that the buckets are moved to common storage 216 less frequently during working hours and more frequently during non- working hours.
- the bucket roll-over policy can indicate that based on an increased rate at which data is received, buckets are to be moved to common storage more (or less) frequently. For example, if the bucket roll-over policy initially indicates that the buckets are to be stored every millisecond, as the rate of data received by the indexing node 404 increases, the amount of data received during each millisecond can increase, resulting in more data waiting to be stored. As such, in some cases, the bucket roll-over policy can indicate that the buckets are to be stored more frequently in common storage 216.
- the bucket roll-over policy can use a larger collective bucket size threshold to indicate that the buckets are to be stored in common storage 216. In this way, the bucket roll-over policy can reduce the ratio of overhead to data being stored. [00374] Similarly, the bucket roll-over policy can indicate that certain users are to be treated differently.
- the bucket roll-over policy can indicate that the buckets in an indexing node 404 are to be moved to common storage 216 more or less frequently to accommodate the user’s preferences, etc.
- the data intake and query system 108 may indicate that only those buckets associated with the user (e.g., based on tenant information, indexing information, user information, etc.) are to be stored more or less frequently.
- the bucket roll-over policy can indicate whether, after copying buckets to common storage 216, the locally stored buckets are to be retained or discarded. In some cases, the bucket roll-over policy can indicate that the buckets are to be retained for merging. In certain cases, the bucket roll-over policy can indicate that the buckets are to be discarded.
- the routine 1000 can include notifying the data source, such as the intake system, that the buckets have been uploaded to common storage, merging buckets and uploading merged buckets to common storage, receiving identifying information about the buckets in common storage 216 and updating a data store catalog 220 with the received information, etc.
- the data source such as the intake system
- the various blocks described herein with reference to FIG. 10 can be implemented in a variety of orders, or can be performed concurrently.
- the indexing node 404 can concurrently convert buckets and store them in common storage 216, or concurrently receive data from a data source and process data from the data source, etc.
- FIG. 11 is a flow diagram illustrative of an embodiment of a routine 1100 implemented by the indexing node 404 to update a location marker in an ingestion buffer, e.g., ingestion buffer 310.
- routine 1100 can be implemented by one or more computing devices/components that are associated with the data intake and query system 108, such as, but not limited to, the indexing manager 402, the indexing node manager 406, the partition manager 408, the indexer 410, the bucket manager 414, etc.
- the following illustrative embodiment should not be construed as limiting.
- the indexing node 404 receives data. As described in greater detail above with reference to block 1002, the indexing node 404 can receive a variety of types of data from a variety of sources.
- the indexing node 404 receives data from an ingestion buffer 310.
- the ingestion buffer 310 can operate according to a pub-sub messaging service. As such, the ingestion buffer 310 can communicate data to the indexing node 404, and also ensure that the data is available for additional reads until it receives an acknowledgement from the indexing node 404 that the data can be removed.
- the ingestion buffer 310 can use one or more read pointers or location markers to track the data that has been communicated to the indexing node 404 but that has not been acknowledged for removal. As the ingestion buffer 310 receives acknowledgments from the indexing node 404, it can update the location markers. In some cases, such as where the ingestion buffer 310 uses multiple partitions or shards to provide the data to the indexing node 404, the ingestion buffer 310 can include at least one location marker for each partition or shard. In this way, the ingestion buffer 310 can separately track the progress of the data reads in the different shards.
- the indexing node 404 can receive (and/or store) the location markers in addition to or as part of the data received from the ingestion buffer 310. Accordingly, the indexing node 404 can track the location of the data in the ingestion buffer 310 that the indexing node 404 has received from the ingestion buffer 310. In this way, if an indexer 410 or partition manager 408 becomes unavailable or fails, the indexing node 404 can assign a different indexer 410 or partition manager 408 to process or manage the data from the ingestion buffer 310 and provide the indexer 410 or partition manager 408 with a location from which the indexer 410 or partition manager 408 can obtain the data.
- the indexing node 404 stores the data in buckets. As described in greater detail above with reference to block 1004 of FIG. 10, as part of storing the data in buckets, the indexing node 404 can parse the data, generate events, generate indexes of the data, compress the data, etc. In some cases, the indexing node 404 can store the data in hot or warm buckets and/or convert hot buckets to warm buckets based on the bucket roll-over policy.
- the indexing node 404 stores buckets in common storage 216.
- the indexing node 404 stores the buckets in common storage 216 according to the bucket roll-over policy.
- the buckets are stored in common storage 216 in one or more directories based on an index/partition or tenant associated with the buckets.
- the buckets can be stored in a time series manner to facilitate time series searching as described herein.
- the common storage 216 can replicate the buckets across multiple tiers and data stores across one or more geographical locations.
- the indexing node 404 receives an acknowledgement that the data was stored. Further, the indexing node 404 can receive information about the location of the data in common storage, one or more identifiers of the stored data, etc. The indexing node 404 can use this information to update the data store catalog 220.
- the indexing node 404 notifies an ingestion buffer 310 that the data has been stored in common storage 216.
- the ingestion buffer 310 can retain location markers for the data that it sends to the indexing node 404.
- the ingestion buffer 310 can use the location markers to indicate that the data sent to the indexing node 404 is to be made persistently available to the indexing system 212 until the ingestion buffer 310 receives an acknowledgement from the indexing node 404 that the data has been stored successfully.
- the ingestion buffer 310 can update the location marker(s) and communicate the updated location markers to the indexing node 404.
- the indexing node 404 can store updated location markers for use in the event one or more components of the indexing node 404 (e.g., partition manager 408, indexer 410) become unavailable or fail. In this way, the ingestion buffer 310 and the location markers can aid in providing a stateless indexing service.
- the indexing node 404 can update the data store catalog 220 with information about the buckets created by the indexing node 404 and/or stored in common storage 215, as described herein.
- the various blocks described herein with reference to FIG. 11 can be implemented in a variety of orders.
- the indexing node 404 can implement some blocks concurrently or change the order as desired.
- the indexing node 404 can concurrently receive data, store other data in buckets, and store buckets in common storage.
- FIG. 12 is a flow diagram illustrative of an embodiment of a routine 1200 implemented by the indexing node 404 to merge buckets.
- routine 1200 can be implemented by one or more computing devices/components that are associated with the data intake and query system 108, such as, but not limited to, the indexing manager 402, the indexing node manager 406, the partition manager 408, the indexer 410, the bucket manager 414, etc.
- the indexing node 404 stores data in buckets.
- the indexing node 404 can process various types of data from a variety of sources. Further, the indexing node 404 can create one or more buckets according to a bucket creation policy and store the data in the store the data in one or more buckets. In addition, in certain embodiments, the indexing node 404 can convert hot or editable buckets to warm or non-editable buckets according to a bucket roll-over policy.
- the indexing node 404 stores buckets in common storage 216.
- the indexing node 404 can store the buckets in common storage 216 according to the bucket roll-over policy.
- the buckets are stored in common storage 216 in one or more directories based on an index/partition or tenant associated with the buckets.
- the buckets can be stored in a time series manner to facilitate time series searching as described herein.
- the common storage 216 can replicate the buckets across multiple tiers and data stores across one or more geographical locations.
- the indexing node 404 updates the data store catalog 220. As described herein, in some cases, in response to the storage, the indexing node 404 receives an acknowledgement that the data was stored. Further, the indexing node 404 can receive information about the location of the data in common storage, one or more identifiers of the stored data, etc. The received information can be used by the indexing node 404 to update the data store catalog 220. In addition, the indexing node 404 can provide the data store catalog 220 with any one or any combination of the tenant or partition associated with the bucket, a time range of the events in the bucket, one or more metadata fields of the bucket (e.g., host, source, sourcetype, etc.), etc. In this way, the data store catalog 220 can store up-to-date information about the buckets in common storage 216. Further, this information can be used by the query system 214 to identify relevant buckets for a query.
- the indexing node 404 can update the data store catalog 220 before, after, or concurrently with storing the data to common storage 216. For example, as buckets are created by the indexing node 404, the indexing node 404 can update the data store catalog 220 with information about the created buckets, such as, but not limited to, an partition or tenant associated with the bucket, a time range or initial time (e.g., time of earliest-in-time timestamp), etc. In addition, the indexing node 404 can include an indication that the bucket is a hot bucket or editable bucket and that the contents of the bucket are not (yet) available for searching or in the common storage 216.
- the indexing node 404 can update the data store catalog 220 with additional information about the bucket (e.g., updated time range based on additional events, size of the bucket, number of events in the bucket, certain keywords or metadata from the bucket, such as, but not limited to a host, source, or sourcetype associated with different events in the bucket, etc.). Further, once the bucket is uploaded to common storage 216, the indexing node 404 can complete the entry for the bucket, such as, by providing a completed time range, location information of the bucket in common storage 216, completed keyword or metadata information as desired, etc.
- additional information about the bucket e.g., updated time range based on additional events, size of the bucket, number of events in the bucket, certain keywords or metadata from the bucket, such as, but not limited to a host, source, or sourcetype associated with different events in the bucket, etc.
- the indexing node 404 can complete the entry for the bucket, such as, by providing a completed time range, location information of the bucket in common storage 216, completed keyword or metadata
- the information in the data store catalog 220 can be used by the query system 214 to execute queries.
- the query system 214 can wait until the data is available for searching before completing the query or inform a user that some data that may be relevant has not been processed or that the results will be updated. Further, in some cases, the query system 214 can inform the indexing system 212 about the bucket, and the indexing system 212 can cause the indexing node 404 to store the bucket in common storage 216 sooner than it otherwise would without the communication from the query system 214.
- the indexing node 404 can update the data store catalog 220 with information about buckets to be merged. For example, once one or more buckets are identified for merging, the indexing node 404 can update an entry for the buckets in the data store catalog 220 indicating that they are part of a merge operation and/or will be replaced. In some cases, as part of the identification, the data store catalog 220 can provide information about the entries to the indexing node 404 for merging. As the entries may have summary information about the buckets, the indexing node 404 can use the summary information to generate a merged entry for the data store catalog 220 as opposed to generating the summary information from the merged data itself.
- the indexing node 404 merges buckets.
- the indexing node 404 can merge buckets according to a bucket merge policy.
- the bucket merge policy can indicate which buckets to merge, when to merge buckets and one or more parameters for the merged buckets (e.g., time range for the merged buckets, size of the merged buckets, etc.).
- the bucket merge policy can indicate that only buckets associated with the same tenant identifier and/or partition can be merged.
- the bucket merge policy can indicate that only buckets that satisfy a threshold age (e.g., have existed or been converted to warm buckets for more than a set period of time) are eligible for a merge.
- the bucket merge policy can indicate that each merged bucket must be at least 750 MB or no greater than 1 GB, or cannot have a time range that exceeds a predetermined amount or is larger than 75% of other buckets.
- the other buckets can refer to one or more buckets in common storage 216 or similar buckets (e.g., buckets associated with the same tenant, partition, host, source, or sourcetype, etc.).
- the bucket merge policy can indicate that buckets are to be merged based on a schedule (e.g., during non-working hours) or user login (e.g., when a particular user is not logged in), etc.
- the bucket merge policy can indicate that bucket merges can be adjusted dynamically. For example, based on the rate of incoming data or queries, the bucket merge policy can indicate that buckets are to be merged more or less frequently, etc.
- the bucket merge policy can indicate that due to increased processing demands by other indexing nodes 404 or other components of an indexing node 404, such as processing and storing buckets, that bucket merges are to occur less frequently so that the computing resources used to merge buckets can be redirected to other tasks. It will be understood that a variety of priorities and policies can be used as part of the bucket merge policy.
- the indexing node 404 stores the merged buckets in common storage 216.
- the indexing node 404 can store the merged buckets based on the bucket merge policy. For example, based on the bucket merge policy indicating that merged buckets are to satisfy a size threshold, the indexing node 404 can store a merged bucket once it satisfies the size threshold. Similarly, the indexing node 404 can store the merged buckets after a predetermined amount of time or during non-working hours, etc., per the bucket merge policy.
- the indexing node 404 can receive an acknowledgement that the merged buckets have been stored.
- the acknowledgement can include information about the merged buckets, including, but not limited to, a storage location in common storage 216, identifier, etc.
- the indexing node 404 updates the data store catalog 220.
- the indexing node 404 can store information about the merged buckets in the data store catalog. 220.
- the information can be similar to the information stored in the data store catalog 220 for the premerged buckets (buckets used to create the merged buckets).
- the indexing node 404 can store any one or any combination of the following in the data store catalog: the tenant or partition associated with the merged buckets, a time range of the merged bucket, the location information of the merged bucket in common storage 216, metadata fields associated with the bucket (e.g., host, source, sourcetype), etc.
- the information about the merged buckets in the data store catalog 220 can be used by the query system 214 to identify relevant buckets for a search.
- the data store catalog 220 can be used in a similar fashion as an inverted index, and can include similar information (e.g., time ranges, field-value pairs, keyword pairs, location information, etc.).
- the data store catalog 220 can provide information about individual buckets in common storage 216.
- the indexing node 404 can retrieve information from the data store catalog 220 about the pre-merged buckets and use that information to generate information about the merged bucket(s) for storage in the data store catalog 220.
- the indexing node 404 can use the time ranges of the pre-merged buckets to generate a merged time range, identify metadata fields associated with the different events in the pre-merged buckets, etc.
- the indexing node 404 can generate the information about the merged buckets for the data store catalog 220 from the merged data itself without retrieving information about the pre-merged buckets from the data store catalog 220.
- the indexing node 404 can delete the information in the data store catalog 220 about the pre-merged buckets. For example, once the merged bucket is stored in common storage 216, the merged bucket can be used for queries. As such, the information about the pre-merged buckets can be removed so that the query system 214 does not use the pre-merged buckets to execute a query. [00402] Fewer, more, or different blocks can be used as part of the routine 1200. In some cases, one or more blocks can be omitted. For example, in certain embodiments, the indexing node 404 can delete locally stored buckets. In some cases, the indexing node 404 deletes any buckets used to form merged buckets and/or the merged buckets. In this way, the indexing node 404 can reduce the amount of data stored in the indexing node 404.
- the indexing node 404 can instruct the common storage 216 to delete buckets or delete the buckets in common storage according to a bucket management policy. For example, the indexing node 404 can instruct the common storage 216 to delete any buckets used to generate the merged buckets. Based on the bucket management policy, the common storage 216 can remove the buckets. As described herein, the bucket management policy can indicate when buckets are to be removed from common storage 216. For example, the bucket management policy can indicate that buckets are to be removed from common storage 216 after a predetermined amount of time, once any queries relying on the pre-merged buckets are completed, etc.
- the indexing node 404 can reduce the size or amount of data stored in common storage 216 and improve search times. For example, in some cases, large buckets can increase search times as there are fewer buckets for the query system 214 to search. By another example, merging buckets after indexing allows optimal or near-optimal bucket sizes for search (e.g., performed by query system 214) and index (e.g., performed by indexing system 212) to be determined independently or near-independently. [00405] Furthermore, it will be understood that the various blocks described herein with reference to FIG. 12 can be implemented in a variety of orders. In some cases, the indexing node 404 can implement some blocks concurrently or change the order as desired.
- the indexing node 404 can concurrently merge buckets while updating an ingestion buffer 310 about the data stored in common storage 216 or updating the data store catalog 220.
- the indexing node 404 can delete data about the pre-merged buckets locally and instruct the common storage 216 to delete the data about the pre-merged buckets while concurrently updating the data store catalog 220 about the merged buckets.
- the indexing node 404 deletes the pre-merged bucket data entries in the data store catalog 220 prior to instructing the common storage 216 to delete the buckets. In this way, the data indexing node 404 can reduce the risk that a query relies on information in the data store catalog 220 that does not reflect the data stored in the common storage 216.
- FIG. 13 is a data flow diagram illustrating an embodiment of the data flow and communications between a variety of the components of the data intake and query system 108 during execution of a query.
- FIG. 13 is a data flow diagram illustrating an embodiment of the data flow and communications between the indexing system 212, the data store catalog 220, a search head 504, a search node monitor 508, search node catalog 510, search nodes 506, common storage 216, and the query acceleration data store 222.
- the functions described herein with respect to FIG. 13 can be omitted, performed in a different order and/or performed by a different component of the data intake and query system 108. Accordingly, the illustrated embodiment and description should not be construed as limiting.
- the various functions described herein with respect to FIG. 13 can be performed by one or more distinct components of the data intake and query system 108.
- a search head 504 performing one or more functions.
- these functions can be performed by one or more components of the search head 504, such as, but not limited to, the search master 512 and/or the search manager 514.
- the indexing system 212 performing one or more functions.
- the functions identified as being performed by the indexing system 212 can be performed by one or more components of the indexing system 212.
- the indexing system 212 monitors the storage of processed data and updates the data store catalog 220 based on the monitoring.
- one or more components of the indexing system 212 such as the partition manager 408 and/or the indexer 410 can monitor the storage of data or buckets to common storage 216.
- the indexing system 212 can obtain information about the data stored in the common storage 216, such as, but not limited to, location information, bucket identifiers, tenant identifier (e.g., for buckets that are single tenant) etc.
- the indexing system 212 can use the received information about the data stored in common storage 216 to update the data store catalog 220.
- the indexing system 212 can merge buckets into one or more merged buckets, store the merged buckets in common storage 216, and update the data store catalog to 220 with the information about the merged buckets stored in common storage 216.
- the search node monitor 508 monitors the search nodes 506 and updates the search node catalog 510.
- the search node monitor 508 can monitor the availability, responsiveness, and/or utilization rate of the search nodes 506. Based on the status of the search nodes 506, the search node monitor 508 can update the search node catalog 510. In this way, the search node catalog 510 can retain information regarding a current status of each of the search nodes 506 in the query system 214.
- the search head 504 receives a query and generates a search manager 514.
- a search master 512 can generate the search manager 514.
- the search master 512 can spin up or instantiate a new process, container, or virtual machine, or copy itself to generate the search manager 514, etc.
- the search manager 514 can perform one or more of functions described herein with reference to FIG. 13 as being performed by the search head 504 to process and execute the query.
- the search head 504 (6 A) requests data identifiers from the data store catalog 220 and (6B) requests an identification of available search nodes from the search node catalog 510.
- the data store catalog 220 can include information regarding the data stored in common storage 216 and the search node catalog 510 can include information regarding the search nodes 506 of the query system 214.
- the search head 504 can query the respective catalogs to identify data or buckets that include data that satisfies at least a portion of the query and search nodes available to execute the query. In some cases, these requests can be done concurrently or in any order.
- the data store catalog 220 provides the search head 504 with an identification of data that satisfies at least a portion of the query. As described herein, in response to the request from the search head 504, the data store catalog 220 can be used to identify and return identifiers of buckets in common storage 216 and/or location information of data in common storage 216 that satisfy at least a portion of the query or at least some filter criteria (e.g., buckets associated with an identified tenant or partition or that satisfy an identified time range, etc.).
- filter criteria e.g., buckets associated with an identified tenant or partition or that satisfy an identified time range, etc.
- the data store catalog 220 can routinely receive updates by the indexing system 212, it can implement a read- write lock while it is being queried by the search head 504. Furthermore, the data store catalog 220 can store information regarding which buckets were identified for the search. In this way, the data store catalog 220 can be used by the indexing system 212 to determine which buckets in common storage 216 can be removed or deleted as part of a merge operation.
- the search node catalog 510 provides the search head 504 with an identification of available search nodes 506. As described herein, in response to the request from the search head 504, the search node catalog 510 can be used to identify and return identifiers for search nodes 506 that are available to execute the query.
- the search head 504 maps the identified search nodes 506 to the data according to a search node mapping policy.
- the search head 504 can dynamically map search nodes 506 to the identified data or buckets.
- the search head 504 can map the identified search nodes 506 to the identified data or buckets at one time or iteratively as the buckets are searched according to the search node mapping policy.
- the search head 504 can map the identified search nodes 506 to the identified data based on previous assignments, data stored in a local or shared data store of one or more search heads 506, network architecture of the search nodes 506, a hashing algorithm, etc.
- the search head 504 can attempt to map that was previously assigned to a search node 506 to the same search node 506.
- the search head 504 uses the identifiers, such as bucket identifiers, received from the data store catalog 220.
- the search head 504 performs a hash function to map a bucket identifier to a search node 506.
- the search head 504 uses a consistent hash algorithm to increase the probability of mapping a bucket identifier to the same search node 506.
- the search head 504 or query system 214 can maintain a table or list of bucket mappings to search nodes 506.
- the search head 504 can use the mapping to identify previous assignments between search nodes and buckets. If a particular bucket identifier has not been assigned to a search node 506, the search head 504 can use a hash algorithm to assign it to a search node 506.
- the search head 504 can confirm that the search node 506 that was previously assigned to the particular bucket is available for the query.
- the search head 504 can determine whether another search node 506 that shares a data store with the unavailable search node 506 is available for the query. If the search head 504 determines that an available search node 506 shares a data store with the unavailable search node 506, the search head 504 can assign the identified available search node 506 to the bucket identifier that was previously assigned to the now unavailable search node 506.
- the search head 504 instructs the search nodes 506 to execute the query.
- the search head 504 can generate search instructions for each of the assigned search nodes 506. These instructions can be in various forms, including, but not limited to, JSON, DAG, etc.
- the search head 504 can generate sub-queries for the search nodes 506. Each sub-query or instructions for a particular search node 506 generated for the search nodes 506 can identify the buckets that are to be searched, the filter criteria to identify a subset of the set of data to be processed, and the manner of processing the subset of data. Accordingly, the instructions can provide the search nodes 506 with the relevant information to execute their particular portion of the query.
- the search nodes 506 obtain the data to be searched.
- the data to be searched can be stored on one or more local or shared data stores of the search nodes 506.
- the data to be searched is located in the common storage 216.
- the search nodes 506 or a cache manager 516 can obtain the data from the common storage 216.
- the cache manager 516 can identify or obtain the data requested by the search nodes 506. For example, if the requested data is stored on the local or shared data store of the search nodes 506, the cache manager 516 can identify the location of the data for the search nodes 506. If the requested data is stored in common storage 216, the cache manager 516 can obtain the data from the common storage 216.
- the cache manager 516 can obtain a subset of the files associated with the bucket to be searched by the search nodes 506. For example, based on the query, the search node 506 can determine that a subset of the files of a bucket are to be used to execute the query. Accordingly, the search node 506 can request the subset of files, as opposed to all files of the bucket. The cache manager 516 can download the subset of files from common storage 216 and provide them to the search node 506 for searching.
- the cache manager 516 can download a bucket summary or manifest that identifies the files associated with the bucket.
- the search node 506 can use the bucket summary or manifest to uniquely identify the file to be used in the query.
- the common storage 216 can then obtain that uniquely identified file from common storage 216.
- the search nodes 506 search and process the data.
- the subqueries or instructions received from the search head 504 can instruct the search nodes 506 to identify data within one or more buckets and perform one or more transformations on the data.
- each search node 506 can identify a subset of the set of data to be processed and process the subset of data according to the received instructions. This can include searching the contents of one or more inverted indexes of a bucket or the raw machine data or events of a bucket, etc.
- a search node 506 can perform one or more transformations on the data received from each bucket or on aggregate data from the different buckets that are searched by the search node 506.
- the search head 504 monitors the status of the query of the search nodes 506.
- the search nodes 506 can become unresponsive or fail for a variety of reasons (e.g., network failure, error, high utilization rate, etc.). Accordingly, during execution of the query, the search head 504 can monitor the responsiveness and availability of the search nodes 506. In some cases, this can be done by pinging or querying the search nodes 506, establishing a persistent communication link with the search nodes 506, or receiving status updates from the search nodes 506.
- the status can indicate the buckets that have been searched by the search nodes 506, the number or percentage of remaining buckets to be searched, the percentage of the query that has been executed by the search node 506, etc.
- the search head 504 can assign a different search node 506 to complete the portion of the query assigned to the unresponsive search node 506.
- the search manager 514 can dynamically assign or re-assign buckets to search nodes 506. For example, as search nodes 506 complete their search of buckets assigned to them, the search manager 514 can assign additional buckets for search. As yet another example, if one search node 506 is 95% complete with its search while another search node 506 is less than 50% complete, the query manager can dynamically assign additional buckets to the search node 506 that is 95% complete or re-assign buckets from the search node 506 that is less than 50% complete to the search node that is 95% complete. In this way, the search manager 514 can improve the efficiency of how a computing system performs searches through the search manager 514 increasing parallelization of searching and decreasing the search time.
- the search nodes 506 send individual query results to the search head 504.
- the search nodes 506 can send the query results as they are obtained from the buckets and/or send the results once they are completed by a search node 506.
- the search head 504 can track the progress of the query. For example, the search head 504 can track which buckets have been searched by the search nodes 506. Accordingly, in the event a search node 506 becomes unresponsive or fails, the search head 504 can assign a different search node 506 to complete the portion of the query assigned to the unresponsive search node 506.
- the search head 504 can reduce the delay caused by a search node 506 becoming unresponsive, and can aid in providing a stateless searching service.
- the search head 504 processes the results from the search nodes 506. As described herein, the search head 504 can perform one or more transformations on the data received from the search nodes 506. For example, some queries can include transformations that cannot be completed until the data is aggregated from the different search nodes 506. In some embodiments, the search head 504 can perform these transformations.
- the search head 504 stores results in the query acceleration data store 222. As described herein, in some cases some, all, or a copy of the results of the query can be stored in the query acceleration data store 222. The results stored in the query acceleration data store 222 can be combined with other results already stored in the query acceleration data store 222 and/or be combined with subsequent results. For example, in some cases, the query system 214 can receive ongoing queries, or queries that do not have a predetermined end time. In such cases, as the search head 504 receives a first set of results, it can store the first set of results in the query acceleration data store 222. As subsequent results are received, the search head 504 can add them to the first set of results, and so forth.
- the query system 214 can execute the query across a first time range and then aggregate the results of the query with the results of the query across the second time range. In this way, the query system can reduce the amount of queries and the size of queries being executed and can provide query results in a more time efficient manner.
- the search head 504 terminates the search manager 514.
- a search head 504 or a search master 512 can generate a search manager 514 for each query assigned to the search head 504. Accordingly, in some embodiments, upon completion of a search, the search head 504 or search master 512 can terminate the search manager 514. In certain embodiments, rather than terminating the search manager 514 upon completion of a query, the search head 504 can assign the search manager 514 to a new query.
- one or more of the functions described herein with respect to FIG. 13 can be omitted, performed in a variety of orders and/or performed by a different component of the data intake and query system 108.
- the search head 504 can monitor the status of the query throughout its execution by the search nodes 506 (e.g., during (10), (11), and (13)).
- (1) and (2) can be performed concurrently
- (3) and (4) can be performed concurrently, and all can be performed before, after, or concurrently with (5).
- steps (6A) and (6B) and steps (7 A) and (7B) can be performed before, after, or concurrently with each other.
- (6A) and (7 A) can be performed before, after, or concurrently with (7 A) and (7B).
- (10), (11), and (13) can be performed concurrently.
- a search node 506 can concurrently receive one or more files for one bucket, while searching the content of one or more files of a second bucket and sending query results for a third bucket to the search head 504.
- the search head 504 can (8) map search nodes 506 to buckets while concurrently (9) generating instructions for and instructing other search nodes 506 to begin execution of the query.
- FIG. 14 is a flow diagram illustrative of an embodiment of a routine 1400 implemented by the query system 214 to execute a query.
- routine 1400 implemented by the query system 214 to execute a query.
- the elements outlined for routine 1400 can be implemented by one or more computing devices/components that are associated with the data intake and query system 108, such as, but not limited to, the query system manager 502, the search head 504, the search master 512, the search manager 514, the search nodes 506, etc.
- the following illustrative embodiment should not be construed as limiting.
- the search manager 514 receives a query.
- the search manager 514 can receive the query from the search head 504, search master 512, etc.
- the search manager 514 can receive the query from a client device 204.
- the query can be in a query language as described in greater detail above.
- the query received by the search manager 514 can correspond to a query received and reviewed by the search head 504.
- the search head 504 can determine whether the query was submitted by an authenticated user and/or review the query to determine that it is in a proper format for the data intake and query system 108, has correct semantics and syntax, etc.
- the search head 504 can use a search master 512 to receive search queries, and in some cases, spawn the search manager 514 to process and execute the query.
- the search manager 514 identifies one or more containerized search nodes, e.g., search nodes 506, to execute the query.
- the query system 214 can include multiple containerized search nodes 506 to execute queries.
- One or more of the containerized search nodes 506 can be instantiated on the same computing device, and share the resources of the computing device.
- the containerized search nodes 506 can enable the query system 214 to provide a highly extensible and dynamic searching service. For example, based on resource availability and/or workload, the query system 214 can instantiate additional containerized search nodes 506 or terminate containerized search nodes 506.
- the query system 214 can dynamically assign containerized search nodes 506 to execute queries on data in common storage 216 based on a search node mapping policy.
- each search node 506 can be implemented using containerization or operating-system-level virtualization, or other virtualization technique.
- the containerized search node 506, or one or more components of the search node 506 can be implemented as separate containers or container instances.
- Each container instance can have certain resources (e.g., memory, processor, etc.) of the underlying computing system assigned to it, but may share the same operating system and may use the operating system’s system call interface.
- each container may run the same or different computer applications concurrently or separately, and may interact with each other.
- the containerized search nodes 506 can be implemented using virtual machines using full virtualization or paravirtualization, etc.
- the search node 506 can be implemented as a group of related containers or a pod, and the various components of the search node 506 can be implemented as related containers of a pod. Further, the search node 506 can assign different containers to execute different tasks. For example one container of a containerized search node 506 can receive and query instructions, a second container can obtain the data or buckets to be searched, and a third container of the containerized search node 506 can search the buckets and/or perform one or more transformations on the data.
- the containerized search node 506 can be implemented in a variety of configurations.
- the containerized search node 506 can be implemented as a single container and can include multiple processes to implement the tasks described above by the three containers. Any combination of containerization and processed can be used to implement the containerized search node 506 as desired.
- the search manager 514 can identify the search nodes 506 using the search node catalog 510.
- a search node monitor 508 can monitor the status of the search nodes 506 instantiated in the query system 514 and monitor their status.
- the search node monitor can store the status of the search nodes 506 in the search node catalog 510.
- the search manager 514 can identify search nodes 506 using a search node mapping policy, previous mappings, previous searches, or the contents of a data store associated with the search nodes 506. For example, based on the previous assignment of a search node 506 to search data as part of a query, the search manager 514 can assign the search node 506 to search the same data for a different query. As another example, as search nodes 506 search data, it can cache the data in a local or shared data store. Based on the data in the cache, the search manager 514 can assign the search node 506 to search the again as part of a different query.
- the search manager 514 can identify search nodes 506 based on shared resources. For example, if the search manager 514 determines that a search node 506 shares a data store with a search node 506 that previously performed a search on data and cached the data in the shared data store, the search manager 514 can assign the search node 506 that share the data store to search the data stored therein as part of a different query.
- the search manager 514 can identify search nodes 506 using a hashing algorithm. For example, as described herein, the search manager 514 based can perform a hash on a bucket identifier of a bucket that is to be searched to identify a search node to search the bucket. In some implementations, that hash may be a consistent hash, to increase the chance that the same search node will be selected to search that bucket as was previously used, thereby reducing the chance that the bucket must be retrieved from common storage 216.
- search manger 514 can identify search nodes 506 based on any one or any combination of the aforementioned methods. Furthermore, it will be understood that the search manager 514 can identify search nodes 506 in a variety of ways.
- the search manager 514 instructs the search nodes 506 to execute the query.
- the search manager 514 can process the query to determine portions of the query that it will execute and portions of the query to be executed by the search nodes 506.
- the search manager 514 can generate instructions or sub-queries for each search node 506 that is to execute a portion of the query.
- the search manager 514 generates a DAG for execution by the search nodes 506.
- the instructions or sub-queries can identify the data or buckets to be searched by the search nodes 506.
- the instructions or sub-queries may identify one or more transformations that the search nodes 506 are to perform on the data.
- the search manager 514 can receive partial results from the search nodes 506, process the partial results, perform one or more transformation on the partial results or aggregated results, etc. Further, in some embodiments, the search manager 514 provide the results to a client device 204. In some embodiments, the search manager 514 can combine the results with results stored in the accelerated data store 222 or store the results in the accelerated data store 222 for combination with additional search results.
- the search manager 514 can identify the data or buckets to be searched by, for example, using the data store catalog 220, and map the buckets to the search nodes 506 according to a search node mapping policy.
- the data store catalog 220 can receive updates from the indexing system 212 about the data that is stored in common storage 216.
- the information in the data store catalog 220 can include, but is not limited to, information about the location of the buckets in common storage 216, and other information that can be used by the search manager 514 to identify buckets that include data that satisfies at least a portion of the query.
- the search nodes 506 can obtain the data to be searched from common storage 216 using the cache manager 516.
- the obtained data can be stored on a local or shared data store and searched as part of the query.
- the data can be retained on the local or shared data store based on a bucket caching policy as described herein.
- the search manager 514 can implement some blocks concurrently or change the order as desired. For example, the search manager 514 an concurrently identify search nodes 506 to execute the query and instruct the search nodes 506 to execute the query. As described herein, in some embodiments, the search manager 514 can instruct the search nodes 506 to execute the query at once. In certain embodiments, the search manager 514 can assign a first group of buckets for searching, and dynamically assign additional groups of buckets to search nodes 506 depending on which search nodes 506 complete their searching first or based on an updated status of the search nodes 506, etc.
- FIG. 15 is a flow diagram illustrative of an embodiment of a routine 1500 implemented by the query system 214 to execute a query.
- routine 1500 can be implemented by one or more computing devices/components that are associated with the data intake and query system 108, such as, but not limited to, the query system manager 502, the search head 504, the search master 512, the search manager 514, the search nodes 506, etc.
- the query system manager 502 the search head 504
- search master 512 the search manager 514
- search nodes 506 search nodes
- the search manager 514 receives a query, as described in greater detail herein at least with reference to block 1402 of FIG. 14.
- the search manager 514 identifies search nodes to execute the query, as described in greater detail herein at least with reference to block 1404 of FIG. 14. However, it will be noted, that in certain embodiments, the search nodes 506 may not be containerized.
- the search manager 514 identifies buckets to query.
- the search manager 514 can consult the data store catalog 220 to identify buckets to be searched.
- the search manager 514 can use metadata of the buckets stored in common storage 216 to identify the buckets for the query. For example, the search manager 514 can compare a tenant identifier and/or partition identifier associated with the query with the tenant identifier and/or partition identifier of the buckets. The search manager 514 can exclude buckets that have a tenant identifier and/or partition identifier that does not match the tenant identifier and/or partition identifier associated with the query.
- the search manager can compare a time range associate with the query with the time range associated with the buckets in common storage 216. Based on the comparison, the search manager 514 can identify buckets that satisfy the time range associated with the query (e.g., at least partly overlap with the time range from the query).
- the search manager 514 executes the query. As described herein, at least with reference to 1406 of FIG. 14, in some embodiments, as part of executing the query, the search manager 514 can process the search query, identify tasks for it to complete and tasks for the search nodes 506, generate instructions or sub-queries for the search nodes 506 and instruct the search nodes 506 to execute the query. Further, the search manager 514 can aggregate the results from the search nodes 506 and perform one or more transformations on the data.
- the search manager 514 can map the search nodes 506 to certain data or buckets for the search according to a search node mapping policy. Based on the search node mapping policy, search manager 514 can instruct the search nodes to search the buckets to which they are mapped. Further, as described herein, in some cases, the search node mapping policy can indicate that the search manager 514 is to use a hashing algorithm, previous assignment, network architecture, cache information, etc., to map the search nodes 506 to the buckets. [00453] As another example, the routine 1500 can include storing the search results in the accelerated data store 222. Furthermore, as described herein, the search nodes 506 can store buckets from common storage 216 to a local or shared data store for searching, etc.
- search manager 514 can identify search nodes to execute the query and identify bucket for the query concurrently or in any order.
- FIG. 16 is a flow diagram illustrative of an embodiment of a routine 1600 implemented by the query system 214 to identify buckets for query execution.
- routine 1600 can be implemented by one or more computing devices/components that are associated with the data intake and query system 108, such as, but not limited to, the query system manager 502, the search head 504, the search master 512, the search manager 514, the search nodes 506, etc.
- the query system manager 502 the search head 504
- search master 512 the search manager 514
- search nodes 506 search nodes
- the data intake and query system 108 maintains a catalog of bucket in common storage 216.
- the catalog can also be referred to as the data store catalog 220, and can include information about the buckets in common storage 216, such as, but not limited to, location information, metadata fields, tenant and partition information, time range information, etc.
- the data store catalog 220 can be kept up-to-date based on information received from the indexing system 212 as the indexing system 212 processes and stores data in the common storage 216.
- the search manager 514 receives a query, as described in greater detail herein at least with reference to block 1402 of FIG. 14.
- the search manager 514 identifies buckets to be searched as part of the query using the data store catalog 220.
- the search manager 514 can use the data store catalog 220 to filter the universe of buckets in the common storage 216 to buckets that include data that satisfies at least a portion of the query. For example, if a query includes a time range of 4/23/18 from 03:30:50 to 04:53:32, the search manager 514 can use the time range information in the data store catalog to identify buckets with a time range that overlaps with the time range provided in the query.
- the search manager 514 can use the information in the data store catalog to identify buckets that satisfy the time range and are associated with the _main partition. Accordingly, depending on the information in the query and the information stored in the data store catalog 220 about the buckets, the search manager 514 can reduce the number of buckets to be searched. In this way, the data store catalog 220 can reduce search time and the processing resources used to execute a query.
- the search manager 514 executes the query, as described in greater detail herein at least with reference to block 1508 of FIG. 15.
- the search manager 514 can identify and map search nodes 506 to the buckets for searching or store the search results in the accelerated data store 222.
- the search nodes 506 can store buckets from common storage 216 to a local or shared data store for searching, etc.
- the various blocks described herein with reference to FIG. 15 can be implemented in a variety of orders, or implemented concurrently.
- FIG. 17 is a flow diagram illustrative of an embodiment of a routine 1700 implemented by the query system 214 to identify search nodes for query execution.
- routine 1700 can be implemented by one or more computing devices/components that are associated with the data intake and query system 108, such as, but not limited to, the query system manager 502, the search head 504, the search master 512, the search manager 514, the search nodes 506, etc.
- the query system manager 502 the search head 504
- search master 512 the search manager 514
- search nodes 506 search nodes
- the query system 214 maintains a catalog of instantiated search nodes 506.
- the catalog can also be referred to as the search node catalog 510, and can include information about the search nodes 506, such as, but not limited to, availability, utilization, responsiveness, network architecture, etc.
- the search node catalog 510 can be kept up-to-date based on information received by the search node monitor 508 from the search nodes 506.
- the search manager 514 receives a query, as described in greater detail herein at least with reference to block 1402 of FIG. 14.
- the search manager 514 identifies available search nodes using the search node catalog 220.
- the search manager 514 instructs the search nodes 506 to execute the query, as described in greater detail herein at least with reference to block 1406 of FIG. 14 and block 1508 of FIG. 15.
- FIG. 18 is a flow diagram illustrative of an embodiment of a routine 1800 implemented by the query system 214 to hash bucket identifiers for query execution.
- routine 1800 can be implemented by one or more computing devices/components that are associated with the data intake and query system 108, such as, but not limited to, the query system manager 502, the search head 504, the search master 512, the search manager 514, the search nodes 506, etc.
- the query system manager 502 the search head 504, the search master 512, the search manager 514, the search nodes 506, etc.
- the following illustrative embodiment should not be construed as limiting.
- the search manager 514 receives a query, as described in greater detail herein at least with reference to block 1402 of FIG. 14.
- the search manager 514 identifies bucket identifiers associated with buckets to be searched as part of the query.
- the bucket identifiers can correspond to an alphanumeric identifier or other identifier that can be used to uniquely identify the bucket from other buckets stored in common storage 216.
- the unique identifier may incorporate one or more portions of a tenant identifier, partition identifier, or time range of the bucket or a random or sequential (e.g., based on time of storage, creation, etc.) alphanumeric string, etc.
- the search manager 514 can parse the query to identify buckets to be searched.
- the search manager 514 can identify buckets to be searched and an associated bucket identifier based on metadata of the buckets and/or using a data store catalog 220. However, it will be understood that the search manager 514 can use a variety of techniques to identify buckets to be searched.
- the search manager 514 performs a hash function on the bucket identifiers.
- the search manager can, in some embodiments, use the output of the hash function to identify a search node 506 to search the bucket. For example, as a non-limiting example, consider a scenario in which a bucket identifier is 4149 and the search manager 514 identified ten search nodes to process the query. The search manager 514 could perform a modulo ten operation on the bucket identifier to determine which search node 506 is to search the bucket.
- the search manager 514 would assign the ninth search node 506 to search the bucket, e.g., because the value 4149 modulo ten is 9, so the bucket having the identifier 4149 is assigned to the ninth search node.
- the search manager can use a consistent hash to increase the likelihood that the same search node 506 is repeatedly assigned to the same bucket for searching. In this way, the search manager 514 can increase the likelihood that the bucket to be searched is already located in a local or shared data store of the search node 506, and reduce the likelihood that the bucket will be downloaded from common storage 216.
- the search manager can use a variety of techniques to map the bucket to a search node 506 according to a search node mapping policy. For example, the search manager 514 can use previous assignments, network architecture, etc., to assign buckets to search nodes 506 according to the search node mapping policy.
- the search manager 514 instructs the search nodes 506 to execute the query, as described in greater detail herein at least with reference to block 1508 of FIG. 15.
- FIG. 19 is a flow diagram illustrative of an embodiment of a routine 1900 implemented by a search node 506 to execute a search on a bucket.
- a routine 1900 implemented by a search node 506 to execute a search on a bucket.
- downloading and searching a bucket it will be understood that this can refer to downloading and searching one or more files associated within a bucket and does not necessarily refer to downloading all files associated with the bucket.
- routine 1900 can be implemented by one or more computing devices/components that are associated with the data intake and query system 108, such as, but not limited to, the query system manager 502, the search head 504, the search master 512, search manager 514, cache manager 516, etc.
- the query system manager 502 the search head 504
- the search master 512 search manager 514
- cache manager 516 the search master 512
- routine 1900 can be implemented by one or more computing devices/components that are associated with the data intake and query system 108, such as, but not limited to, the query system manager 502, the search head 504, the search master 512, search manager 514, cache manager 516, etc.
- the following illustrative embodiment should not be construed as limiting.
- the search node 506 receives instructions for a query or sub-query.
- a search manager 514 can receive and parse a query to determine the tasks to be assigned to the search nodes 506, such as, but not limited to, the searching of one or more buckets in common storage 216, etc.
- the search node 506 can parse the instructions and identify the buckets that are to be searched. In some cases, the search node 506 can determine that a bucket that is to be searched is not located in the search nodes local or shared data store.
- the search node 506 obtains the bucket from common storage 216.
- the search node 506 obtains the bucket from common storage 216 in conjunction with a cache manager 516.
- the search node 506 can request the cache manager 516 to identify the location of the bucket.
- the cache manager 516 can review the data stored in the local or shared data store for the bucket. If the cache manager 516 cannot locate the bucket in the local or shared data store, it can inform the search node 506 that the bucket is not stored locally and that it will be retrieved from common storage 216.
- the cache manager 516 can download a portion of the bucket (e.g., one or more files) and provide the portion of the bucket to the search node 506 as part of informing the search node 506 that the bucket is not found locally.
- the search node 506 can use the downloaded portion of the bucket to identify any other portions of the bucket that are to be retrieved from common storage 216.
- the search node 506 can retrieve all or portions of the bucket from common storage 216 and store the retrieved portions to a local or shared data store.
- the search node 506 executes the search on the portions of the bucket stored in the local data store.
- the search node 506 can review one or more files of the bucket to identify data that satisfies the query.
- the search nodes 506 searches an inverted index to identify the data.
- the search node 506 searches the raw machine data, uses one or more configuration files, regex rules, and/or late binding schema to identify data in the bucket that satisfies the query.
- routine 1900 includes blocks for requesting a cache manager 516 to search for the bucket in the local or shared storage, and a block for informing the search node 506 that the requested bucket is not available in the local or shared data store.
- routine 1900 can include performing one or more transformations on the data, and providing partial search results to a search manager 514, etc.
- various blocks described herein with reference to FIG. 19 can be implemented in a variety of orders, or implemented concurrently.
- FIG. 20 is a flow diagram illustrative of an embodiment of a routine 2000 implemented by the query system 212 to store search results.
- routine 2000 can be implemented by one or more computing devices/components that are associated with the data intake and query system 108, such as, but not limited to, the query system manager 502, the search head 504, the search master 512, the search nodes 506, etc.
- the query system manager 502 the search head 504, the search master 512, the search nodes 506, etc.
- the following illustrative embodiment should not be construed as limiting.
- the search manager 514 receives a query, and at block 2004, the search manager 514 executes the query, as described in greater detail herein at least with reference to block 1508 of FIG. 15.
- the search manager 514 can identify buckets for searching assign the buckets to search nodes 506, and instruct the search nodes 506 to search the buckets.
- the search manager can receive partial results from each of the buckets, and perform one or more transformations on the received data.
- the search manager 514 stores the results in the accelerated data store 222.
- the results can be combined with results previously stored in the accelerated data store 222 and/or can be stored for combination with results to be obtained later in time.
- the search manager 514 can receive queries and determine that at least a portion of the results are stored in the accelerated data store 222.
- the search manager 514 can generate instructions for the search nodes 506 to obtain results to the query that are not stored in the accelerated data store 222, combine the results in the accelerated data store 222 with results obtained by the search nodes 506, and provide the aggregated search results to the client device 204, or store the aggregated search results in the accelerated data store 222 for further aggregation.
- the search manager 514 can reduce the search time and computing resources used for future searches that rely on the query results.
- the search manager 514 can consult a data store catalog 220 to identify buckets, consult a search node catalog 510 to identify available search nodes, map buckets to search nodes 506, etc. Further, in some cases, the search nodes 506 can retrieve buckets from common storage 216.
- the various blocks described herein with reference to FIG. 20 can be implemented in a variety of orders, or implemented concurrently.
- FIG. 21 A is a flow diagram of an example method that illustrates how a data intake and query system 108 processes, indexes, and stores data received from data sources 202, in accordance with example embodiments.
- the data flow illustrated in FIG. 21 A is provided for illustrative purposes only; it will be understood that one or more of the steps of the processes illustrated in FIG. 21 A may be removed or that the ordering of the steps may be changed.
- one or more particular system components are described in the context of performing various operations during each of the data flow stages.
- the intake system 210 is described as receiving and processing machine data during an input phase; the indexing system 212 is described as parsing and indexing machine data during parsing and indexing phases; and a query system 214 is described as performing a search query during a search phase.
- the intake system 210 is described as receiving and processing machine data during an input phase; the indexing system 212 is described as parsing and indexing machine data during parsing and indexing phases; and a query system 214 is described as performing a search query during a search phase.
- other system arrangements and distributions of the processing steps across system components may be used.
- the intake system 210 receives data from an input source, such as a data source 202 shown in Fig. 2.
- the intake system 210 initially may receive the data as a raw data stream generated by the input source.
- the intake system 210 may receive a data stream from a log file generated by an application server, from a stream of network data from a network device, or from any other source of data.
- the intake system 210 receives the raw data and may segment the data stream into messages, possibly of a uniform data size, to facilitate subsequent processing steps.
- the intake system 210 may thereafter process the messages in accordance with one or more rules, as discussed above for example with reference to FIGS. 6 and 7, to conduct preliminary processing of the data.
- the processing conducted by the intake system 210 may be used to indicate one or more metadata fields applicable to each message.
- the intake system 210 may include metadata fields within the messages, or publish the messages to topics indicative of a metadata field. These metadata fields may, for example, provide information related to a message as a whole and may apply to each event that is subsequently derived from the data in the message.
- the metadata fields may include separate fields specifying each of a host, a source, and a source type related to the message.
- a host field may contain a value identifying a host name or IP address of a device that generated the data.
- a source field may contain a value identifying a source of the data, such as a pathname of a file or a protocol and port related to received network data.
- a source type field may contain a value specifying a particular source type label for the data. Additional metadata fields may also be included during the input phase, such as a character encoding of the data, if known, and possibly other values that provide information relevant to later processing steps.
- the intake system 210 publishes the data as messages on an output ingestion buffer 310.
- other components of the data intake and query system 108 may be configured to subscribe to various topics on the output ingestion buffer 310, thus receiving the data of the messages when published to the buffer 310.
- the indexing system 212 receives messages from the intake system 210 (e.g., by obtaining the messages from the output ingestion buffer 310) and parses the data of the message to organize the data into events.
- the indexing system 212 may determine a source type associated with each message (e.g., by extracting a source type label from the metadata fields associated with the message, etc.) and refer to a source type configuration corresponding to the identified source type.
- the source type definition may include one or more properties that indicate to the indexing system 212 to automatically determine the boundaries within the received data that indicate the portions of machine data for events.
- these properties may include regular expression-based rules or delimiter rules where, for example, event boundaries may be indicated by predefined characters or character strings. These predefined characters may include punctuation marks or other special characters including, for example, carriage returns, tabs, spaces, line breaks, etc. If a source type for the data is unknown to the indexing system 212, the indexing system 212 may infer a source type for the data by examining the structure of the data. Then, the indexing system 212 can apply an inferred source type definition to the data to create the events. [00487] At block 2108, the indexing system 212 determines a timestamp for each event.
- an indexing system 212 may again refer to a source type definition associated with the data to locate one or more properties that indicate instructions for determining a timestamp for each event.
- the properties may, for example, instruct the indexing system 212 to extract a time value from a portion of data for the event, to interpolate time values based on timestamps associated with temporally proximate events, to create a timestamp based on a time the portion of machine data was received or generated, to use the timestamp of a previous event, or use any other rules for determining timestamps.
- the indexing system 212 associates with each event one or more metadata fields including a field containing the timestamp determined for the event.
- a timestamp may be included in the metadata fields.
- These metadata fields may include any number of “default fields” that are associated with all events, and may also include one more custom fields as defined by a user. Similar to the metadata fields associated with the data blocks at block 2104, the default metadata fields associated with each event may include a host, source, and source type field including or in addition to a field storing the timestamp.
- the indexing system 212 may optionally apply one or more transformations to data included in the events created at block 2106.
- transformations can include removing a portion of an event (e.g., a portion used to define event boundaries, extraneous characters from the event, other extraneous text, etc.), masking a portion of an event (e.g., masking a credit card number), removing redundant portions of an event, etc.
- the transformations applied to events may, for example, be specified in one or more configuration files and referenced by one or more source type definitions.
- FIG. 21C illustrates an illustrative example of how machine data can be stored in a data store in accordance with various disclosed embodiments.
- machine data can be stored in a flat file in a corresponding bucket with an associated index file, such as a time series index or “TSIDX.”
- TSIDX time series index
- machine data and associated metadata can be stored in a compressed or encrypted formatted.
- the machine data can be stored with or be associated with data that describes the compression or encryption scheme with which the machine data is stored. The information about the compression or encryption scheme can be used to decompress or decrypt the machine data, and any metadata with which it is stored, at search time.
- certain metadata e.g., host 2136, source 2137, source type 2138 and timestamps 2135 can be generated for each event, and associated with a corresponding portion of machine data 2139 when storing the event data in a data store, e.g., data store 212.
- a data store e.g., data store 212.
- Any of the metadata can be extracted from the corresponding machine data, or supplied or defined by an entity, such as a user or computer system.
- the metadata fields can become part of or stored with the event. Note that while the time-stamp metadata field can be extracted from the raw data of each event, the values for the other metadata fields may be determined by the indexing system 212 or indexing node 404 based on information it receives pertaining to the source of the data separate from the machine data.
- the machine data within an event can be maintained in its original condition.
- the portion of machine data included in an event is unprocessed or otherwise unaltered, it is referred to herein as a portion of raw machine data.
- the port of machine data in an event can be processed or otherwise altered.
- all the raw machine data contained in an event can be preserved and saved in its original form.
- the data store in which the event records are stored is sometimes referred to as a “raw record data store.”
- the raw record data store contains a record of the raw event data tagged with the various default fields.
- the first three rows of the table represent events 2131, 2132, and 2133 and are related to a server access log that records requests from multiple clients processed by a server, as indicated by entry of “access.log” in the source column 2136.
- each of the events 2131-2133 is associated with a discrete request made from a client device.
- the raw machine data generated by the server and extracted from a server access log can include the IP address of the client 2140, the user id of the person requesting the document 2141, the time the server finished processing the request 2142, the request line from the client 2143, the status code returned by the server to the client 2145, the size of the object returned to the client (in this case, the gif file requested by the client) 2146 and the time spent to serve the request in microseconds 2144.
- all the raw machine data retrieved from the server access log is retained and stored as part of the corresponding events, 2131-2133 in the data store.
- Event 2134 is associated with an entry in a server error log, as indicated by “error.log” in the source column 2137 that records errors that the server encountered when processing a client request. Similar to the events related to the server access log, all the raw machine data in the error log file pertaining to event 2134 can be preserved and stored as part of the event 2134.
- the indexing system 212 can optionally generate a keyword index to facilitate fast keyword searching for events.
- the indexing system 212 identifies a set of keywords in each event.
- the indexing system 212 includes the identified keywords in an index, which associates each stored keyword with reference pointers to events containing that keyword (or to locations within events where that keyword is located, other location identifiers, etc.).
- the query system 214 can access the keyword index to quickly identify events containing the keyword.
- the keyword index may include entries for field name-value pairs found in events, where a field name- value pair can include a pair of keywords connected by a symbol, such as an equals sign or colon. This way, events containing these field name-value pairs can be quickly located.
- the indexing system 212 stores the events with an associated timestamp in a local data store 212 and/or common storage 216. Timestamps enable a user to search for events based on a time range.
- the stored events are organized into “buckets,” where each bucket stores events associated with a specific time range based on the timestamps associated with each event. This improves time-based searching, as well as allows for events with recent timestamps, which may have a higher likelihood of being accessed, to be stored in a faster memory to facilitate faster retrieval.
- buckets containing the most recent events can be stored in flash memory rather than on a hard disk.
- each bucket may be associated with an identifier, a time range, and a size constraint.
- the indexing system 212 may be responsible for storing the events contained in various data stores 218 of common storage 216. By distributing events among the data stores in common storage 216, the query system 214 can analyze events for a query in parallel. For example, using map- reduce techniques, each search node 506 can return partial responses for a subset of events to a search head that combines the results to produce an answer for the query. By storing events in buckets for specific time ranges, the indexing system 212 may further optimize the data retrieval process by enabling search nodes 506 to search buckets corresponding to time ranges that are relevant to a query.
- each indexing node 404 (e.g., the indexer 410 or data store 412) of the indexing system 212 has a home directory and a cold directory.
- the home directory stores hot buckets and warm buckets, and the cold directory stores cold buckets.
- a hot bucket is a bucket that is capable of receiving and storing events.
- a warm bucket is a bucket that can no longer receive events for storage but has not yet been moved to the cold directory.
- a cold bucket is a bucket that can no longer receive events and may be a bucket that was previously stored in the home directory.
- the home directory may be stored in faster memory, such as flash memory, as events may be actively written to the home directory, and the home directory may typically store events that are more frequently searched and thus are accessed more frequently.
- the cold directory may be stored in slower and/or larger memory, such as a hard disk, as events are no longer being written to the cold directory, and the cold directory may typically store events that are not as frequently searched and thus are accessed less frequently.
- an indexing node 404 may also have a quarantine bucket that contains events having potentially inaccurate information, such as an incorrect time stamp associated with the event or a time stamp that appears to be an unreasonable time stamp for the corresponding event.
- the quarantine bucket may have events from any time range; as such, the quarantine bucket may always be searched at search time.
- an indexing node 404 may store old, archived data in a frozen bucket that is not capable of being searched at search time.
- a frozen bucket may be stored in slower and/or larger memory, such as a hard disk, and may be stored in offline and/or remote storage.
- an indexing node 404 may not include a cold directory and/or cold or frozen buckets. For example, as warm buckets and/or merged buckets are copied to common storage 216, they can be deleted from the indexing node 404.
- one or more data stores 218 of the common storage 216 can include a home directory that includes warm buckets copied from the indexing nodes 404 and a cold directory of cold or frozen buckets as described above.
- events and buckets can also be replicated across different indexing nodes 404 and data stores 218 of the common storage 216.
- FIG. 21B is a block diagram of an example data store 2101 that includes a directory for each index (or partition) that contains a portion of data stored in the data store 2101.
- FIG. 21B further illustrates details of an embodiment of an inverted index 2107B and an event reference array 2115 associated with inverted index 2107B.
- the data store 2101 can correspond to a data store 218 that stores events in common storage 216, a data store 412 associated with an indexing node 404, or a data store associated with a search peer 506.
- the data store 2101 includes a _main directory 2103 associated with a _main partition and a _test directory 2105 associated with a _test partition.
- the data store 2101 can include fewer or more directories.
- multiple indexes can share a single directory or all indexes can share a common directory.
- the data store 2101 can be implemented as multiple data stores storing different portions of the information shown in FIG. 2 IB.
- a single index or partition can span multiple directories or multiple data stores, and can be indexed or searched by multiple search nodes 506.
- the data store 2101 can include directories for each tenant and sub-directories for each partition of each tenant, or vice versa. Accordingly, the directories 2101 and 2103 illustrated in FIG. 2 IB can, in certain embodiments, correspond to sub-directories of a tenant or include sub-directories for different tenants.
- the partition- specific directories 2103 and 2105 include inverted indexes 2107 A, 2107B and 2109 A, 2109B, respectively.
- the inverted indexes 2107A...2107B, and 2109A...2109B can be keyword indexes or field-value pair indexes described herein and can include less or more information than depicted in FIG. 2 IB.
- the inverted index 2107A...2107B, and 2109A...2109B can correspond to a distinct time-series bucket stored in common storage 216, a search node 506, or an indexing node 404 and that contains events corresponding to the relevant partition (e.g., _main partition, _test partition).
- each inverted index can correspond to a particular range of time for a partition.
- Additional files, such as high performance indexes for each time-series bucket of a partition can also be stored in the same directory as the inverted indexes 2107A...2107B, and 2109A...2109B.
- inverted index 2107A...2107B, and 2109A...2109B can correspond to multiple time- series buckets or inverted indexes 2107A...2107B, and 2109A...2109B can correspond to a single time- series bucket.
- Each inverted index 2107A...2107B, and 2109A...2109B can include one or more entries, such as keyword (or token) entries or field-value pair entries. Furthermore, in certain embodiments, the inverted indexes 2107A...2107B, and 2109A...2109B can include additional information, such as a time range 2123 associated with the inverted index or an partition identifier 2125 identifying the partition associated with the inverted index 2107A...2107B, and 2109A...2109B. However, each inverted index 2107A...2107B, and 2109A...2109B can include less or more information than depicted.
- Token entries can include a token 2111A (e.g., “error,” “itemID,” etc.) and event references 211 IB indicative of events that include the token.
- a token 2111A e.g., “error,” “itemID,” etc.
- event references 211 IB indicative of events that include the token.
- the corresponding token entry includes the token “error” and an event reference, or unique identifier, for each event stored in the corresponding timeseries bucket that includes the token “error.”
- the error token entry includes the identifiers 3, 5, 6, 8, 11, and 12 corresponding to events located in the time-series bucket associated with the inverted index 2107B that is stored in common storage 216, a search node 506, or an indexing node 404 and is associated with the partition _main 2103.
- some token entries can be default entries, automatically determined entries, or user specified entries.
- the indexing system 212 can identify each word or string in an event as a distinct token and generate a token entry for the identified word or string.
- the indexing system 212 can identify the beginning and ending of tokens based on punctuation, spaces, as described in greater detail herein.
- the indexing system 212 can rely on user input or a configuration file to identify tokens for token entries 2111, etc. It will be understood that any combination of token entries can be included as a default, automatically determined, or included based on user-specified criteria.
- field-value pair entries such as field-value pair entries 2113 shown in inverted index 2107B, can include a field-value pair 2113A and event references 2113B indicative of events that include a field value that corresponds to the field-value pair.
- a field-value pair entry can include the field-value pair sourcetype: :sendmail and a unique identifier, or event reference, for each event stored in the corresponding time-series bucket that includes a sendmail sourcetype.
- the field-value pair entries 2113 can be default entries, automatically determined entries, or user specified entries.
- the field-value pair entries for the fields host, source, sourcetype can be included in the inverted indexes 2107A...2107B, and 2109 A ...2109B as a default.
- all of the inverted indexes 2107 A ...2107B , and 2109 A ...2109B can include field-value pair entries for the fields host, source, sourcetype.
- the field-value pair entries for the IP_address field can be user specified and may only appear in the inverted index 2107B based on user- specified criteria.
- the indexing system 212 can automatically identify field-value pairs and create fieldvalue pair entries. For example, based on the indexing system’s 212 review of events, it can identify IP_address as a field in each event and add the IP_address field-value pair entries to the inverted index 2107B. It will be understood that any combination of field-value pair entries can be included as a default, automatically determined, or included based on user- specified criteria.
- Each unique identifier 2117, or event reference can correspond to a unique event located in the time series bucket. However, the same event reference can be located in multiple entries. For example if an event has a sourcetype splunkd, host wwwl and token “warning,” then the unique identifier for the event will appear in the field-value pair entries sourcetype:: splunkd and host:: wwwl, as well as the token entry “warning.” With reference to the illustrated embodiment of FIG. 2 IB and the event that corresponds to the event reference 3, the event reference 3 is found in the field-value pair entries 2113 host::hostA, source: :sourceB, sourcetype: :sourcetypeA, and
- IP_address::91.205.189.15 indicating that the event corresponding to the event references is from hostA, sourceB, of sourcetypeA, and includes 91.205.189.15 in the event data.
- the unique identifier is located in only one field-value pair entry for a particular field.
- the inverted index may include four sourcetype field-value pair entries corresponding to four different sourcetypes of the events stored in a bucket (e.g., sourcetypes: sendmail, splunkd, web_access, and web_service). Within those four sourcetype field-value pair entries, an identifier for a particular event may appear in only one of the field-value pair entries.
- the event references 2117 can be used to locate the events in the corresponding bucket.
- the inverted index can include, or be associated with, an event reference array 2115.
- the event reference array 2115 can include an array entry 2117 for each event reference in the inverted index 2107B.
- Each array entry 2117 can include location information 2119 of the event corresponding to the unique identifier (non-limiting example: seek address of the event), a timestamp 2121 associated with the event, or additional information regarding the event associated with the event reference, etc.
- the event reference 210 IB or unique identifiers can be listed in chronological order or the value of the event reference can be assigned based on chronological data, such as a timestamp associated with the event referenced by the event reference.
- the event reference 1 in the illustrated embodiment of FIG. 2 IB can correspond to the first-in-time event for the bucket, and the event reference 12 can correspond to the last-in-time event for the bucket.
- the event references can be listed in any order, such as reverse chronological order, ascending order, descending order, or some other order, etc. Further, the entries can be sorted.
- the entries can be sorted alphabetically (collectively or within a particular group), by entry origin (e.g., default, automatically generated, user-specified, etc.), by entry type (e.g., field-value pair entry, token entry, etc.), or chronologically by when added to the inverted index, etc.
- entry origin e.g., default, automatically generated, user-specified, etc.
- entry type e.g., field-value pair entry, token entry, etc.
- the entries are sorted first by entry type and then alphabetically.
- the query system 214 can receive filter criteria indicating data that is to be categorized and categorization criteria indicating how the data is to be categorized.
- Example filter criteria can include, but is not limited to, indexes (or partitions), hosts, sources, sourcetypes, time ranges, field identifier, tenant and/or user identifiers, keywords, etc.
- the query system 214 identifies relevant inverted indexes to be searched.
- the query system 214 can identify the inverted indexes stored in the directory corresponding to the particular partition as relevant inverted indexes. Other means can be used to identify inverted indexes associated with a partition of interest. For example, in some embodiments, the query system 214 can review an entry in the inverted indexes, such as a partition-value pair entry 2113 to determine if a particular inverted index is relevant. If the filter criteria does not identify any partition, then the query system 214 can identify all inverted indexes managed by the query system 214 as relevant inverted indexes.
- the query system 214 can identify inverted indexes corresponding to buckets that satisfy at least a portion of the time range as relevant inverted indexes. For example, if the time range is last hour then the query system 214 can identify all inverted indexes that correspond to buckets storing events associated with timestamps within the last hour as relevant inverted indexes.
- an index filter criterion specifying one or more partitions and a time range filter criterion specifying a particular time range can be used to identify a subset of inverted indexes within a particular directory (or otherwise associated with a particular partition) as relevant inverted indexes.
- the query system 214 can focus the processing to only a subset of the total number of inverted indexes in the data intake and query system 108.
- the query system 214 can review them using any additional filter criteria to identify events that satisfy the filter criteria. In some cases, using the known location of the directory in which the relevant inverted indexes are located, the query system 214 can determine that any events identified using the relevant inverted indexes satisfy an index filter criterion. For example, if the filter criteria includes a partition main, then the query system 214 can determine that any events identified using inverted indexes within the partition main directory (or otherwise associated with the partition main) satisfy the index filter criterion.
- the query system 214 can determine that that any events identified using a particular inverted index satisfies a time range filter criterion. For example, if a time range filter criterion is for the last hour and a particular inverted index corresponds to events within a time range of 50 minutes ago to 35 minutes ago, the query system 214 can determine that any events identified using the particular inverted index satisfy the time range filter criterion. Conversely, if the particular inverted index corresponds to events within a time range of 59 minutes ago to 62 minutes ago, the query system 214 can determine that some events identified using the particular inverted index may not satisfy the time range filter criterion.
- the query system 214 can identify event references (and therefore events) that satisfy the filter criteria. For example, if the token “error” is a filter criterion, the query system 214 can track all event references within the token entry “error.” Similarly, the query system 214 can identify other event references located in other token entries or field-value pair entries that match the filter criteria. The system can identify event references located in all of the entries identified by the filter criteria. For example, if the filter criteria include the token “error” and fieldvalue pair sourcetype: :web_ui, the query system 214 can track the event references found in both the token entry “error” and the field-value pair entry sourcetype: :web_ui.
- the system can identify event references located in at least one of the entries corresponding to the multiple values and in all other entries identified by the filter criteria.
- the query system 214 can determine that the events associated with the identified event references satisfy the filter criteria.
- the query system 214 can further consult a timestamp associated with the event reference to determine whether an event satisfies the filter criteria. For example, if an inverted index corresponds to a time range that is partially outside of a time range filter criterion, then the query system 214 can consult a timestamp associated with the event reference to determine whether the corresponding event satisfies the time range criterion. In some embodiments, to identify events that satisfy a time range, the query system 214 can review an array, such as the event reference array 2115 that identifies the time associated with the events. Furthermore, as mentioned above using the known location of the directory in which the relevant inverted indexes are located (or other partition identifier), the query system 214 can determine that any events identified using the relevant inverted indexes satisfy the index filter criterion.
- the query system 214 reviews an extraction rule.
- the filter criteria includes a field name that does not correspond to a fieldvalue pair entry in an inverted index
- the query system 214 can review an extraction rule, which may be located in a configuration file, to identify a field that corresponds to a field-value pair entry in the inverted index.
- the filter criteria includes a field name “sessionlD” and the query system 214 determines that at least one relevant inverted index does not include a field-value pair entry corresponding to the field name sessionlD, the query system 214 can review an extraction rule that identifies how the sessionlD field is to be extracted from a particular host, source, or sourcetype (implicitly identifying the particular host, source, or sourcetype that includes a sessionlD field). The query system 214 can replace the field name “sessionlD” in the filter criteria with the identified host, source, or sourcetype.
- the field name “sessionlD” may be associated with multiples hosts, sources, or sourcetypes, in which case, all identified hosts, sources, and sourcetypes can be added as filter criteria.
- the identified host, source, or sourcetype can replace or be appended to a filter criterion, or be excluded. For example, if the filter criteria includes a criterion for source SI and the “sessionlD” field is found in source S2, the source S2 can replace SI in the filter criteria, be appended such that the filter criteria includes source S 1 and source S2, or be excluded based on the presence of the filter criterion source SI.
- the query system 214 can then identify a field-value pair entry in the inverted index that includes a field value corresponding to the identity of the particular host, source, or sourcetype identified using the extraction rule.
- the query system 214 can categorize the results based on the categorization criteria.
- the categorization criteria can include categories for grouping the results, such as any combination of partition, source, sourcetype, or host, or other categories or fields as desired.
- the query system 214 can use the categorization criteria to identify categorization criteria- value pairs or categorization criteria values by which to categorize or group the results.
- the categorization criteria- value pairs can correspond to one or more field-value pair entries stored in a relevant inverted index, one or more partition-value pairs based on a directory in which the inverted index is located or an entry in the inverted index (or other means by which an inverted index can be associated with a partition), or other criteria-value pair that identifies a general category and a particular value for that category.
- the categorization criteria values can correspond to the value portion of the categorization criteria-value pair.
- the categorization criteria-value pairs can correspond to one or more field-value pair entries stored in the relevant inverted indexes.
- the categorization criteria-value pairs can correspond to field-value pair entries of host, source, and sourcetype (or other field-value pair entry as desired). For instance, if there are ten different hosts, four different sources, and five different sourcetypes for an inverted index, then the inverted index can include ten host fieldvalue pair entries, four source field-value pair entries, and five sourcetype field-value pair entries.
- the query system 214 can use the nineteen distinct field-value pair entries as categorization criteria-value pairs to group the results.
- the query system 214 can identify the location of the event references associated with the events that satisfy the filter criteria within the field-value pairs, and group the event references based on their location. As such, the query system 214 can identify the particular field value associated with the event corresponding to the event reference. For example, if the categorization criteria include host and sourcetype, the host field-value pair entries and sourcetype field-value pair entries can be used as categorization criteria-value pairs to identify the specific host and sourcetype associated with the events that satisfy the filter criteria.
- categorization criteria-value pairs can correspond to data other than the field- value pair entries in the relevant inverted indexes.
- the inverted indexes may not include partition field-value pair entries.
- the query system 214 can identify the categorization criteria-value pair associated with the partition based on the directory in which an inverted index is located, information in the inverted index, or other information that associates the inverted index with the partition, etc. As such a variety of methods can be used to identify the categorization criteria-value pairs from the categorization criteria.
- the query system 214 can generate groupings based on the events that satisfy the filter criteria.
- the categorization criteria includes a partition and sourcetype
- the groupings can correspond to events that are associated with each unique combination of partition and sourcetype. For instance, if there are three different partitions and two different sourcetypes associated with the identified events, then the six different groups can be formed, each with a unique partition value-sourcetype value combination.
- the query system 214 can generate up to thirty groups for the results that satisfy the filter criteria. Each group can be associated with a unique combination of categorization criteria-value pairs (e.g., unique combinations of partition value sourcetype value, and host value).
- the query system 214 can count the number of events associated with each group based on the number of events that meet the unique combination of categorization criteria for a particular group (or match the categorization criteria-value pairs for the particular group). With continued reference to the example above, the query system 214 can count the number of events that meet the unique combination of partition, sourcetype, and host for a particular group.
- the query system 214 such as the search head 504 can aggregate the groupings from the buckets, or search nodes 506, and provide the groupings for display. In some cases, the groups are displayed based on at least one of the host, source, sourcetype, or partition associated with the groupings. In some embodiments, the query system 214 can further display the groups based on display criteria, such as a display order or a sort order as described in greater detail above.
- a search node 506 of the query system 214 that is associated with the data store 2101 identifies _main directory 2103 and can ignore _test directory 2105 and any other partition-specific directories.
- the search node 506 determines that inverted index 2107B is a relevant index based on its location within the _main directory 2103 and the time range associated with it. For sake of simplicity in this example, the search node 506 determines that no other inverted indexes in the _main directory 2103, such as inverted index 2107A satisfy the time range criterion.
- the search node 506 reviews the token entries 2111 and the field-value pair entries 2113 to identify event references, or events, that satisfy all of the filter criteria.
- the search node 506 can review the error token entry and identify event references 3, 5, 6, 8, 11, 12, indicating that the term “error” is found in the corresponding events. Similarly, the search node 506 can identify event references 4, 5, 6, 8, 9, 10, 11 in the field-value pair entry sourcetype: :sourcetypeC and event references 2, 5, 6, 8, 10, 11 in the fieldvalue pair entry host::hostB. As the filter criteria did not include a source or an IP_address field-value pair, the search node 506 can ignore those field-value pair entries.
- the search node 506 can identify events (and corresponding event references) that satisfy the time range criterion using the event reference array 2115 (e.g., event references 2, 3, 4, 5, 6, 7, 8, 9, 10). Using the information obtained from the inverted index 2107B (including the event reference array 2115), the search node 506 can identify the event references that satisfy all of the filter criteria (e.g., event references 5, 6, 8).
- the search node 506 can group the event references using the received categorization criteria (source). In doing so, the search node 506 can determine that event references 5 and 6 are located in the field-value pair entry source: :sourceD (or have matching categorization criteria-value pairs) and event reference 8 is located in the field-value pair entry source: :sourceC. Accordingly, the search node 506 can generate a sourceC group having a count of one corresponding to reference 8 and a sourceD group having a count of two corresponding to references 5 and 6. This information can be communicated to the search head 504.
- the search head 504 can aggregate the results from the various search nodes 506 and display the groupings.
- the groupings can be displayed based at least in part on the categorization criteria, including at least one of host, source, sourcetype, or partition.
- the search node 506 can generate up to 24 groupings corresponding to the 24 different combinations of the categorization criteria-value pairs, including host (hostA, hostB), source (sourceA, sourceB, sourceC, sourceD), and sourcetype (sourcetypeA, sourcetypeB, sourcetypeC). However, as there are only twelve events identifiers in the illustrated embodiment and some fall into the same grouping, the search node 506 generates eight groups and counts as follows:
- Group 1 (hostA, sourceA, sourcetypeA): 1 (event reference 7)
- Group 2 (hostA, sourceA, sourcetypeB): 2 (event references 1, 12)
- Group 3 (hostA, sourceA, sourcetypeC): 1 (event reference 4)
- Group 4 (hostA, sourceB, sourcetypeA): 1 (event reference 3)
- Group 5 (hostA, sourceB, sourcetypeC): 1 (event reference 9)
- Group 6 (hostB, sourceC, sourcetypeA): 1 (event reference 2)
- Group 7 (hostB, sourceC, sourcetypeC): 2 (event references 8, 11)
- Group 8 (hostB, sourceD, sourcetypeC): 3 (event references 5, 6, 10)
- each group has a unique combination of categorization criteria-value pairs or categorization criteria values.
- the search node 506 communicates the groups to the search head 504 for aggregation with results received from other search nodes 506.
- the search node 506 can include the categorization criteria-value pairs for each group and the count.
- the search node 506 can include more or less information.
- the search node 506 can include the event references associated with each group and other identifying information, such as the search node 506 or inverted index used to identify the groups.
- Group 1 (hostA, sourceA, sourcetypeC): 1 (event reference 4)
- Group 3 (hostB, sourceD, sourcetypeC): 1 (event references 10)
- the search node 506 communicates the groups to the search head 504 for aggregation with results received from other search nodes 506.
- the search node 506 can review multiple inverted indexes associated with a partition or review the inverted indexes of multiple partitions, and categorize the data using any one or any combination of partition, host, source, sourcetype, or other category, as desired.
- the search node 506 can provide additional information regarding the group. For example, the search node 506 can perform a targeted search or sampling of the events that satisfy the filter criteria and the categorization criteria for the selected group, also referred to as the filter criteria corresponding to the group or filter criteria associated with the group.
- the search node 506 relies on the inverted index. For example, the search node 506 can identify the event references associated with the events that satisfy the filter criteria and the categorization criteria for the selected group and then use the event reference array 2115 to access some or all of the identified events. In some cases, the categorization criteria values or categorization criteria-value pairs associated with the group become part of the filter criteria for the review.
- the search node 506 identifies the event references associated with the group using the filter criteria and the categorization criteria for the group (e.g., categorization criteria values or categorization criteria-value pairs unique to the group). Together, the filter criteria and the categorization criteria for the group can be referred to as the filter criteria associated with the group. Using the filter criteria associated with the group, the search node 506 identifies event references 4, 5, 6, 8, 10, 11.
- the search node 506 can determine that it will analyze a sample of the events associated with the event references 4, 5, 6, 8, 10, 11.
- the sample can include analyzing event data associated with the event references 5, 8, 10.
- the search node 506 can use the event reference array 2115 to access the event data associated with the event references 5, 8, 10.
- the search node 506 can compile the relevant information and provide it to the search head 504 for aggregation with results from other search nodes. By identifying events and sampling event data using the inverted indexes, the search node can reduce the amount of actual data this is analyzed and the number of events that are accessed in order to generate the summary of the group and provide a response in less time.
- FIG. 22A is a flow diagram illustrating an embodiment of a routine implemented by the query system 214 for executing a query.
- a search head 504 receives a search query.
- the search head 504 analyzes the search query to determine what portion(s) of the query to delegate to search nodes 506 and what portions of the query to execute locally by the search head 504.
- the search head distributes the determined portions of the query to the appropriate search nodes 506.
- a search head cluster may take the place of an independent search head 504 where each search head 504 in the search head cluster coordinates with peer search heads 504 in the search head cluster to schedule jobs, replicate search results, update configurations, fulfill search requests, etc.
- the search head 504 (or each search head) consults with a search node catalog 510 that provides the search head with a list of search nodes 506 to which the search head can distribute the determined portions of the query.
- a search head 504 may communicate with the search node catalog 510 to discover the addresses of active search nodes 506.
- the search nodes 506 to which the query was distributed search data stores associated with them for events that are responsive to the query. To determine which events are responsive to the query, the search node 506 searches for events that match the criteria specified in the query. These criteria can include matching keywords or specific values for certain fields.
- the searching operations at block 2208 may use the late-binding schema to extract values for specified fields from events at the time the query is processed. In some embodiments, one or more rules for extracting field values may be specified as part of a source type definition in a configuration file.
- the search nodes 506 may then either send the relevant events back to the search head 504, or use the events to determine a partial result, and send the partial result back to the search head 504.
- the search head 504 combines the partial results and/or events received from the search nodes 506 to produce a final result for the query.
- the results of the query are indicative of performance or security of the IT environment and may help improve the performance of components in the IT environment.
- This final result may comprise different types of data depending on what the query requested.
- the results can include a listing of matching events returned by the query, or some type of visualization of the data from the returned events.
- the final result can include one or more calculated values derived from the matching events.
- the results generated by the system 108 can be returned to a client using different techniques. For example, one technique streams results or relevant events back to a client in real-time as they are identified. Another technique waits to report the results to the client until a complete set of results (which may include a set of relevant events or a result based on relevant events) is ready to return to the client. Yet another technique streams interim results or relevant events back to the client in real-time until a complete set of results is ready, and then returns the complete set of results to the client. In another technique, certain results are stored as “search jobs” and the client may retrieve the results by referring the search jobs.
- the search head 504 can also perform various operations to make the search more efficient. For example, before the search head 504 begins execution of a query, the search head 504 can determine a time range for the query and a set of common keywords that all matching events include. The search head 504 may then use these parameters to query the search nodes 506 to obtain a superset of the eventual results. Then, during a filtering stage, the search head 504 can perform field-extraction operations on the superset to produce a reduced set of search results. This speeds up queries, which may be particularly helpful for queries that are performed on a periodic basis.
- a pipelined command language is a language in which a set of inputs or data is operated on by a first command in a sequence of commands, and then subsequent commands in the order they are arranged in the sequence.
- Such commands can include any type of functionality for operating on data, such as retrieving, searching, filtering, aggregating, processing, transmitting, and the like.
- a query can thus be formulated in a pipelined command language and include any number of ordered or unordered commands for operating on data.
- Splunk Processing Language is an example of a pipelined command language in which a set of inputs or data is operated on by any number of commands in a particular sequence.
- a sequence of commands, or command sequence can be formulated such that the order in which the commands are arranged defines the order in which the commands are applied to a set of data or the results of an earlier executed command.
- a first command in a command sequence can operate to search or filter for specific data in particular set of data. The results of the first command can then be passed to another command listed later in the command sequence for further processing.
- a query can be formulated as a command sequence defined in a command line of a search UI.
- a query can be formulated as a sequence of SPL commands. Some or all of the SPL commands in the sequence of SPL commands can be separated from one another by a pipe symbol “I”.
- a set of data such as a set of events, can be operated on by a first SPL command in the sequence, and then a subsequent SPL command following a pipe symbol “I” after the first SPL command operates on the results produced by the first SPL command or other set of data, and so on for any additional SPL commands in the sequence.
- a query formulated using SPL comprises a series of consecutive commands that are delimited by pipe “I” characters.
- the pipe character indicates to the system that the output or result of one command (to the left of the pipe) should be used as the input for one of the subsequent commands (to the right of the pipe).
- This enables formulation of queries defined by a pipeline of sequenced commands that refines or enhances the data at each step along the pipeline until the desired results are attained.
- Splunk Processing Language SPL
- SPLUNK® ENTERPRISE system SPLUNK® ENTERPRISE system.
- a query can be formulated in many ways, a query can start with a search command and one or more corresponding search terms at the beginning of the pipeline.
- search terms can include any combination of keywords, phrases, times, dates, Boolean expressions, fieldname-field value pairs, etc. that specify which results should be obtained from an index.
- the results can then be passed as inputs into subsequent commands in a sequence of commands by using, for example, a pipe character.
- the subsequent commands in a sequence can include directives for additional processing of the results once it has been obtained from one or more indexes.
- commands may be used to filter unwanted information out of the results, extract more information, evaluate field values, calculate statistics, reorder the results, create an alert, create summary of the results, or perform some type of aggregation function.
- the summary can include a graph, chart, metric, or other visualization of the data.
- An aggregation function can include analysis or calculations to return an aggregate value, such as an average value, a sum, a maximum value, a root mean square, statistical values, and the like.
- a single query can include a search command and search term expressions, as well as data-analysis expressions.
- a command at the beginning of a query can perform a “filtering” step by retrieving a set of data based on a condition (e.g., records associated with server response times of less than 1 microsecond).
- the results of the filtering step can then be passed to a subsequent command in the pipeline that performs a “processing” step (e.g. calculation of an aggregate value related to the filtered events such as the average response time of servers with response times of less than 1 microsecond).
- the search command can allow events to be filtered by keyword as well as field value criteria.
- a search command can filter out all events containing the word “warning” or filter out all events where a field value associated with a field “clientip” is “10.0.1.2.”
- the results obtained or generated in response to a command in a query can be considered a set of results data.
- the set of results data can be passed from one command to another in any data format.
- the set of result data can be in the form of a dynamically created table.
- Each command in a particular query can redefine the shape of the table.
- an event retrieved from an index in response to a query can be considered a row with a column for each field value. Columns contain basic information about the data and also may contain data that has been dynamically extracted at search time.
- FIG. 22B provides a visual representation of the manner in which a pipelined command language or query operates in accordance with the disclosed embodiments.
- the query 2230 can be inputted by the user into a search.
- the query comprises a search, the results of which are piped to two commands (namely, command 1 and command 2) that follow the search step.
- Disk 2222 represents the event data in the raw record data store.
- a search step will precede other queries in the pipeline in order to generate a set of events at block 2240.
- the set of events at the head of the pipeline may be generating by a call to a pre-existing inverted index (as will be explained later).
- the set of events generated in the first part of the query may be piped to a query that searches the set of events for field- value pairs or for keywords.
- the second intermediate results table 2226 shows fewer columns, representing the result of the top command, “top user” which summarizes the events into a list of the top 10 users and displays the user, count, and percentage.
- the results of the prior stage can be pipelined to another stage where further filtering or processing of the data can be performed, e.g., preparing the data for display purposes, filtering the data based on a condition, performing a mathematical calculation with the data, etc.
- the “fields - percent” part of command 2230 removes the column that shows the percentage, thereby, leaving a final results table 2228 without a percentage column.
- SQL Structured Query Language
- SQL Structured Query Language
- the query system 214 allows users to search and visualize events generated from machine data received from homogenous data sources.
- the query system 214 also allows users to search and visualize events generated from machine data received from heterogeneous data sources.
- the query system 214 includes various components for processing a query, such as, but not limited to a query system manager 502, one or more search heads 504 having one or more search masters 512 and search managers 514, and one or more search nodes 506.
- a query language may be used to create a query, such as any suitable pipelined query language.
- Splunk Processing Language SPL
- SPL Splunk Processing Language
- SPL is a pipelined search language in which a set of inputs is operated on by a first command in a command line, and then a subsequent command following the pipe symbol “I” operates on the results produced by the first command, and so on for additional commands.
- Other query languages such as the Structured Query Language (“SQL”), can be used to create a query.
- SQL Structured Query Language
- a search head 504 can use extraction rules to extract values for fields in the events being searched.
- the search head 504 can obtain extraction rules that specify how to extract a value for fields from an event.
- Extraction rules can comprise regex rules that specify how to extract values for the fields corresponding to the extraction rules.
- the extraction rules may also include instructions for deriving a field value by performing a function on a character string or value retrieved by the extraction rule. For example, an extraction rule may truncate a character string or convert the character string into a different data format.
- the query itself can specify one or more extraction rules.
- the search head 504 can apply the extraction rules to events that it receives from search nodes 506.
- the search nodes 506 may apply the extraction rules to events in an associated data store or common storage 216.
- Extraction rules can be applied to all the events in a data store or common storage 216 or to a subset of the events that have been filtered based on some criteria (e.g., event time stamp values, etc.).
- Extraction rules can be used to extract one or more values for a field from events by parsing the portions of machine data in the events and examining the data for one or more patterns of characters, numbers, delimiters, etc., that indicate where the field begins and, optionally, ends.
- FIG. 23A is a diagram of an example scenario where a common customer identifier is found among log data received from three disparate data sources, in accordance with example embodiments.
- a user submits an order for merchandise using a vendor’s shopping application program 2301 running on the user’s system.
- the order was not delivered to the vendor’s server due to a resource exception at the destination server that is detected by the middleware code 2302.
- the user then sends a message to the customer support server 2303 to complain about the order failing to complete.
- the three systems 2301, 2302, and 2303 are disparate systems that do not have a common logging format.
- the order application 2301 sends log data 2304 to the data intake and query system 108 in one format
- the middleware code 2302 sends error log data 2305 in a second format
- the support server 2303 sends log data 2306 in a third format.
- the vendor can uniquely obtain an insight into user activity, user experience, and system behavior.
- the query system 214 allows the vendor’s administrator to search the log data from the three systems, thereby obtaining correlated information, such as the order number and corresponding customer ID number of the person placing the order.
- the system also allows the administrator to see a visualization of related events via a user interface.
- the administrator can query the query system 214 for customer ID field value matches across the log data from the three systems that are stored in common storage 216.
- the customer ID field value exists in the data gathered from the three systems, but the customer ID field value may be located in different areas of the data given differences in the architecture of the systems.
- the query system 214 requests events from the one or more data stores 218 to gather relevant events from the three systems.
- the search head 504 then applies extraction rules to the events in order to extract field values that it can correlate.
- the search head 504 may apply a different extraction rule to each set of events from each system when the event format differs among systems.
- the user interface can display to the administrator the events corresponding to the common customer ID field values 2307, 2308, and 2309, thereby providing the administrator with insight into a customer’s experience.
- query results can be returned to a client, a search head 504, or any other system component for further processing.
- query results may include a set of one or more events, a set of one or more values obtained from the events, a subset of the values, statistics calculated based on the values, a report containing the values, a visualization (e.g., a graph or chart) generated from the values, and the like.
- the query system 214 enables users to run queries against the stored data to retrieve events that meet criteria specified in a query, such as containing certain keywords or having specific values in defined fields.
- FIG. 23B illustrates the manner in which keyword searches and field searches are processed in accordance with disclosed embodiments.
- search bar 2310 that includes only keywords (also known as “tokens”), e.g., the keyword “error” or “warning”
- the query system 214 of the data intake and query system 108 can search for those keywords directly in the event data 2311 stored in the raw record data store.
- FIG. 23B only illustrates four events 2312, 2313, 2314, 2315
- the raw record data store (corresponding to data store 212 in FIG. 2) may contain records for millions of events.
- the indexing system 212 can optionally generate a keyword index to facilitate fast keyword searching for event data.
- the indexing system 212 can include the identified keywords in an index, which associates each stored keyword with reference pointers to events containing that keyword (or to locations within events where that keyword is located, other location identifiers, etc.).
- the query system 214 can access the keyword index to quickly identify events containing the keyword. For example, if the keyword “HTTP” was indexed by the indexing system 212 at index time, and the user searches for the keyword “HTTP,” the events 2312, 2313, and 2314, will be identified based on the results returned from the keyword index.
- the index contains reference pointers to the events containing the keyword, which allows for efficient retrieval of the relevant events from the raw record data store.
- the data intake and query system 108 may nevertheless be able to retrieve the events by searching the event data for the keyword in the raw record data store directly as shown in FIG. 23B. For example, if a user searches for the keyword “frank,” and the name “frank” has not been indexed at search time, the query system 214 can search the event data directly and return the first event 2312. Note that whether the keyword has been indexed at index time or search time or not, in both cases the raw data with the events 2311 is accessed from the raw data record store to service the keyword search.
- the index will contain a reference pointer that will allow for a more efficient retrieval of the event data from the data store. If the keyword has not been indexed, the query system 214 can search through the records in the data store to service the search.
- a user search will also include fields.
- the term “field” refers to a location in the event data containing one or more values for a specific data item. Often, a field is a value with a fixed, delimited position on a line, or a name and value pair, where there is a single value to each field name.
- a field can also be multivalued, that is, it can appear more than once in an event and have a different value for each appearance, e.g., email address fields. Fields are searchable by the field name or field name-value pairs. Some examples of fields are “clientip” for IP addresses accessing a web server, or the “From” and “To” fields in email addresses.
- the data intake and query system 108 advantageously allows for search time field extraction.
- fields can be extracted from the event data at search time using late-binding schema as opposed to at data ingestion time, which was a major limitation of the prior art systems.
- a search head 504 of the query system 214 can use extraction rules to extract values for the fields associated with a field or fields in the event data being searched.
- the search head 504 can obtain extraction rules that specify how to extract a value for certain fields from an event.
- Extraction rules can comprise regex rules that specify how to extract values for the relevant fields.
- the extraction rules may also include instructions for deriving a field value by performing a function on a character string or value retrieved by the extraction rule. For example, a transformation rule may truncate a character string, or convert the character string into a different data format.
- the query itself can specify one or more extraction rules.
- the data intake and query system 108 determines if the query references a “field.” For example, a query may request a list of events where the “clientip” field equals “127.0.0.1.” If the query itself does not specify an extraction rule and if the field is not a metadata field, e.g., time, host, source, source type, etc., then in order to determine an extraction rule, the query system 214 may, in one or more embodiments, need to locate configuration file 2316 during the execution of the search as shown in FIG. 23B.
- Configuration file 2316 may contain extraction rules for all the various fields that are not metadata fields, e.g., the “clientip” field.
- the extraction rules may be inserted into the configuration file in a variety of ways.
- the extraction rules can comprise regular expression rules that are manually entered in by the user. Regular expressions match patterns of characters in text and are used for extracting custom fields in text.
- a field extractor may be configured to automatically generate extraction rules for certain field values in the events when the events are being created, indexed, or stored, or possibly at a later time.
- a user may be able to dynamically create custom fields by highlighting portions of a sample event that should be extracted as fields using a graphical user interface. The system can then generate a regular expression that extracts those fields from similar events and store the regular expression as an extraction rule for the associated field in the configuration file 2316.
- the search head 504 can apply the extraction rules derived from configuration file 2316 to event data that it receives from search nodes 506.
- the search nodes 506 may apply the extraction rules from the configuration file to events in an associated data store or common storage 216. Extraction rules can be applied to all the events in a data store, or to a subset of the events that have been filtered based on some criteria (e.g., event time stamp values, etc.). Extraction rules can be used to extract one or more values for a field from events by parsing the event data and examining the event data for one or more patterns of characters, numbers, delimiters, etc., that indicate where the field begins and, optionally, ends.
- the extraction rule in configuration file 2316 will also need to define the type or set of events that the rule applies to. Because the raw record data store will contain events from multiple heterogeneous sources, multiple events may contain the same fields in different locations because of discrepancies in the format of the data generated by the various sources. Furthermore, certain events may not contain a particular field at all. For example, event 2315 also contains “clientip” field, however, the “clientip” field is in a different format from events 2312, 2313, and 2314.
- each extraction rule can pertain to only a particular type of event. If a particular field, e.g., “clientip” occurs in multiple types of events, each of those types of events can have its own corresponding extraction rule in the configuration file 2316 and each of the extraction rules would comprise a different regular expression to parse out the associated field value.
- the most common way to categorize events is by source type because events generated by a particular source can have the same format.
- the field extraction rules stored in configuration file 2316 perform search-time field extractions. For example, for a query that requests a list of events with source type “access_combined” where the “clientip” field equals “127.0.0.1,” the query system 214 can first locate the configuration file 2316 to retrieve extraction rule 2317 that allows it to extract values associated with the “clientip” field from the event data 2320 “where the source type is “access_combined.
- the query system 214 can then execute the field criteria by performing the compare operation to filter out the events where the “clientip” field equals “127.0.0.1.” In the example shown in FIG. 23B, the events 2312, 2313, and 2314 would be returned in response to the user query. In this manner, the query system 214 can service queries containing field criteria in addition to queries containing keyword criteria (as explained above).
- the configuration file 2316 can be created during indexing. It may either be manually created by the user or automatically generated with certain predetermined field extraction rules. As discussed above, the events may be distributed across several data stores in common storage 216, wherein various indexing nodes 404 may be responsible for storing the events in the common storage 216 and various search nodes 506 may be responsible for searching the events contained in common storage 216.
- the configuration file 2316 allows the record data store to be field searchable.
- the raw record data store can be searched using keywords as well as fields, wherein the fields are searchable name/value pairings that distinguish one event from another and can be defined in configuration file 2316 using extraction rules.
- a keyword search does not need the configuration file and can search the event data directly as shown in FIG. 23B.
- any events filtered out by performing a search-time field extraction using a configuration file 2316 can be further processed by directing the results of the filtering step to a processing step using a pipelined search language.
- a user can pipeline the results of the compare step to an aggregate function by asking the query system 214 to count the number of events where the “clientip” field equals “127.0.0.1.”
- FIG. 24A is an interface diagram of an example user interface for a search screen 2400, in accordance with example embodiments.
- Search screen 2400 includes a search bar 2402 that accepts user input in the form of a search string. It also includes a time range picker 2412 that enables the user to specify a time range for the search. For historical searches (e.g., searches based on a particular historical time range), the user can select a specific time range, or alternatively a relative time range, such as “today,” “yesterday” or “last week.” For real-time searches (e.g., searches whose results are based on data received in real-time), the user can select the size of a preceding time window to search for real-time events.
- Search screen 2400 also initially displays a “data summary” dialog as is illustrated in FIG. 24B that enables the user to select different sources for the events, such as by selecting specific hosts and log files.
- search screen 2400 in FIG. 24A can display the results through search results tabs 2404, wherein search results tabs 2404 includes: an “events tab” that displays various information about events returned by the search; a “statistics tab” that displays statistics about the search results; and a “visualization tab” that displays various visualizations of the search results.
- the events tab illustrated in FIG. 24A displays a timeline graph 2405 that graphically illustrates the number of events that occurred in one-hour intervals over the selected time range.
- the events tab also displays an events list 2408 that enables a user to view the machine data in each of the returned events.
- the events tab additionally displays a sidebar that is an interactive field picker 2406.
- the field picker 2406 may be displayed to a user in response to the search being executed and allows the user to further analyze the search results based on the fields in the events of the search results.
- the field picker 2406 includes field names that reference fields present in the events in the search results.
- the field picker may display any Selected Fields 2420 that a user has pre-selected for display (e.g., host, source, sourcetype) and may also display any Interesting Fields 2422 that the system determines may be interesting to the user based on pre-specified criteria (e.g., action, bytes, categoryid, clientip, date_hour, date_mday, date_minute, etc.).
- the field picker also provides an option to display field names for all the fields present in the events of the search results using the All Fields control 2424.
- Each field name in the field picker 2406 has a value type identifier to the left of the field name, such as value type identifier 2426.
- a value type identifier identifies the type of value for the respective field, such as an “a” for fields that include literal values for fields that include numerical values.
- Each field name in the field picker also has a unique value count to the right of the field name, such as unique value count 2428.
- the unique value count indicates the number of unique values for the respective field in the events of the search results.
- Each field name is selectable to view the events in the search results that have the field referenced by that field name. For example, a user can select the “host” field name, and the events shown in the events list 2408 will be updated with events in the search results that have the field that is reference by the field name “host.” 4.9. DATA MODELS
- a data model is a hierarchically structured search-time mapping of semantic knowledge about one or more datasets. It encodes the domain knowledge used to build a variety of specialized searches of those datasets. Those searches, in turn, can be used to generate reports.
- a data model is composed of one or more “objects” (or “data model objects”) that define or otherwise correspond to a specific set of data.
- An object is defined by constraints and attributes.
- An object’s constraints are search criteria that define the set of events to be operated on by running a search having that search criteria at the time the data model is selected.
- An object’s attributes are the set of fields to be exposed for operating on that set of events generated by the search criteria.
- Objects in data models can be arranged hierarchically in parent/child relationships. Each child object represents a subset of the dataset covered by its parent object.
- the top-level objects in data models are collectively referred to as "root objects.”
- Child objects have inheritance. Child objects inherit constraints and attributes from their parent objects and may have additional constraints and attributes of their own. Child objects provide a way of filtering events from parent objects. Because a child object may provide an additional constraint in addition to the constraints it has inherited from its parent object, the dataset it represents may be a subset of the dataset that its parent represents. For example, a first data model object may define a broad set of data pertaining to e-mail activity generally, and another data model object may define specific datasets within the broad dataset, such as a subset of the e-mail data pertaining specifically to e-mails sent.
- a user can simply select an “e-mail activity” data model object to access a dataset relating to e-mails generally (e.g., sent or received), or select an “e-mails sent” data model object (or data sub-model object) to access a dataset relating to e-mails sent.
- a data model object is defined by its constraints (e.g., a set of search criteria) and attributes (e.g., a set of fields)
- a data model object can be used to quickly search data to identify a set of events and to identify a set of fields to be associated with the set of events.
- an “e- mails sent” data model object may specify a search for events relating to e-mails that have been sent, and specify a set of fields that are associated with the events.
- a user can retrieve and use the “e- mails sent” data model object to quickly search source data for events relating to sent e-mails, and may be provided with a listing of the set of fields relevant to the events in a user interface screen.
- Examples of data models can include electronic mail, authentication, databases, intrusion detection, malware, application state, alerts, compute inventory, network sessions, network traffic, performance, audits, updates, vulnerabilities, etc.
- Data models and their objects can be designed by knowledge managers in an organization, and they can enable downstream users to quickly focus on a specific set of data.
- a user iteratively applies a model development tool (not shown in Fig. 24A) to prepare a query that defines a subset of events and assigns an object name to that subset.
- a child subset is created by further limiting a query that generated a parent subset.
- Data definitions in associated schemas can be taken from the common information model (CIM) or can be devised for a particular schema and optionally added to the CIM.
- Child objects inherit fields from parents and can include fields not present in parents.
- a model developer can select fewer extraction rules than are available for the sources returned by the query that defines events belonging to a model. Selecting a limited set of extraction rules can be a tool for simplifying and focusing the data model, while allowing a user flexibility to explore the data subset.
- Development of a data model is further explained in U.S. Patent Nos. 8,788,525 and 8,788,526, both entitled “DATA MODEL FOR MACHINE DATA FOR SEMANTIC SEARCH”, both issued on 22 July 2014, U.S. Patent No.
- a data model can also include reports.
- One or more report formats can be associated with a particular data model and be made available to run against the data model.
- a user can use child objects to design reports with object datasets that already have extraneous data pre-filtered out.
- the data intake and query system 108 provides the user with the ability to produce reports (e.g., a table, chart, visualization, etc.) without having to enter SPL, SQL, or other query language terms into a search screen.
- Data models are used as the basis for the search feature.
- Data models may be selected in a report generation interface.
- the report generator supports drag-and-drop organization of fields to be summarized in a report. When a model is selected, the fields with available extraction rules are made available for use in the report.
- the user may refine and/or filter search results to produce more precise reports.
- the user may select some fields for organizing the report and select other fields for providing detail according to the report organization. For example, “region” and “salesperson” are fields used for organizing the report and sales data can be summarized (subtotaled and totaled) within this organization.
- the report generator allows the user to specify one or more fields within events and apply statistical analysis on values extracted from the specified one or more fields.
- the report generator may aggregate search results across sets of events and generate statistics based on aggregated search results.
- FIGS. 25-31 are interface diagrams of example report generation user interfaces, in accordance with example embodiments.
- the report generation process may be driven by a predefined data model object, such as a data model object defined and/or saved via a reporting application or a data model object obtained from another source.
- a user can load a saved data model object using a report editor.
- the initial search query and fields used to drive the report editor may be obtained from a data model object.
- the data model object that is used to drive a report generation process may define a search and a set of fields.
- the report generation process may enable a user to use the fields (e.g., the fields defined by the data model object) to define criteria for a report (e.g., filters, split rows/columns, aggregates, etc.) and the search may be used to identify events (e.g., to identify events responsive to the search) used to generate the report. That is, for example, if a data model object is selected to drive a report editor, the graphical user interface of the report editor may enable a user to define reporting criteria for the report using the fields associated with the selected data model object, and the events used to generate the report may be constrained to the events that match, or otherwise satisfy, the search constraints of the selected data model object.
- the fields e.g., the fields defined by the data model object
- criteria for a report e.g., filters, split rows/columns, aggregates, etc.
- the search may be used to identify events (e.g., to identify events responsive to the search) used to generate the report. That is, for example,
- FIG. 25 illustrates an example interactive data model selection graphical user interface 2500 of a report editor that displays a listing of available data models 2501. The user may select one of the data models 2502.
- FIG. 26 illustrates an example data model object selection graphical user interface 2600 that displays available data objects 2601 for the selected data object model 2502. The user may select one of the displayed data model objects 2602 for use in driving the report generation process.
- a user interface screen 2700 shown in Fig. 27 A may display an interactive listing of automatic field identification options 2701 based on the selected data model object. For example, a user may select one of the three illustrated options (e.g., the “All Fields” option 2702, the “Selected Fields” option 2703, or the “Coverage” option (e.g., fields with at least a specified % of coverage) 2704). If the user selects the “All Fields” option 2702, all of the fields identified from the events that were returned in response to an initial search query may be selected. That is, for example, all of the fields of the identified data model object fields may be selected.
- the “All Fields” option 2702 all of the fields identified from the events that were returned in response to an initial search query may be selected. That is, for example, all of the fields of the identified data model object fields may be selected.
- a percent coverage may refer to the percentage of events returned by the initial search query that a given field appears in. Thus, for example, if an object dataset includes 10,000 events returned in response to an initial search query, and the “avg_age” field appears in 854 of those 10,000 events, then the “avg_age” field would have a coverage of 8.54% for that object dataset.
- the user selects the “Coverage” option and specifies a coverage value of 2%
- only fields having a coverage value equal to or greater than 2% may be selected.
- the number of fields corresponding to each selectable option may be displayed in association with each option. For example, “97” displayed next to the “All Fields” option 2702 indicates that 97 fields will be selected if the “All Fields” option is selected.
- the “3” displayed next to the “Selected Fields” option 2703 indicates that 3 of the 97 fields will be selected if the “Selected Fields” option is selected.
- the “49” displayed next to the “Coverage” option 2704 indicates that 49 of the 97 fields (e.g., the 49 fields having a coverage of 2% or greater) will be selected if the “Coverage” option is selected.
- the number of fields corresponding to the “Coverage” option may be dynamically updated based on the specified percent of coverage.
- FIG. 27B illustrates an example graphical user interface screen 2705 displaying the reporting application’s “Report Editor” page.
- the screen may display interactive elements for defining various elements of a report.
- the page includes a “Filters” element 2706, a “Split Rows” element 2707, a “Split Columns” element 2708, and a “Column Values” element 2709.
- the page may include a list of search results 2711.
- the Split Rows element lQl is expanded, revealing a listing of fields 2710 that can be used to define additional criteria (e.g., reporting criteria).
- the listing of fields 2710 may correspond to the selected fields.
- FIG. 27C illustrates a formatting dialogue 2712 that may be displayed upon selecting a field from the listing of fields 2710.
- the dialogue can be used to format the display of the results of the selection (e.g., label the column for the selected field to be displayed as “component”).
- FIG. 27D illustrates an example graphical user interface screen 2705 including a table of results 2713 based on the selected criteria including splitting the rows by the “component” field.
- a column 2714 having an associated count for each component listed in the table may be displayed that indicates an aggregate count of the number of times that the particular field-value pair (e.g., the value in a row for a particular field, such as the value “BucketMover” for the field “component”) occurs in the set of events responsive to the initial search query.
- the particular field-value pair e.g., the value in a row for a particular field, such as the value “BucketMover” for the field “component
- FIG. 28 illustrates an example graphical user interface screen 2800 that allows the user to filter search results and to perform statistical analysis on values extracted from specific fields in the set of events.
- the top ten product names ranked by price are selected as a filter 2801 that causes the display of the ten most popular products sorted by price.
- Each row is displayed by product name and price 2802. This results in each product displayed in a column labeled “product name” along with an associated price in a column labeled “price” 2806.
- Statistical analysis of other fields in the events associated with the ten most popular products have been specified as column values 2803. A count of the number of successful purchases for each product is displayed in column 2804.
- These statistics may be produced by filtering the search results by the product name, finding all occurrences of a successful purchase in a field within the events and generating a total of the number of occurrences.
- a sum of the total sales is displayed in column 2805, which is a result of the multiplication of the price and the number of successful purchases for each product.
- the reporting application allows the user to create graphical visualizations of the statistics generated for a report.
- FIG. 29 illustrates an example graphical user interface 2900 that displays a set of components and associated statistics 2901.
- the reporting application allows the user to select a visualization of the statistics in a graph (e.g., bar chart, scatter plot, area chart, line chart, pie chart, radial gauge, marker gauge, filler gauge, etc.), where the format of the graph may be selected using the user interface controls 2902 along the left panel of the user interface 2900.
- FIG. 30 illustrates an example of a bar chart visualization 3000 of an aspect of the statistical data 2901.
- FIG. 31 illustrates a scatter plot visualization 3100 of an aspect of the statistical data 2901.
- the above-described system provides significant flexibility by enabling a user to analyze massive quantities of minimally-processed data “on the fly” at search time using a late-binding schema, instead of storing pre-specified portions of the data in a database at ingestion time. This flexibility enables a user to see valuable insights, correlate data, and perform subsequent queries to examine interesting aspects of the data that may not have been apparent at ingestion time.
- the data intake and query system 108 also employs a number of unique acceleration techniques that have been developed to speed up analysis operations performed at search time. These techniques include: (1) performing search operations in parallel using multiple search nodes 506; (2) using a keyword index; (3) using a high performance analytics store; and (4) accelerating the process of generating reports. These novel techniques are described in more detail below.
- FIG. 32 is an example search query received from a client and executed by search nodes 506, in accordance with example embodiments.
- FIG. 32 illustrates how a search query 3202 received from a client at a search head 504 can split into two phases, including: (1) subtasks 3204 (e.g., data retrieval or simple filtering) that may be performed in parallel by search nodes 506 for execution, and (2) a search results aggregation operation 3206 to be executed by the search head 504 when the results are ultimately collected from the search nodes 506.
- subtasks 3204 e.g., data retrieval or simple filtering
- a search head 504 determines that a portion of the operations involved with the search query may be performed locally by the search head 504.
- the search head 504 modifies search query 3202 by substituting “stats” (create aggregate statistics over results sets received from the search nodes 506 at the search head 504) with “prestats” (create statistics by the search node 506 from local results set) to produce search query 3204, and then distributes search query 3204 to distributed search nodes 506, which are also referred to as “search peers” or “peer search nodes.”
- search queries may generally specify search criteria or operations to be performed on events that meet the search criteria.
- Search queries may also specify field names, as well as search criteria for the values in the fields or operations to be performed on the values in the fields.
- the search head 504 may distribute the full search query to the search peers as illustrated in FIG. 6A, or may alternatively distribute a modified version (e.g., a more restricted version) of the search query to the search peers.
- the search nodes 506 are responsible for producing the results and sending them to the search head 504. After the search nodes 506 return the results to the search head 504, the search head 504 aggregates the received results 3206 to form a single search result set. By executing the query in this manner, the system effectively distributes the computational operations across the search nodes 506 while minimizing data transfers.
- data intake and query system 108 can construct and maintain one or more keyword indexes to quickly identify events containing specific keywords. This technique can greatly speed up the processing of queries involving specific keywords.
- an indexing node 404 first identifies a set of keywords. Then, the indexing node 404 includes the identified keywords in an index, which associates each stored keyword with references to events containing that keyword, or to locations within events where that keyword is located.
- the indexer can access the keyword index to quickly identify events containing the keyword.
- some embodiments of data intake and query system 108 create a high performance analytics store, which is referred to as a “summarization table,” that contains entries for specific field-value pairs. Each of these entries keeps track of instances of a specific value in a specific field in the events and includes references to events containing the specific value in the specific field. For example, an example entry in a summarization table can keep track of occurrences of the value “94107” in a “ZIP code” field of a set of events and the entry includes references to all of the events that contain the value “94107” in the ZIP code field.
- This optimization technique enables the system to quickly process queries that seek to determine how many events have a particular value for a particular field.
- the system can examine the entry in the summarization table to count instances of the specific value in the field without having to go through the individual events or perform data extractions at search time. Also, if the system needs to process all events that have a specific field-value combination, the system can use the references in the summarization table entry to directly access the events to extract further information without having to search all of the events to find the specific field-value combination at search time.
- the system maintains a separate summarization table for each of the above-described time-specific buckets that stores events for a specific time range.
- a bucket- specific summarization table includes entries for specific field-value combinations that occur in events in the specific bucket.
- the system can maintain a summarization table for the common storage 216, one or more data stores 218 of the common storage 216, buckets cached on a search node 506, etc.
- the different summarization tables can include entries for the events in the common storage 216, certain data stores 218 in the common storage 216, or data stores associated with a particular search node 506, etc.
- the summarization table can be populated by running a periodic query that scans a set of events to find instances of a specific field-value combination, or alternatively instances of all fieldvalue combinations for a specific field.
- a periodic query can be initiated by a user, or can be scheduled to occur automatically at specific time intervals.
- a periodic query can also be automatically launched in response to a query that asks for a specific field-value combination.
- the system can use the summarization tables to obtain partial results for the events that are covered by summarization tables, but may also have to search through other events that are not covered by the summarization tables to produce additional results. These additional results can then be combined with the partial results to produce a final set of results for the query.
- the summarization table and associated techniques are described in more detail in U.S. Patent No. 8,682,925, entitled “DISTRIBUTED HIGH PERFORMANCE ANALYTICS STORE”, issued on 25 March 2014, U.S. Patent No.
- some embodiments of data intake and query system 108 create a high performance analytics store, which is referred to as a “summarization table,” (also referred to as a “lexicon” or “inverted index”) that contains entries for specific field-value pairs. Each of these entries keeps track of instances of a specific value in a specific field in the event data and includes references to events containing the specific value in the specific field. For example, an example entry in an inverted index can keep track of occurrences of the value “94107” in a “ZIP code” field of a set of events and the entry includes references to all of the events that contain the value “94107” in the ZIP code field.
- the query system 214 can employ the inverted index separate from the raw record data store to generate responses to the received queries.
- the term “summarization table” or “inverted index” as used herein is a data structure that may be generated by the indexing system 212 that includes at least field names and field values that have been extracted and/or indexed from event records.
- An inverted index may also include reference values that point to the location(s) in the field searchable data store where the event records that include the field may be found.
- an inverted index may be stored using various compression techniques to reduce its storage size.
- reference value also referred to as a “posting value” as used herein is a value that references the location of a source record in the field searchable data store.
- the reference value may include additional information about each record, such as timestamps, record size, meta-data, or the like.
- Each reference value may be a unique identifier which may be used to access the event data directly in the field searchable data store.
- the reference values may be ordered based on each event record's timestamp. For example, if numbers are used as identifiers, they may be sorted so event records having a later timestamp always have a lower valued identifier than event records with an earlier timestamp, or vice- versa. Reference values are often included in inverted indexes for retrieving and/or identifying event records.
- an inverted index is generated in response to a user-initiated collection query.
- collection query refers to queries that include commands that generate summarization information and inverted indexes (or summarization tables) from event records stored in the field searchable data store.
- a collection query is a special type of query that can be user-generated and is used to create an inverted index.
- a collection query is not the same as a query that is used to call up or invoke a pre-existing inverted index.
- a query can comprise an initial step that calls up a pre-generated inverted index on which further filtering and processing can be performed. For example, referring back to FIG. 22B, a set of events can be generated at block 2240 by either using a “collection” query to create a new inverted index or by calling up a pre-generated inverted index. A query with several pipelined steps will start with a pre-generated index to accelerate the query.
- FIG. 23C illustrates the manner in which an inverted index is created and used in accordance with the disclosed embodiments.
- an inverted index 2322 can be created in response to a user-initiated collection query using the event data 2323 stored in the raw record data store.
- Each entry in inverted index 2322 includes an event reference value that references the location of a source record in the field searchable data store. The reference value may be used to access the original event record directly from the field searchable data store.
- the one or more search nodes 506 may generate summarization information based on the fields of the event records located in the field searchable data store.
- one or more of the fields used in the summarization information may be listed in the collection query and/or they may be determined based on terms included in the collection query.
- a collection query may include an explicit list of fields to summarize.
- a collection query may include terms or expressions that explicitly define the fields, e.g., using regex rules.
- the field name “clientip” may need to be defined in a configuration file by specifying the “access_combined” source type and a regular expression rule to parse out the client IP address.
- the collection query may contain an explicit definition for the field name “clientip” which may obviate the need to reference the configuration file at search time.
- collection queries may be saved and scheduled to run periodically. These scheduled collection queries may periodically update the summarization information corresponding to the query. For example, if the collection query that generates inverted index 2322 is scheduled to run periodically, one or more search nodes 506 can periodically search through the relevant buckets to update inverted index 2322 with event data for any new events with the “clientip” value of “127.0.0.1.”
- the inverted indexes that include fields, values, and reference value (e.g., inverted index 2322) for event records may be included in the summarization information provided to the user.
- a user may not be interested in specific fields and values contained in the inverted index, but may need to perform a statistical query on the data in the inverted index. For example, referencing the example of FIG. 23C rather than viewing the fields within the inverted index 2322, a user may want to generate a count of all client requests from IP address “127.0.0.1.” In this case, the query system 214 can simply return a result of “4” rather than including details about the inverted index 2322 in the information provided to the user.
- the pipelined search language e.g., SPL of the SPLUNK® ENTERPRISE system can be used to pipe the contents of an inverted index to a statistical query using the “stats” command for example.
- a “stats” query refers to queries that generate result sets that may produce aggregate and statistical results from event records, e.g., average, mean, max, min, rms, etc. Where sufficient information is available in an inverted index, a “stats” query may generate their result sets rapidly from the summarization information available in the inverted index rather than directly scanning event records.
- inverted index 2322 can be pipelined to a stats query, e.g., a “count” function that counts the number of entries in the inverted index and returns a value of “4.”
- a stats query e.g., a “count” function that counts the number of entries in the inverted index and returns a value of “4.”
- inverted indexes may enable various stats queries to be performed absent scanning or search the event records. Accordingly, this optimization technique enables the system to quickly process queries that seek to determine how many events have a particular value for a particular field. To this end, the system can examine the entry in the inverted index to count instances of the specific value in the field without having to go through the individual events or perform data extractions at search time.
- the system maintains a separate inverted index for each of the above-described time-specific buckets that stores events for a specific time range.
- a bucket- specific inverted index includes entries for specific field-value combinations that occur in events in the specific bucket.
- the system can maintain a separate inverted index for one or more data stores 218 of common storage 216, an indexing node 404, or a search node 506.
- the specific inverted indexes can include entries for the events in the one or more data stores 218 or data store associated with the indexing nodes 404 or search node 506.
- a search node 506 can generate a partial result set from previously generated summarization information. The partial result sets may be returned to the search head 504 that received the query and combined into a single result set for the query
- the inverted index can be populated by running a periodic query that scans a set of events to find instances of a specific field-value combination, or alternatively instances of all field-value combinations for a specific field.
- a periodic query can be initiated by a user, or can be scheduled to occur automatically at specific time intervals.
- a periodic query can also be automatically launched in response to a query that asks for a specific field-value combination.
- summarization information is absent from a search node 506 that includes responsive event records, further actions may be taken, such as, the summarization information may generated on the fly, warnings may be provided the user, the collection query operation may be halted, the absence of summarization information may be ignored, or the like, or combination thereof.
- an inverted index may be set up to update continually.
- the query may ask for the inverted index to update its result periodically, e.g., every hour.
- the inverted index may be a dynamic data structure that is regularly updated to include information regarding incoming events.
- the system can use the references in the inverted index entry to directly access the events to extract further information without having to search all of the events to find the specific field-value combination at search time.
- the system can use the reference values to locate the associated event data in the field searchable data store and extract further information from those events, e.g., extract further field values from the events for purposes of filtering or processing or both.
- the information extracted from the event data using the reference values can be directed for further filtering or processing in a query using the pipeline search language.
- the pipelined search language will, in one embodiment, include syntax that can direct the initial filtering step in a query to an inverted index.
- a user would include syntax in the query that explicitly directs the initial searching or filtering step to the inverted index.
- the user can generate a query that explicitly directs or pipes the contents of the already generated inverted index 2322 to another filtering step requesting the user ids for the entries in inverted index 2322 where the server response time is greater than “0.0900” microseconds.
- the query system 214 can use the reference values stored in inverted index 2322 to retrieve the event data from the field searchable data store, filter the results based on the “response time” field values and, further, extract the user id field from the resulting event data to return to the user.
- the user ids “frank” and “carlos” would be returned to the user from the generated results table 2325.
- the same methodology can be used to pipe the contents of the inverted index to a processing step.
- the user is able to use the inverted index to efficiently and quickly perform aggregate functions on field values that were not part of the initially generated inverted index.
- a user may want to determine an average object size (size of the requested gif) requested by clients from IP address “127.0.0.1.”
- the query system 214 can again use the reference values stored in inverted index 2322 to retrieve the event data from the field searchable data store and, further, extract the object size field values from the associated events 2331, 2332, 2333 and 2334. Once, the corresponding object sizes have been extracted (i.e. 2326, 2900, 2920, and 5000), the average can be computed and returned to the user.
- the SPLUNK® ENTERPRISE system can be configured to automatically determine if any prior-generated inverted index can be used to expedite a user query.
- the user’s query may request the average object size (size of the requested gif) requested by clients from IP address “127.0.0.1.” without any reference to or use of inverted index 2322.
- the query system 214 in this case, can automatically determine that an inverted index 2322 already exists in the system that could expedite this query.
- a query system 214 can search though all the existing inverted indexes to determine if a pre-generated inverted index could be used to expedite the search comprising the field-value pair. Accordingly, the query system 214 can automatically use the pre-generated inverted index, e.g., index 2322 to generate the results without any user-involvement that directs the use of the index.
- the data intake and query system 108 includes an intake system 210 that receives data from a variety of input data sources, and an indexing system 212 that processes and stores the data in one or more data stores or common storage 216. By distributing events among the data stores 218 of common storage 213, the query system 214 can analyze events for a query in parallel. In some embodiments, the data intake and query system 108 can maintain a separate and respective inverted index for each of the above-described time- specific buckets that stores events for a specific time range. A bucket- specific inverted index includes entries for specific field- value combinations that occur in events in the specific bucket. As explained above, a search head 504 can correlate and synthesize data from across the various buckets and search nodes 506.
- This feature advantageously expedites searches because instead of performing a computationally intensive search in a centrally located inverted index that catalogues all the relevant events, a search node 506 is able to directly search an inverted index stored in a bucket associated with the time-range specified in the query. This allows the search to be performed in parallel across the various search nodes 506. Further, if the query requests further filtering or processing to be conducted on the event data referenced by the locally stored bucket- specific inverted index, the search node 506 is able to simply access the event records stored in the associated bucket for further filtering and processing instead of needing to access a central repository of event records, which would dramatically add to the computational overhead.
- FIG. 23D is a flow diagram illustrating an embodiment of a routine implemented by one or more computing devices of the data intake and query system for using an inverted index in a pipelined search query to determine a set of event data that can be further limited by filtering or processing.
- the routine can be implemented by any one or any combination of the search head 504, search node 506, search master 512, or search manager 514, etc.
- reference below is made to the query system 214 performing the various steps of the routine.
- a query is received by a data intake and query system 108.
- the query can be received as a user generated query entered into search bar of a graphical user search interface.
- the search interface also includes a time range control element that enables specification of a time range for the query.
- an inverted index is retrieved.
- the inverted index can be retrieved in response to an explicit user search command inputted as part of the user generated query.
- a query system 215 can be configured to automatically use an inverted index if it determines that using the inverted index would expedite the servicing of the user generated query.
- Each of the entries in an inverted index keeps track of instances of a specific value in a specific field in the event data and includes references to events containing the specific value in the specific field.
- the query system 214 employs the inverted index separate from the raw record data store to generate responses to the received queries.
- the query system 214 determines if the query contains further filtering and processing steps. If the query contains no further commands, then, in one embodiment, summarization information can be provided to the user at block 2354.
- the query system 214 determines if the commands relate to further filtering or processing of the data extracted as part of the inverted index or whether the commands are directed to using the inverted index as an initial filtering step to further filter and process event data referenced by the entries in the inverted index. If the query can be completed using data already in the generated inverted index, then the further filtering or processing steps, e.g., a “count” number of records function, “average” number of records per hour etc. are performed and the results are provided to the user at block 2350.
- the further filtering or processing steps e.g., a “count” number of records function, “average” number of records per hour etc. are performed and the results are provided to the user at block 2350.
- the query system 214 can access event data pointed to by the reference values in the inverted index to retrieve any further information required at block 2356. Subsequently, any further filtering or processing steps are performed on the fields extracted directly from the event data and the results are provided to the user at step 2358. 4.10.4. ACCELERATING REPORT GENERATION
- a data server system such as the data intake and query system 108 can accelerate the process of periodically generating updated reports based on query results.
- a summarization engine can automatically examine the query to determine whether generation of updated reports can be accelerated by creating intermediate summaries. If reports can be accelerated, the summarization engine periodically generates a summary covering data obtained during a latest non-overlapping time period. For example, where the query seeks events meeting a specified criteria, a summary for the time period includes may only events within the time period that meet the specified criteria. Similarly, if the query seeks statistics calculated from the events, such as the number of events that match the specified criteria, then the summary for the time period includes the number of events in the period that match the specified criteria.
- the summarization engine schedules the periodic updating of the report associated with the query.
- the query system 214 determines whether intermediate summaries have been generated covering portions of the time period covered by the report update. If so, then the report is generated based on the information contained in the summaries. Also, if additional event data has been received and has not yet been summarized, and is required to generate the complete report, the query can be run on these additional events. Then, the results returned by this query on the additional events, along with the partial results obtained from the intermediate summaries, can be combined to generate the updated report. This process is repeated each time the report is updated.
- the data intake and query system 108 provides various schemas, dashboards, and visualizations that simplify developers’ tasks to create applications with additional capabilities.
- One such application is the an enterprise security application, such as SPLUNK® ENTERPRISE SECURITY, which performs monitoring and alerting operations and includes analytics to facilitate identifying both known and unknown security threats based on large volumes of data stored by the data intake and query system 108.
- the enterprise security application provides the security practitioner with visibility into security-relevant threats found in the enterprise infrastructure by capturing, monitoring, and reporting on data from enterprise security devices, systems, and applications.
- the enterprise security application provides a top-down and bottom-up view of an organization's security posture.
- the enterprise security application leverages the data intake and query system 108 searchtime normalization techniques, saved searches, and correlation searches to provide visibility into security -relev ant threats and activity and generate notable events for tracking.
- the enterprise security application enables the security practitioner to investigate and explore the data to find new or unknown threats that do not follow signature-based patterns.
- SIEM Security Information and Event Management
- the enterprise security application system stores large volumes of minimally- processed security-related data at ingestion time for later retrieval and analysis at search time when a live security threat is being investigated.
- the enterprise security application provides pre- specified schemas for extracting relevant values from the different types of security-related events and enables a user to define such schemas.
- the enterprise security application can process many types of security-related information.
- this security-related information can include any information that can be used to identify security threats.
- the security -related information can include network-related information, such as IP addresses, domain names, asset identifiers, network traffic volume, uniform resource locator strings, and source addresses.
- IP addresses IP addresses
- domain names domain names
- asset identifiers network traffic volume
- uniform resource locator strings uniform resource locator strings
- Security-related information can also include malware infection data and system configuration information, as well as access control information, such as login/logout information and access failure notifications.
- the security-related information can originate from various sources within a data center, such as hosts, virtual machines, storage devices and sensors.
- the security-related information can also originate from various sources in a network, such as routers, switches, email servers, proxy servers, gateways, firewalls and intrusion-detection systems.
- the enterprise security application facilitates detecting “notable events” that are likely to indicate a security threat.
- a notable event represents one or more anomalous incidents, the occurrence of which can be identified based on one or more events (e.g., time stamped portions of raw machine data) fulfilling pre-specified and/or dynamically-determined (e.g., based on machinelearning) criteria defined for that notable event. Examples of notable events include the repeated occurrence of an abnormal spike in network usage over a period of time, a single occurrence of unauthorized access to system, a host communicating with a server on a known threat list, and the like.
- notable events can be detected in a number of ways, such as: (1) a user can notice a correlation in events and can manually identify that a corresponding group of one or more events amounts to a notable event; or (2) a user can define a “correlation search” specifying criteria for a notable event, and every time one or more events satisfy the criteria, the application can indicate that the one or more events correspond to a notable event; and the like. A user can alternatively select a pre-defined correlation search provided by the application. Note that correlation searches can be run continuously or at regular intervals (e.g., every hour) to search for notable events. Upon detection, notable events can be stored in a dedicated “notable events index,” which can be subsequently accessed to generate various visualizations containing security-related information.
- the enterprise security application provides various visualizations to aid in discovering security threats, such as a “key indicators view” that enables a user to view security metrics, such as counts of different types of notable events. It can also display a change in a metric value, which indicates that the number of malware infections increased by 63 during the preceding interval. Key indicators view additionally displays a histogram panel that displays a histogram of notable events organized by urgency values, and a histogram of notable events organized by time intervals. This key indicators view is described in further detail in pending U.S. Patent Application No. 13/956,338, entitled “KEY INDICATORS VIEW”, filed on 31 July 2013, and which is hereby incorporated by reference in its entirety for all purposes.
- These visualizations can also include an “incident review dashboard” that enables a user to view and act on “notable events.”
- These notable events can include: (1) a single event of high importance, such as any activity from a known web attacker; or (2) multiple events that collectively warrant review, such as a large number of authentication failures on a host followed by a successful authentication. It also includes a timeline that graphically illustrates the number of incidents that occurred in time intervals over the selected time range. It additionally displays an events list that enables a user to view a list of all of the notable events that match the criteria in the incident attributes fields.
- each notable event can be associated with an urgency value (e.g., low, medium, high, critical), which is indicated in the incident review dashboard.
- the urgency value for a detected event can be determined based on the severity of the event and the priority of the system component associated with the event.
- the data intake and query platform provides various features that simplify the developer’s task to create various applications.
- One such application is a virtual machine monitoring application, such as SPLUNK® APP FOR VMWARE® that provides operational visibility into granular performance metrics, logs, tasks and events, and topology from hosts, virtual machines and virtual centers. It empowers administrators with an accurate real-time picture of the health of the environment, proactively identifying performance and capacity bottlenecks.
- Machine-generated data such as performance information and log data obtained from the data center.
- machine-generated data is typically pre-processed prior to being stored, for example, by extracting pre-specified data items and storing them in a database to facilitate subsequent retrieval and analysis at search time.
- the rest of the data is not saved and discarded during pre-processing.
- the virtual machine monitoring application stores large volumes of minimally processed machine data, such as performance information and log data, at ingestion time for later retrieval and analysis at search time when a live performance issue is being investigated.
- this performance-related information can include values for performance metrics obtained through an application programming interface (API) provided as part of the vSphere HypervisorTM system distributed by VMware, Inc. of Palo Alto, California.
- performance metrics can include: (1) CPU-related performance metrics; (2) disk- related performance metrics; (3) memory-related performance metrics; (4) network-related performance metrics; (5) energy-usage statistics; (6) data-traffic-related performance metrics; (7) overall system availability performance metrics; (8) cluster-related performance metrics; and (9) virtual machine performance statistics.
- API application programming interface
- the virtual machine monitoring application provides pre-specified schemas for extracting relevant values from different types of performance-related events, and also enables a user to define such schemas.
- the virtual machine monitoring application additionally provides various visualizations to facilitate detecting and diagnosing the root cause of performance problems.
- one such visualization is a “proactive monitoring tree” that enables a user to easily view and understand relationships among various factors that affect the performance of a hierarchically structured computing system.
- This proactive monitoring tree enables a user to easily navigate the hierarchy by selectively expanding nodes representing various entities (e.g., virtual centers or computing clusters) to view performance information for lower-level nodes associated with lower-level entities (e.g., virtual machines or host systems).
- the ease of navigation provided by selective expansion in combination with the associated performance- state information enables a user to quickly diagnose the root cause of a performance problem.
- the proactive monitoring tree is described in further detail in U.S. Patent No.
- the virtual machine monitoring application also provides a user interface that enables a user to select a specific time range and then view heterogeneous data comprising events, log data, and associated performance metrics for the selected time range. This enables the user to correlate trends in the performance-metric graph with corresponding event and log data to quickly determine the root cause of a performance problem.
- the data intake and query platform provides various schemas, dashboards and visualizations that make it easy for developers to create applications to provide additional capabilities.
- One such application is an IT monitoring application, such as SPLUNK® IT SERVICE INTELLIGENCETM, which performs monitoring and alerting operations.
- the IT monitoring application also includes analytics to help an analyst diagnose the root cause of performance problems based on large volumes of data stored by the data intake and query system 108 as correlated to the various services an IT organization provides (a service-centric view). This differs significantly from conventional IT monitoring systems that lack the infrastructure to effectively store and analyze large volumes of service-related events.
- Traditional service monitoring systems typically use fixed schemas to extract data from pre-defined fields at data ingestion time, wherein the extracted data is typically stored in a relational database. This data extraction process and associated reduction in data content that occurs at data ingestion time inevitably hampers future investigations, when all of the original data may be needed to determine the root cause of or contributing factors to a service issue.
- an IT monitoring application system stores large volumes of minimally- processed service-related data at ingestion time for later retrieval and analysis at search time, to perform regular monitoring, or to investigate a service issue.
- the IT monitoring application enables a user to define an IT operations infrastructure from the perspective of the services it provides.
- a service such as corporate e- mail may be defined in terms of the entities employed to provide the service, such as host machines and network devices.
- Each entity is defined to include information for identifying all of the events that pertains to the entity, whether produced by the entity itself or by another machine, and considering the many various ways the entity may be identified in machine data (such as by a URL, an IP address, or machine name).
- the service and entity definitions can organize events around a service so that all of the events pertaining to that service can be easily identified. This capability provides a foundation for the implementation of Key Performance Indicators.
- KPI Key Performance Indicators
- Each KPI measures an aspect of service performance at a point in time or over a period of time (aspect KPI’s).
- Each KPI is defined by a search query that derives a KPI value from the machine data of events associated with the entities that provide the service. Information in the entity definitions may be used to identify the appropriate events at the time a KPI is defined or whenever a KPI value is being determined.
- the KPI values derived over time may be stored to build a valuable repository of current and historical performance information for the service, and the repository, itself, may be subject to search query processing.
- Aggregate KPIs may be defined to provide a measure of service performance calculated from a set of service aspect KPI values; this aggregate may even be taken across defined timeframes and/or across multiple services.
- a particular service may have an aggregate KPI derived from substantially all of the aspect KPI's of the service to indicate an overall health score for the service.
- the IT monitoring application facilitates the production of meaningful aggregate KPI's through a system of KPI thresholds and state values.
- Different KPI definitions may produce values in different ranges, and so the same value may mean something very different from one KPI definition to another.
- the IT monitoring application implements a translation of individual KPI values to a common domain of “state” values.
- a KPI range of values may be 1-100, or 50-275, while values in the state domain may be ‘critical,’ ‘warning,’ ‘normal,’ and ‘informational’.
- Thresholds associated with a particular KPI definition determine ranges of values for that KPI that correspond to the various state values.
- KPI values 95-100 may be set to correspond to ‘critical’ in the state domain.
- KPI values from disparate KPI's can be processed uniformly once they are translated into the common state values using the thresholds. For example, "normal 80% of the time" can be applied across various KPI's.
- a weighting value can be assigned to each KPI so that its influence on the calculated aggregate KPI value is increased or decreased relative to the other KPI's.
- One service in an IT environment often impacts, or is impacted by, another service.
- the IT monitoring application can reflect these dependencies. For example, a dependency relationship between a corporate e-mail service and a centralized authentication service can be reflected by recording an association between their respective service definitions.
- the recorded associations establish a service dependency topology that informs the data or selection options presented in a GUI, for example.
- the service dependency topology is like a “map” showing how services are connected based on their dependencies.
- the service topology may itself be depicted in a GUI and may be interactive to allow navigation among related services.
- Entity definitions in the IT monitoring application can include informational fields that can serve as metadata, implied data fields, or attributed data fields for the events identified by other aspects of the entity definition.
- Entity definitions in the IT monitoring application can also be created and updated by an import of tabular data (as represented in a CSV, another delimited file, or a search query result set). The import may be GUI-mediated or processed using import parameters from a GUI-based import definition process.
- Entity definitions in the IT monitoring application can also be associated with a service by means of a service definition rule. Processing the rule results in the matching entity definitions being associated with the service definition. The rule can be processed at creation time, and thereafter on a scheduled or on-demand basis. This allows dynamic, rule-based updates to the service definition.
- the IT monitoring application can recognize notable events that may indicate a service performance problem or other situation of interest. These notable events can be recognized by a “correlation search” specifying trigger criteria for a notable event: every time KPI values satisfy the criteria, the application indicates a notable event. A severity level for the notable event may also be specified. Furthermore, when trigger criteria are satisfied, the correlation search may additionally or alternatively cause a service ticket to be created in an IT service management (ITSM) system, such as systems available from ServiceNow, Inc., of Santa Clara, California.
- ITSM IT service management
- SPLUNK® IT SERVICE INTELLIGENCETM provides various visualizations built on its service-centric organization of events and the KPI values generated and collected. Visualizations can be particularly useful for monitoring or investigating service performance.
- the IT monitoring application provides a service monitoring interface suitable as the home page for ongoing IT service monitoring.
- the interface is appropriate for settings such as desktop use or for a wall-mounted display in a network operations center (NOC).
- NOC network operations center
- the interface may prominently display a services health section with tiles for the aggregate KPI’s indicating overall health for defined services and a general KPI section with tiles for KPI's related to individual service aspects. These tiles may display KPI information in a variety of ways, such as by being colored and ordered according to factors like the KPI state value.
- the IT monitoring application provides a service-monitoring dashboard visualization based on a user-defined template.
- the template can include user-selectable widgets of varying types and styles to display KPI information.
- the content and the appearance of widgets can respond dynamically to changing KPI information.
- the KPI widgets can appear in conjunction with a background image, user drawing objects, or other visual elements, that depict the IT operations environment, for example.
- the KPI widgets or other GUI elements can be interactive so as to provide navigation to visualizations of more detailed KPI information.
- the IT monitoring application provides a visualization showing detailed time-series information for multiple KPI's in parallel graph lanes.
- the length of each lane can correspond to a uniform time range, while the width of each lane may be automatically adjusted to fit the displayed KPI data.
- Data within each lane may be displayed in a user selectable style, such as a line, area, or bar chart.
- a user may select a position in the time range of the graph lanes to activate lane inspection at that point in time.
- Lane inspection may display an indicator for the selected time across the graph lanes and display the KPI value associated with that point in time for each of the graph lanes.
- the visualization may also provide navigation to an interface for defining a correlation search, using information from the visualization to pre-populate the definition.
- the IT monitoring application provides a visualization for incident review showing detailed information for notable events.
- the incident review visualization may also show summary information for the notable events over a time frame, such as an indication of the number of notable events at each of a number of severity levels.
- the severity level display may be presented as a rainbow chart with the warmest color associated with the highest severity classification.
- the incident review visualization may also show summary information for the notable events over a time frame, such as the number of notable events occurring within segments of the time frame.
- the incident review visualization may display a list of notable events within the time frame ordered by any number of factors, such as time or severity. The selection of a particular notable event from the list may display detailed information about that notable event, including an identification of the correlation search that generated the notable event.
- the IT monitoring application provides pre-specified schemas for extracting relevant values from the different types of service-related events. It also enables a user to define such schemas.
- one or more components of the data intake and query system 108 of the present disclosure can be used in combination with or to replace one or more components of the data intake and query system 108 of the Parent Applications.
- the operations of the forwarder 204 and the ingestion buffer 4802 of the Parent Applications can be performed by or replaced with the intake system 210 of the present disclosure.
- the parsing, indexing, and storing operations (or other non-searching operations) of the indexers 206, 230 and indexing cache components 254 of the Parent Applications can be performed by or replaced with the indexing nodes 404 of the present disclosure.
- the storage operations of the data stores 208 of the Parent Applications can be performed using the data stores 412 of the present disclosure (in some cases with the data not being moved to common storage 216).
- the storage operations of the common storage 4602, cloud storage 256, or global index 258 can be performed by the common storage 216 of the present disclosure.
- the storage operations of the query acceleration data store 3308 can be performed by the query acceleration data store 222 of the present disclosure.
- the search operations of the indexers 206, 230 and indexing cache components 254 of the Parent Applications can be performed by or replaced with the indexing nodes 404 in some embodiments or by the search nodes 506 in certain embodiments.
- the indexers 206, 230 and indexing cache components 254 of the Parent Applications may perform parsing, indexing, storing, and at least some searching operations, and in embodiments of some architectures of the Parent Applications, indexers 206, 230 and indexing cache components 254 of the Parent Applications perform parsing, indexing, and storing operations, but do not perform searching operations.
- some or all of the searching operations described as being performed by the indexers 206, 230 and indexing cache components 254 of the Parent Applications can be performed by the search nodes 506.
- the search nodes 506 can perform those operations.
- some or all of the searching operations described as being performed by the indexers 206, 230 and indexing cache components 254 of the Parent Applications can be performed by the indexing nodes 404.
- the indexing nodes 404 can perform those operations.
- the query operations performed by the search heads 210, 226, 244, daemons 210, 232, 252, search master 212, 234, 250, search process master 3302, search service provider 216, and query coordinator 3304 of the Parent Applications can be performed by or replaced with any one or any combination of the query system manager 502, search head 504, search master 512, search manager 514, search node monitor 508, and/or the search node catalog 510.
- these components can handle and coordinate the intake of queries, query processing, identification of available nodes and resources, resource allocation, query execution plan generation, assignment of query operations, combining query results, and providing query results to a user or a data store.
- the query operations performed by the worker nodes 214, 236, 246, 3306 of the Parent Applications can be performed by or replaced with the search nodes 506 of the present disclosure.
- the intake or ingestion operations performed by the worker nodes 214, 236, 246, 3306 of the Parent Applications can be performed by or replaced with one or more components of the intake system 210.
- the intake system 210 can be used in place of the forwarders 204 and/or ingestion buffer 4802 of one or more architectures of the Parent Applications, with all other components of the one or more architecture of the Parent Applications remaining the same.
- the indexing nodes 404 can replace the indexer 206 of one or more architectures of the Parent Applications with all other components of the one or more architectures of the Parent Applications remaining the same. Accordingly, it will be understood that a variety of architectures can be designed using one or more components of the data intake and query system 108 of the present disclosure in combination with one or more components of the data intake and query system 108 of the Parent Applications.
- the architecture depicted at FIG. 2 of the Parent Applications may be modified to replace the forwarder 204 of that architecture with the intake system 210 of the present disclosure.
- the indexers 206 of the Parent Applications can be replaced with the indexing nodes 404 of the present disclosure.
- the indexing nodes 404 can retain the buckets in the data stores 412 that they create rather than store the buckets in common storage 216.
- the indexing nodes 404 of the present disclosure can be used to execute searches on the buckets stored in the data stores 412.
- the partition manager 408 can receive data from one or more forwarders 204 of the Parent Applications. As additional forwarders 204 are added or as additional data is supplied to the architecture depicted at FIG. 2 of the Parent Applications, the indexing node 406 can spawn additional partition manager 408 and/or the indexing manager system 402 can spawn additional indexing nodes 404. In addition, in certain embodiments, the bucket manager 414 may merge buckets in the data store 414 or be omitted from the architecture depicted at FIG. 2 of the Parent Applications.
- the search head 210 of the Parent Applications can be replaced with the search head 504 of the present disclosure.
- the search head 504 can use the search master 512 and search manager 514 to process and manager the queries.
- the search head 504 can, depending on the embodiment, communicate with the indexers 206 of the Parent Applications or the search nodes 404 to execute the query.
- the architecture of FIG. 3 of the Parent Applications may be modified in a variety of ways to include one or more components of the data intake and query system 108 described herein.
- the architecture of FIG. 3 of the Parent Applications may be modified to include an intake system 210 in accordance with the present disclosure within the cloud-based data intake and query system 1006 of the Parent Applications, which intake system 210 may logically include or communicate with the forwarders 204 of the Parent Applications.
- the indexing nodes 404 described herein may be utilized in place of or to implement functionality similar to the indexers described with reference to FIG. 3 of the Parent Applications.
- the architecture of FIG. 3 of the Parent Applications may be modified to include common storage 216 and/or search nodes 506.
- the intake system 210 described herein may be utilized in place of or to implement functionality similar to either or both the forwarders 204 or the ERP processes 410 through 412 of the Parent Applications.
- the indexing nodes 506 and the search head 504 described herein may be utilized in place of or to implement functionality similar to the indexer 206 and search head 210, respectively.
- the search manager 514 described herein can manage the communications and interfacing between the indexer 210 and the ERP processes 410 through 412.
- FIGS. 5A-5C, 6A, 6B, 7A-7D, 8A, 8B, 9, 10, 11A-1 ID, 12-16, and 17A-17D of the Parent Applications it will be understood that the processing and indexing operations described as being performed by the indexers 206 can be performed by the indexing nodes 404, the search operations described as being performed by the indexers 206 can be performed by the indexing nodes 404 or search nodes 506 (depending on the embodiment), and/or the searching operations described as being performed by the search head 210, can be performed by the search head 504 or other component of the query system 214.
- the indexing nodes 404 and search heads 504 described herein may be utilized in place of or to implement functionality similar to the indexers 206 and search head 210, respectively.
- the search master 512 and search manager 514 described herein may be utilized in place of or to implement functionality similar to the master 212 and the search service provider 216, respectively, described with respect to FIG. 18 of the Parent Applications.
- the intake system 210 described herein may be utilized in place of or to implement ingestion functionality similar to the ingestion functionality of the worker nodes 214 of the Parent Applications.
- the search nodes 506 described herein may be utilized in place of or to implement search functionality similar to the search functionality of the worker nodes 214 of the Parent Applications.
- the indexing nodes 404 and search heads 504 described herein may be utilized in place of or to implement functionality similar to the indexers 236 and search heads 226, respectively.
- the search head 504 described herein may be utilized in place of or to implement functionality similar to the daemon 232 and the master 234 described with respect to FIG. 25 of the Parent Applications.
- the intake system 210 described herein may be utilized in place of or to implement ingestion functionality similar to the ingestion functionality of the worker nodes 214 of the Parent Applications.
- the search nodes 506 described herein may be utilized in place of or to implement search functionality similar to the search functionality of the worker nodes 234 of the Parent Applications.
- the indexing nodes 404 or search nodes 506 described herein may be utilized in place of or to implement functionality similar to the index cache components 254.
- the indexing nodes 404 may be utilized in place of or to implement parsing, indexing, storing functionality of the index cache components 254, and the search nodes 506 described herein may be utilized in place of or to implement searching or caching functionality similar to the index cache components 254.
- the search head 504 described herein may be utilized in place of or to implement functionality similar to the search heads 244, daemon 252, and/or the master 250 described with respect to FIG. 27 of the Parent Applications.
- the intake system 210 described herein may be utilized in place of or to implement ingestion functionality similar to the ingestion functionality of the worker nodes 246 described with respect to FIG. 27 of the Parent Applications.
- the search nodes 506 described herein may be utilized in place of or to implement search functionality similar to the search functionality of the worker nodes 234 described with respect to FIG. 27 of the Parent Applications.
- the common storage 216 described herein may be utilized in place of or to implement functionality similar to the functionality of the cloud storage 256 and/or global index 258 described with respect to FIG. 27 of the Parent Applications.
- the intake system 210 can ingest data from a data stream, process the data (e.g., perform various transformations or manipulations of the data), and output the data.
- the intake system 210 can output the data for storage and use in executing queries.
- the intake system 210 may be limited to ingesting data from a specific set of data streams (e.g., externally defined data streams such as data streams from another system such as Amazon’s SQS or KinesisTM services or a general system defined data stream).
- a specific set of data streams e.g., externally defined data streams such as data streams from another system such as Amazon’s SQS or KinesisTM services or a general system defined data stream.
- each ingestion buffer as discussed in FIG.
- 3B may define a single data stream, such that all data, regardless of the manner of receipt of the data, the characteristics of the data, or the data source, is grouped within the same data stream.
- a user of the intake system 210 may need to specify a data source and apply a corresponding system filter from the stream.
- a system without user defined data streams may further view data sources and data sinks separately.
- such a system may view data sources differently from data sinks such that a processing pipeline reads from a data source and writes to a data sink.
- a processing pipeline reads from a data source and writes to a data sink.
- daisy chain processing pipelines to perform a series of separated data transformations. Therefore, in such a system, it may not be possible to obtain data from a data stink or write data to a data source in order to daisy chain processing pipelines.
- embodiments of present disclosure can enable a user to define user defined data streams, which streams may be created and managed by the intake system 108.
- Each user defined data stream can be populated with data from an intake point or a pipeline. Further, each user defined data stream can be mirrored to a topic on the output buffer or act as an input for a processing pipeline.
- a user may define user defined (e.g., customized) data streams that are each linked to a specific intake point (e.g., data source). Further, the use of user defined data streams can enable data from multiple intake points to be combined.
- a user can define user defined data streams such that a first processing pipeline can obtain data from a data source and write data to an intermediary user defined data stream and a second processing pipeline can obtain data from the intermediary user defined data stream and write data to a data sink. Therefore, the use of user defined data streams can enable a plurality of processing pipelines to be daisy chained together.
- Various embodiments of the present disclosure relate to a streaming data processor that enables the custom definition of data streams.
- a data stream can be a continuous flow of data from a data source or a processing pipeline to a data destination or another processing pipeline.
- a user and/or a system can define routing criteria (e.g., data boundaries) to manage the data stream.
- the routing criteria may define the data that will be written to the data stream and the data that will be read from the data stream. Therefore, based on the defined routing criteria, the source and destination of a particular data stream can be customized and/or defined. For example, a data stream can be populated with a portion of data based on defined routing criteria for the data stream. Further, based on defined routing criteria, the data stream can route data to a data source or a processing pipeline.
- the routing criteria may define a particular data source that the data stream obtains data from and a particular processing pipeline that the data stream writes data to.
- These data streams can be defined by a user or can be defined in an automated manner by a system (e.g., a system can define a data stream for a given set of data based on certain observed characteristics).
- a system can define data streams based on certain observed characteristics of a set of data. For example, a computing system can determine that the set of data includes a large amount of data and, therefore, define a first data stream and populate the first data stream with a first subset of the set of data and define a second data stream and populate the second data stream with a second subset of the set of data. This can enable the computing system to manage the set of data and balance the set of data among multiple data streams. By defining data streams in this manner, the system and/or the user can modify how data is obtained, managed, and used.
- the user defined data stream can write data to a processing pipeline.
- the processing pipeline can perform one or more data transformations on the data. Further, the processing pipeline can write the data to a subsequent user defined data stream. Therefore, the processing pipeline can be a transformation of a first data stream to a second data stream where the first data stream routes data from a source of the data and the second data stream routes transformed data to a destination of the data.
- Such a use of user defined data streams enables a user to daisy chain multiple processing pipelines together. For example, a first processing pipeline can obtain data and provide the data to a user defined data stream and a second processing pipeline can obtain data via the user defined data stream.
- the data transformations performed by one processing pipeline can be balanced among multiple processing pipelines. This can increase the speed, efficiency, and/or reliability of the intake system 210. For example, in the event of an anomaly, the loss of data can be mitigated as a particular processing pipeline is only performing a subset of the data transformations. In this manner, data transformations can be linked and/or daisy chained together. Further, data can be looped through a processing pipeline and/or a series of processing pipelines such that the same data transformation or group of data transformations is iteratively performed on the same data.
- the use of user defined data streams by a streaming data processor enables data partitioning, data sharing, and pipeline chaining.
- the streaming data processor can separate, both logically and physically, portions of data such that a first subset of the data and a second subset of the data organized and stored separately.
- Such a logical separation of the data can be based on the type of data, the data source, or any other data characteristics.
- the use of user defined data streams enables data to be shared between multiple components or parties.
- a first party may be responsible for and/or manage a first user defined data stream and a second party may be responsible for and/or manage a second user defined data stream, where the same data is routed through the first user defined data stream and the second user defined data stream.
- the use of user defined data streams enables larger processing pipelines to be separated into smaller processing pipelines that are separated by user defined data streams.
- a first processing pipeline may be linked to a second processing pipeline via a user defined data stream.
- Users may want to define user defined data streams and route data to and from a processing pipeline using the user defined data streams in order to enable data partitioning, data sharing, and pipeline chaining.
- the techniques described below can enable a user to manage a flow of data through a processing pipeline.
- the techniques solves challenges of existing data ingestion systems, in that these systems route data to processing pipelines via a general data stream, but the user is unable to customize how the data is streamed to a processing pipeline. This can affect the ability of a user to logically or physically partition data within a processor. This can cause performance and cost issues as the processor routes all data through the same data stream. Further, this can lead to inefficiencies as the data stream cannot be broken into more manageable chunks.
- a user can partition data into multiple user defined data streams based on characteristics of the data. Further, the user can break a large pipeline into more manageable chunks with a particular tenant responsible for each chunk. Further, the user can chain multiple pipelines together.
- the customization process provides viability in how the data streams and the processing pipelines are interacting with data and enables a user to provide user defined data streams and customized processing pipelines.
- a streaming data processor may route data via user defined data streams and the customized processing pipelines that are linked together in a data route (e.g., a route of data through one or more user defined data streams and one or more customized processing pipelines).
- a data route e.g., a route of data through one or more user defined data streams and one or more customized processing pipelines.
- the data route may include a user defined data stream that links a first processing pipeline and a second processing pipeline. For example, by linking the first processing pipeline and the second processing pipeline, the transformations performed by a processing pipeline can be balanced among the two processing pipelines.
- the data route 3400A is a block diagram of one embodiment of a data route 3400A of a streaming data processor 308.
- the data route 3400A is an illustrative route that data may take as the data is processed by the streaming data processor 308.
- the data route 3400A includes a user defined data stream, in accordance with example embodiments.
- the data route 3400A can include data flowing from a data stream 3402 to a processing pipeline 3404. Further, the data route 3400A can include data flowing from the processing pipeline 3404 to a processing pipeline 3408 via a user defined data stream 3406. Further, the data route 3400A can include data flowing from the processing pipeline 3408 to a data stream 3410. It will be understood that the data route 3400A may include more, less, or different elements. Therefore, the data route 3400A includes data flowing through a pair of daisy chained processing pipelines 3404, 3408.
- the streaming data processor 308 and the data route 3400A may be built according to a publish-subscribe (“pub-sub”) message model.
- data is ingested into the streaming data processor 308 and the data route 3400A (including the data streams) may be atomized as “messages,” each of which is categorized into one or more “topics.”
- the data streams can be user or system defined data streams that can be populated by and/or write to a pipeline or an external data source. Each data stream may therefore be a topic on the underlying pubsub system.
- the data streams 3402, 3410 can be externally defined data streams and/or general system defined data streams.
- the data streams 3402, 3410 can be populated with data from a particular source external to the streaming data processor 308 or write data to a particular source external to the streaming data processor 308.
- the data streams 3402, 3410 may be external streams of data from a streaming data service.
- the streaming data services can include Amazon’s SQS or KinesisTM services, devices executing Apache KafkaTM software, or devices implementing the MQTT protocol, Microsoft Azure EventHub, Google Cloud PubSub, devices implementing the JMS protocol, devices implementing the AMQP), performance metrics, etc.
- the streaming data services may write data from data storage (e.g., a bucket of data) to a data stream.
- the streaming data services may implement, manage, and/or configure the routing criteria (e.g., data boundaries) of the data streams 3402, 3410.
- one or more of the data streams 3402, 3410 may be a system defined data stream.
- the system defined data stream may represent a stream from a particular intake point. Therefore, data streams 3402, 3410 can be defined through which the data is routed.
- the user defined data stream 3406 is a user defined data stream that enables the processing pipeline 3404 to be linked to the processing pipeline 3408.
- the user defined data stream 3406 and the data streams 3402, 3410 are each streams of data, however, the user defined data stream 3406 is customizable such that a user and/or a system can define how the user defined data stream 3406 is populated. Whereas, the data streams 3402, 3410 are populated with data from a particular source, the user defined data stream 3406 can be populated with any user defined or system defined set of data. The use of such a user defined data stream 3406 enables two processing pipelines to be connected together.
- the data route 3400A can include more, less, or different processing pipelines or user defined data streams.
- the data route 3400A can include three processing pipelines with each processing pipeline separated from a subsequent processing pipeline by a user defined data stream.
- the data route 3400A can include a loop such that the processing pipeline 3404 obtains a subset of the transformed data from the processing pipeline 3408 via a second user defined data stream.
- a loop within the data route 3400A can enable the same data transformations to be iteratively performed on a set of data.
- a machine learning model, a neural network, etc. can be implemented via the looped pipeline.
- the machine learning model can iteratively infer and/or reason rules for a given set of data by passing a set of data repeatedly through the looped pipeline. Therefore, the machine learning model can be trained on historical data in order to identify and/or predict subsequently received data.
- the user defined data stream 3406 can be generated in an automated manner. For example, the user defined data stream 3406 can be updated in a periodic manner in response to observed system characteristics.
- the user defined data stream 3406 can be updated to account for changes in data traffic or in response to issues/anomalies detected by the streaming data processor 308.
- the user and/or the system can populate the user defined data stream 3406 with a given set of data.
- the user and/or the system can populate the user defined data streams 3414, 3418 with a portion of data from a particular processing pipeline. Therefore, the user defined data stream 3406 enables multiple processing pipelines to be linked in order to perform multiple sets of data transformations in a data route.
- the processing pipelines 3404, 3408 can obtain a set of data from a data stream (e.g., a customized data stream, a user defined data stream, a system defined data stream, or an externally defined data stream) and transform the set of data.
- a data stream e.g., a customized data stream, a user defined data stream, a system defined data stream, or an externally defined data stream
- the processing pipelines 3404, 3408 can perform one or more data transformations on the set of data.
- the processing pipelines 3404, 3408 can perform an initial query, an initial segmentation, or any other manipulation of the set of data.
- the processing pipelines 3404, 3408 can further route the data via another data stream (e.g., a customized data stream, a user defined data stream, a system defined data stream, or an externally defined data stream)
- the processing pipelines 3404, 3408 can obtain data via a first data stream and route transformed data via a second data stream based on defined routing criteria (e.g., a source, a destination, and data transformations) for the corresponding processing pipeline.
- defined routing criteria e.g., a source, a destination, and data transformations
- a user can, by defining the routing criteria, define a processing pipeline as reading data from a particular data stream and routing data to a particular data stream.
- the processing pipelines 3404, 3408 can perform the one or more data transformations based on the routing criteria.
- the user can define the transformations that the processing pipelines 3404, 3408 perform. Therefore, the processing pipelines 3404, 3408 can perform data transformations on received data.
- the user defined data stream 3406 can be a flow (e.g., a path) of data from a data source or a processing pipeline to another data source or a processing pipeline.
- the user defined data stream 3406 can be a flow of data from a first processing pipeline to a second processing pipeline.
- the user defined data stream 3406 can be defined based on routing criteria and implemented by the streaming data processor 308.
- the routing criteria may indicate how the data is to be routed via the user defined data stream (e.g., from a particular source to a particular destination).
- the routing criteria can further define how a user defined data stream 3406 performs in routing data.
- the user defined data stream 3406 may also be associated with stream characteristics, stream policies, and/or a stream schema.
- the stream characteristics may indicate current characteristics of how the user defined data stream is performing.
- the stream characteristics can include a timestamp characteristic, a source characteristic, a nanosecond characteristic, a body characteristic, a set of attributes characteristic, a source type characteristic, a kind characteristic, a stream name characteristic, an identification characteristic, a host characteristic, or any other stream characteristics.
- Each stream characteristics may be associated with a corresponding value indicating how the user defined data stream 3406 is performing.
- the host characteristic may indicate a current host of the user defined data stream 3406 (e.g., Server X) and the source characteristic may indicate a source of the user defined data stream 3406 (e.g., Processing Pipeline Y).
- the stream characteristics can include any characteristics that illustrate how the user defined data stream is routing data.
- the user defined data stream 3406 may be associated with a stream schema that defines the particular characteristics that are to be reported as stream characteristics.
- the stream schema may indicate that a body characteristic and a timestamp characteristic are the stream characteristics for a given user defined data stream 3406.
- the stream policies may define how the user defined data stream 3406 routes the data and retains the data.
- a streaming data processor 308 implementing the data route 3400A can obtain (e.g., read) data from a data stream 3402.
- the user and/or the system can define a processing pipeline 3404 that obtains data from a data stream 3402.
- the user may define the processing pipeline 3404 to read the data from Amazon’s KinesisTM service.
- the user and/or the system can define what data is read from Amazon’s KinesisTM service based on defined routing criteria.
- the user can define a processing pipeline that obtains data based on the routing criteria.
- the user and/or the system can further define one or more data transformations that the processing pipeline 3404 performs.
- the user can define a data manipulation that the processing pipeline 3404 performs on data received at the processing pipeline 3404.
- the processing pipeline 3404 can generate transformed data.
- the user and/or the system can further define the processing pipeline 3404 as writing transformed data to the user defined data stream 3406. Based on this definition, the processing pipeline writes the transformed data to the user defined data stream 3406. Therefore, the processing pipeline 3404 can perform data transformations and write the transformed data to the user defined data stream 3406.
- the user defined data stream 3406 can flow (e.g., route) data from the processing pipeline 3404 to the processing pipeline 3408.
- the user can define the user defined data stream 3406 as a destination of the processing pipeline 3404 and a source of the processing pipeline 3408.
- a user and/or system can define routing criteria for the user defined data stream 3406 that indicates the processing pipeline 3404 as a source of the user defined data stream 3406 and the processing pipeline 3408 as a destination of the user defined data stream 3408.
- the user and/or the system can further define stream policies for the user defined data stream 3406.
- the user defined data stream 3406 may be associated with a stream schema and stream characteristics. Therefore, based on the routing criteria, the user defined data stream 3406 routes the transformed data from the processing pipeline 3404 to the processing pipeline 3408.
- the processing pipeline 3408 can obtain the transformed data from the processing pipeline 3404 via the user defined data stream 3406.
- the user and/or the system can define a processing pipeline 3408 that obtains the transformed data from the user defined data stream 3406.
- the user and/or the system can further define additional data transformations that the processing pipeline 3408 performs.
- the processing pipeline 3404 and the processing pipeline 3408 can perform different data transformations.
- the processing pipeline 3404 and the processing pipeline 3408 can perform the same data transformations. Based on the additional data transformations, the processing pipeline 3408 can manipulate the transformed data from the processing pipeline 3404 to generate further transformed data.
- the user and/or the system can further define the processing pipeline 3408 as writing the further transformed data to a data stream 3410. Based on this definition, the processing pipeline 3408 writes the further transformed data to the data stream 3410. For example, the streaming data processor 308 can write the further transformed data to Amazon’s KinesisTM service. Therefore, the processing pipeline 3408 can perform additional data transformations and write the transformed data to the data stream 3410.
- a data route may include a user defined data stream that routes data between processing pipelines to enable data partitioning, data sharing, and pipeline chaining as previously discussed.
- the data route may also include user defined data streams that route data to a data sink from a processing pipeline or from a data source to a processing pipeline. For example, by linking a data source or data sink to a processing pipeline via the user defined data stream, the data being routed through the data route can be partitioned.
- FIG. 34B is a block diagram of one embodiment of a data route 3400B of a streaming data processor 308. As discussed with FIG.
- the data route 3400B is an illustrative route that data may take as the data is processed by the streaming data processor 308.
- the data route 3400B includes user defined data streams 3414, 3418, in accordance with example embodiments.
- the data route 3400B can include data flowing from a data source 3412 to a processing pipeline 3416 via a user defined data stream 3414. Further, the data route 3400B can include data flowing from the processing pipeline 3416 to a data sink 3420 via a user defined data stream 3418.
- the user defined data streams 3414, 3418 are user defined data streams that enable data to be routed from a data source 3412 through a processing pipeline 3416 and to a data sink 3420.
- a user can define the user defined data streams 3414, 3418.
- a system can define the user defined data streams 3414, 3418. It will be understood that the data route 3400B can include more, less, or different processing pipelines or user defined data streams.
- the data source 3412 can be a source of data that is read into a streaming data processor 308.
- the data source 3412 can initiate the data route 3400B through the streaming data processor 308.
- the data source 3412 can be a bucket of data managed by a bucket storage service (e.g., a bucket of data stored and managed by EBS), an object managed by an object storage service, a data stream, or any other source of data. Further, the data source 3412 can be a batch source or a streaming source.
- a batch source can provide data to the streaming data processor 308 at rest (e.g., a batch source can be an object stored in S3 that provides data at rest) and a streaming source can provide data to the streaming data processor 308 in motion (e.g., a streaming source can be a data stream stored in Kinesis that provides data in motion).
- data sources 3412 include, without limitation, data files, directories of files, data sent over a network, event logs, registries, performance metrics, etc.
- the data source 3412 can write the data to a user defined data stream. In some embodiments, the data source 3412 can write the data to multiple user defined data streams. Therefore, the data source 3412 can be an origination of data read into the data route 3400B.
- the user defined data streams 3414, 3418 can obtain data from a data source or a processing pipeline and write data to a data sink or a processing pipeline.
- the user defined data streams 3414, 3418 can be defined or customized to obtain data from a particular data source or a processing pipeline and write data to a particular data sink or a processing pipeline. Therefore, the user defined data streams 3414, 3418 enable a user to provide custom definitions of a stream of data.
- the processing pipeline 3416 can obtain data from and write data to user defined data streams 3414, 3418.
- the user and/or the system can define, via the routing criteria, how the processing pipeline 3416 transforms data from a first data stream to a second data stream. Therefore, the processing pipeline 3416 can perform data transformations on received data.
- the data sink 3420 can be a data endpoint, a data store, a data reservoir, etc.
- the data sink 3420 can receive data and terminate the data route 3400B through the streaming data processor 308.
- the data sink 3420 can be a bucket of data managed by a bucket storage service (e.g., a bucket of data stored and managed by EBS), an object managed by an object storage service, a data stream, or any other sink that data can be written to. Examples of data sinks 3420 include, without limitation, data files, directories of files, data sent over a network, event logs, registries, performance metrics, etc.
- the data sink 3420 can act as a data sink for a first data route and a data source for a second data route thereby allowing the streaming data processor 308 to loop multiple processing pipelines within a data route. Therefore, the data sink 3420 can be an endpoint for the data route 3400B.
- a streaming data processor 308 implementing the data route 3400B can obtain (e.g., read) data from the data source 3412.
- the user and/or the system can define a user defined data stream 3414 that is populated with data from the data source 3412.
- the user and/or the system can define the user defined data stream 3414 with particular routing criteria such that the user defined data stream 3414 is populated with data from the data source.
- the user defined data stream 3414 can route data from the data source 3412 into the data route 3400B .
- the user may define the user defined data stream 3414 such that the user defined data stream 3414 is populated with data from an object stored in Amazon’s S3 service.
- the user and/or the system can define the user defined data stream 3414 such that the user defined data stream routes a portion of the data produced by the data source 3412 into the data route 3400B.
- the user may define the user defined data stream 3414 such that the user defined data stream 3414 is periodically populated with data from the data source 3412 (e.g., every second, every three seconds, etc.).
- the user can define the user defined data stream 3414 such that the user defined data stream 3414 is populated with data from the data source 3412 based on the occurrence of a particular event. For example, when a particular subset of data (e.g., data indicating an anomalous event), the user defined data stream 3414 can be populated with the corresponding data.
- the user and/or the system can further define the user defined data stream 3414 to customize how the user defined data streams 3414 routes the data.
- the user and/or the system can define a stream schema, stream characteristics, and/or stream policies. Therefore, the user defined data stream 3414 can route data between the data source 3412 and the processing pipeline.
- the processing pipeline 3416 can obtain data from the data source 3412 via the user defined data stream 3414. Based on the customized definitions of the user defined data stream 3414 and the processing pipeline 3416, the user defined data stream 3414 acts as a link to route data between the data source 3412 and the processing pipeline 3416.
- the user and/or the system can further define data transformations to be performed by the processing pipeline 3416. For example, the user can define manipulations (e.g., segmentations, enrichment, etc.) that are to be performed on the data to generate transformed data.
- the user and/or the system can further define the processing pipeline 3416 such that the processing pipeline 3416 writes the transformed data to the user defined data stream 3418. Therefore, the processing pipeline can be defined to obtain data from the user defined data stream 3414, transform the data based on defined data transformations, and route the transformed data to the user defined data stream 3418.
- the user defined data stream 3418 can be populated with the transformed data.
- the user and/or the system can define user defined data stream 3418 in order to customize how the user defined data stream 3418 routes data.
- the user and/or the system can further define routing criteria. Based on the defined routing criteria, the user defined data stream 3418 can route data from the processing pipeline 3416 to the data sink 3420. Therefore, the user defined data stream 3418 can be a link from the processing pipeline 3416 to the data sink 3420 in order to route data out of the data route 3400B.
- the user may define the user defined data stream 3418 such that the user defined data stream 3418 populates an object stored in Amazon’s S3 service with the transformed data.
- the user and/or the system can define the user defined data stream 3418 such that the user defined data stream 3418 routes a portion of the data transformed by the processing pipeline 3416 into the data sink.
- the user may route a first portion of the transformed data to the data sink 3420 via a first user defined data stream and a second portion of the transformed data to a processing pipeline (e.g., the processing pipeline 3416 or a different processing pipeline).
- the data route 3400B can route the data from the data source 3412 to the data sink 3420 via the user defined data streams 3414, 3418 and the processing pipeline 3416 such that data transformations are performed on the data prior to the transformed data being stored in the data sink 3420.
- a streaming data processor may route data via user defined data streams and the customized processing pipelines that are linked together in a data route.
- multiple processing pipelines can be linked together. Linking the processing pipeline enables modularity of the data route as the first processing pipeline can perform a first portion of the data transformations for the data route and the second processing pipeline can perform a second portion of the data transformations for the data route. Further, such a modularity can be beneficial where one of the processing pipelines performs common operations and multiple processing pipelines can be linked to the processing pipeline performing the common operation. For example, a first processing pipeline and a second processing pipeline can route data via corresponding user defined data streams to a third processing pipeline that is performing a common data transformation.
- routine 3500 for generating and implementing a user defined data stream within a data route 3400A.
- the routine 3500 may be implemented, for example, by the streaming data processor 308 described above with reference to FIGs. 3 A and 3B.
- the routine 3500 begins at block 3502, where, in order to enable a user defined data stream that can daisy chain processing pipelines, the streaming data processor 308 obtains a first user input defining a first processing pipeline and a second processing pipeline and a second user input defining a user defined data stream and routing criteria for the user defined data stream.
- the streaming data processor 308 can obtain the first user input and the second user input from a user via a device (e.g., a graphical user interface) in communication with and/or associated with the streaming data processor 308.
- the first user input can define a source and a destination of the first processing pipeline and a source and a source and a destination of the second processing pipeline. Further, the first user input can define a first externally defined data stream as the source and the user defined data stream as the destination of the first processing pipeline.
- the first user input can define the user defined data stream as the source and a second externally defined data stream as the destination of the second processing pipeline.
- the first input can define a first system defined data stream as the source of the first processing pipeline and a second system defined data stream as the destination of the second processing pipeline.
- the first user input can further define data transformations to be performed by the first processing pipeline and/or the second processing pipeline.
- the first user input can define the same data transformations for the first processing pipeline and the second processing pipeline.
- the first input can define different data transformations for the first processing pipeline and the second processing pipeline.
- the second user input can define routing criteria that indicates how the user defined data stream routes data. For example, the second user input can define a source and a destination of the user defined data stream.
- the second user input comprises one or more of a stream name, a storage quota, a data retention policy, or a read/write throughput rate.
- the user defined data stream can be a customizable stream of data.
- the user defined data stream corresponds to a topic.
- the user defined data stream may correspond to an ingestion buffer.
- the user defined data stream can be associated with buffer criteria that indicate a source and/or a sourcetype of the user defined data stream.
- One or more of the first externally defined data stream or the second externally defined data stream may be a stream of data from a block storage service. Therefore, the streaming data processor 308 can obtain inputs defining a first processing pipeline, a second processing pipeline, and a user defined data stream for a data route 3400A.
- the streaming data processor 308 receives a set of data at the first externally defined data stream.
- the streaming data processor 308 can receive the set of data to be passed through the data route such that the set of data is iteratively transformed.
- the first externally defined data stream can read the set of data into the streaming data processor 308 from an external data service such as S3.
- the streaming data processor 308 can define the set of data received from the first externally defined data stream as corresponding to a data route 3400A.
- the streaming data processor 308 can obtain data from a plurality of externally defined data streams. Therefore, the streaming data processor 308 can receive the set of data from the first externally defined data stream for the data route 3400A.
- the streaming data processor 308 performs one or more first data transformations on the set of data to generate a first set of transformed data.
- the streaming data processor 308 can perform the one or more first data transformations using the first processing pipeline.
- the first user input can define the first processing pipeline as obtaining data from the first externally defined data stream.
- the first user input can further define the first processing pipeline as performing the one or more first data transformations on the set of data.
- the first processing pipeline can generate a first set of transformed data. Therefore, based on the first user input, the streaming data processor 308 performs one or more first data transformations to generate a first set of transformed data.
- the streaming data processor 308 populates the user defined data stream with the first set of transformed data based on the routing criteria and the first user input.
- the user can define, by the first user input, the destination of the processing pipeline as the user defined data stream. Therefore, based on the first user input, the streaming data processor 308 can populate the user defined data stream with the first set of transformed data.
- the streaming data processor 308 performs one or more second data transformations on the first set of transformed data to generate a second set of transformed data.
- the first user input can perform the one or more second data transformations using the second processing pipeline.
- the first user input can define the second processing pipeline as obtaining data from the user defined data stream.
- the first user input can further define the second processing pipeline as performing the one or more second data transformations on the first set of transformed data.
- the second processing pipeline can generate a second set of transformed data.
- the second set of transformed data may be routed to a third processing pipeline via a second user defined data stream.
- the data may be routed through any number of processing pipelines and user defined data streams.
- a subsequent set of data may be received by the streaming data processor 308 from a third externally defined data stream.
- the streaming data processor 308 can route the subsequent set of data through a third processing pipeline, a second user defined data stream, and a fourth processing pipeline based on user input. Subsequent sets of data may correspond to different data transformations based on the user input. Therefore, based on the first user input, the streaming data processor 308 performs one or more second data transformations to generate a second set of transformed data.
- the streaming data processor 308 routes the second set of transformed data to a second externally defined data stream.
- the first user input can define the second externally defined data stream as the destination of the second processing pipeline.
- the streaming data processor 308 can write data to a plurality of externally defined data streams. Therefore, the streaming data processor 308 can route the data from the second processing pipeline to the second externally defined data stream.
- a streaming data processor may route data via user defined data streams and the customized processing pipelines that are linked together in a data route.
- the external data source and the external data sink that the processing pipeline obtains data from and writes data to can be modified.
- Obtaining data from and writing data to user defined data streams enables flexibility of the streaming data processor by enabling a user to have the flexibility to choose a stream that data is written to.
- the flexibility of the streaming data processor enables the streaming data processor to avoid aggregating disparate data with different processing requirements into the same stream. For example, a first user defined data stream can obtain data from a set of sensors and a second user defined data stream can obtain data from a set of application logs.
- the routine 3500 may be implemented, for example, by the streaming data processor 308 described above with reference to FIGs. 3A and 3B .
- the routine 3600 begins at block 3602, where, in order to manage which user defined data streams receive which set of data, the streaming data processor 308 obtains a first user input defining a set of user defined data streams and routing criteria and a second user input defining a processing pipeline.
- the streaming data processor 308 can obtain the first user input and the second user input from a user via a device (e.g., a graphical user interface) in communication with and/or associated with the streaming data processor 308.
- a device e.g., a graphical user interface
- the streaming data processor 308 can obtain the first user input and the second user input from a computing system. For explain, the streaming data processor 308 can obtain the first user input and the second user input from an automated system. It will be understood that while the data streams are referred to as a set of user defined data streams, the data streams may be system defined data streams or otherwise user defined data streams. In some embodiments, the streaming data processor 308 obtains an input defining the set of user defined data streams, the routing criteria, and the processing pipeline. The second user input can define routing criteria that indicates how each user defined data stream routes data. For example, the second user input can define a source and a destination for each user defined data stream that indicate how the user defined data stream routes data.
- the first user input can define a source and a destination of the processing pipeline.
- the first user input can define a first user defined data stream as the source and a second user defined data stream as the destination of the processing pipeline.
- the first user input can further define data transformations to be performed by the processing pipeline. Therefore, the streaming data processor 308 can obtain inputs defining a processing pipeline, a set of user defined data streams, and routing criteria for a data route 3400B.
- the streaming data processor 308 receives a set of data.
- the streaming data processor 308 can receive the set of data from a data source such as a block storage service.
- the data source may be a batch source or a streaming source. Therefore, the streaming data processor 308 can receive the set of data from a data source for the data route 3400B.
- the streaming data processor 308 populates the first user defined data stream of the set of user defined data streams with a subset of the set of data.
- the routing criteria can indicate that the subset of the set of data that populates the first user defined data stream.
- the streaming data processor 308 can route the subset of the set of data via the user defined data stream.
- the streaming data processor 308 can populate the first user defined data stream with the entire set of data. Therefore, the streaming data processor 308 populates the first user defined data stream with a subset of the set of data.
- the streaming data processor 308 can route the subset of the set of data to the processing pipeline via the first user defined data stream.
- the second user input can define the first user defined data stream as the source of the processing pipeline, the one or more data transformations of the processing pipeline, and the second user defined data stream as the destination of the processing pipeline.
- the processing pipeline can obtain data from a plurality of user defined data streams. Therefore, the streaming data processor 308 populates the first user defined data stream with the subset of the set of data and routes the subset of the set of data from the data source to the processing pipeline via the first user defined data stream.
- the streaming data processor 308 In order to perform a set of data transformations particular to the set of data received by the first user defined data stream and thereby allowing the processing pipeline to perform transformations specific to a set of data, at block 3608, based on the second user input, the streaming data processor 308 performs one or more data transformations on the subset of the set of data to generate a set of transformed data.
- the streaming data processor 308, based on the second user input and the routing criteria, can route the subset of the set of data from the data source to the processing pipeline via the first user defined data stream. Based on receiving the subset of the set of data at the processing pipeline, the streaming data processor 308 can perform one or more data transformations on the subset of the set of data.
- the second user input may define the one or more data transformations to be performed by the streaming data processor 308 via the processing pipeline.
- the streaming data processor 308 can transform the subset of the set of data using the one or more data transformations to generate the set of transformed data. Therefore, the streaming data processor 308 can perform the one or more data transformations, based on the second user input, on the subset of the set of data to generate a set of transformed data.
- the streaming data processor 308 populates a second user defined data stream of the set of user defined data streams with the set of transformed data.
- the second user input can indicate that the set of transformed data populates the second user defined data stream.
- the streaming data processor 308 can route the set of transformed data via the second user defined data stream. Therefore, the streaming data processor 308 populates the second user defined data stream with the set of transformed data. Further, based on the routing criteria, the streaming data processor 308 can route the set of transformed data from the processing pipeline to a data sink via the second user defined data stream.
- the processing pipeline can write data to a plurality of user defined data streams.
- the routing criteria can define the data sink as a destination of the second user defined data stream.
- the streaming data processor 308 can obtain a third input defining an additional processing pipeline and route a second set of data from a data source to a second processing pipeline via a third user defined data stream and from the second processing pipeline to a data sink via a fourth user defined data stream. Therefore, the streaming data processor 308 populates the second user defined data stream with the set of transformed data and routes the set of transformed data from the processing pipeline to the data sink via the second user defined data stream.
- a system can be provided to enable the creation of user defined data streams and processing pipelines that can be linked to the user defined data streams.
- the system can enable the creation of the user defined data streams and processing pipelines based on received user input that identify routing criteria. Based on the received user input, a data route that includes the user defined data streams and the processing pipelines can be implemented.
- the received user input may be received through any method of receiving user input. For example, as described in FIG. 37, the user input may be received through a graphical user interface (“GUI”).
- GUI graphical user interface
- the GUI described below can enable a user to interact with (e.g., toggle, select, etc.) graphical controls to modify how a data stream and/or a processing pipeline acts.
- This customization interface solves challenges of existing data ingestion systems, in that these systems group all data into the same stream.
- a user can customize how data is streamed to a pipeline, the user has to configure a filter to filter the data received from the single stream.
- a user may define user defined data streams that are each linked to a specific intake point. Further, the use of user defined data streams can enable a plurality of processing pipelines to be daisy chained together.
- the streaming data processor can aggregate only a portion of a set of data into a user defined data stream based on routing criteria to avoid the need for a filter.
- a user can define a given data stream to customize how the data stream routes data.
- the user can define a processing pipeline by defining a particular data stream that the processing pipeline obtains data from and a particular data stream that the processing pipeline writes data.
- the customization process provides viability in how the data streams and the processing pipelines are interacting with data and enables a user to monitor the performance of the data streams and the processing pipelines.
- the interface is able to provide this visibility using real time streaming data from the streaming data processor 308.
- a streaming data processor may route data via user defined data streams.
- multiple processing pipelines can be linked together enabling modularity of the data route.
- a user can define the user defined data stream to define how the user defined data streams handles data.
- the user can identify data that should populate the user defined data stream. Identifying the data that should populate the user defined data stream can be beneficial as the user can partition a subset of data into a particular user defined data stream without requiring the use of a filter. For example, a first user defined data stream can be populated with particular data and a second user defined data stream can be populated with different data.
- the interface 3700 includes a stream schema element 3706, a stream characteristics element 3708, a stream population element 3710, and a stream policies element 3712.
- the interface 3700 can further include a stream identifier 3702 a set of pages 3704A, 3704B, 3704C, and 3704D.
- the example interface 3700 is illustrative of an interface that a computing system (e.g., a server in communication with the streaming data processor 308) generates and presents to a user associated with a given data route being implemented by the streaming data processor 308.
- a computing system e.g., a server in communication with the streaming data processor 308
- the interface 3700 includes a particular user defined data stream that the user is defining (e.g., customizing).
- the user defined data stream is a previously implemented data stream that the user is customizing (e.g., a stream that the user previously customized or a general stream that the streaming data processor 308 has implemented).
- the user defined data stream is a data stream that is not yet implemented. Further, the stream may be implemented based on an interaction by the user with the interface 3700.
- FIG. 37 is illustrative only, and a computing system may offer any type or number of streams for customization by a user.
- the interface 3700 can include more, less or different elements.
- the interface 3700 may include an element for implementing the stream.
- the user can define the stream based on elements provided in the interface.
- the user can define the stream based on stream policies that indicate how the user defined data stream routes data.
- the streaming data processor 308 may use the stream policies in order to generate the user defined data stream.
- the interface 3700 can identify multiple data streams for a particular streaming data processor 308. For example, the interface 3700 can identify multiple data streams within a data route. In some embodiments, the interface 3700 can identify one or more data streams of a first data route and one or more data streams of a second data route where each data route is associated with the streaming data processor 308. The data streams shown and/or identified by the interface 3700 can be based on data streams selected by a user. For example, a user can select a particular data stream for modification via an interaction with the interface 3700.
- the client interface 3700 may include a data stream identifier 3702.
- the data stream identifier 3702 may identify a particular data stream and provide information about the particular data stream.
- the user may toggle between various data streams using the data stream identifier 3702.
- the data stream identifier 3702 may correspond to any numerical, alphabetical, alphanumerical, or symbolical string.
- the data stream identifier 3702 may correspond to the order of generation of the corresponding data stream.
- the data stream identifier 3702 may identify a data stream and corresponding characteristics, policies, or schemas of the data stream may be identified within the interface 3700.
- a data stream implemented by the streaming data processor 308 may correspond to “Stream X.”
- the interface 3700 may further include a first page 3704A, a second page 3704B, a third page 3704C, and a fourth page 3704D.
- the interface 3700 may include a home page 3704A.
- the home page 3704A may, based on an interaction between a user and the home page 3704A, illustrate a home page 3704A for a data route corresponding to the data stream. Further, the home page 3704A may correspond to a number of selectable data streams. For example, the home page 3704A may illustrate a number of data streams within the data route.
- the home page 3704A may further include a plurality of selectable elements that the user can interact with to further customize the data route and define how data is routed by the streaming data processor 308.
- the interface 3700 may further include a stream page 3704B.
- the stream page 3704B identifies a particular data stream and one or more user configurable settings and/or elements for the particular data stream.
- the user can interact with the one or more user configurable settings and/or elements with to modify the data stream.
- the settings of the stream page 3704B can correspond to stream policies or a stream schema that are selectable and customizable by a user.
- the interface 3700 may further include a data management page 3704C identifying how data is managed within the data route.
- the data management page 3704C can identify how the data is read from an externally defined data stream, a system defined data stream, or a data source and/or identify how data is stored in an externally defined data stream, a system defined data stream, or a data sink.
- the interface 3700 may further include a user management page 3704D identifying the user. The user can interact with the user management page 3704D to customize the role of the user, permissions associated with the user, or other customizable features associated with the user.
- the stream page 3704B of the interface 3700 can further include various elements within the stream page 3704B.
- the stream page 3704B can include a stream schema element 3706, a stream characteristics element 3708, a stream population element 3710, and a stream policies element 3712.
- the stream schema element 3706 can illustrate a current stream schema associated with the data stream.
- the stream schema element 3706 identifies stream schema XY as the current stream schema for the Stream X.
- the stream schema can be a collection of selected stream characteristics for the Stream X.
- the stream schema element 3706 can further include an element that enables a user to update the stream schema and/or upload a new stream schema.
- a user via the stream schema element 3706 can define an updated stream schema for the stream by selecting a previously defined data stream schema, uploading a new stream schema, or otherwise uploading a stream schema for the stream.
- the stream schema element 3706 enables a user to customize the stream schema within the stream schema.
- the user can select, via an interaction with the stream schema element 3706, to not implement a stream schema for the data stream. Therefore, the stream schema element 3706 enables the user to define a stream schema for the data stream.
- the stream page 3704B can further include a stream characteristics element 3708.
- the stream characteristics element 3708 can illustrate current stream characteristics associated with a data stream.
- the stream characteristics can define statistics indicating how data is routed by the data stream.
- the stream characteristics can include a timestamp characteristic, a source characteristic, a nanosecond characteristic, a body characteristic, a set of attributes characteristic, a source type characteristic, a kind characteristic, a stream name characteristic, an identification characteristic, and/or a host characteristic. It will be understood that the stream characteristics element 3708 may identify more, less, or different stream characteristics.
- the stream characteristics element 3708 can identify a current value for each stream characteristics. In the example of FIG.
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Des systèmes et des procédés sont décrits pour des flux de données personnalisables dans un système de traitement de données en continu. Des critères d'acheminement pour les flux de données personnalisables sont définis par un utilisateur, un processus automatisé ou tout autre processus. Les critères d'acheminement peuvent être définis à l'aide de commandes graphiques. Le système de traitement de données en continu utilise les critères d'acheminement pour déterminer des données qui doivent être utilisées pour peupler un flux de données particulier. En outre, des pipelines de traitement sont personnalisés de telle sorte qu'un pipeline de traitement particulier peut obtenir des données à partir d'un flux de données particulier défini par un utilisateur et écrire des données dans un flux de données particulier défini par un utilisateur. Des données sont acheminées à travers les flux de données définis par l'utilisateur et des pipelines de traitement personnalisés sur la base d'un itinéraire de données. Un itinéraire de données pour un ensemble de données peut comprendre de multiples flux de données définis par l'utilisateur et de multiples pipelines de traitement. L'itinéraire de données peut comprendre une boucle de pipelines de traitement et de flux de données.
Applications Claiming Priority (8)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US202163143706P | 2021-01-29 | 2021-01-29 | |
US63/143,706 | 2021-01-29 | ||
US17/243,156 US11636116B2 (en) | 2021-01-29 | 2021-04-28 | User interface for customizing data streams |
US17/243,156 | 2021-04-28 | ||
US17/243,209 | 2021-04-28 | ||
US17/243,209 US20220245156A1 (en) | 2021-01-29 | 2021-04-28 | Routing data between processing pipelines via a user defined data stream |
US17/243,128 US11650995B2 (en) | 2021-01-29 | 2021-04-28 | User defined data stream for routing data to a data destination based on a data route |
US17/243,128 | 2021-04-28 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2022164925A1 true WO2022164925A1 (fr) | 2022-08-04 |
Family
ID=80787510
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/US2022/013937 WO2022164925A1 (fr) | 2021-01-29 | 2022-01-26 | Flux de données défini par l'utilisateur pour acheminer des données |
Country Status (1)
Country | Link |
---|---|
WO (1) | WO2022164925A1 (fr) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20220004557A1 (en) * | 2018-01-31 | 2022-01-06 | Splunk Inc. | Dynamic data processor for streaming and batch queries |
US11636116B2 (en) | 2021-01-29 | 2023-04-25 | Splunk Inc. | User interface for customizing data streams |
US11663219B1 (en) | 2021-04-23 | 2023-05-30 | Splunk Inc. | Determining a set of parameter values for a processing pipeline |
US11687487B1 (en) * | 2021-03-11 | 2023-06-27 | Splunk Inc. | Text files updates to an active processing pipeline |
US11727039B2 (en) | 2017-09-25 | 2023-08-15 | Splunk Inc. | Low-latency streaming analytics |
US11886440B1 (en) | 2019-07-16 | 2024-01-30 | Splunk Inc. | Guided creation interface for streaming data processing pipelines |
US11989592B1 (en) | 2021-07-30 | 2024-05-21 | Splunk Inc. | Workload coordinator for providing state credentials to processing tasks of a data processing pipeline |
US12013852B1 (en) | 2018-10-31 | 2024-06-18 | Splunk Inc. | Unified data processing across streaming and indexed data sets |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8412696B2 (en) | 2011-01-31 | 2013-04-02 | Splunk Inc. | Real time searching and reporting |
US8589432B2 (en) | 2011-01-31 | 2013-11-19 | Splunk Inc. | Real time searching and reporting |
US8589403B2 (en) | 2011-02-28 | 2013-11-19 | Splunk Inc. | Compressed journaling in event tracking files for metadata recovery and replication |
US8682925B1 (en) | 2013-01-31 | 2014-03-25 | Splunk Inc. | Distributed high performance analytics store |
US8788526B2 (en) | 2012-09-07 | 2014-07-22 | Splunk Inc. | Data model for machine data for semantic search |
US8826434B2 (en) | 2013-07-25 | 2014-09-02 | Splunk Inc. | Security threat detection based on indications in big data of access to newly registered domains |
US9185007B2 (en) | 2013-04-30 | 2015-11-10 | Splunk Inc. | Proactive monitoring tree with severity state sorting |
US9215240B2 (en) | 2013-07-25 | 2015-12-15 | Splunk Inc. | Investigative and dynamic detection of potential security-threat indicators from events in big data |
US20190377816A1 (en) * | 2018-06-11 | 2019-12-12 | Uptake Technologies, Inc. | Tool for Creating and Deploying Configurable Enrichment Pipelines |
US10761813B1 (en) * | 2018-10-01 | 2020-09-01 | Splunk Inc. | Assisted visual programming for iterative publish-subscribe message processing system |
-
2022
- 2022-01-26 WO PCT/US2022/013937 patent/WO2022164925A1/fr active Application Filing
Patent Citations (21)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8412696B2 (en) | 2011-01-31 | 2013-04-02 | Splunk Inc. | Real time searching and reporting |
US8589432B2 (en) | 2011-01-31 | 2013-11-19 | Splunk Inc. | Real time searching and reporting |
US8589375B2 (en) | 2011-01-31 | 2013-11-19 | Splunk Inc. | Real time searching and reporting |
US8589403B2 (en) | 2011-02-28 | 2013-11-19 | Splunk Inc. | Compressed journaling in event tracking files for metadata recovery and replication |
US9128980B2 (en) | 2012-09-07 | 2015-09-08 | Splunk Inc. | Generation of a data model applied to queries |
US8788526B2 (en) | 2012-09-07 | 2014-07-22 | Splunk Inc. | Data model for machine data for semantic search |
US8788525B2 (en) | 2012-09-07 | 2014-07-22 | Splunk Inc. | Data model for machine data for semantic search |
US9589012B2 (en) | 2012-09-07 | 2017-03-07 | Splunk Inc. | Generation of a data model applied to object queries |
US8983994B2 (en) | 2012-09-07 | 2015-03-17 | Splunk Inc. | Generation of a data model for searching machine data |
US9128985B2 (en) | 2013-01-31 | 2015-09-08 | Splunk, Inc. | Supplementing a high performance analytics store with evaluation of individual events to respond to an event query |
US8682925B1 (en) | 2013-01-31 | 2014-03-25 | Splunk Inc. | Distributed high performance analytics store |
US9426045B2 (en) | 2013-04-30 | 2016-08-23 | Splunk Inc. | Proactive monitoring tree with severity state sorting |
US9185007B2 (en) | 2013-04-30 | 2015-11-10 | Splunk Inc. | Proactive monitoring tree with severity state sorting |
US9215240B2 (en) | 2013-07-25 | 2015-12-15 | Splunk Inc. | Investigative and dynamic detection of potential security-threat indicators from events in big data |
US9248068B2 (en) | 2013-07-25 | 2016-02-02 | Splunk Inc. | Security threat detection of newly registered domains |
US9173801B2 (en) | 2013-07-25 | 2015-11-03 | Splunk, Inc. | Graphic display of security threats based on indications of access to newly registered domains |
US9426172B2 (en) | 2013-07-25 | 2016-08-23 | Splunk Inc. | Security threat detection using domain name accesses |
US9432396B2 (en) | 2013-07-25 | 2016-08-30 | Splunk Inc. | Security threat detection using domain name registrations |
US8826434B2 (en) | 2013-07-25 | 2014-09-02 | Splunk Inc. | Security threat detection based on indications in big data of access to newly registered domains |
US20190377816A1 (en) * | 2018-06-11 | 2019-12-12 | Uptake Technologies, Inc. | Tool for Creating and Deploying Configurable Enrichment Pipelines |
US10761813B1 (en) * | 2018-10-01 | 2020-09-01 | Splunk Inc. | Assisted visual programming for iterative publish-subscribe message processing system |
Non-Patent Citations (1)
Title |
---|
WIENER PATRICK WIENER@FZI DE ET AL: "Managing geo-distributed stream processing pipelines for the MoT with StreamPipes edge extensions", PROCEEDINGS OF THE 14TH ACM INTERNATIONAL CONFERENCE ON DISTRIBUTED AND EVENT-BASED SYSTEMS, ACMPUB27, NEW YORK, NY, USA, 13 July 2020 (2020-07-13), pages 165 - 176, XP058454781, ISBN: 978-1-4503-8028-7, DOI: 10.1145/3401025.3401764 * |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11727039B2 (en) | 2017-09-25 | 2023-08-15 | Splunk Inc. | Low-latency streaming analytics |
US12105740B2 (en) | 2017-09-25 | 2024-10-01 | Splunk Inc. | Low-latency streaming analytics |
US20220004557A1 (en) * | 2018-01-31 | 2022-01-06 | Splunk Inc. | Dynamic data processor for streaming and batch queries |
US11645286B2 (en) | 2018-01-31 | 2023-05-09 | Splunk Inc. | Dynamic data processor for streaming and batch queries |
US12013852B1 (en) | 2018-10-31 | 2024-06-18 | Splunk Inc. | Unified data processing across streaming and indexed data sets |
US11886440B1 (en) | 2019-07-16 | 2024-01-30 | Splunk Inc. | Guided creation interface for streaming data processing pipelines |
US11636116B2 (en) | 2021-01-29 | 2023-04-25 | Splunk Inc. | User interface for customizing data streams |
US11650995B2 (en) | 2021-01-29 | 2023-05-16 | Splunk Inc. | User defined data stream for routing data to a data destination based on a data route |
US11687487B1 (en) * | 2021-03-11 | 2023-06-27 | Splunk Inc. | Text files updates to an active processing pipeline |
US11663219B1 (en) | 2021-04-23 | 2023-05-30 | Splunk Inc. | Determining a set of parameter values for a processing pipeline |
US11989592B1 (en) | 2021-07-30 | 2024-05-21 | Splunk Inc. | Workload coordinator for providing state credentials to processing tasks of a data processing pipeline |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20220269727A1 (en) | Processing data using containerized state-free indexing nodes in a containerized scalable environment | |
US11567960B2 (en) | Isolated execution environment system monitoring | |
US11663212B2 (en) | Identifying configuration parameters for a query using a metadata catalog | |
US11294941B1 (en) | Message-based data ingestion to a data intake and query system | |
US10776355B1 (en) | Managing, storing, and caching query results and partial query results for combination with additional query results | |
US11003714B1 (en) | Search node and bucket identification using a search node catalog and a data store catalog | |
US11106734B1 (en) | Query execution using containerized state-free search nodes in a containerized scalable environment | |
US10984044B1 (en) | Identifying buckets for query execution using a catalog of buckets stored in a remote shared storage system | |
US11269939B1 (en) | Iterative message-based data processing including streaming analytics | |
US11250056B1 (en) | Updating a location marker of an ingestion buffer based on storing buckets in a shared storage system | |
US11636116B2 (en) | User interface for customizing data streams | |
US11157498B1 (en) | Query generation using a dataset association record of a metadata catalog | |
US11550847B1 (en) | Hashing bucket identifiers to identify search nodes for efficient query execution | |
US11567993B1 (en) | Copying buckets from a remote shared storage system to memory associated with a search node for query execution | |
US11562023B1 (en) | Merging buckets in a data intake and query system | |
US12050597B2 (en) | Search-time field extraction in a data intake and query system | |
US11620336B1 (en) | Managing and storing buckets to a remote shared storage system based on a collective bucket size | |
US12079175B2 (en) | Streaming synthesis of distributed traces from machine logs | |
US11238049B1 (en) | Revising catalog metadata based on parsing queries | |
US11392578B1 (en) | Automatically generating metadata for a metadata catalog based on detected changes to the metadata catalog | |
US11663219B1 (en) | Determining a set of parameter values for a processing pipeline | |
US11714823B1 (en) | Generating metric data from log data using metricization rules | |
US11874691B1 (en) | Managing efficient query execution including mapping of buckets to search nodes | |
US11675473B1 (en) | User interface for summarizing data to generate previews of metric data | |
US11687487B1 (en) | Text files updates to an active processing pipeline |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22704646 Country of ref document: EP Kind code of ref document: A1 |
|
DPE1 | Request for preliminary examination filed after expiration of 19th month from priority date (pct application filed from 20040101) | ||
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 22704646 Country of ref document: EP Kind code of ref document: A1 |