ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General Discussion » MQ Error logs DATE format difference AIX vs Linux

Post new topic  Reply to topic
 MQ Error logs DATE format difference AIX vs Linux « View previous topic :: View next topic » 
Author Message
smeunier
PostPosted: Mon Nov 16, 2020 10:36 am    Post subject: MQ Error logs DATE format difference AIX vs Linux Reply with quote

Partisan

Joined: 19 Aug 2002
Posts: 305
Location: Green Mountains of Vermont

I was writing a script the other day which would interrogate for certain MQ Errors in the AMQERR0x.LOG files. I originally wrote it on AIX (bash) and ported it over to Linux (bash). I was getting odd results when calculating dates based on the log entry date written to the log files. On AIX it is a 2 yr date year (mm/dd/yy)- the century and on Linux it is a 4 yr date year (mm/dd/yyyy).

Is there a way to set the MQ log date format? I find it odd that there is a difference in the way the log entry date(year) if different on the two different OS environments.

I could not find anything on this here or in Google
Back to top
View user's profile Send private message
markt
PostPosted: Mon Nov 16, 2020 11:06 am    Post subject: Reply with quote

Knight

Joined: 14 May 2002
Posts: 502

The date at the start of an entry is usually formatted based on locale settings - for example LC_TIME. Which may vary by environment, user and platform.

But the error log entries also include a standardised time format in the header. See example below.

And if you have the error logs in json, the timestamp is also in a standard format.

Code:

22/10/20 10:54:50 - Process(43647144.1) User(root) Program(setmqinst)
                    Host(rockall.hursley.ibm.com) Installation(Installation8)
                    VRMF(9.2.1.0)
                    Time(2020-10-22T09:54:50.641Z)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General Discussion » MQ Error logs DATE format difference AIX vs Linux
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.