There's something funny with tail -f and grep -o combination when running over ssh.
So on local server, if you do
tail -f /path/myfile.log |grep -o keyword
It grep just fine. But if you run it on remote server....
ssh user@server 'tail -f /path/myfile.log |grep -o keyword'
doesn't work. Nothing comes back as if it was redirected to /dev/null!
But if you remove -f from tail or -o from grep, work just fine... weird :-/
Of course I could create a script on the remote server and just run the script! But that's not quite suitable for my situation.