Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

Syslog Timezone Problem

I am using Syslog Analyzer to collect syslog messages form switches and routers. From syslog analyzer, I see:

30 Mar 2004 19:51:49 CST Configured from console by ns010185 on vty 0.

And from show logging, the same message is

Mar 30 11:51:49 gmt: %SYS-5-CONFIG_I: Configured from console by ns010185 on vty 0 (

The time now is 11:51:49. Why it is 8 hours earlier than it really is ?

  • Other Network Infrastructure Subjects
New Member

Re: Syslog Timezone Problem

There are only certain timezone acronyms and zones supported by CiscoWorrks.. Have a look at this link..

You will find the same for your version/platform on the Cisco site.

Hope it helps..

Re: Syslog Timezone Problem


it seems like your switch is using GMT in syslog while CiscoWorks are using CST.

Have you configured

service timestamps log datetime msec localtime

in the switch config?

Then it will use local time in syslog timestamps.

You can configure the local time offset from GMT using

clock timezone CET 1 (e.g.)




New Member

Re: Syslog Timezone Problem

I had already configured 'service timestamps log datetime msec localtime show-timezone'.

Switch#sh clock

10:51:53.552 GMT Wed Mar 31 2004

It is learned from NTP server.

From CiscoWorks>RME>Administration>Syslog Analysis>Syslog Collector Status, the syslog analyzer is using the right time. But the log messages from reports is wrong.

Re: Syslog Timezone Problem

search the online help of Cisco Works for the following:

country code

search all words

in Syslog Analysis

the first you get is Overview: Syslog Analysis

there you get info how Syslog Analysis handles time and timestamps.


New Member

Re: Syslog Timezone Problem

If you change the solaris to use DST/GMT time and use the same on cisco device even that the cisco devices can use summertime with specific area definitions and the solaris can't it works fine for me.

I have TZ=DST-2 on the solaris(Because of the summertime is running right now)

and have

clock timezone DNT 1

clock summer-time DST recurring last Sun Mar 2:00 last Sun Oct 3:00

clock calendar-valid

on the IOS box

New Member

Re: Syslog Timezone Problem

I met the same problem.

I find the following in help of the Syslog Analysis Overview:

Managed devices send syslog messages that contain a time stamp reflecting the device's local time zone. Because the device time zone might differ from the server, the Syslog Analyzer converts time stamps in all Syslog messages to GMT format for all supported time zones. If a device time zone is not supported, the server time zone is used. If a managed device is not configured to send time zone information with its messages, Syslog assumes the device resides in the server time zone and uses that time zone in the message time stamp. For example, if a managed device in India is set to the local time zone, sends a syslog message to an Essentials server in California, and the message is then viewed on a client browser in New York, the message will reflect California time.

It is recommended that you set the country code variable with the appropriate country code in the file located in the directory NMSROOT/lib/classpath/com/cisco/nm/sysloga/sa, to make sure that the Syslog timestamp conversion works correctly. For example, if you are in Singapore, you must set the country code variable as COUNTRY=SGP.

For a list of country codes, see the file, CountryCode.txt, located in the directory, NMSROOT\lib\classpath\com\cisco\nm\sysloga\CountryCode.txt. The country code is the 3-letter abbreviation specified in the CountryCode.txt (in column A 3).

Syslog reports are always displayed by converting stored GMT time to server time.

Hope these can help you.

New Member

Re: Syslog Timezone Problem

I have modified the ,set the country code as COUNTRY=CHN and restart the server. It still doesn't work.

Hall of Fame Super Silver

Re: Syslog Timezone Problem

One of the previous answers stressed the importance of configuring service timestamps logging which includes the parameter "localtime". You responded that you had indeed configured this.

The aspect that has not yet been pointed out is what does the switch think localtime is. There is a clue in the log message:Mar 30 11:51:49 gmt: %SYS-5-CONFIG_...

and it is even more clear when you did

Switch#sh clock

10:51:53.552 GMT Wed Mar 31 2004

The switch is using GMT (Greenwich Mean Time) which it is learning from the NTP server.

What you need to do is to configure the local timezone (set timezone CST -6 0). You may also want to configure daylight savings (set summertime enable CDT)

This widget could not be displayed.