java.lang.Object
org.elasticsearch.action.search.SearchLogProducer
- All Implemented Interfaces:
ActivityLogProducer<SearchLogContext>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String[]static final Stringstatic final Stringstatic final StringFields inherited from interface org.elasticsearch.common.logging.activity.ActivityLogProducer
EVENT_DURATION_FIELD, EVENT_OUTCOME_FIELD, PARENT_NODE_ID_FIELD, PARENT_TASK_ID_FIELD, TASK_ID_FIELD, TRACE_ID_FIELD, X_OPAQUE_ID_FIELD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionproduce(SearchLogContext context, ActionLoggingFields additionalFields) Produces aESLogMessageif the producer decides to log, or nothing otherwise.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.common.logging.activity.ActivityLogProducer
loggerName, produceCommon
-
Field Details
-
NEVER_MATCH
-
QUERY_FIELD_HAS_AGGREGATIONS
- See Also:
-
QUERY_FIELD_SEARCH_HITS
- See Also:
-
QUERY_FIELD_SEARCH_HITS_GTE
- See Also:
-
-
Constructor Details
-
SearchLogProducer
public SearchLogProducer()
-
-
Method Details
-
produce
public Optional<ESLogMessage> produce(SearchLogContext context, ActionLoggingFields additionalFields) Description copied from interface:ActivityLogProducerProduces aESLogMessageif the producer decides to log, or nothing otherwise.- Specified by:
producein interfaceActivityLogProducer<SearchLogContext>
-