Combine tail -f with grep?

You almost wrote the answer, which is :

tail -f file.log | grep "foobar"

That's it.