Using the tail and grep combo requires turning on the line buffering mode. It allows the process to resume the search while reducing delay. To do so, write tail with the -f option and the file name. Then, pipe the grep command with the --line-buffered option and the pattern to search.