Perform Task when Rclone Sync Completes, using Results

Hey there guys.

I would like to know if it would be possible to perform a task based on the results from an rclone sync. Once the RClone sync is complete, the Log shows INFO fields. I would like to have a script that runs that checks if the files transferred (and how many), then perform a task, or if they are up-to-date, then do nothing…

What would be the best way to get these results from rclone, and how do you think would be the best way to implement it?

Thanks!

call rclone logging to file with time mark and parse that file after rclone ends.
rclone logfile && scriptToParse