- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Cannot send syslog to another server
Operating System - HP-UX
1753864
Members
7348
Online
108809
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
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
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
02-04-2005 02:21 PM
02-04-2005 02:21 PM
Hi all,
I used HPUX 10.20. The configuration of /etc/syslog.conf:
mail.debug /var/adm/syslog/mail.log
*.info;mail.none /var/adm/syslog/syslog.log
*.crit /var/adm/syslog/syslog.log.ito
*.alert /dev/console
*.alert root
*.emerg *
The above setting worked for a long time.
I want to send a copy of log to another server(serverA).Then, in syslog.conf, I added a new entry:
*.debug @serverA
I restarted syslogd:
/sbin/rc1.d/K780syslogd stop
/sbin/rc2.d/S220syslogd start
No log send to serverA.
For testing syslogd, I send log to another file /tmp/tmp.log in local server
*.debug /tmp/tmp.log
Restart syslogd again. No log send to /tmp/tmp.log
For another testing, I add a new entry to send another copy of syslog.log to /tmp/tmp.log
*.info /tmp/tmp.log
Restart syslogd again. No log send to /tmp/tmp.log
Thanks !
I used HPUX 10.20. The configuration of /etc/syslog.conf:
mail.debug /var/adm/syslog/mail.log
*.info;mail.none /var/adm/syslog/syslog.log
*.crit /var/adm/syslog/syslog.log.ito
*.alert /dev/console
*.alert root
*.emerg *
The above setting worked for a long time.
I want to send a copy of log to another server(serverA).Then, in syslog.conf, I added a new entry:
*.debug @serverA
I restarted syslogd:
/sbin/rc1.d/K780syslogd stop
/sbin/rc2.d/S220syslogd start
No log send to serverA.
For testing syslogd, I send log to another file /tmp/tmp.log in local server
*.debug /tmp/tmp.log
Restart syslogd again. No log send to /tmp/tmp.log
For another testing, I add a new entry to send another copy of syslog.log to /tmp/tmp.log
*.info /tmp/tmp.log
Restart syslogd again. No log send to /tmp/tmp.log
Thanks !
Solved! Go to Solution.
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2005 09:13 PM
02-05-2005 09:13 PM
Solution
In the syslog.conf file, there must be one or more TAB character between the selector and the destination fields. The SPACE character is wrong here.
So, you'll want
*.debug@serverA
not
*.debug@serverA
I think this has surprised quite a lot of sysadmins on all unix-like operating systems since the early days of syslogd. So if you made this mistake, you certainly are not alone :-)
So, you'll want
*.debug
not
*.debug
I think this has surprised quite a lot of sysadmins on all unix-like operating systems since the early days of syslogd. So if you made this mistake, you certainly are not alone :-)
MK
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.
News and Events
Support
© Copyright 2024 Hewlett Packard Enterprise Development LP