Log appenders
This page explains what log appenders are and their parameters
What log appenders are
There are appenders in Aidbox to process log messages. An appender is a processing pipeline which:
Filters log messages according to appender's rules
Transforms logs according to appender's rules
Delivers logs to the log destination
Each appender has independent set of filters and transformers. You can think of appenders as of streams that preprocess logs and deliver log messages.
How appender can be attached
To attach an appender:
Define the appender in Aidbox configuration
Connect the appender as Aidbox service
In this example stdout-appender
is defined and connected to Aidbox as a service.
stdout-appender
The stdout-appender
directs the logs stream to the standard output (stdout).
Parameters
:pretty
enables prettiness if it is true
elasticsearch-appender
It directs the stream of log messages to the Elasticsearch instance.
Parameters
config
url
Elasticsearch urlindex-pattern
Сustom index name format string. Default value is‘aidbox-logs’-yyyy-MM-dd
auth
Basic auth credentials if necessaryusername
password
batch
size
Size of elastic search post batch. Default value is 200timeout
Timeout (in milliseconds) when to post batch if there not enough messages to post a full batch. Default value is 1000 (1 second)
Last updated