Skip to content
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

Produce too much log #124

Closed
blckngm opened this issue Apr 11, 2016 · 5 comments
Closed

Produce too much log #124

blckngm opened this issue Apr 11, 2016 · 5 comments

Comments

@blckngm
Copy link

blckngm commented Apr 11, 2016

Dnsmasq logs every entry in the list every time it starts/reloads, thus created an /var/log/syslog as large as 0.5GiB on my router.

Users should be warned of this problem.

There is unfortunately no easy fix. Maybe we should contact
dnsmasq-discuss.

@felixonmars
Copy link
Owner

I use systemd's journal and it was limited by default, so I never paid attention to it. Please let me know if there is a fix and I'll update README accordingly :)

@lilydjwg
Copy link
Contributor

@felixonmars in fact journald will be more affected, because it shares the limit among all the logs. With syslog, it's easier to filter out and rotate dnsmasq's logs so it won't occupy too much space.

@blckngm
Copy link
Author

blckngm commented Apr 22, 2016

I didn't get any response from dnsmasq-discuss.

Here is how to discard these logs with rsyslog:

In /etc/rsyslog.conf prepend, or create /etc/rsyslog.d/10-dnsmasq-china-list.conf and add

:msg, contains, "using nameserver 114.114.114.114#53 for" ~

There doesn't seem to be an easy way to filter logs in journald though.

@blckngm
Copy link
Author

blckngm commented May 8, 2016

Simon Kelley has fixed it in dnsmasq(link). Closing.

@blckngm blckngm closed this as completed May 8, 2016
@felixonmars
Copy link
Owner

Thanks for the update!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants