LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-25-2008, 09:46 AM   #1
skibler1223
Member
 
Registered: Feb 2008
Distribution: Kubuntu 8.10
Posts: 40

Rep: Reputation: 16
named server isn't logging


CentOS5
BIND 9.3.3rc2
2.6.18-53.1.13.el5.centos.plus

Here is what I have setup in the /etc/named.conf

Code:
logging {
               channel update_debug {
                    file "/var/log/named/named_update.log";
                    severity debug 5;
                    print-time yes;
                    print-severity yes;
                    print-category yes;
               };
               channel security_info {
                    file "/var/log/named/named_auth.log";
                    severity notice;
                    print-time yes;
                    print-severity yes;
                    print-category yes;
               };
               channel info {
                    file "/var/log/named/named_info.log";
                    severity info;
                    print-time yes;
                    print-severity yes;
                    print-category yes;
               };

               category update { update_debug; };
               category security { security_info; };
               category info { info; };
        };
This is an "ls -a" on /var/log/named
Code:
drwxrwxr-x  2 root named 4.0K Feb 25 03:39 .
drwxr-xr-x 11 root root  4.0K Feb 25 03:16 ..
-rw-rw-r--  1 root named    1 Feb 25 01:13 named_auth.log
-rw-rw-r--  1 root named    0 Feb 25 03:11 named_info.log
-rw-rw-r--  1 root named    1 Feb 25 01:13 named_update.log
I receive no errors when starting the service, it just don't seem to want to log to these files. I have made sure that named user has write privileges to the files and directory. I have even tried commenting out the logging directive, restarting and checking the default /var/log/messages. It isn't logging there anymore either, and it did before.

EDIT: 11:05AM 2008-02-25
Ok after restarting syslogd logging is functional to /var/log/messages. But still not to my defined log files.
Here are the relevant entries in /var/log/messages

Code:
Feb 25 04:00:33 brutus named[9410]: logging channel 'update_debug' file '/var/log/named/named_update.log': file not found
Feb 25 04:00:33 brutus named[9410]: logging channel 'security_info' file '/var/log/named/named_auth.log': file not found
Feb 25 04:00:33 brutus named[9410]: logging channel 'info' file '/var/log/named/named_info.log': file not found
Feb 25 04:00:33 brutus named[9410]: /etc/named.conf:73: unknown logging category 'info' ignored
Somehow I've managed to get DDNS working but not logging :P

Thanks for any advice,
Ant

Last edited by skibler1223; 02-25-2008 at 10:07 AM. Reason: logging to /var/log/messages works
 
Old 02-26-2008, 01:54 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
Feb 25 04:00:33 brutus named[9410]: logging channel 'update_debug' file '/var/log/named/named_update.log': file not found
Feb 25 04:00:33 brutus named[9410]: logging channel 'security_info' file '/var/log/named/named_auth.log': file not found
Feb 25 04:00:33 brutus named[9410]: logging channel 'info' file '/var/log/named/named_info.log': file not found
Make sure that /var/log/named is owned by the user:group under which named is running
Quote:
Feb 25 04:00:33 brutus named[9410]: /etc/named.conf:73: unknown logging category 'info' ignored
There is no info category. Take a look here for the various logging categories.

Regards
 
Old 03-08-2008, 12:09 AM   #3
skibler1223
Member
 
Registered: Feb 2008
Distribution: Kubuntu 8.10
Posts: 40

Original Poster
Rep: Reputation: 16
Code:
[root@brutus sean]# ls /var/log/named/
total 0
-rw------- 1 named named 0 Mar  4 04:55 named_auth.log
-rw------- 1 named named 0 Mar  7 03:53 named_info.log
-rw------- 1 named named 0 Mar  4 04:55 named_update.log
Code:
logging {
               channel update_debug {
                    file "/var/log/named/named_update.log";
                    severity debug 5;
                    print-time yes;
                    print-severity yes;
                    print-category yes;
               };
               channel security_info {
                    file "/var/log/named/named_auth.log";
                    severity notice;
                    print-time yes;
                    print-severity yes;
                    print-category yes;
               };
               channel info {
                    file "/var/log/named/named_info.log";
                    severity info;
                    print-time yes;
                    print-severity yes;
                    print-category yes;
               };

               category update { update_debug; };
               category security { security_info; };
               category queries { info; };
        };
Code:
Mar  7 17:58:43 brutus named[10737]: logging channel 'update_debug' file '/var/log/named/named_update.log': file not found
Mar  7 17:58:43 brutus named[10737]: logging channel 'security_info' file '/var/log/named/named_auth.log': file not found
Mar  7 17:58:43 brutus named[10737]: logging channel 'info' file '/var/log/named/named_info.log': file not found
Still nothing. It was actually like this the first time I posted but I posted old data. Its logging normal entries to the /var/log/messages log but still nothing to the custom logs. Given these errors it has to be something I'm doing...or not doing.

Any help appreciated.
 
Old 03-08-2008, 08:41 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Make sure you are not running named chrooted. If named runs chrooted then the correct path to the log directory is relative to the chroot.
What is the output of:
Code:
ps -ef|grep named
 
Old 03-09-2008, 10:23 AM   #5
skibler1223
Member
 
Registered: Feb 2008
Distribution: Kubuntu 8.10
Posts: 40

Original Poster
Rep: Reputation: 16
Code:
[root@brutus ~]# ps -ef | grep named
named    10889     1  0 Mar07 ?        00:00:21 /usr/sbin/named -u named -t /var/named/chroot
root     12597 12577  0 04:15 pts/0    00:00:00 grep named
[root@brutus ~]#
Didn't think of that yes, its chrooted. So I need to use /var/named/var/log/named_x.log then?
 
Old 03-09-2008, 12:09 PM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
So I need to use /var/named/var/log/named_x.log then?
Nope, since you use -t /var/named/chroot, then the actual logging directory is /var/named/chroot/var/log/named/
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
chown -R named:named /var/named crash the system? joangopan Fedora 2 09-09-2007 02:46 AM
named.conf and named.caching-server.conf ? Ronin_tekorei Linux - Server 4 05-03-2007 07:34 AM
Logging in and logging out of a server in a script frankie_DJ Linux - Newbie 4 01-27-2007 11:03 PM
named logging Equin Linux - Software 0 10-13-2005 10:38 PM
named logging MagDaddy Linux - Software 0 11-10-2003 04:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration