Write to Elasticsearch Module#
This module reads an input data stream, converts each row of data to a document format suitable for Elasticsearch, and writes the documents to the specified Elasticsearch index using the Elasticsearch bulk API.
Configurable Parameters#
Parameter |
Type |
Description |
Example Value |
Default Value |
---|---|---|---|---|
|
|
Elasticsearch index. |
|
|
|
|
Elasticsearch connection keyword arguments configuration. |
|
|
|
|
Raise or suppress exceptions when writing to Elasticsearch. |
|
|
|
|
Pickled custom function configuration to update |
Refer Below |
|
|
|
Time in seconds to refresh the client connection. |
|
|
Example JSON Configuration#
{
"index": "test_index",
"connection_kwargs": {"hosts": [{"host": "localhost", "port": 9200, "scheme": "http"}]},
"raise_on_exception": true,
"pickled_func_config": {
"pickled_func_str": "pickled function as a string",
"encoding": "latin1"
},
"refresh_period_secs": 2400
}