Gigi
Gigi

Reputation: 29501

How to end Redis monitoring

In Redis there's a MONITOR command that is quite handy to watch all the commands that are being processed.

Once you've started monitoring, is there any way to stop monitoring from the same session?

If you kill the connection, does the monitoring end (as opposed to resource-intensive monitoring continuing on the server)?

Upvotes: 6

Views: 3720

Answers (2)

Shark Shirts
Shark Shirts

Reputation: 1

just press Ctrl + C

it will end redis-cli monitor.....

Upvotes: -1

Didier Spezia
Didier Spezia

Reputation: 73306

There is no API to do it - just close the connection.

The redis-cli command does not implement anything specific when the user hits CTRL-C to interrupt the program. Closing the connection should stop the monitoring.

Upvotes: 12

Related Questions