For additional guidance, check out our community articles detailing the process of migrating from your current platform to Carbonio CE.
In this article we are going to see how to manage your Account Logs with CLI Commands using zmprov. As usual, for every command, we will show you the extendend and short form along with the syntax to be used.
Remember that all commands are intended to be executed logging in as Zimbra user, with the command: su - zimbra
Add an Account Logger:
To add an Account Logger you need to use addAccountLogger (aal) with the following syntax:
zmprov addAccountLogger [--server hostname] {user@yourdomain|id} {logging-category} {debug|info|warn|error}
This command is going to create a custom logging for a single account
Remove an Account Logger:
To remove an Account Logger you need to use removeAccountLogger (ral) with the following syntax:
zmprov removeAccountLogger [--server hostname] {user@yourdomain|id} {logging-category}
This command deletes the custom logger created for the account specified (eg. user@yourdomain), otherwise it will remove all loggers for all the accounts from the system.
Get an Account Logger:
To get an Account Logger you need to use getAccountLogger (gal) with the following syntax:
zmprov getAccountLogger [--server hostname] {user@yourdomain|id} {logging-category} {debug|info|warn|error}
Get all Account Loggers:
To get all Account Loggers you need to use getAllAccountLoggers (gaal) with the following syntax:
zmprov getAllAccountLoggers [--server hostname]
This command shows all individual custom logger account
zmprov Log Categories
In the table below you can find a list of logging categories.
zimbra.account | Account operations |
zimbra.acl | ACL operations |
zimbra.cache | Inmemory cache operations |
zimbra.calendar | Calendar operations |
zimbra.dav | DAV operations |
zimbra.dbconn | Database connection tracing |
zimbra.extensions | Server extension loading |
zimbra.filter | Mail filtering |
zimbra.gal | GAL operations |
zimbra.imap | IMAP protocol operations |
zimbra.index | Index operations |
zimbra.io | Filesystem operations |
zimbra.ldap | LDAP operations |
zimbra.lmtp | LMTP operations (incoming mail) |
zimbra.mailbox | General mailbox operations |
zimbra.misc | Miscellaneous |
zimbra.op | Changes to mailbox state |
zimbra.pop | POP protocol operations |
zimbra.redolog | Redo log operations |
zimbra.security | Security events |
zimbra.session | User session tracking |
zimbra.smtp | SMTP operations (outgoing mail) |
zimbra.soap | SOAP protocol |
zimbra.sqltrace | SQL tracing |
zimbra.system | Startup/shutdown and other system messages |
zimbra.zimlet | Zimlet operations |
Comments
very informative article, but I have one confusion. I want to read the logs created by zmpro (logs regarding to a particular email ID about a particular category etc pop, or imap), where can I find those logs. Is there any separate file for the logs created by zmpro, or the logs will be shown in the same file mailbox.log? I would be very thankful to you if you please help.