I am using \'tail -f\' to follow a log file as it\'s updated; next I pipe the output of that to grep to show only the lines containing a search term (\"org.springframework\"
On my system, about 8K was buffered before I got any output. This sequence worked to follow the file immediately:
tail -f logfile | while read line ; do echo "$line"| grep 'org.springframework'|cut -c 25- ; done