← Files RedisARCHIVED FILE
skills/redis-observability/references/commands.md
853 Bytes · Oct 2, 2026 · 00:19 UTC
# Use Observability Commands for Debugging
Redis provides built-in commands for monitoring and debugging.
**Key commands:**
```
# Slow query log - find slow commands
SLOWLOG GET 10
SLOWLOG LEN
SLOWLOG RESET
# Server info - comprehensive stats
INFO all
INFO memory
INFO stats
INFO replication
INFO clients
# Memory analysis
MEMORY DOCTOR
MEMORY STATS
MEMORY USAGE mykey
# Client connections
CLIENT LIST
CLIENT INFO
# Index info (RQE)
FT.INFO idx:products
FT.PROFILE idx:products SEARCH QUERY "@name:laptop"
```
**Correct:** Check SLOWLOG regularly.
```python
# Get recent slow queries
slow_queries = redis.slowlog_get(10)
for query in slow_queries:
print(f"Duration: {query['duration']}μs, Command: {query['command']}")
```
Reference: [Redis Monitoring](https://redis.io/docs/latest/operate/oss_and_stack/management/optimization/latency/)
SHA-256: 6522a028837fb9d8a4a8e9268a2071a4568fafddea50291b720bfc205962aa1b