Filters & Logging

Have a great idea for extending Zimbra? Share ideas, ask questions, contribute, and get feedback.
phoenix
Ambassador
Ambassador
Posts: 26727
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Filters & Logging

Postby phoenix » Fri Feb 10, 2006 6:43 am

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

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
marcmac
Elite member
Elite member
Posts: 2091
Joined: Fri Sep 12, 2014 9:53 pm

Filters & Logging

Postby marcmac » Fri Feb 10, 2006 8:59 am

[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.
marcmac
Elite member
Elite member
Posts: 2091
Joined: Fri Sep 12, 2014 9:53 pm

Filters & Logging

Postby marcmac » Fri Feb 10, 2006 8:59 am

[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.
phoenix
Ambassador
Ambassador
Posts: 26727
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Filters & Logging

Postby phoenix » Fri Feb 10, 2006 1:36 pm

[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. :D Thanks.
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
14319KevinH
Ambassador
Ambassador
Posts: 4558
Joined: Fri Sep 12, 2014 9:52 pm

Filters & Logging

Postby 14319KevinH » Fri Feb 10, 2006 2:21 pm

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/zimbra_main/ZimbraServer/src/java/com/zimbra/cs/util/ZimbraLog.java?r=1.11
phoenix
Ambassador
Ambassador
Posts: 26727
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Filters & Logging

Postby phoenix » Fri Feb 10, 2006 2:33 pm

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

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
adobrin
Advanced member
Advanced member
Posts: 134
Joined: Fri Sep 12, 2014 9:56 pm

Filters & Logging

Postby adobrin » Fri Aug 25, 2006 11:11 am

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?
adobrin
Advanced member
Advanced member
Posts: 134
Joined: Fri Sep 12, 2014 9:56 pm

Filters & Logging

Postby adobrin » Fri Aug 25, 2006 11:44 am

additivity fixed it.* sorry.
phoenix
Ambassador
Ambassador
Posts: 26727
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Filters & Logging

Postby phoenix » Fri Aug 25, 2006 12:36 pm

[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.
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra

Return to “Developers”

Who is online

Users browsing this forum: No registered users and 1 guest