Using the Loki protocol to forward logs to your own log aggregation infrastructure
The omni container ships with support for the Loki protocol. The container can be configured to send logs to your own service that runs a Loki compatible protocol. You must contact support to enable this feature. You also need to supply aLOKI_URL
environment variable to the container.
Example
Assuming you have a Loki compatiblepush
endpoint running at https://my-internal-loki-service/loki/api/v1/push
. This is an example compose file that would push logs to that endpoint:
Manual inspection of logs
If you would like to examine these log files or collect them yourself, then you can mount them as a named volume. They are stored in/tmp/
within the container, and should match the glob pattern omni-\*.{out,err,log}
.