check Redis what commands have been used

I use the redis service via digitalocean. I am curious to know if there is any audit trail to see what commands have been run on the server and their status code. For example, when I add a new key, I would expect to see something in the log with an status code 200.

I have looked into the Logs panel but they are not useful. Thanks.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Site Moderator
Site Moderator badge
August 31, 2023

To monitor Redis activity on your DigitalOcean Droplet, you can enable Command Logging. This writes all executed commands and their arguments to the file redis.log in your Redis configuration directory. However, Redis doesn’t provide status codes for commands like HTTP does.

To enable this feature, add the following line to your Redis configuration file (redis.conf) and restart the Redis service:


Note: Command logging can generate a large amount of logs and consume considerable resources. Be mindful of your server’s storage and performance when using this feature.

For more information you can check: and-secure-redis-on-ubuntu-18-04


Bobby Iliev
Site Moderator
Site Moderator badge
August 17, 2023

Hi there,

I believe that you should be able to see some of the logs and queries by visiting the cluster’s Settings > Logs (or Logs & Queries) page. I should also contain things like failovers and migrations.

If the information that you get there is not enough for your use case, the best thing to do to get your voice heard regarding this would be to head over to our Product Ideas board and post a new idea, including as much information as possible for what you’d like to see implemented.

Hope that helps!

- Bobby.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel