Create new file e.g. residuals:
# Gnuplot script file for plotting data from file "log"
set title "Convergence process"
set xlabel "Iterations"
set ylabel "Reziduals"
set logscale y
plot "< cat log.simpleFoam | grep Ux | cut -d' ' -f9 | tr -d ','" title 'u', \
"< cat log.simpleFoam | grep Uy | cut -d' ' -f9 | tr -d ','" title 'v', \
"< cat log.simpleFoam | grep Uz | cut -d' ' -f9 | tr -d ','" title 'w'
pause 10 # pause mouse