Docker Compose
Overview
Gathering logs from docker-compose scripts is easy to do and all it takes is for your to configure the fluentd driver to push data to Apica Ascent
Lets look at a simple compose file with a single service "web"
Specifying the logging driver
The fluentd logging driver can be configured to send logs directly to Apica Ascent either via TLS or non-TLS. use port 24224 for non-TLS and port 24225 for TLS.
Adding metadata
Logs get organized in Apica Ascent as flows. A Flow is a combination of a Namespace and an application. You can optionally also add a third grouping attribute cluster_id.
Aside from this, the labels and environment section allows additional metadata to be sent with logs and can be used for search indexing, aggregate queries
Last updated