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 » WebSphere Message Broker (ACE) Support » UserTraceLog & TraceLog Property

Post new topic  Reply to topic
 UserTraceLog & TraceLog Property « View previous topic :: View next topic » 
Author Message
sarathmattam
PostPosted: Wed Jan 22, 2014 4:47 am    Post subject: UserTraceLog & TraceLog Property Reply with quote

Voyager

Joined: 05 Sep 2008
Posts: 94

Dears,

I used the below command to read the UserTraceLog and TraceLog properties

mqsireportproperties DEV.GEN.BRK -e EG1 -o UserTraceLog -r -p /var/log/Usertrace.log

mqsireportproperties DEV.GEN.BRK -e EG1 -o TraceLog -r -p /var/log/Trace.log

Both gave me a lot of interesting information. But I am not able to differentiate the kind of data given by both. As far as I understood, TraceLog gives detailed information about the execution of code and UserTraceLog gives info about errors and transactions. Please correct me if I am wrong.

Also, in which path can I get this info (assuming that it is saved in a file) ?
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Jan 22, 2014 8:46 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

You use the mqsireadlog command to gather the contents of trace.

mqsireportproperties does not give you the contents of trace.

The info center gives explicit instructions.
Back to top
View user's profile Send private message
sarathmattam
PostPosted: Mon Jan 27, 2014 9:33 pm    Post subject: Reply with quote

Voyager

Joined: 05 Sep 2008
Posts: 94

Dear mqjeff,

Thank You. By any chance, did you mean to say that the commands that I used wont give any output ? But, I am getting output. A part of both are copied below. My query was about the difference between the contents of the results from the queries mentioned below.

Code:
mqsireportproperties DEV.GEN.BRK -e EG1 -o UserTraceLog -r -p /var/mqsi/Usertrace.log


Code:

UserTraceLog
  uuid='UserTraceLog'
  userTraceLevel='none'
  traceLevel='none'
  userTraceFilter='debugTrace'
  traceFilter='none'
  fileSize='204800000'
  bufferSize='0'
  fileMode='safe'
  Information
    timestamp='2014-01-14 10:07:52.705080'
    thread='4'
    function='ImbDataFlowNotifications::outputExecutionGroupLogMessage'
    text=''Execution Group received administration message.''
    catalog='BIPmsgs'
    number='2152'
    file='/build/slot1/S800_P/src/DataFlowEngine/ImbDataFlowNotifications.cpp'
    line='522'
  Information
    timestamp='2014-01-14 10:07:52.705180'
    thread='4'
    function='ImbDataFlowNotifications::outputExecutionGroupLogMessage'
    text=''Processing Execution Group command ''
    catalog='BIPmsgs'
    number='2153'
    file='/build/slot1/S800_P/src/DataFlowEngine/ImbDataFlowNotifications.cpp'
    line='526'
    Insert=''Start''
      type='string'
  Warning
    timestamp='2014-01-14 10:07:53.129524'
    thread='4'
    function='com.ibm.broker.nodes.filenodes.ComIbmFileOutputNode.onInitialize()'
    text=''''
    catalog='BIPmsgs'
    number='3316'
    file='/build/slot1/S800_P/src/DataFlowEngine/NativeTrace/ImbNativeTrace.cpp'
    line='793'
    Insert=''File Output''
      type='string'
    Insert=''ErrorMessageDBInsert''
      type='string'
    Insert=''''
      type='string'
    Insert=''$LocalEnvironment/Destination/File/Name''
      type='string'
  Warning
    timestamp='2014-01-14 10:07:53.154224'
    thread='4'
    function='com.ibm.broker.nodes.filenodes.ComIbmFileOutputNode.onInitialize()'
    text=''''
    catalog='BIPmsgs'
    number='3316'
    file='/build/slot1/S800_P/src/DataFlowEngine/NativeTrace/ImbNativeTrace.cpp'
    line='793'
    Insert=''File Output''
      type='string'
    Insert=''LogMessageDBInsert''
      type='string'
    Insert=''''
      type='string'
    Insert=''$LocalEnvironment/Destination/File/Name''
      type='string'



Code:

mqsireportproperties DEV.GEN.BRK -e EG1 -o TraceLog -r -p /var/mqsi/Trace.log


Code:

TraceLog
  uuid='TraceLog'
  userTraceLevel='none'
  traceLevel='none'
  userTraceFilter='debugTrace'
  traceFilter='none'
  fileSize='104857600'
  bufferSize='0'
  fileMode='safe'
  UserTrace
    timestamp='2013-06-24 07:04:25.164934'
    thread='9'
    function='SqlFieldReference::evaluate'
    type=''
    name=''
    label=''
    text=''Evaluation result ''
    catalog='BIPmsgs'
    number='2539'
    file='/build/slot1/S800_P/src/DataFlowEngine/ImbRdl/ImbRdlFieldRef.cpp'
    line='2896'
    Insert=''.LogMessageDBInsert_Database.Main''
      type='string'
    Insert=''10.23''
      type='string'
    Insert=''Root.XMLNSC.LogInformation.ServiceName''
      type='string'
    Insert='''IndividualProfile'''
      type='string'
    Insert=''Root.XMLNSC.LogInformation.ServiceName''
      type='string'
    Insert
      type='string'
  UserTrace
    timestamp='2013-06-24 07:04:25.165154'
    thread='9'
    function='SqlFieldReference::evaluate'
    type=''
    name=''
    label=''
    text=''Evaluation result ''
    catalog='BIPmsgs'
    number='2539'
    file='/build/slot1/S800_P/src/DataFlowEngine/ImbRdl/ImbRdlFieldRef.cpp'
    line='2896'
    Insert=''.LogMessageDBInsert_Database.Main''
      type='string'
    Insert=''11.23''
      type='string'
    Insert=''Root.XMLNSC.LogInformation.ServiceType''
      type='string'
    Insert='''CreateProfileReq'''
      type='string'
    Insert=''Root.XMLNSC.LogInformation.ServiceType''
      type='string'
    Insert
      type='string'

Back to top
View user's profile Send private message
kimbert
PostPosted: Tue Jan 28, 2014 1:17 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

I'm with mqjeff. I have never used these commands, but I regularly use User Trace to diagnose a problem in a message flow. What exactly are you trying to do?
_________________
Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Tue Jan 28, 2014 2:30 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

kimbert wrote:
I'm with mqjeff. I have never used these commands, but I regularly use User Trace to diagnose a problem in a message flow. What exactly are you trying to do?


And why are you trying to re-invent the wheel?

mqsichangetrace + mqsireadlog + mqsiformatlog has lasted and served us very well since the V2.0.1 days (if my memory serves me right).
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
sarathmattam
PostPosted: Wed Jan 29, 2014 1:18 am    Post subject: Reply with quote

Voyager

Joined: 05 Sep 2008
Posts: 94

Dears,

I am neither trying to re-invent any wheel nor trying to prove something is wrong.

All I want to know is this. When i used the commands which i mentioned in my earlier posts, I got some output. As I was using it for the first time, I couldn't really understand the exact details in that output. I just want to know what kind of information it has and from where it is being picked up .. I hope now it is clear ..

As like most of the guys here, i have been using mqsichangetrace + mqsireadlog + mqsiformatlog for getting the logs for troubleshooting...

Thank you so much

Regards,
Sarath
Back to top
View user's profile Send private message
kimbert
PostPosted: Wed Jan 29, 2014 3:40 am    Post subject: Reply with quote

Jedi Council

Joined: 29 Jul 2003
Posts: 5542
Location: Southampton

I think it would help if you told us *why* you executed these commands. What task are you trying to accomplish?
_________________
Before you criticize someone, walk a mile in their shoes. That way you're a mile away, and you have their shoes too.
Back to top
View user's profile Send private message
sarathmattam
PostPosted: Wed Jan 29, 2014 10:02 am    Post subject: Reply with quote

Voyager

Joined: 05 Sep 2008
Posts: 94

Ok .. Let me tell you *why* I used it ..

In my project (WMB 8.0.0.3 & MQ 7.5 on AIX) we are making use of Monitoring Events (Not by using record and replay option) for audit logging. We have a message flow which picks up the events generated and insert in to a database. As you know, after each deployment we have to use mqsichangeflowmonitoring command to activate monitoring. If by mistake, the admin team forget to turn monitoring ON, we wont have logs for all those transactions till monitoring is turned ON.

So, basically I was in search for a source from where I can get details of such missed transactions. I know that we can use mqsichangetrace + mqsireadlog + mqsiformatlog. But, if the trace was set to NONE (which is the normal configuration I believe), again we wont have anything in the trace output.

So.. This is why I was trying those commands to find out whether I can find something useful from there .. I hope now I made my intension clear
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Jan 29, 2014 10:06 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Why not include the command in your deploy script? If you don't have scripted deploys, why not?

AFAIK if the information isn't captured by an emitted monitoring event, it's not stored anywhere else.
_________________
Honesty is the best policy.
Insanity is the best defence.
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 » WebSphere Message Broker (ACE) Support » UserTraceLog & TraceLog Property
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.