Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I believe I need to change the "channel queries_file" to something like below but Im not sure how to get my syslog server (rsyslog.conf) to recognize it instead of the local BIND server??
Of course you need to configure the remote rsyslog server accordingly and also keep in mind that logging queries produces a great amount of data and thus traffic to the remote logging server.
Thank you for replying back. I believe I have the BIND servers configured properly with the additional code you mentioned above.
Where am Im getting mixed up is on the actual syslog server configs.
I believe the IP within the rsyslog.conf on the BIND server would be of the syslog server, correct? Im getting mixed up on how/where to configure the code to point to the location of the logs to go to.
Question: the IP within rsyslog.conf, does it need to be an IP or can it be a name? syslog.domain,lan? Id like to have multiple syslog servers within a WIP.
Thank you for replying back. I believe I have the BIND servers configured properly with the additional code you mentioned above.
Where am Im getting mixed up is on the actual syslog server configs.
If you used my example above, i.e. use local0 facility to log queries, then you need to use the same in the remote rsyslog server:
Code:
local0.* @@x.x.x.x:514
Quote:
I believe the IP within the rsyslog.conf on the BIND server would be of the syslog server, correct? Im getting mixed up on how/where to configure the code to point to the location of the logs to go to.
Yes, the IP in the local bind server's rsyslog.conf should be that of the remote logging server running rsyslog.
Quote:
Question: the IP within rsyslog.conf, does it need to be an IP or can it be a name? syslog.domain,lan? Id like to have multiple syslog servers within a WIP.
Of course you can use a hostname instead of an IP. But it has to be resolvable by the bind server...
That is where Im getting hung up on. The configuration on the syslog server side to receive the queries logs only on a mount point on the syslog server.
Instead of the queries logs to reside on the DNS server, I would like the queries to reside on the syslog server and the dns server if possible.
Hello
Interesting enough ... I find that logging stops each night and I need to restart rsyslog.service on each DNS server along with the Syslog servers to regain the collection of the queries.log
Would you know of what that could be happening? Thanks again!
Hello
Interesting enough ... I find that logging stops each night and I need to restart rsyslog.service on each DNS server along with the Syslog servers to regain the collection of the queries.log
Would you know of what that could be happening? Thanks again!
You need to restart syslogd after rotating logs, so it continues logging.
I guess you can stick your query logfile(s) among the others in /etc/logrotate.d/syslog, so it's rotated by syslog's logrotate.
Or else you need to put a postrotate in your logrotate script above, in order to restart syslogd after rotating query logs
I don't use RHEL, but if I had to choose, I'd go with the 2nd option as it's the same in my Slackware box.
Besides the 3rd one only refreshes bind, not syslogd.
Anyway, you should try it yourself, using the debug option in logrotate, so it will just print out what it would do without actually doing it:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.