Finding slow Qdrant queries with the slow request log

Qdrant's slow request log records the slowest shard-level operations on each node, and it is the fastest way to tell whether a slow search or update is a filter, a limit or an optimizer problem.

On this page

Finding slow Qdrant queries with the slow request log: when your team needs it

Use the slow request log when users report slow searches or upserts on a self-hosted Qdrant cluster and your team needs to identify which operation is responsible. Qdrant's slow request log, introduced in v1.16.0 and still marked beta in the docs, keeps in memory up to 32 of the slowest unique shard-level operations that took longer than 50 ms, tracked separately for each request type on each node. Because the entries are shard-level, the log tells you which collection, shard and operation type was slow, which metrics dashboards usually cannot show. The log is cleared when a node restarts, so it works best as a short investigation tool, not as history. Read it from GET /profiler/slow_requests with a key that has manage access. Confirm the exact response fields and the current beta status in the Qdrant slow request log documentation for your Qdrant version before you build tooling around it.

Choose between the log and metrics by the question you are asking. Metrics answer whether latency is rising across the cluster and when it started, so they belong on dashboards and alerts. The slow request log answers which specific operation on which node was slow at the moment you look, which is the question behind a single complaint. If latency is high on every node at once, the cause is more likely capacity, optimizer activity or a cluster-wide setting, and the log will show a broad pattern rather than a single culprit. If only one node or one collection shows slow entries, check that node's disk, memory and recent restarts first. Because the buffer holds only the slowest unique operations and resets on restart, capture the log soon after a problem occurs. A restart you did for an unrelated reason can erase the evidence.

Plan access before the incident. The endpoint requires manage access, so confirm which admin key your on-call engineers hold and whether it is used only by people who need it. Each peer must be queried separately, so agree on the list of node addresses and how results will be combined in your notes. Record the collection names, the request types and the timestamps you see, then compare them with your application logs and deployment changes. Treat any finding as a lead to verify: a slow entry proves that an operation was slow, not why. The sections that follow cover aggregating results from several nodes, reading latency histograms and the usual causes such as unindexed filters, oversized limits and optimizer contention.

How a slow request surfaces across Qdrant nodes

A client search or update enters one peer, which fans the work out to the shard-level operations on the nodes that hold the relevant shards. Each node records operations slower than the threshold in its own in-memory slow request log. Because that log lives on each node, an operator with manage access must collect GET /profiler/slow_requests from every peer and merge the results before deciding which shard, filter or limit is responsible. Check the management API path in particular, since it is the trust boundary where the log becomes readable.

Slow operations are recorded per node and must be merged through the manage-access API.

Which causes to check first when a query is slow

Filtered searches are the most common reason a search that is normally quick becomes slow. When a query filters on a payload field without a matching payload index, Qdrant has to evaluate the condition against stored payloads for many points instead of narrowing the candidate set first. In the slow request log, the entries for search-type requests stand out when they carry filter conditions that match no index, and the latency tends to grow with collection size rather than with the number of returned results.

  • Log pattern: slow search entries cluster on a small set of request shapes, and the same filtered query type recurs at the top of the list.
  • Collection config: list every payload key used in filter conditions and confirm each one has a payload index of a type that fits the condition (keyword, integer, float, geo, datetime or text).
  • Index type fit: check that range, match and geo conditions use index types that support them, since a mismatched index type can leave a filter effectively unindexed.
  • Nested and array fields: confirm the index path matches the exact nested key used in the query.
  • Version behavior: confirm in the docs for your exact version which index types and condition forms are supported and how the planner uses them.

After adding an index, rerun the same query and compare the slow request entries before and after the change.

Slow request log options and when each fits

This table compares the three ways to read Qdrant's slow request log and the trend view Prometheus gives you instead. Each option trades effort against how much history you keep, so match the option to whether you are chasing one incident or watching for a pattern. The main takeaway is that the built-in log is a short, in-memory sample, so anything you need over time has to be collected on your side.

OptionWhat it gives youConstraints to plan forWhen it fits
Call the endpoint on each nodeCurrent slowest shard-level operations from one node at GET /profiler/slow_requestsRequires manage access on every node, one call per peer, no history after a restartInvestigating an incident right now on a small cluster with a few nodes
Script periodic collection and mergeTimestamped snapshots from all nodes, merged by operation type and collectionYou write and run the collector, handle node failures, and keep the output outside the clusterFinding which collections or operation types are slow across a day or a release
Prometheus latency histogramsTrends in request latency per endpoint, suited to alerting and dashboardsShows that latency rose, not which exact request or filter caused itSpotting regressions early and deciding when to open the slow request log
Use the log as a sample onlyUp to 32 of the slowest unique shard-level operations over 50 ms per request type, per nodeEntries are capped and deduplicated, so fast or repeated requests may never appearConfirming that specific operation types are slow, not measuring overall throughput
Beta feature planningAccess to the feature added in v1.16.0 as betaConfirm its status and behavior in the release notes for your exact version before relying on itPilots and non-critical environments until you have validated the output format
Access control planningRead access limited to keys with manage permissionRead-only keys cannot read the log, so collectors need a manage-level credential handled as a secretClusters where API keys and JWT scopes are already enforced

Collecting the slow request log on a cluster

This sequence pulls the in-memory slow request log from every peer in a Qdrant cluster, keeps the entries with timestamps and node IDs before any restart clears them, and ties each slow operation to a collection and a deployment change.

  1. Confirm the cluster runs v1.16.0 or later

    Before building any collection job, check the version of every peer. The slow request log was introduced in v1.16.0 and is still marked beta, so older nodes will not expose the endpoint. Run the check against each node's own address, not only the load balancer, because a mixed-version cluster will return data from some peers and errors from others. The step is done when every peer reports v1.16.0 or a later release and you have recorded the version per node.

  2. Create a manage-level credential for the collection job

    Create a dedicated API key or JWT with manage access for the job that reads the endpoint, and do not reuse a general application key. The slow request log is read at GET /profiler/slow_requests and requires manage access, so a read-only key will fail. Scope the credential to the collector's host, store it in your secrets manager, and confirm with a single authenticated request that the response is not a permission error. The credential is done when one peer answers with a valid JSON response.

  3. Confirm network access from the collection job

    Allow the collection job to reach the REST port on every peer, including nodes in other availability zones or subnets. Qdrant listens on all interfaces by default, so check your firewall or security group rules rather than assuming connectivity. Use the node addresses from your cluster configuration and confirm each one with a connection test. The step is complete when the job can reach all peers, and you have a list of node addresses matched to node IDs.

  4. Query the endpoint on every peer

    Call GET /profiler/slow_requests against each peer individually and never rely on a single node, because the log is kept in memory on each node and holds only the slowest operations that node handled. Capture the full response body, the HTTP status and the time of the request for each peer. Treat any non-success status as a failed peer and retry it, since a silent gap would hide slow work. The check is that the number of successful responses equals the number of peers in your cluster.

  5. Store results with timestamps and node IDs before any restart

    Write each response to durable storage as soon as it arrives, labeled with the collection job run time, the node ID, the node address and the Qdrant version. The log resets when a node restarts, so any planned upgrade, pod eviction or crash recovery can erase the evidence you need. Keep the raw files unchanged so the investigation can be repeated later. The step is done when every peer's raw response is stored with its metadata and you can open each file without errors.

  6. Repeat collection on a schedule while the issue persists

    Run the same job at a fixed interval while the slowdown continues, using the same node list, so that entries from different runs can be compared. Because each node keeps only a bounded set of the slowest operations, a single snapshot may miss earlier spikes. Record any node that drops out of a run as a gap rather than assuming it was healthy. The check is a continuous series of runs with no unexplained missing peers.

  7. Correlate entries with collections and deployment changes

    Match each stored entry to its collection name and to the change log for that period, including upgrades, configuration edits, bulk uploads, re-embedding jobs and restarts. Group entries by request type and by node, and look for patterns such as one node always appearing or slowdowns that start right after a deployment. Document the operations that appear most often as the first candidates for the histogram, filter and limit checks. The step is complete when each slow entry is either linked to a change or marked as unexplained for further review.

Protecting the profiler endpoint and the data it exposes

The slow request log is read through an endpoint that reveals how your collections are queried and how your cluster behaves under load. The cards below cover who can reach that endpoint, where it can be reached from, what the collected data contains, and how long you keep it. Each one is a decision to make before the profiler goes into routine use.

Restrict manage access to the profiler

The slow request log is served at GET /profiler/slow_requests, and reading it requires manage-level access. Give that level only to the operators and automation that need it, and keep read-only and collection-scoped keys away from it. Confirm which of your keys carry manage rights, and rotate any that were issued for application use. Because self-hosted Qdrant ships with no authentication by default, check that an API key is set before you rely on this access check.

Qdrant security docs

Keep peer endpoints off public networks

The security docs state that self-deployed instances listen on all network interfaces by default. Each peer's REST port, which serves the profiler, should sit on a private network reachable only by operators, monitoring collectors and other cluster members. Verify this from outside your network, not only from the host configuration. A profiler reachable from the internet exposes operational detail to anyone who can guess your endpoint.

Treat operation metadata as sensitive

Slow request entries describe the operations that ran, including collection names and request types. Those names can reveal product lines, tenant identifiers or internal project names. Classify the log output with the same tier as your query logs, and limit who can export it into tickets, chat or shared dashboards. Ask whether your team's tooling copies this data into third-party services before you forward it.

Set retention under your data policy

The log holds up to 32 entries per request type on each node and resets on restart, so it is not a durable record. Anything you copy out of it becomes a new data store with its own retention obligations. Decide how long exported snapshots of slow request output are kept, who may delete them, and whether they fall under the data classification your compliance team already applies to operational logs.

Pair with JSON audit logging

Since v1.17.0, Qdrant can write JSON audit logs of authenticated API operations. The audit log records who did what, while the slow request log records what was slow. Use audit logs to answer who triggered a heavy operation during an incident, and the profiler to answer why it was slow. Confirm that your audit output is shipped to storage your security team controls, and that its retention matches your incident response needs.

Qdrant security docs

Avoid exposure through load balancers

A load balancer that forwards general API traffic can also forward requests to the profiler path, sometimes without the operator's intent. Route profiler access directly to a peer or through an internal-only path, and deny the profiler route at the edge for public listeners. Test this with an unauthenticated request through every public hostname, including health check and ingress rules, because load balancer routing rules often change during platform work.

Questions teams ask about slow Qdrant queries

Is the Qdrant slow request log safe to use in production given its beta status?

Yes, the feature is read-only in practice, but treat it as beta and confirm its behavior on your exact Qdrant version before relying on it. The slow request log arrived in v1.16.0 and is labeled beta in the Qdrant documentation. It keeps a bounded in-memory list on each node, so the main production concerns are who can read the endpoint and how you collect the data. Reading it requires manage access, so the endpoint should sit behind the same API keys and network controls as your other administrative routes. Check the Qdrant slow request log documentation for the current status and fields, and test the collection script in staging before pointing it at production nodes.

How long does it take to find the root cause of a slow Qdrant query?

The duration depends mostly on how well your team already measures latency and how many nodes and collections are involved. A single-node deployment with one collection and existing latency metrics usually narrows the cause faster than a multi-node cluster where slow operations are spread across peers. The main drivers are whether you can reproduce the slow query, whether the slow entries show a pattern such as one collection, one request type or one filter, and whether the cause is in your query design, in indexing, or in optimizer work competing for resources. Ask any partner to state the assumptions behind an estimate, including the node count, the number of collections, the access to staging, and the availability of representative query traffic.

What does the work need from our engineers?

You need engineers who can read Qdrant API responses, understand your query and payload design, and access every node that holds shards for the affected collection. The slow request log is per node, so someone has to collect entries from each peer and match them by collection and request type. Engineers also need to know your application's search and update patterns, including filter shapes, result limits and write batch sizes, because most slow entries trace back to those choices. Plan for a few people who can change client code, one person who can adjust cluster configuration, and someone who owns the monitoring stack so that findings become alerts and dashboards.

Can our own team diagnose slow Qdrant queries without a partner?

Yes, a team with Qdrant operations experience and access to its nodes can run this diagnosis internally. The steps are to read the slow request log on each node, group entries by collection and request type, compare them with latency histograms, and then test suspected causes such as unindexed payload filters, oversized limits or optimizer activity in a controlled environment. Teams with little Qdrant experience usually take longer because they must learn which signals matter before they can act on them. Consider a partner when the slow queries affect production users, when several collections share nodes, or when the internal team has no time to build the collection and analysis process.

How does effort grow with the number of nodes and collections?

Effort grows with the number of places where slow operations can appear, so each additional node, collection and request type adds collection and comparison work. A single node produces one log to read, while a cluster requires gathering the log from every peer, because the log is kept per node and resets on restart. Each collection adds its own filter patterns, vector configurations and optimizer behavior to review. Restarts also clear the in-memory list, so the collection process must run before a restart or save results on a regular schedule. Ask any quote to separate the work for node-level collection, cross-node aggregation, and per-collection analysis, since those components scale differently.

What would a partner scope for a slow query investigation?

A partner would scope the investigation around the systems and queries you name in writing, with deliverables agreed before work starts. Typical components include reviewing your Qdrant deployment and monitoring, setting up a repeatable way to collect slow request entries from every node, analyzing entries against your application's query and filter patterns, testing candidate fixes in a non-production copy, and documenting the findings for your team. Scope also depends on whether you need the monitoring stack, dashboards and alerts built out, or only a one-time diagnosis. Ask for the list of nodes and collections in scope, the staging access required, and the handover format for the final report.

What drives the cost of a slow query investigation?

The cost is driven by the amount of analysis required, the number of nodes and collections involved, and how much staging access and representative traffic the work can use. A one-time diagnosis costs less than an investigation that also builds recurring collection and alerting, because the recurring part needs ongoing ownership. Cost also rises when the root cause spans several components, such as the application, the network and the optimizer. Ask a provider to split the quote into one-time analysis, one-time setup, and any recurring support or retainer, and to state which tasks depend on your team's availability.

Limits to confirm before relying on the slow request log

The slow request log is useful for narrowing down latency, but it is a beta, in-memory view of a node, not a full tracing system. The cards below cover what it keeps, what it drops, and what you should verify on your own version before building a runbook around it.

Beta status may change

The slow request log shipped as a beta in Qdrant v1.16.0. Beta features can change in later releases, including the endpoint path, the output fields and the defaults. Before you script against GET /profiler/slow_requests, check the release notes for the version you run and the current docs. Pin your tooling to a tested version and recheck it after each upgrade.

Qdrant releases

Memory only, cleared on restart

The log lives in memory on each node and resets when the node restarts. A crash, a rolling upgrade or a scheduled restart erases the evidence of the slow operations that led to it. Capture the endpoint output on a schedule or during an incident, and do not treat the log as a historical record for post-incident review.

Capped at 32 entries

Each node keeps at most 32 of the slowest unique shard-level operations for each request type. Once the cap fills, faster entries are displaced by slower ones, so a steady trickle of moderately slow queries can disappear from view. Expect the log to show the worst outliers, not a complete count of slow requests.

50 ms threshold

Only operations slower than 50 ms are recorded. Requests that finish under that threshold never appear, even if they add up to a poor user experience at high concurrency. Confirm that 50 ms is a meaningful cutoff for your latency target, and use latency histograms from metrics to see the full distribution.

Shard-level, not end-to-end

Entries record time spent on individual shard operations, not the full client round trip. A slow request can span several shards, network hops and the coordinating node, and the log will not show that path. Compare the logged shard timings with client-side latency measured at your application before deciding where the time went.

Confirm behavior on your version

Retention, thresholds and output fields should be checked in your own environment before you depend on them. Run a controlled slow query on a test cluster of the same version, confirm it appears with the expected fields, and confirm that the access requirement for the endpoint matches how your API keys are configured.

Slow request log docs

How the log fits with metrics and optimizer tuning

The slow request log answers a narrow question: which specific shard-level operations were slow on a given node. Prometheus metrics answer a different one: whether latency is drifting over days or weeks across the cluster. Treat the two as complementary. Use metrics to decide when to look and the slow request log to decide what to fix. A latency trend on a dashboard tells you a collection got slower, but it does not tell you whether the cause is a search with an unindexed filter, an oversized limit, or a write that landed during an optimization run.

The log also has limits that shape how you use it. It keeps only a small, in-memory set of the slowest unique operations, it resets on restart, and it is per node, so a single request that fans out across shards can appear on several peers. Plan to collect entries from every node before you draw conclusions, and capture them before a restart clears the buffer. Confirm the current retention and beta status in the Qdrant documentation for your release before you build a runbook around it.

When slow entries cluster in time with optimizer activity, the fix usually sits outside the query. Vacuum, merge and indexing work can compete with searches and updates for disk and CPU, and the bulk of that tuning belongs to the optimizer and indexing work covered in the sibling topics on Qdrant optimizer behavior and on monitoring with Prometheus. Ask your team to correlate slow entries with optimizer timestamps before changing any query or collection setting, because changing the wrong layer wastes the maintenance window.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.