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.
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!
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.
Enter your email to get $200 in credit for your first 60 days with DigitalOcean.
New accounts only. By submitting your email you agree to our Privacy Policy.
To monitor Redis activity on your DigitalOcean Droplet, you can enable
Command Logging
. This writes all executed commands and their arguments to the fileredis.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:monitor
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:
https://www.digitalocean.com/community/tutorials/how-to-install- and-secure-redis-on-ubuntu-18-04
Regards
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.