A nice awk snapshot for logging just exceptions… tail it to tail ;)
You can obviously replace “2010” with your date-pattern.
awk '/Exception/ {
do {
print $0;getline;
} Â while ($0 !~ /^2010/)
}'
A nice awk snapshot for logging just exceptions… tail it to tail ;)
You can obviously replace “2010” with your date-pattern.
awk '/Exception/ {
do {
print $0;getline;
} Â while ($0 !~ /^2010/)
}'