+ Logging, Syslog and Log Anaylsys Forums » Forums » Log Data and Analysis
|-+ 

Linux syslog sample?urgent

Username:
Password:
News:

Pages: [1]
0 Members and 1 Guest are viewing this topic. Topic Tools  
Read July 17, 2008, 04:24:47 am #0
taka1112004

Linux syslog sample?urgent

Hi

i have a red hat Linux system used to as a syslog server,the version of syslogd is 1.4.1. now i want to collect the log infomation of a cisco router,after colleting the log,however ,i find the format (or the content) of router log can not meet my satification.
the content of my log is like following :

Jul 13 18:57:47 10.240.46.16 36: *Mar  1 03:02:54: %SYS-5-CONFIG_I: Configured from console by console
Jul 13 18:59:11 10.240.46.16 37: *Mar  1 03:04:19: %SYS-5-RELOAD: Reload requested by console. Reload Reason: Reload command.
Jul 13 19:16:10 10.240.46.16 13: *Mar  1 00:15:05: %SYS-5-CONFIG_I: Configured from console by console
Jul 13 19:16:34 10.240.46.16 14: *Mar  1 00:15:29: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to down
Jul 13 19:17:23 10.240.46.16 15: *Mar  1 00:16:17: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
what i want is like this :
<142> Jul 13 18:57:47 10.240.46.16 36: *Mar  1 03:02:54: %SYS-5-CONFIG_I: Configured from console by console
<142> Jul 13 18:59:11 10.240.46.16 37: *Mar  1 03:04:19: %SYS-5-RELOAD: Reload requested by console. Reload Reason: Reload command.
<142> Jul 13 19:16:10 10.240.46.16 13: *Mar  1 00:15:05: %SYS-5-CONFIG_I: Configured from console by console
<142> Jul 13 19:16:34 10.240.46.16 14: *Mar  1 00:15:29: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to down
<142> Jul 13 19:17:23 10.240.46.16 15: *Mar  1 00:16:17: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
the problem is the log i got has lost the corresponding infomation about facility and priority ,so how can i add them into my log file ?
thank you
« Last Edit: July 17, 2008, 04:48:27 am by taka1112004 »
Offline  
Pages: [1]
Jump to:  


Information Security News | Jerry Bell's blog | Enterprise IT | Tropical Fish Information | Tropical Fish Forums