-
-
Notifications
You must be signed in to change notification settings - Fork 2k
chore(logwatch): Add ignore.conf
to ignore logs from Dovecot index-worker
#4012
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
of successfuly indexed messages
Thank you for the PR, this looks like a sensible change. However, the checklist is not supposed to be shortened, it's supposed to be completed! I have re-added the missing points, please make sure to complete all the items and check them in the list. I have already ticked the items in the list that can be ticked. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍🏼 One small change and we're good I think.
I'm sorry that I mishandled that. I can't see the missing points / check them in the list. Should I copy them from somewhere again and modify the pull request text myself? |
ignore.conf
to ignore logs from Dovecot index-worker
I've restored these. I'm not sure if @georglauterbach is wanting them all addressed though (tests/docs), they don't seem necessary. You should add a changelog entry, this seems suitable for the "Updates" section: docker-mailserver/CHANGELOG.md Lines 84 to 85 in 016d6b5
Just add something above the referenced like, such as: - **Dovecot:**
- `logwatch` now filters out non-error logs related to the status of the `index-worker` process for FTS indexing. ([#4012](https://github.com/docker-mailserver/docker-mailserver/pull/4012)) Regarding this contribution, do you have some samples of the logs you're preventing? I have seen here that there can be error logs that may be relevant to not ignore if they appear?
Whereas the goal seems to be more targeted around filtering these kind of logs out:
Keywords in these logs are I see the regex is targeting one keyword pair there but will still include the start/done log lines, is that still desired? The error logs should remain, so no problem there. For maintainers - Reference links related to the Dovecot indexer process and FTS: |
Indeed, we don't no l need most of the points, so I ticked them, too. The |
That'd be misleading as no such changes were done. Removing those lines is fine, I've edited to drop those redundant checklist items. @mmehnert just update |
I was explicitly only targeting messages of the form
Interestingly in my setup I don't have the messages containing "Start indexing" and "Done indexing". So I did not include a regexp for those. @polarathene do you encounter those messages in your installation? If so, I'm happy to add the necessary two lines to ignore.conf The error messages like
should not be excluded in my opinion and are not matched by the regexp that I've put into ignore.conf |
Thanks for the contribution! 😁 I'll leave this for another maintainer to approve before merging.
I don't actually deploy DMS (ironic I know), and I can't configure a local instance with FTS to try it out myself any time soon 😓 If those log lines aren't present, I wouldn't worry about it. Either something changed since that report or we have a less verbose log from Dovecot configured. If someone is affected and it bothers them they're welcome to contribute another PR 👍 |
When using the dovecot-fts-xapian plugin as described in the "Full-Text Search" article of the projects' documentation, the daily logwatch emails get cluttered with output from the indexing of emails.
This pull request adds an ignore.conf to the logwatch configuration with a regular expression to filter out the corresponding messages.
Type of change
Checklist
CHANGELOG.md