There is nothing called grep mouse messages anywhere in that directory.
It searches for a string in a file
So typing in "grep mouse messages" at the command line will search for the word "mouse" in the file "messages" within the /var/log directory.