Discussion:
[Dnsmasq-discuss] send logs to a remote server
John Pearson
2016-08-03 18:00:01 UTC
Permalink
I'd like to send the logs to a remote server to process. I'm currently
leaning towards using rsyslog for that.

I looked into --log-facility sending to remote server but doesn't seem to
be supported.

Is there a better way than rsyslog? Maybe something built into dnsmasq that
I am missing?

Thanks!
Rick Jones
2016-08-03 18:44:55 UTC
Permalink
Post by John Pearson
I'd like to send the logs to a remote server to process. I'm currently
leaning towards using rsyslog for that.
I looked into --log-facility sending to remote server but doesn't seem
to be supported.
Is there a better way than rsyslog? Maybe something built into dnsmasq
that I am missing?
Just a paranoid drift, because I've been bitten by it a few times in the
past - make certain that if you do go the rsyslog path, you ensure it is
setup to never block the local logging client(s) no matter what happens
with the remote logging destination. Otherwise, when something goes
awry with the remote logging destination the backpressure will affect
the logging clients (eg dnsmasq in this case though the times I've been
bitten were with other things).

rick jones
Simon Kelley
2016-08-03 22:12:03 UTC
Permalink
Post by Rick Jones
Post by John Pearson
I'd like to send the logs to a remote server to process. I'm
currently leaning towards using rsyslog for that.
I looked into --log-facility sending to remote server but doesn't
seem to be supported.
Is there a better way than rsyslog? Maybe something built into
dnsmasq that I am missing?
Just a paranoid drift, because I've been bitten by it a few times
in the past - make certain that if you do go the rsyslog path, you
ensure it is setup to never block the local logging client(s) no
matter what happens with the remote logging destination.
Otherwise, when something goes awry with the remote logging
destination the backpressure will affect the logging clients (eg
dnsmasq in this case though the times I've been bitten were with
other things).
This bit me long ago, and the result was the --log-async option, which
makes dnsmasq immune to backpressure from the logging system, and,
more importantly, avoids deadlocks when the log daemon makes DNS
queries through the local dnsmasq instance.


Cheers,

Simon.
Post by Rick Jones
rick jones
_______________________________________________ Dnsmasq-discuss
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
John Pearson
2016-08-03 23:12:30 UTC
Permalink
Thanks. I'm going to go ahead and use rsyslog and also look into --log-async
option.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Post by Rick Jones
Post by John Pearson
I'd like to send the logs to a remote server to process. I'm
currently leaning towards using rsyslog for that.
I looked into --log-facility sending to remote server but doesn't
seem to be supported.
Is there a better way than rsyslog? Maybe something built into
dnsmasq that I am missing?
Just a paranoid drift, because I've been bitten by it a few times
in the past - make certain that if you do go the rsyslog path, you
ensure it is setup to never block the local logging client(s) no
matter what happens with the remote logging destination.
Otherwise, when something goes awry with the remote logging
destination the backpressure will affect the logging clients (eg
dnsmasq in this case though the times I've been bitten were with
other things).
This bit me long ago, and the result was the --log-async option, which
makes dnsmasq immune to backpressure from the logging system, and,
more importantly, avoids deadlocks when the log daemon makes DNS
queries through the local dnsmasq instance.
Cheers,
Simon.
Post by Rick Jones
rick jones
_______________________________________________ Dnsmasq-discuss
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
iQIcBAEBCAAGBQJXomwzAAoJEBXN2mrhkTWi0YAP/AkVPQvsh1xoMf2DaUBurXMI
PlnQQf5bvg6+yPjGc0A235IAqU+6Du10xYk+qEXcEM8zQs+MULle34X1SddCdrUQ
WzDfxC9db4/F/vMkH8wr06AMrEkhb4rSvNvLLck/AOUJUce0+9WMdBHMXC3WJdyk
A1/uSI59tqSoq5WD3jFvA2fAqGaPbPJmcx94r4oYmrIOLa8+JSyXBG39vw+fEcyg
Sj9fqEmpj7lImvpDyWaLqeyOC3UwVUlZX8AdDokS+qjY68fjqzVvcj8YWtZfWQaC
s78MZgXqqJLn0CRktorQUa9xLv7/oDxiBSwqMGbOdZjrisozMQG5Toimxrz5A/zo
+ws+pl4xYrgSOcTHaA5HpGQGjPnu0bcjRtcolOq1J888pBsTdTSFGlZcb301ref5
wRjj2K8zoGDyFQrg+nKXtQrGTkJ3iXT8fY/SaiSAX/2BjMAfTwC+8AOAR4ia9EL8
6BA3ef225lpEd4siiLDRTxvUay5Sjni4XCnD63C5NsRGQVJ45TdWMm5m3olEIxdK
WDwhgy8IFh4Vc+M1IiD9/welljmW/b35jboGnOFlpt0NyJwTP5uFDQoVHp5dkQXX
Q8yMCStIF+5wCrJhgo7tGin6XulE+4NVW83DmunrlROAQw4lS6YPQZcdtmhIg9rn
7ydtjiYt7xVZoz5XJiLS
=zmua
-----END PGP SIGNATURE-----
_______________________________________________
Dnsmasq-discuss mailing list
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
Loading...