-
Notifications
You must be signed in to change notification settings - Fork 11
Senders
Fabrice Bacchella edited this page Jan 10, 2024
·
9 revisions
Many output can batch events for improved performance. A batching output will use the following arguments:
-
batchSize
, batch size -
workers
, the number of concurrent batches can be flushed at the same time -
flushInterval
, how often to flush a batch, even if not full.
Some senders do their own encoding, the other needs an explicit encoder, whose setup is provided in the encoder
attribute.
It can batch and does not need an encoder.
timeout
-
protocol
, http or https. -
destinations
, an array of Elastic servers. -
index
, an expression for the index name -
dateformat
, a date format pattern, that can be used to generate index name; used only if index expression is not defined. -
type
, an expression for the_type
value templatePath
templateName
-
withTemplate
,false
disable any template handling from LogHub. user
password
-
typeHandling
, can take the values USING, MIGRATING, DEPRECATED- USING means the old
_type
field is still used. - MIGRATING means the old
_type
is still used, but the parameterinclude_type_name=true
is added when needed. - DEPRECATED means that no
_type
is used, in template handling or bulk send. So bothtype
andtypeX
settings will be ignored.
- USING means the old
-
ilm
, activate the index lifecycle management (ILM) feature; if true, index existence will be checked, and it’s missing, a new index with the nameindexname-000001
will be created, and an alias toindexname
will be added.
It neither type
or typeX
is defined, the type of document default to _doc
, unless of course if typeHandling
is defined to DEPRECATED
, in which case it's ignored.
It can batch. If batching, the file on disk might be in an inconsistent state, with events missing and holes in the file, until a batch is totally committed to disk.
-
fileName
, an expression for the filename, -
cacheSize
, if the filename is an expression, a cache should be used to avoid constant reopening of the same files, defines the open cache size; default to 10 entries. -
truncate
, truncate before opening a file if it already exists. -
separator
, the entry separator, as a String.
It does not need an encoder.
It can batch. When batching, each batch will use a dedicated socket, to the same destination.
-
destination
, -
port
, -
separator
, the entry separator, as a String
It can batch.
-
type
, a ZMQ socket type. hwm
-
destination
, a ZMQ URL. -
method
, can beBIND
orCONNECT
. serverKey
-
security
, can beNULL
,PLAIN
,CURVE
. -
zapHandler
, can beALLOW
,DENY
,STRICT
,METADATA
.