Last updated
Was this helpful?
Last updated
Was this helpful?
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.
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.
The stdout-appender
directs the logs stream to the standard output (stdout).
:pretty
enables prettiness if it is true
It directs the stream of log messages to the Elasticsearch instance.
config
url
Elasticsearch url
index-pattern
Сustom index name format string. Default value is ‘aidbox-logs’-yyyy-MM-dd
auth
Basic auth credentials if necessary
username
password
batch
size
Size of elastic search post batch. Default value is 200
timeout
Timeout (in milliseconds) when to post batch if there not enough messages to post a full batch. Default value is 1000 (1 second)
This page explains what log appenders are and their parameters