HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Channels, Locals in syslog
Operating System - HP-UX
1837116
Members
2332
Online
110112
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
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
07-11-2002 04:54 AM
07-11-2002 04:54 AM
Channels, Locals in syslog
hey everyone, can someone please explain how the channels locals0 -locals7 work please. I have set it up to where each individual logfile goes to a individual local. Can I have multiple logs go to one local. Any input will be greatly appreciated. Also let me know if you may need may information.
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-11-2002 05:25 AM
07-11-2002 05:25 AM
Re: Channels, Locals in syslog
local0-7 is a facility for administrator (i.a a script) or
for a soft, for logging informations.
notice, warning, crtical is used by OS.
1) configuring the syslog.conf
- create the log file with the command touch :
i.e : touch /var/adm/mylog.log
- add lines in /etc/syslog.conf
i.e :
cp /etc/syslog.conf /etc/syslog.conf.orig
echo "local3.err /var/adm/mylog.log" >> /etc/syslog.conf
- refresh the syslog daemon
kill -HUP `ps -ef | grep syslogd | grep -v grep | awk '{print $2}'`
(it's crazy, but that's cool for a copy&paste)
2) test the syslog
logger -p local3.err "I am today very nice"
or
logger -p local3.err -t LOCAL3 "I am today very nice"
verify with :
tail /var/adm/mylog.log
Jean-Yves
pitstop
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
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP