HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: redirect bind logs out of the syslog.log
Operating System - HP-UX
1827286
Members
1647
Online
109717
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2005 01:48 AM
05-12-2005 01:48 AM
Hello,
I need to redirect bin logs out of the syslog.log . I have tried to modied the named.conf but it seems the structure I have made is not correct. I have also tried to modify the syslog.conf but I has not worked.
The configuration which does not work:
logging {
category default { debug ; };
category general { "debug" ; };
category security { "debug" ; };
category config { "debug" ; };
category resolver { "debug" ; };
category xfer-in { "debug" ; };
category xfer-out { "debug" ; };
category notify { "debug" ; };
category client { "debug" ; };
category unmatched { "debug" ; };
category network { "debug" ; };
category update { "debug" ; };
category queries { "debug" ; };
category dispatch { "debug" ; };
category dnssec { "debug" ; };
channel debug {
file "named.log" versions 2 size 50m;
print-time yes;
print-category yes;
};
};
The syslog messages :
May 12 14:34:04 Aramis named[7564]: starting. named 8.1.2 Fri Nov 21 05:54:28 GMT 2003 PH
NE_30068
May 12 14:34:04 Aramis named[7564]: /etc/named.conf:2: syntax error near debug
May 12 14:34:04 Aramis named[7564]: /etc/named.conf:3: invalid logging category 'general'
May 12 14:34:04 Aramis named[7564]: /etc/named.conf:4: unknown channel 'debug'
May 12 14:34:04 Aramis named[7564]: /etc/named.conf:5: unknown channel 'debug'
May 12 14:34:04 Aramis named[7564]: /etc/named.conf:6: invalid logging category 'resolver'
May 12 14:34:04 Aramis named[7564]: /etc/named.conf:7: unknown channel 'debug'
May 12 14:34:04 Aramis named[7564]: /etc/named.conf:8: unknown channel 'debug'
May 12 14:34:04 Aramis named[7564]: /etc/named.conf:9: unknown channel 'debug'
May 12 14:34:04 Aramis named[7564]: /etc/named.conf:10: invalid logging category 'client'
Aramis:/var/adm/syslog> named -version
Any help will be good revarded , "with points"
I need to redirect bin logs out of the syslog.log . I have tried to modied the named.conf but it seems the structure I have made is not correct. I have also tried to modify the syslog.conf but I has not worked.
The configuration which does not work:
logging {
category default { debug ; };
category general { "debug" ; };
category security { "debug" ; };
category config { "debug" ; };
category resolver { "debug" ; };
category xfer-in { "debug" ; };
category xfer-out { "debug" ; };
category notify { "debug" ; };
category client { "debug" ; };
category unmatched { "debug" ; };
category network { "debug" ; };
category update { "debug" ; };
category queries { "debug" ; };
category dispatch { "debug" ; };
category dnssec { "debug" ; };
channel debug {
file "named.log" versions 2 size 50m;
print-time yes;
print-category yes;
};
};
The syslog messages :
May 12 14:34:04 Aramis named[7564]: starting. named 8.1.2 Fri Nov 21 05:54:28 GMT 2003 PH
NE_30068
May 12 14:34:04 Aramis named[7564]: /etc/named.conf:2: syntax error near debug
May 12 14:34:04 Aramis named[7564]: /etc/named.conf:3: invalid logging category 'general'
May 12 14:34:04 Aramis named[7564]: /etc/named.conf:4: unknown channel 'debug'
May 12 14:34:04 Aramis named[7564]: /etc/named.conf:5: unknown channel 'debug'
May 12 14:34:04 Aramis named[7564]: /etc/named.conf:6: invalid logging category 'resolver'
May 12 14:34:04 Aramis named[7564]: /etc/named.conf:7: unknown channel 'debug'
May 12 14:34:04 Aramis named[7564]: /etc/named.conf:8: unknown channel 'debug'
May 12 14:34:04 Aramis named[7564]: /etc/named.conf:9: unknown channel 'debug'
May 12 14:34:04 Aramis named[7564]: /etc/named.conf:10: invalid logging category 'client'
Aramis:/var/adm/syslog> named -version
Any help will be good revarded , "with points"
Here rests one who was not what he wanted and didn't want what he was
Solved! Go to Solution.
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2005 02:03 AM
05-12-2005 02:03 AM
Solution
Try it this way, it works for me at last:
logging{
channel "simple_log" {
file "/var/adm/syslog/named.log" versions 3 size 5m;
severity warning;
print-time yes;
print-severity yes;
print-category yes;
};
channel "query_log" {
file "/var/adm/syslog/query.log" versions 3 size 5m;
print-time yes;
print-severity yes;
print-category yes;
};
category default{
"simple_log";
};
category client{
"simple_log";
};
category queries{
"query_log";
};
category general{
"simple_log";
};
Regards
rainer
logging{
channel "simple_log" {
file "/var/adm/syslog/named.log" versions 3 size 5m;
severity warning;
print-time yes;
print-severity yes;
print-category yes;
};
channel "query_log" {
file "/var/adm/syslog/query.log" versions 3 size 5m;
print-time yes;
print-severity yes;
print-category yes;
};
category default{
"simple_log";
};
category client{
"simple_log";
};
category queries{
"query_log";
};
category general{
"simple_log";
};
Regards
rainer
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2005 02:06 AM
05-12-2005 02:06 AM
Re: redirect bind logs out of the syslog.log
Another option would be to recompile the BIND and in the configure option tell it what the log file is suppose to be.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-16-2005 08:59 PM
05-16-2005 08:59 PM
Re: redirect bind logs out of the syslog.log
U r using bind 8.1.2 as from the syslog. It may not be supporting the logging categories client , resolver , general ( I am not sure ). Also u r not using quotes at the first category . Try declaring the channels first and the categories after wards.
Be Always Joy ......
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP