Problem to parse log rclone stats

Hello Guys

I've opened a topic sometime ago about rclone stats.
(Possible bug in stats logs)

I have too much difficult to use rclone stats in shell script because the logs are not good parseable.

In the example below for example there are no words in the log.

  1. First log have: Transferred, Checks, Transferred, Elapsed time
  2. Second log have: Transferred, Transferred, Elapsed time
   2021/01/08 16:00:00 NOTICE: Web GUI exists. Update skipped.
   2021/01/08 16:00:00 NOTICE: Serving Web GUI
   2021/01/08 16:00:00 INFO  : Using --user admin --pass XXXX as authenticated user
   2021/01/08 16:00:00 NOTICE: Serving remote control on http://[::]:5572/
   2021/01/08 16:00:00 NOTICE: Web GUI is not automatically opening browser. Navigate to 
   http://admin:admin@[::]:5572/?login_token=YWRtaW46YWRtaW4%3D to use.
   2021/01/08 16:00:04 INFO  : Volume-Diario-0004: Copied (replaced existing)
   2021/01/08 16:00:04 INFO  : Volume-Diario-0002: Copied (replaced existing)
   2021/01/08 16:00:04 INFO  : Volume-Diario-0003: Copied (replaced existing)
   2021/01/08 16:00:07 INFO  : Volume-Diario-0001: Copied (replaced existing)
   2021/01/08 16:00:07 INFO  :
   Transferred:       15.326M / 15.326 MBytes, 100%, 3.066 MBytes/s, ETA 0s
   Checks:                20 / 20, 100%
   Transferred:            4 / 4, 100%
   Elapsed time:         6.5s

   2021/01/08 16:00:07 NOTICE: Web GUI exists. Update skipped.
   2021/01/08 16:00:07 NOTICE: Serving Web GUI
   2021/01/08 16:00:07 INFO  : Using --user admin --pass XXXX as authenticated user
   2021/01/08 16:00:07 NOTICE: Serving remote control on http://[::]:5572/
   2021/01/08 16:00:07 NOTICE: Web GUI is not automatically opening browser. Navigate to 
   http://admin:admin@[::]:5572/?login_token=YWRtaW46YWRtaW4%3D to use.
   2021/01/08 16:00:09 INFO  : Volume-VM-0001: Copied (new)
   2021/01/08 16:00:09 INFO  : Volume-VM-0002: Copied (new)
   2021/01/08 16:00:09 INFO  : Volume-VM-0003: Copied (new)
   2021/01/08 16:00:15 INFO  :
   Transferred:        1.724M / 1.724 MBytes, 100%, 279.560 kBytes/s, ETA 0s
   Transferred:           3 / 3, 100%
   Elapsed time:         7.6s

I don't know if I'm using the wrong way or is something from rclone.
The command that I'm using is te following:

rclone sync $local_dir onedrive:bucket-backup/etc/bacula --stats=1000m --rc --rc-web-gui --rc-addr 0.0.0.0:5572 --rc-user admin --rc-pass admin --rc-web-gui-no-open-browser --log-file /tmp/rclone.log --log-level INFO

Woudl be interesting if all words appeared in the stats (Transferred, Checks, Erros, Elapsed Time)

I'm using rclone v1.53.2

Best regards
Wanderlei

If you want parsable stats and logs I suggest you use --use-json-log.

Rclone doesn't print stats that are 0 to cut down the size of the stats block, so if you find a stats block without those words, the stats for it is 0.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.