- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Syslog to local file and remote host
Operating System - HP-UX
1820553
Members
2339
Online
109626
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
Discussions
Forums
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
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
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
тАО10-04-2002 03:43 PM
тАО10-04-2002 03:43 PM
Syslog to local file and remote host
I have a linux server running swatch to monitor the syslog from multiple machines. I would like to send the syslog from my HP-UX system to this server but also log it locally so I can still see the logs in the event of a network failure. Can I specify multiple hosts in /etc/syslog.conf? I tried adding
*.info [tab] /var/adm/syslog.log @loghost
but it does not work. I also tried putting a seperate line for each host but I still have no luck. Is it possible to log to multiple locations?
*.info [tab] /var/adm/syslog.log @loghost
but it does not work. I also tried putting a seperate line for each host but I still have no luck. Is it possible to log to multiple locations?
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-04-2002 04:45 PM
тАО10-04-2002 04:45 PM
Re: Syslog to local file and remote host
You should be able to specify multiple destinations for messages by repeating the line in /etc/syslog.conf. Are you sending syslogd a SIGHUP after changing the file or alternatively restarting syslogd?
Regards,
Rich
Regards,
Rich
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-04-2002 04:51 PM
тАО10-04-2002 04:51 PM
Re: Syslog to local file and remote host
Hi Doug,
Although I don't think you can send to multiple loactions on the same line in syslog.conf - except for comma separated list of users. But I would try using two separate lines in the syslog.conf file as the messages are sent at that specified level & higher. Say send warning & higher to the syslog server & send info & higher to the file.
Something like
*.warning @server
*.info /var/adm/syslog/syslog.log
You should also be aware the syslog services uses port 514/UDP & therefore NO error checking is performed in transmission & that coupled with the fact that if you have an environmental problem that's causing a LOT of systems messages on a LOT of systems, you SHOULD seriously study how to route this traffic. I'd recommend a dedicated LAN for the syslog traffic & size the NICS accordingly - i.e gigabit on the syslog server & 100MB on the syslog clients & appropriate switches/routers to handle the traffic.
HTH,
Jeff
Although I don't think you can send to multiple loactions on the same line in syslog.conf - except for comma separated list of users. But I would try using two separate lines in the syslog.conf file as the messages are sent at that specified level & higher. Say send warning & higher to the syslog server & send info & higher to the file.
Something like
*.warning @server
*.info /var/adm/syslog/syslog.log
You should also be aware the syslog services uses port 514/UDP & therefore NO error checking is performed in transmission & that coupled with the fact that if you have an environmental problem that's causing a LOT of systems messages on a LOT of systems, you SHOULD seriously study how to route this traffic. I'd recommend a dedicated LAN for the syslog traffic & size the NICS accordingly - i.e gigabit on the syslog server & 100MB on the syslog clients & appropriate switches/routers to handle the traffic.
HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
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
Learn About
News and Events
Support
© Copyright 2025 Hewlett Packard Enterprise Development LP