Here is yet another onliner for R77.xx
sqlite3 /var/log/CPView_history/CPViewDB.dat "SELECT datetime(a.Timestamp, 'unixepoch', 'localtime'), a.cluster_status FROM UM_STAT_UM_SYSTEM AS a WHERE a.cluster_status <> ( SELECT b.cluster_status FROM UM_STAT_UM_SYSTEM AS b WHERE a.Timestamp > b.Timestamp ORDER BY b.Timestamp DESC LIMIT 1 );"
Comand shows data for current member like show cluster failover in R80.20:
2019-11-01 15:31:03|Standby
2019-12-02 15:11:15|Down
2019-12-02 15:12:15|Standby
2019-12-02 15:15:15|Active
It is better than
show routed cluster-state detailed
because it shows only real changes excluding info like Jun 16 17:33:36 Master to Master and it shows more older data