I'm trying to get stats on global CPU usage of a server on a per-user basis so I installed GNU Accounting (acct) (on Ubuntu server 16.04).
When asking for stats with sa -m
, it takes data from the current /var/log/account/pacct
, which is rotated by the acct service. I understood that I can give the archived rotated files as input to it, if I want to get statistics on older entries.
The problem is that sa
gives no dates on the statistics that are displayed, and I couldn't find a way to have dates on it? This would allow me get statistics on a day or week manner.