Logs
Last updated
Was this helpful?
Last updated
Was this helpful?
Aidbox produces structured logs on every significant event to the internal stream which you may direct to different ways:
Aidbox supports the and exports logs in Protobuf format to any consumer that supports this specification.
You can get current logs through REST API by GET /_logs
- response will be Chunked Transfer Encoding stream of new line separated JSON objects:
Both environment variables enable logging to stdout but the difference is log format.
AIDBOX_STDOUT_JSON
enabledAIDBOX_STDOUT_PRETTY
enabledIf you prefer to write logs into the file system, in the .env file specify AIDBOX_LOGS
environment variable with a relative path to the desired location.
Another option is to store logs in:
You can open [aidbox-base]/_logs
in your browser, and Aidbox will produce logs in pretty format, similar to format for stdout. Appeared in v2210. Available formats: ui (default), json, event-stream. Use the following parameter to change the format [aidbox-base]/_logs?format=json
Aidbox sends logs into stdout if one of these env variables defined: , .