Watch keynotes and sessions from MongoDB.live, our virtual developer conference.

Mongostat "command" field showing only local commands

When I run mongostat on a replicate server, it shows only local command counts at the same time it’s showing only insert counts (which has to be replicate activity):

insert query update delete getmore command dirty  used flushes vsize  res qrw arw net_in net_out conn    set repl                time
*1934    *0     *0     *0       0     7|0  2.0% 34.2%       0  128G 120G 0|0 1|0  1.27k   12.2k   79 myrepl  SEC Jun 12 14:55:15.148
*309    *0     *0     *0       0     3|0  2.0% 34.2%       0  128G 120G 0|0 1|0   690b   8.88k   79 myrepl  SEC Jun 12 14:55:20.147
*638    *0     *0     *0       0     9|0  2.1% 34.2%       0  128G 120G 0|0 1|0  1.70k   14.0k   80 myrepl  SEC Jun 12 14:55:25.148
*1308    *0     *0     *0       0     3|0  2.3% 34.2%       0  128G 120G 0|0 1|0   860b   10.0k   80 myrepl  SEC Jun 12 14:55:30.146
*779    *0     *0     *0       0     7|0  2.4% 34.2%       0  128G 120G 0|0 1|0  1.34k   12.5k   80 myrepl  SEC Jun 12 14:55:35.146

This with mongostat version 4.2.7, and mongodb server version 4.0.12

The doc page says it should be local|replicate counts for “commands”:

https://docs.mongodb.com/manual/reference/program/mongostat/

Is this a bug? Thanks in advance
BEn