Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Forums
Discussions
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
Community
Resources
Forums
Blogs
- 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
11-19-2001 01:02 AM
11-19-2001 01:02 AM
I have a switch that it sends messages in my syslog.
But now, I wanna send these messages to an other file.
How can I set syslog.conf to do that?
Regards
Roberto
Solved! Go to Solution.
- Tags:
- syslogd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2001 01:11 AM
11-19-2001 01:11 AM
Re: syslogd
You will need to first identify the logging facility and levels used by the switch in the form of facility.level.
If it uses only eg. switch facility and level alert, then in your /etc/syslog.conf, you can specify:
switch.alert /var/adm/switch.messages # use another file for logging
switch.alert @loghost.logdomain # loghost.logdomain is the name of your logging server which is running syslogd as well
Hope this helps. Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2001 01:31 AM
11-19-2001 01:31 AM
Re: syslogd
but I found the message in syslog
unknown facility nale "switch": no such device or address
How can I define it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2001 01:39 AM
11-19-2001 01:39 AM
SolutionYou have to replace "switch" with the facility name used by your switch.
To check, look at your syslog.log for entries by your switch and identify the facility name representing your switch. The facility name should come after your hostname.
Hope this helps. Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2001 05:57 AM
11-19-2001 05:57 AM
Re: syslogd
I did that,
but syslog continue to send messages in syslog and not in the other files.
I found a document with the example of a cisco switch using the facility "local7" known by syslog. Using the host name does not work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2001 08:07 AM
11-19-2001 08:07 AM
Re: syslogd
What I meant is that to identify the facility name, often the tag after the hostname reflected in syslog.log would give some clues as to what the facility name would be.
In this case, your facility is LOCAL7. A number of applications may use this facility.
To send logs to another file, you have to put into syslog.conf such as:
local7.* /var/adm/syslog/switch.messages
Remember to restart your syslogd daemon for your changes to take effect.
Hope this helps. Regards.
Steven Sim Kok Leong
Brainbench MVP for Unix Admin
http://www.brainbench.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-19-2001 10:10 AM
11-19-2001 10:10 AM
Re: syslogd
logger -t some-id-info -p local7.warn "This is a local7 warning"
tail /var/adm/syslog/syslog.log
where -t will report whatever you want, typically it is the program's name or application. Once logging is working, change /etc/syslog.conf, then ask syslog to re-read the config file and issue the command again. You should see local7 being logged to it's new location. Now try your application.
Bill Hassell, sysadmin