younifyd
Menu

Create or update a pipeline

Create or update a pipeline

PUT/_ingest/pipeline/{id}

Use it in a workflow

  1. Add a step and choose the Elasticsearch connector.
  2. Pick the Create or update a pipeline action (under ingest).
  3. Fill in the fields below, then reference the result from later steps as {{createOrUpdateAPipeline.response.data}}.

Request

Path parameters

idstringrequired

ID of the ingest pipeline to create or update.

Query parameters

master_timeoutoneOf

Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.

timeoutoneOf

Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.

if_versionnumber

Required version for optimistic concurrency control for pipeline updates

Request body

Enter the body as JSON in the step's Body field.

_metaany

Optional metadata about the ingest pipeline. May have any contents. This map is not automatically generated by Elasticsearch.

descriptionstring

Description of the ingest pipeline.

on_failurearray<object>

Processors to run immediately after a processor failure. Each processor supports a processor-level `on_failure` value. If a processor without an `on_failure` value fails, Elasticsearch uses this pipeline-level parameter as a fallback. The processors in this parameter run sequentially in the order specified. Elasticsearch will not attempt to run the pipeline's remaining processors.

appendany

Appends one or more values to an existing array if the field already exists and it is an array. Converts a scalar to an array and appends one or more values to it if the field exists and it is a scalar. Creates an array containing the provided values if the field doesn’t exist. Accepts a single value or an array of values.

attachmentany

The attachment processor lets Elasticsearch extract file attachments in common formats (such as PPT, XLS, and PDF) by using the Apache text extraction library Tika.

bytesany

Converts a human readable byte value (for example `1kb`) to its value in bytes (for example `1024`). If the field is an array of strings, all members of the array will be converted. Supported human readable units are "b", "kb", "mb", "gb", "tb", "pb" case insensitive. An error will occur if the field is not a supported format or resultant value exceeds 2^63.

cefany

Converts a CEF message into a structured format.

circleany

Converts circle definitions of shapes to regular polygons which approximate them.

community_idany

Computes the Community ID for network flow data as defined in the Community ID Specification. You can use a community ID to correlate network events related to a single flow.

convertany

Converts a field in the currently ingested document to a different type, such as converting a string to an integer. If the field value is an array, all members will be converted.

csvany

Extracts fields from CSV line out of a single text field within a document. Any empty field in CSV will be skipped.

dateany

Parses dates from fields, and then uses the date or timestamp as the timestamp for the document.

date_index_nameany

The purpose of this processor is to point documents to the right time based index based on a date or timestamp field in a document by using the date math index name support.

dissectany

Extracts structured fields out of a single text field by matching the text field against a delimiter-based pattern.

dot_expanderany

Expands a field with dots into an object field. This processor allows fields with dots in the name to be accessible by other processors in the pipeline. Otherwise these fields can’t be accessed by any processor.

dropany

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

enrichany

The `enrich` processor can enrich documents with data from another index.

failany

Raises an exception. This is useful for when you expect a pipeline to fail and want to relay a specific message to the requester.

fingerprintany

Computes a hash of the document’s content. You can use this hash for content fingerprinting.

foreachany

Runs an ingest processor on each element of an array or object.

ip_locationany

Currently an undocumented alias for GeoIP Processor.

geo_gridany

Converts geo-grid definitions of grid tiles or cells to regular bounding boxes or polygons which describe their shape. This is useful if there is a need to interact with the tile shapes as spatially indexable fields.

geoipany

The `geoip` processor adds information about the geographical location of an IPv4 or IPv6 address.

grokany

Extracts structured fields out of a single text field within a document. You choose which field to extract matched fields from, as well as the grok pattern you expect will match. A grok pattern is like a regular expression that supports aliased expressions that can be reused.

gsubany

Converts a string field by applying a regular expression and a replacement. If the field is an array of string, all members of the array will be converted. If any non-string values are encountered, the processor will throw an exception.

html_stripany

Removes HTML tags from the field. If the field is an array of strings, HTML tags will be removed from all members of the array.

inferenceany

Uses a pre-trained data frame analytics model or a model deployed for natural language processing tasks to infer against the data that is being ingested in the pipeline.

joinany

Joins each element of an array into a single string using a separator character between each element. Throws an error when the field is not an array.

jsonany

Parses a string containing JSON data into a structured object, string, or other value.

kvany

This processor helps automatically parse messages (or specific event fields) which are of the `foo=bar` variety.

lowercaseany

Converts a string to its lowercase equivalent. If the field is an array of strings, all members of the array will be converted.

network_directionany

Calculates the network direction given a source IP address, destination IP address, and a list of internal networks.

pipelineany

Executes another pipeline.

redactany

The Redact processor uses the Grok rules engine to obscure text in the input document matching the given Grok patterns. The processor can be used to obscure Personal Identifying Information (PII) by configuring it to detect known patterns such as email or IP addresses. Text that matches a Grok pattern is replaced with a configurable string such as `<EMAIL>` where an email address is matched or simply replace all matches with the text `<REDACTED>` if preferred.

registered_domainany

Extracts the registered domain (also known as the effective top-level domain or eTLD), sub-domain, and top-level domain from a fully qualified domain name (FQDN). Uses the registered domains defined in the Mozilla Public Suffix List.

removeany

Removes existing fields. If one field doesn’t exist, an exception will be thrown.

renameany

Renames an existing field. If the field doesn’t exist or the new name is already used, an exception will be thrown.

rerouteany

Routes a document to another target index or data stream. When setting the `destination` option, the target is explicitly specified and the dataset and namespace options can’t be set. When the `destination` option is not set, this processor is in a data stream mode. Note that in this mode, the reroute processor can only be used on data streams that follow the data stream naming scheme.

scriptany

Runs an inline or stored script on incoming documents. The script runs in the `ingest` context.

setany

Adds a field with the specified value. If the field already exists, its value will be replaced with the provided one.

set_security_userany

Sets user-related details (such as `username`, `roles`, `email`, `full_name`, `metadata`, `api_key`, `realm` and `authentication_type`) from the current authenticated user to the current document by pre-processing the ingest.

sortany

Sorts the elements of an array ascending or descending. Homogeneous arrays of numbers will be sorted numerically, while arrays of strings or heterogeneous arrays of strings + numbers will be sorted lexicographically. Throws an error when the field is not an array.

splitany

Splits a field into an array using a separator character. Only works on string fields.

processorsarray<object>

Processors used to perform transformations on documents before indexing. Processors run sequentially in the order specified.

appendany

Appends one or more values to an existing array if the field already exists and it is an array. Converts a scalar to an array and appends one or more values to it if the field exists and it is a scalar. Creates an array containing the provided values if the field doesn’t exist. Accepts a single value or an array of values.

attachmentany

The attachment processor lets Elasticsearch extract file attachments in common formats (such as PPT, XLS, and PDF) by using the Apache text extraction library Tika.

bytesany

Converts a human readable byte value (for example `1kb`) to its value in bytes (for example `1024`). If the field is an array of strings, all members of the array will be converted. Supported human readable units are "b", "kb", "mb", "gb", "tb", "pb" case insensitive. An error will occur if the field is not a supported format or resultant value exceeds 2^63.

cefany

Converts a CEF message into a structured format.

circleany

Converts circle definitions of shapes to regular polygons which approximate them.

community_idany

Computes the Community ID for network flow data as defined in the Community ID Specification. You can use a community ID to correlate network events related to a single flow.

convertany

Converts a field in the currently ingested document to a different type, such as converting a string to an integer. If the field value is an array, all members will be converted.

csvany

Extracts fields from CSV line out of a single text field within a document. Any empty field in CSV will be skipped.

dateany

Parses dates from fields, and then uses the date or timestamp as the timestamp for the document.

date_index_nameany

The purpose of this processor is to point documents to the right time based index based on a date or timestamp field in a document by using the date math index name support.

dissectany

Extracts structured fields out of a single text field by matching the text field against a delimiter-based pattern.

dot_expanderany

Expands a field with dots into an object field. This processor allows fields with dots in the name to be accessible by other processors in the pipeline. Otherwise these fields can’t be accessed by any processor.

dropany

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

enrichany

The `enrich` processor can enrich documents with data from another index.

failany

Raises an exception. This is useful for when you expect a pipeline to fail and want to relay a specific message to the requester.

fingerprintany

Computes a hash of the document’s content. You can use this hash for content fingerprinting.

foreachany

Runs an ingest processor on each element of an array or object.

ip_locationany

Currently an undocumented alias for GeoIP Processor.

geo_gridany

Converts geo-grid definitions of grid tiles or cells to regular bounding boxes or polygons which describe their shape. This is useful if there is a need to interact with the tile shapes as spatially indexable fields.

geoipany

The `geoip` processor adds information about the geographical location of an IPv4 or IPv6 address.

grokany

Extracts structured fields out of a single text field within a document. You choose which field to extract matched fields from, as well as the grok pattern you expect will match. A grok pattern is like a regular expression that supports aliased expressions that can be reused.

gsubany

Converts a string field by applying a regular expression and a replacement. If the field is an array of string, all members of the array will be converted. If any non-string values are encountered, the processor will throw an exception.

html_stripany

Removes HTML tags from the field. If the field is an array of strings, HTML tags will be removed from all members of the array.

inferenceany

Uses a pre-trained data frame analytics model or a model deployed for natural language processing tasks to infer against the data that is being ingested in the pipeline.

joinany

Joins each element of an array into a single string using a separator character between each element. Throws an error when the field is not an array.

jsonany

Parses a string containing JSON data into a structured object, string, or other value.

kvany

This processor helps automatically parse messages (or specific event fields) which are of the `foo=bar` variety.

lowercaseany

Converts a string to its lowercase equivalent. If the field is an array of strings, all members of the array will be converted.

network_directionany

Calculates the network direction given a source IP address, destination IP address, and a list of internal networks.

pipelineany

Executes another pipeline.

redactany

The Redact processor uses the Grok rules engine to obscure text in the input document matching the given Grok patterns. The processor can be used to obscure Personal Identifying Information (PII) by configuring it to detect known patterns such as email or IP addresses. Text that matches a Grok pattern is replaced with a configurable string such as `<EMAIL>` where an email address is matched or simply replace all matches with the text `<REDACTED>` if preferred.

registered_domainany

Extracts the registered domain (also known as the effective top-level domain or eTLD), sub-domain, and top-level domain from a fully qualified domain name (FQDN). Uses the registered domains defined in the Mozilla Public Suffix List.

removeany

Removes existing fields. If one field doesn’t exist, an exception will be thrown.

renameany

Renames an existing field. If the field doesn’t exist or the new name is already used, an exception will be thrown.

rerouteany

Routes a document to another target index or data stream. When setting the `destination` option, the target is explicitly specified and the dataset and namespace options can’t be set. When the `destination` option is not set, this processor is in a data stream mode. Note that in this mode, the reroute processor can only be used on data streams that follow the data stream naming scheme.

scriptany

Runs an inline or stored script on incoming documents. The script runs in the `ingest` context.

setany

Adds a field with the specified value. If the field already exists, its value will be replaced with the provided one.

set_security_userany

Sets user-related details (such as `username`, `roles`, `email`, `full_name`, `metadata`, `api_key`, `realm` and `authentication_type`) from the current authenticated user to the current document by pre-processing the ingest.

sortany

Sorts the elements of an array ascending or descending. Homogeneous arrays of numbers will be sorted numerically, while arrays of strings or heterogeneous arrays of strings + numbers will be sorted lexicographically. Throws an error when the field is not an array.

splitany

Splits a field into an array using a separator character. Only works on string fields.

versionany

Version number used by external systems to track ingest pipelines. This parameter is intended for external systems only. Elasticsearch does not use or validate pipeline version numbers.

deprecatedboolean

Marks this ingest pipeline as deprecated. When a deprecated ingest pipeline is referenced as the default or final pipeline when creating or updating a non-deprecated index template, Elasticsearch will emit a deprecation warning.

Default false

field_access_patternany

Controls how processors in this pipeline should read and write data on a document's source.

Default "classic"

json
{
  "_meta": null,
  "description": "string",
  "on_failure": [
    {
      "append": null,
      "attachment": null,
      "bytes": null,
      "cef": null,
      "circle": null,
      "community_id": null,
      "convert": null,
      "csv": null,
      "date": null,
      "date_index_name": null,
      "dissect": null,
      "dot_expander": null
    }
  ],
  "processors": [
    {
      "append": null,
      "attachment": null,
      "bytes": null,
      "cef": null,
      "circle": null,
      "community_id": null,
      "convert": null,
      "csv": null,
      "date": null,
      "date_index_name": null,
      "dissect": null,
      "dot_expander": null
    }
  ],
  "version": null,
  "deprecated": false,
  "field_access_pattern": "classic"
}

Response

Returns 200 with an object. Read it in later steps with {{createOrUpdateAPipeline.response.data.<field>}}.

acknowledgedboolean

For a successful response, this value is always true. On failure, an exception is returned instead.

json
{
  "acknowledged": false
}

Need more? See the Elasticsearch guide for connection setup and behaviour shared by every action.