Back to Elasticsearch

Drop processor [drop-processor]

docs/reference/enrich-processor/drop-processor.md

9.4.01.1 KB
Original Source

Drop processor [drop-processor]

Drops the document without raising any errors. This is useful to prevent the document from getting indexed based on some condition.

$$$drop-options$$$

NameRequiredDefaultDescription
descriptionno-Description of the processor. Useful for describing the purpose of the processor or its configuration.
ifno-Conditionally execute the processor. See Conditionally run a processor.
ignore_failurenofalseIgnore failures for the processor. See Handling pipeline failures.
on_failureno-Handle failures for the processor. See Handling pipeline failures.
tagno-Identifier for the processor. Useful for debugging and metrics.
js
{
  "drop": {
    "if" : "ctx.network_name == 'Guest'"
  }
}

% NOTCONSOLE