As @ninjalj said, if you don't use -D skip , grep will try to read all the files on your device, socket files and FIFO files. In particular, on a Linux system (and many Unix systems), it will try to read /dev/zero , which looks infinitely long.
You will wait a while.
If you are looking for syslog, it is best to use /var/log .
If you are looking for something that can really be anywhere on your file system, you can do something like this:
find / -xdev -type f -print0 | xargs -0 grep -H pattern
The -xdev argument to find indicates that it remains inside the same file system; this avoids /proc and /dev (as well as any mounted file systems). -type f restricts the search to regular files. -print0 prints file names separated by null characters, not newlines; this avoids problems with files with spaces or other funny characters in their names.
xargs reads a list of file names (or something else) on its standard input and calls the specified command for everything in the list. The -0 option works with find -print0 .
The -H for grep tells it the prefix of each match with the file name. By default, grep does this only if there are two or more file names on the command line. Since xargs splits its arguments into batches, it is possible that the last batch will have only one file, which will give you inconsistent results.
Consider using find ... -name '*.log' to limit your search to files with names ending in .log (assuming your log files have these names) and / or using grep -I ... to skip binary files.
Note that this all depends on the features specific to GNU. Some of these options may not be available on MacOS (based on BSD) or on other Unix systems. Consult your local documentation and consider installing GNU findutils (for find and xargs ) and / or GNU grep.
Before trying to use this, use df to find out how big your root file system is. Mine is currently 268 gigabytes; finding all of this will probably take several hours. After a few minutes, (a) restricting the files you are looking for, and (b) make sure that the command is correct will be worth the time you spend.