Experimental logs route #721
irevoire
started this conversation in
Experimental features
Replies: 2 comments 2 replies
-
I was experimenting with this and I think I had the same issue I'm not sure if any of this helps and I don't know anything you can do about it, but thought I'd pass on what I have found 😄 |
Beta Was this translation helpful? Give feedback.
2 replies
-
Update: v1.7 has been released 🐇 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Meilisearch v1.7.0 (released on March 11, 2024) introduces a new route to get logs.
Experimental feature abstract
Enabling the experimental feature will make a new
/logs/stream
route available in Meilisearch that lets you configure which logs you want and their format.Analyzing those logs can give great information on what's happening inside the engine and how the Meilisearch team can improve the indexing performances.
It also makes a new
/logs/stderr
route available in Meilisearch that lets you configure the logs you want on your console at runtime.How to use the feature?
--experimental-enable-logs-route
or call thePATCH /experimental-features
passing"logsRoute": true
./logs/stream
route with your parameters:/logs/stream
route again but with theDELETE
verb:Or you can simply update the log level of the logs outputted to stderr by sending:
The available
mode
s are:human
: Those are the same logs you see in the console.profile
: This mode profiles the time spent in each instrumented function of meilisearch. It can help to understand performance issuesThe
target
parameter lets you specify which parts of the code you want to inspect and is formatted like that:code_part=log_level,code_part=log_level
. See the following valid examples:milli=trace,index_scheduler=info,actix_web=off
milli
is a valid shortcut to enable theinfo
logs for millitrace
is another shortcut to enable the trace level for everythinginfo
is used as the default value💡 More information here
Why is this feature not stable yet?
The main purpose of this route right now is to help people debug issues in production without restarting their instance and profile Meilisearch.
We expect the route to evolve over time as we discover issues and information we're missing.
🗣️ You are welcome to give feedback or ask any question on its usage; we are eager to collect feedback on the feature
A few notes on the feature:
metrics.get
actionhttpie
. The client should support HTTP streams.Beta Was this translation helpful? Give feedback.
All reactions