Filters & Logging
Filters & Logging
Are there any logging facilities for the user defined filters in mailboxes? I would find it useful have a log of what happens when an email passes through the filters such as message id, filter that was used, action taken dates & times etc. This might be useful for audit purposes as you can, for instance, discard an email in the filters. If there aren't any logs, are there plans to add it?
Filters & Logging
[quote user="10330phoenix"]Are there any logging facilities for the user defined filters in mailboxes? I would find it useful have a log of what happens when an email passes through the filters such as message id, filter that was used, action taken dates & times etc. This might be useful for audit purposes as you can, for instance, discard an email in the filters. If there aren't any logs, are there plans to add it?[/QUOTE]
I think cranking logging up to DEBUG in log4j.properties will log filter information, and a whole lot more, to /opt/zimbra/log/zimbra.log. No plans to add logging for just filters, but if you think it would be useful, add an RFE to bugzilla.
I think cranking logging up to DEBUG in log4j.properties will log filter information, and a whole lot more, to /opt/zimbra/log/zimbra.log. No plans to add logging for just filters, but if you think it would be useful, add an RFE to bugzilla.
Filters & Logging
[quote user="marcmac"]I think cranking logging up to DEBUG in log4j.properties will log filter information, and a whole lot more, to /opt/zimbra/log/zimbra.log. No plans to add logging for just filters, but if you think it would be useful, add an RFE to bugzilla.[/QUOTE]
BTW - not something to do on a busy box or one with slow disk.
BTW - not something to do on a busy box or one with slow disk.
Filters & Logging
[quote user="marcmac"]I think cranking logging up to DEBUG in log4j.properties will log filter information, and a whole lot more, to /opt/zimbra/log/zimbra.log. No plans to add logging for just filters, but if you think it would be useful, add an RFE to bugzilla.[/QUOTE]
OK, I give it a whirl and my system isn't very busy so I guess I'll be buried under mounds of data. Thanks.
OK, I give it a whirl and my system isn't very busy so I guess I'll be buried under mounds of data. Thanks.
-
- Ambassador
- Posts: 4558
- Joined: Fri Sep 12, 2014 9:52 pm
Filters & Logging
We've alrady got logging for just filters:
Try:
log4j.additivity.zimbra.filter=false
log4j.logger.zimbra.filter=DEBUG
BTW: You can see all the *special* log categories here:
http://bugzilla.zimbra.com:8080/viewrep ... ava?r=1.11
Try:
log4j.additivity.zimbra.filter=false
log4j.logger.zimbra.filter=DEBUG
BTW: You can see all the *special* log categories here:
http://bugzilla.zimbra.com:8080/viewrep ... ava?r=1.11
Filters & Logging
Thanks for those details, I'll have a play with them tomorrow.
Filters & Logging
FYI,*http://bugzilla.zimbra.com:8080/vie...Log.java?r=1.11* doesn't seem to be working anymore.
I'm trying to log IMAP DEBUG.* I added*log4j.logger.zimbra.imap=DEBUG
to log4j.properties, but i'd really like it if this info wouldn't go into zimbra.log.
is there a way to put it in a separate log file?* i tried adding:
log4j.appender.IMAP=org.apache.log4j.DailyRollingFileAppender
log4j.appender.IMAP.File=/opt/zimbra/log/imap.log
log4j.appender.IMAP.DatePattern='.'yyyy-MM-dd
log4j.appender.IMAP.Append=true
log4j.appender.IMAP.layout=org.apache.log4j.PatternLayout
log4j.appender.IMAP.layout.ConversionPattern=%d %-5p [%t] [%x] %c{1} - %m%n
but no go.
I'd also like to log outlook connector, and mobile sync activities.* What's the facility for those?
I'm trying to log IMAP DEBUG.* I added*log4j.logger.zimbra.imap=DEBUG
to log4j.properties, but i'd really like it if this info wouldn't go into zimbra.log.
is there a way to put it in a separate log file?* i tried adding:
log4j.appender.IMAP=org.apache.log4j.DailyRollingFileAppender
log4j.appender.IMAP.File=/opt/zimbra/log/imap.log
log4j.appender.IMAP.DatePattern='.'yyyy-MM-dd
log4j.appender.IMAP.Append=true
log4j.appender.IMAP.layout=org.apache.log4j.PatternLayout
log4j.appender.IMAP.layout.ConversionPattern=%d %-5p [%t] [%x] %c{1} - %m%n
but no go.
I'd also like to log outlook connector, and mobile sync activities.* What's the facility for those?
Filters & Logging
additivity fixed it.* sorry.
Filters & Logging
[quote user="adobrin"]additivity fixed it.* sorry.[/QUOTE]
It might be useful, if you have some time, to add those details to the wiki for future users.
It might be useful, if you have some time, to add those details to the wiki for future users.