Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Developers

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-10-2006, 04:43 AM
Zimbra Consultant & Moderator
 
Posts: 20,316
Default 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?
__________________
Regards


Bill
Reply With Quote
  #2 (permalink)  
Old 02-10-2006, 06:59 AM
Zimbra Employee
 
Posts: 2,103
Default log4j.properties

Quote:
Originally Posted by phoenix
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?
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.
Reply With Quote
  #3 (permalink)  
Old 02-10-2006, 06:59 AM
Zimbra Employee
 
Posts: 2,103
Default debug logging

Quote:
Originally Posted by 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.
BTW - not something to do on a busy box or one with slow disk.
Reply With Quote
  #4 (permalink)  
Old 02-10-2006, 11:36 AM
Zimbra Consultant & Moderator
 
Posts: 20,316
Default

Quote:
Originally Posted by 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.
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.
__________________
Regards


Bill
Reply With Quote
  #5 (permalink)  
Old 02-10-2006, 12:21 PM
Zimbra Employee
 
Posts: 4,792
Default

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/view...og.java?r=1.11
__________________
Bugzilla - Wiki - Downloads - Offline Client
Reply With Quote
  #6 (permalink)  
Old 02-10-2006, 12:33 PM
Zimbra Consultant & Moderator
 
Posts: 20,316
Default

Thanks for those details, I'll have a play with them tomorrow.
__________________
Regards


Bill
Reply With Quote
  #7 (permalink)  
Old 08-25-2006, 09:11 AM
Special Member
 
Posts: 135
Default Logging Facility Help

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:
Code:
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?
Reply With Quote
  #8 (permalink)  
Old 08-25-2006, 09:44 AM
Special Member
 
Posts: 135
Default err.

additivity fixed it.* sorry.
Reply With Quote
  #9 (permalink)  
Old 08-25-2006, 10:36 AM
Zimbra Consultant & Moderator
 
Posts: 20,316
Default

Quote:
Originally Posted by adobrin
additivity fixed it.* sorry.
It might be useful, if you have some time, to add those details to the wiki for future users.
__________________
Regards


Bill
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.