- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Separate cisco router event from /var/adm/sysl...
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
Discussions
Discussions
Discussions
Forums
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
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
тАО10-05-2005 10:30 PM
тАО10-05-2005 10:30 PM
Separate cisco router event from /var/adm/syslog/syslog.log
By default, all the cicso router event will be logged into /var/adm/syslog/syslog.log
Is there any steps to save all the cisco router event into a separate file? (Exp: /var/adm/syslog/cisco.log) I think something to do with /etc/syslog.cong.
Any ideas?
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2005 05:17 AM
тАО10-06-2005 05:17 AM
Re: Separate cisco router event from /var/adm/syslog/syslog.log
I haven't done this in my current environment, so I don't have an example to offer you. But if you man syslogd, it will help you understand using the /etc/syslog.conf file and configuring what you need.
Hope this points you in the right direction...
Dwyane
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2005 05:33 AM
тАО10-06-2005 05:33 AM
Re: Separate cisco router event from /var/adm/syslog/syslog.log
local7.* /var/adm/syslog/cisco.log
should put all the router logging messages into a single file. Or to set your scope to a larger local events, you can try this with the risk of capturing some non-cisco-ruter events in this log file
local0,local1,local2,local3,local4,local5,local6,local7.debug /var/adm/syslog/cisco.log
This is not my first hand experience but have heard it from one of my old network admin colleagues at one time and it got stuck in my mind
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2005 05:59 AM
тАО10-06-2005 05:59 AM
Re: Separate cisco router event from /var/adm/syslog/syslog.log
1. on router you can set logging facility:
logging facility local4
2. on server
a) touch /var/adm/syslog/cisco.log
b) modify /etc/syslog.conf file
mail.debug /var/adm/syslog/mail.log
*.info;mail.none;local4.none /var/adm/syslog/syslog.log
*.alert /dev/console
*.alert root
*.emerg *
local4.* /var/adm/syslog/cisco.log
c) restart syslogd
/sbin/init.d/syslogd restart
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2005 01:14 PM
тАО10-06-2005 01:14 PM
Re: Separate cisco router event from /var/adm/syslog/syslog.log
Really appreciate for all of ur reply.
But I still hv some questions as below:
1) As I know, "local7" is the default configuration on Cisco devices. How about "local4"? Which one should I use?
2) What is different between local7.* and local7.debug? Can we specify what event that we want only to log into the system log?
3) What is the permission for the /var/adm/syslog/cisco.log? After I modifying the /etc/syslog.conf and restart the syslogd, the cisco.log will be auto created with permission (440 root:sys)? Is it correct?
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2005 05:39 PM
тАО10-06-2005 05:39 PM
Re: Separate cisco router event from /var/adm/syslog/syslog.log
Refer this: http://www.cisco.com/warp/public/117/ld_syslog.html
2) What is different between local7.* and local7.debug?
local7.* will direct all information's including debug, notice, warn, critical to your log file.
http://www.linuxhomenetworking.com/cisco-hn/syslog-cisco.htm
Is saying to use local7.notice only for this.
3) What is the permission for the /var/adm/syslog/cisco.log?
I think it will be with root:root (444) permission as like /var/adm/syslog/mail.log
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2005 05:39 PM
тАО10-06-2005 05:39 PM
Re: Separate cisco router event from /var/adm/syslog/syslog.log
http://www.cisco.com/warp/public/110/pixsyslog.html
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2005 05:45 PM
тАО10-06-2005 05:45 PM
Re: Separate cisco router event from /var/adm/syslog/syslog.log
http://searchnetworking.techtarget.com/tip/1,289483,sid7_gci822509,00.html
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2005 06:20 PM
тАО10-06-2005 06:20 PM
Re: Separate cisco router event from /var/adm/syslog/syslog.log
*.debug is valid
local7.* is not valid
Instead you can use local7.debug, which will select all severity levels (debug, info, notice, warn, err, crit, alert and emerg). Similarly local7.info will select all levels above info (info, notice, warn etc).
syslogd can be run with -v option, which will make it log encoded letter/number code as a second field in syslog log file. This code will show you what facility and severity messages was logged with. See syslog(3C) for details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-09-2005 09:01 PM
тАО10-09-2005 09:01 PM
Re: Separate cisco router event from /var/adm/syslog/syslog.log
1. on router I set the logging facility:
logging facility local7
2. on server
a) touch /var/adm/syslog/cisco.log (permission root:sys 644)
b) modify /etc/syslog.conf file
mail.debug /var/adm/syslog/mail.log
*.info;mail.none;local7.none /var/adm/syslog/syslog.log
*.alert /dev/console
*.alert root
*.emerg *
local7.debug /var/adm/syslog/cisco.log
c) restart syslogd
/sbin/init.d/syslogd stop
/sbin/init.d/syslogd start
But nothing log into neither in /var/adm/syslog/cisco.log nor syslog.log
Any ideas?
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-09-2005 09:22 PM
тАО10-09-2005 09:22 PM
Re: Separate cisco router event from /var/adm/syslog/syslog.log
local7.debug /var/adm/syslog/cisco.log
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-09-2005 09:59 PM
тАО10-09-2005 09:59 PM
Re: Separate cisco router event from /var/adm/syslog/syslog.log
Hv try it but still cannot.
Any ideas?
regards.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-09-2005 10:22 PM
тАО10-09-2005 10:22 PM
Re: Separate cisco router event from /var/adm/syslog/syslog.log
Have you tried something like,
Router(config)#logging buffered 51200 warning
-Arun