0

Redis monitor cmd is not working with authentication:

Cmd: redis-cli -h <redis_endpoint> -p <port> -n <database> -a <password> monitor

error: (error) ERR wrong number of arguments for 'MONITOR' command

But the same works with Redis without authentication: redis-cli -h <redis_endpoint> -p 6379 monitor

Can someone help with correct redis-cli monitor cmd that works with database and password.

Noob
  • 174
  • 1
  • 2
  • 19
  • you can't monitor a single database in redis, you monitor it as a whole. what happens when you remove the -n option ? – Ersoy Nov 17 '21 at 22:33
  • ```redis-cli -h -p -a monitor``` with this getting (error) NOAUTH Authentication required – Noob Nov 18 '21 at 07:42
  • do you have a `$` sign in your password ? or any other special charachter space etc ? – Ersoy Nov 18 '21 at 09:41
  • no, doesn't have any special character in the password( only alphanumeric). – Noob Nov 19 '21 at 08:07

0 Answers0