Receives events via Opensearch Bulk API.
from_opensearch [url:string, keep_actions=bool, max_request_size=int, tls=record]Description
Section titled “Description”The from_opensearch operator emulates simple situations for the Opensearch
Bulk
API.
url: string (optional)
Section titled “url: string (optional)”URL to listen on.
Must have the form host[:port].
Defaults to "0.0.0.0:9200".
keep_actions = bool (optional)
Section titled “keep_actions = bool (optional)”Whether to keep the command objects such as {"create": ...}.
Defaults to false.
max_request_size = int (optional)
Section titled “max_request_size = int (optional)”The maximum size of an incoming request to accept.
Defaults to 10Mib.
tls = record (optional)
Section titled “tls = record (optional)”TLS configuration. Provide an empty record (tls={}) to enable TLS with
defaults or set fields to customize it.
{ skip_peer_verification: bool, // skip certificate verification. cacert: string, // CA bundle to verify peers. certfile: string, // client certificate to present. keyfile: string, // private key for the client certificate. min_version: string, // minimum TLS version (`"1.0"`, `"1.1"`, `"1.2"`, "1.3"`). ciphers: string, // OpenSSL cipher list string. client_ca: string, // CA to validate client certificates. require_client_cert, // require clients to present a certificate.}The client_ca and require_client_cert options are only applied
for operators that accept incoming client connections, and otherwise
ignored.
Any value not specified in the record will either be picked up from the configuration or if not configured will not be used by the operator.
See the Node TLS Setup guide for more details.
Examples
Section titled “Examples”Listen on port 8080 on an interface with IP 1.2.3.4
Section titled “Listen on port 8080 on an interface with IP 1.2.3.4”from_opensearch "1.2.3.4:8080"Listen with TLS
Section titled “Listen with TLS”from_opensearch tls=true, certfile="server.crt", keyfile="private.key"