Class EqlSearchRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.eql.EqlSearchRequest
- All Implemented Interfaces:
JsonpSerializable
Get EQL search results. Returns search results for an Event Query Language
(EQL) query. EQL assumes each document in a data stream or index corresponds
to an event.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<EqlSearchRequest>Json deserializer forEqlSearchRequeststatic final SimpleEndpoint<EqlSearchRequest,?> Endpoint "eql.search". -
Method Summary
Modifier and TypeMethodDescriptionfinal BooleanWhether to ignore if a wildcard indices expression resolves into no concrete indices.final BooleanAllow query execution also in case of shard failures.final BooleanThis flag applies only to sequences and has effect only if allow_partial_search_results=true.final BooleanAPI name:case_sensitivefinal BooleanIndicates whether network round-trips should be minimized as part of cross-cluster search requests executionstatic <TEvent> Endpoint<EqlSearchRequest,EqlSearchResponse<TEvent>, ErrorResponse> createSearchEndpoint(JsonpDeserializer<TEvent> tEventDeserializer) Create an "eql.search" endpoint.final StringField containing the event classification, such as process, file, or network.final List<ExpandWildcard>Whether to expand wildcard expression to concrete indices that are open, closed or both.final NumberMaximum number of events to search at a time for sequence queries.final List<FieldAndFormat>fields()Array of wildcard (*) patterns.filter()Query, written in Query DSL, used to filter the events on which the EQL query runs.final BooleanIf true, missing or closed indices are not included in the response.index()Required - The name of the index to scope the operationfinal TimeAPI name:keep_alivefinal BooleanAPI name:keep_on_completionfinal IntegerBy default, the response of a sample query contains up to10samples, with one sample per unique set of join keys.static EqlSearchRequestfinal Stringquery()Required - EQL query you wish to run.final ResultPositionAPI name:result_positionfinal Map<String,RuntimeField> API name:runtime_mappingsvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal Numbersize()For basic queries, the maximum number of matching events to return.final StringField used to sort hits with the same timestamp in ascending orderfinal StringField containing event timestamp.final TimeAPI name:wait_for_completion_timeoutMethods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forEqlSearchRequest -
_ENDPOINT
Endpoint "eql.search".
-
-
Method Details
-
of
public static EqlSearchRequest of(Function<EqlSearchRequest.Builder, ObjectBuilder<EqlSearchRequest>> fn) -
allowNoIndices
Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes_allstring or when no indices have been specified)API name:
allow_no_indices -
allowPartialSearchResults
Allow query execution also in case of shard failures. If true, the query will keep running and will return results based on the available shards. For sequences, the behavior can be further refined using allow_partial_sequence_resultsAPI name:
allow_partial_search_results -
allowPartialSequenceResults
This flag applies only to sequences and has effect only if allow_partial_search_results=true. If true, the sequence query will return results based on the available shards, ignoring the others. If false, the sequence query will return successfully, but will always have empty results.API name:
allow_partial_sequence_results -
caseSensitive
API name:case_sensitive -
ccsMinimizeRoundtrips
Indicates whether network round-trips should be minimized as part of cross-cluster search requests executionAPI name:
ccs_minimize_roundtrips -
eventCategoryField
Field containing the event classification, such as process, file, or network.API name:
event_category_field -
expandWildcards
Whether to expand wildcard expression to concrete indices that are open, closed or both.API name:
expand_wildcards -
fetchSize
Maximum number of events to search at a time for sequence queries.API name:
fetch_size -
fields
Array of wildcard (*) patterns. The response returns values for field names matching these patterns in the fields property of each hit.API name:
fields -
filter
Query, written in Query DSL, used to filter the events on which the EQL query runs.API name:
filter -
index
Required - The name of the index to scope the operationAPI name:
index -
keepAlive
API name:keep_alive -
keepOnCompletion
API name:keep_on_completion -
maxSamplesPerKey
By default, the response of a sample query contains up to10samples, with one sample per unique set of join keys. Use thesizeparameter to get a smaller or larger set of samples. To retrieve more than one sample per set of join keys, use themax_samples_per_keyparameter. Pipes are not supported for sample queries.API name:
max_samples_per_key -
query
Required - EQL query you wish to run.API name:
query -
resultPosition
API name:result_position -
runtimeMappings
API name:runtime_mappings -
size
For basic queries, the maximum number of matching events to return. Defaults to 10API name:
size -
tiebreakerField
Field used to sort hits with the same timestamp in ascending orderAPI name:
tiebreaker_field -
timestampField
Field containing event timestamp. Default "@timestamp"API name:
timestamp_field -
waitForCompletionTimeout
API name:wait_for_completion_timeout -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupEqlSearchRequestDeserializer
protected static void setupEqlSearchRequestDeserializer(ObjectDeserializer<EqlSearchRequest.Builder> op) -
createSearchEndpoint
public static <TEvent> Endpoint<EqlSearchRequest,EqlSearchResponse<TEvent>, createSearchEndpointErrorResponse> (JsonpDeserializer<TEvent> tEventDeserializer) Create an "eql.search" endpoint.
-