saving running text to a text file

I tried the

tail -f my-slow.log | grep 'someWord' > /root/myfile.txt

This does not work.

I tried --tee as well and that too does not work. Any help?

I don't see any reason for it not to work provided you have read access for the log file, someWord actually shows up in the log file, and you have write access to the txt file.

When you say, for instance, that you also tried tee and that did not work either, did you see anything on STDOUT and it just didn't write to the file or did you not see anything on STDOUT either?