I need to pipe certain log entries into a perl script, but I can't get it to work using ARGV or STDIN.
tail -f messages | grep --line-buffered "auth failure:" | awk '{print $1,$2,$3,$10}' | test3.pl
Perhaps something is being buffered but it appears nothing is making it to test3.pl, but if I leave off the | test3.pl
then I see what should be going in to perl:
Feb 3 16:09:36 [user=someusername]