Tail a log and replace according to a sed pattern
tail -F logfile|while read l; do sed 's/find/replace/g' <<< $l; done
Tails a log and replaces it line-by-line according to whatever you want to replace. Useful if the file writing to the log can't be modified, so you need to modify its output instead.
Sample Output
echo "line1
find
line2" >> logfile
Output:
line1
replace
line2
tail -F logfile | sed 's/unix/linux/g'
I tried both, and they seemed to behave identically.