DeleteElasticsearch5

Description:

Delete a document from Elasticsearch 5.0 by document id. If the cluster has been configured for authorization and/or secure transport (SSL/TLS), and the X-Pack plugin is available, secure connections can be made.

Tags:

elasticsearch, elasticsearch 5, delete, remove

Properties:

In the list below, the names of required properties appear in bold. Any other properties (not in bold) are considered optional. The table also indicates any default values, whether a property supports the NiFi Expression Language, and whether a property is considered "sensitive", meaning that its value will be encrypted. Before entering a value in a sensitive property, ensure that the nifi.properties file has an entry for the property nifi.sensitive.props.key.

NameDefault ValueAllowable ValuesDescription
Cluster NameelasticsearchName of the ES cluster (for example, elasticsearch_brew). Defaults to 'elasticsearch'
Supports Expression Language: true (will be evaluated using variable registry only)
ElasticSearch HostsElasticSearch Hosts, which should be comma separated and colon for hostname/port host1:port,host2:port,.... For example testcluster:9300. This processor uses the Transport Client to connect to hosts. The default transport client port is 9300.
Supports Expression Language: true (will be evaluated using variable registry only)
SSL Context ServiceController Service API:
SSLContextService
Implementations: StandardRestrictedSSLContextService
StandardSSLContextService
The SSL Context Service used to provide client certificate information for TLS/SSL connections. This service only applies if the Elasticsearch endpoint(s) have been secured with TLS/SSL.
X-Pack Transport LocationSpecifies the path to the JAR(s) for the Elasticsearch X-Pack Transport feature. If the Elasticsearch cluster has been secured with the X-Pack plugin, then the X-Pack Transport JARs must also be available to this processor. Note: Do NOT place the X-Pack JARs into NiFi's lib/ directory, doing so will prevent the X-Pack Transport JARs from being loaded.
Supports Expression Language: true (will be evaluated using variable registry only)
UsernameUsername to access the Elasticsearch cluster
Supports Expression Language: true (will be evaluated using variable registry only)
PasswordPassword to access the Elasticsearch cluster
Sensitive Property: true
ElasticSearch Ping Timeout5sThe ping timeout used to determine when a node is unreachable. For example, 5s (5 seconds). If non-local recommended is 30s
Supports Expression Language: true (will be evaluated using variable registry only)
Sampler Interval5sHow often to sample / ping the nodes listed and connected. For example, 5s (5 seconds). If non-local recommended is 30s.
Supports Expression Language: true (will be evaluated using variable registry only)
Document IdentifierThe identifier for the document to be deleted
Supports Expression Language: true (will be evaluated using flow file attributes and variable registry)
IndexThe name of the index to delete the document from
Supports Expression Language: true (will be evaluated using flow file attributes and variable registry)
TypeThe type of this document to be deleted
Supports Expression Language: true (will be evaluated using flow file attributes and variable registry)

Relationships:

NameDescription
retryA FlowFile is routed to this relationship if the document cannot be deleted because or retryable exception like timeout or node not available
successAll FlowFile corresponding to the deleted document from Elasticsearch are routed to this relationship
failureAll FlowFile corresponding to delete document that failed from Elasticsearch are routed to this relationship
not foundA FlowFile is routed to this relationship if the specified document was not found in elasticsearch

Reads Attributes:

None specified.

Writes Attributes:

NameDescription
es.error.messageThe message attribute in case of error
filenameThe filename attribute which is set to the document identifier
es.indexThe Elasticsearch index containing the document
es.typeThe Elasticsearch document type
es.rest.statusThe filename attribute with rest status

State management:

This component does not store state.

Restricted:

This component is not restricted.

Input requirement:

This component requires an incoming relationship.

System Resource Considerations:

None specified.

See Also:

FetchElasticsearch5, PutElasticsearch5