API reference
Log customization
Customize Meilisearch logs with two experimental features: —experimental-logs-mode and —experimental-enable-logs-route.
This is an experimental feature. Use the experimental features endpoint to activate it:
This feature is not available for Meilisearch Cloud users.
Customize log levels
POST
/logs/stderr
Customize logging levels for the default logging system.
Body
Name | Type | Default value | Description |
---|---|---|---|
target * | String | N/A | A string specifying one or more log type and its log level |
Example
Start log stream
POST
/logs/stream
Opens a continuous stream of logs for focused debugging sessions. The stream will continue to run indefinitely until you interrupt it.
Body
Name | Type | Default value | Description |
---|---|---|---|
mode * | String | N/A | Specifies either human-readabale or JSON output |
target * | String | N/A | A string specifying one or more log type and its log level |
Example
Certain HTTP clients such as httpie
and xh
, will only display data after you have interrupted the stream with the DELETE
endpoint.
Interrupt log stream
DELETE
/logs/stream
Interrupt a log stream.