Class EqlSearchRequest.Builder
- All Implemented Interfaces:
WithJson<EqlSearchRequest.Builder>,ObjectBuilder<EqlSearchRequest>
- Enclosing class:
- EqlSearchRequest
EqlSearchRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal EqlSearchRequest.BuilderallowNoIndices(Boolean value) Whether to ignore if a wildcard indices expression resolves into no concrete indices.final EqlSearchRequest.BuilderallowPartialSearchResults(Boolean value) Allow query execution also in case of shard failures.final EqlSearchRequest.BuilderThis flag applies only to sequences and has effect only if allow_partial_search_results=true.build()Builds aEqlSearchRequest.final EqlSearchRequest.BuildercaseSensitive(Boolean value) API name:case_sensitivefinal EqlSearchRequest.BuilderccsMinimizeRoundtrips(Boolean value) Indicates whether network round-trips should be minimized as part of cross-cluster search requests executionfinal EqlSearchRequest.BuildereventCategoryField(String value) Field containing the event classification, such as process, file, or network.final EqlSearchRequest.BuilderexpandWildcards(ExpandWildcard value, ExpandWildcard... values) Whether to expand wildcard expression to concrete indices that are open, closed or both.final EqlSearchRequest.BuilderexpandWildcards(List<ExpandWildcard> list) Whether to expand wildcard expression to concrete indices that are open, closed or both.final EqlSearchRequest.BuilderMaximum number of events to search at a time for sequence queries.final EqlSearchRequest.Builderfields(FieldAndFormat value, FieldAndFormat... values) Array of wildcard (*) patterns.final EqlSearchRequest.BuilderArray of wildcard (*) patterns.final EqlSearchRequest.Builderfields(List<FieldAndFormat> list) Array of wildcard (*) patterns.final EqlSearchRequest.BuilderQuery, written in Query DSL, used to filter the events on which the EQL query runs.final EqlSearchRequest.Builderfilter(QueryVariant value, QueryVariant... values) Query, written in Query DSL, used to filter the events on which the EQL query runs.final EqlSearchRequest.BuilderQuery, written in Query DSL, used to filter the events on which the EQL query runs.final EqlSearchRequest.BuilderQuery, written in Query DSL, used to filter the events on which the EQL query runs.final EqlSearchRequest.BuilderignoreUnavailable(Boolean value) If true, missing or closed indices are not included in the response.final EqlSearchRequest.BuilderRequired - The name of the index to scope the operationfinal EqlSearchRequest.BuilderRequired - The name of the index to scope the operationfinal EqlSearchRequest.BuilderAPI name:keep_alivefinal EqlSearchRequest.BuilderAPI name:keep_alivefinal EqlSearchRequest.BuilderkeepOnCompletion(Boolean value) API name:keep_on_completionfinal EqlSearchRequest.BuildermaxSamplesPerKey(Integer value) By default, the response of a sample query contains up to10samples, with one sample per unique set of join keys.final EqlSearchRequest.BuilderRequired - EQL query you wish to run.final EqlSearchRequest.BuilderresultPosition(ResultPosition value) API name:result_positionfinal EqlSearchRequest.BuilderruntimeMappings(String key, RuntimeField value) API name:runtime_mappingsfinal EqlSearchRequest.BuilderAPI name:runtime_mappingsfinal EqlSearchRequest.BuilderruntimeMappings(Map<String, RuntimeField> map) API name:runtime_mappingsprotected EqlSearchRequest.Builderself()final EqlSearchRequest.BuilderFor basic queries, the maximum number of matching events to return.final EqlSearchRequest.BuildertiebreakerField(String value) Field used to sort hits with the same timestamp in ascending orderfinal EqlSearchRequest.BuildertimestampField(String value) Field containing event timestamp.final EqlSearchRequest.BuilderwaitForCompletionTimeout(Time value) API name:wait_for_completion_timeoutfinal EqlSearchRequest.BuilderAPI name:wait_for_completion_timeoutMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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_wildcardsAdds all elements of
listtoexpandWildcards. -
expandWildcards
public final EqlSearchRequest.Builder expandWildcards(ExpandWildcard value, ExpandWildcard... values) Whether to expand wildcard expression to concrete indices that are open, closed or both.API name:
expand_wildcardsAdds one or more values to
expandWildcards. -
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:
fieldsAdds all elements of
listtofields. -
fields
Array of wildcard (*) patterns. The response returns values for field names matching these patterns in the fields property of each hit.API name:
fieldsAdds one or more values to
fields. -
fields
public final EqlSearchRequest.Builder fields(Function<FieldAndFormat.Builder, ObjectBuilder<FieldAndFormat>> fn) Array of wildcard (*) patterns. The response returns values for field names matching these patterns in the fields property of each hit.API name:
fieldsAdds a value to
fieldsusing a builder lambda. -
filter
Query, written in Query DSL, used to filter the events on which the EQL query runs.API name:
filterAdds all elements of
listtofilter. -
filter
Query, written in Query DSL, used to filter the events on which the EQL query runs.API name:
filterAdds one or more values to
filter. -
filter
Query, written in Query DSL, used to filter the events on which the EQL query runs.API name:
filterAdds one or more values to
filter. -
filter
Query, written in Query DSL, used to filter the events on which the EQL query runs.API name:
filterAdds a value to
filterusing a builder lambda. -
index
Required - The name of the index to scope the operationAPI name:
indexAdds all elements of
listtoindex. -
index
Required - The name of the index to scope the operationAPI name:
indexAdds one or more values to
index. -
keepAlive
API name:keep_alive -
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_mappingsAdds all entries of
maptoruntimeMappings. -
runtimeMappings
API name:runtime_mappingsAdds an entry to
runtimeMappings. -
runtimeMappings
public final EqlSearchRequest.Builder runtimeMappings(String key, Function<RuntimeField.Builder, ObjectBuilder<RuntimeField>> fn) API name:runtime_mappingsAdds an entry to
runtimeMappingsusing a builder lambda. -
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 -
waitForCompletionTimeout
public final EqlSearchRequest.Builder waitForCompletionTimeout(Function<Time.Builder, ObjectBuilder<Time>> fn) API name:wait_for_completion_timeout -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<EqlSearchRequest.Builder>
-
build
Builds aEqlSearchRequest.- Specified by:
buildin interfaceObjectBuilder<EqlSearchRequest>- Throws:
NullPointerException- if some of the required fields are null.
-