in reply to one liner question

Hello natxo,

to get first two fields of the splitted string you can profit of autosplit implemented by the -a switch. it fills the special @F array see perlrun

perl -lane 'print "$F[0] $F[1]" if /received/' /var/log/rsync.log

L*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.