Statistics

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
Marcosebas
Advanced member
Advanced member
Posts: 82
Joined: Tue Sep 13, 2016 11:25 pm

Statistics

Post by Marcosebas »

Dear All,

I would like to get some statistics from my ZCS 8.6.

I would like to know how many accounts were used during 2018 and how many mails were sent during that year.

Is it possible?

Best,

Marco
7224jobe
Outstanding Member
Outstanding Member
Posts: 283
Joined: Sat Sep 13, 2014 1:55 am
ZCS/ZD Version: 8.8.15_FOSS Patch38

Re: Statistics

Post by 7224jobe »

Hello,
to get when an account was created or last logged in you could use zmprov shell command as zimbra user:

Code: Select all

zmprov getAccount name.surname@domain.it | grep -i timestamp
will return zimbraCreateTimestamp and zimbraLastLogonTimestamp attributes: you can create a script that queries Zimbra for all accounts and then, for example, filter out only the accounts that were created in 2018.

Talking about the total of email sent in 2018 I think that it is not possible, unless you keep zimbra log files or /var/log/mail.log for an year...
User avatar
gabrieles
Outstanding Member
Outstanding Member
Posts: 233
Joined: Tue Feb 14, 2017 9:40 am

Re: Statistics

Post by gabrieles »

7224jobe wrote: you can create a script that queries Zimbra for all accounts and then, for example, filter out
or use zmaccts and grep
Post Reply