Stream logs over HTTP. The format of the logs depends on the configuration specified in the payload. The logs are sent as multi-part, and the stream never stops, so ensure your client can handle a long-lived connection. To stop receiving logs, call the DELETE /logs/stream route.
Only one client can listen at a time. An error is returned if you call this route while it is already in use by another client.
An API key is a token that you provide when making API calls. Read more about how to secure your project.
Include the API key to the Authorization header, for instance:
-H 'Authorization: Bearer 6436fc5237b0d6e0d64253fbaac21d135012ecf1'If you use a SDK, ensure you instantiate the client with the API key, for instance with JS SDK:
const client = new MeiliSearch({
host: 'MEILISEARCH_URL',
apiKey: '6436fc5237b0d6e0d64253fbaac21d135012ecf1'
});Request body for streaming logs
Log targets to filter. Format: code_part=log_level (e.g., milli=trace,actix_web=off)
"milli=trace,index_scheduler,actix_web=off"
Output format for log entries. human provides readable text output,
json provides structured JSON for parsing, and profile outputs
Firefox profiler format for performance visualization.
human, json, profile Enable memory profiling (only useful with profile mode, significantly slows down the engine)
Logs are being returned.
The response is of type string.