Logging & Audit
Last updated
Was this helpful?
Last updated
Was this helpful?
Aidbox produces structured logs on every signifact event to the internal stream which you may direct to different ways:
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.
You can open [aidbox-base]/_logs?format=pretty
in your browser, and Aidbox will produce logs in pretty format, similar to format for stdout. Appeared in v2210.
Aidbox sends logs into stdout if one of these env variables defined: , .
Another option is to store logs in the ElasticSearch. Please, read the details