on 07-02-2008 8:23 PM
How to check the time stamp in defaulttrace.trc or application.trc files for logs in XI server.
I have seen following timestamp in above mentioned trace files. But seem to me, during the shutdown time of server, system put the timestamp in trace file.
ERROR gateway shutdown
TIME Fri Jun 20 11:01:08 2008
Except for shutdown time, how the system put the timestamp for other activity of system in the default trace and application trace file??
Sometime, i need to check the timestamp to get some specific information in default trace file for some system activities.
is timestamp mentioned in coded form as per following log:
#1.#36CC34C00F02009B000001B400001FF40004510B33EAB6D3#1215008464352#com.sap.engine.services.rfcengine##com.sap.engine.services.rfcengine.RFCDefaultRequestHand
ler.handleRequest()#J2EE_GUEST#0##XQA#SAPSYS #4869A1FC78690A8DE10000000A2C0AC7#SAPEngine_Application_Thread[impl:3]_51##0#0#Error##P
lain###java.lang.reflect.InvocationTargetException#
#1.#36CC34C00F02009B000001B500001FF40004510B33EAB76C#1215008464352#com.sap.engine.services.rfcengine##com.sap.engine.services.rfcengine.RFCDefaultRequestHand
ler.handleRequest()#J2EE_GUEST#0##XQA#SAPSYS #4869A1FC78690A8DE10000000A2C0AC7#SAPEngine_Application_Thread[impl:3]_51##0#0#Error##P
lain###java.lang.reflect.InvocationTargetException
Thanks
Amar
HI,
You can get the time from the #1215008464352# part of the string. This is actually number of milliseconds since 1 january 1970.
If you aren't able to convert this value in your head, you can use for example java for it
The following line:
System.out.println (new Date(1215008464352L)) ;
outputs will be like....
Thu Dec 30 09:47:31 CET 2004
OR BEST WAY follow below steps
procedure is ..
1.open Visual Administrator
2.click Log Configurator
3.Runtime->Destinations you can find out which destination is for defaultTrace.X.trx.
4.change the formatter from "com.sap.tc.logging.ListFormatter" to "com.sap.tc.logging.TraceFormatter"
if change couldn't take effect,reboot j2ee.
Thanks
Swarup
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Swarup
************************************************************************************************************
Option third seem to be the best one. I checked the location to change the default trace file but need some information:
Log Destination: kernel_cluster_trc has the pattern -->./log/kernel/classload/default.trc
and format is --> Anonymous [com.sap.tc.logging.ListFormatter]
Pattern and format of all kernel_trc is same (Around 13 kernel_trc is available)
is it the right place to change?
and application _log has the pattern-->./log/applications.log and format --> Anonymous [ListFormatter]
Can i change this application format to "com.sap.tc.logging.TraceFormatter"?
************************************************************************************************************
you can use for example java for it
The following line:
System.out.println (new Date(1215008464352L)) ;
outputs will be like....
Thu Dec 30 09:47:31 CET 2004
I don't understand the above one. I tried with following and got the error:
[rx2n1v1:root:(/)]System.out.println (new Date(1215008464352L)) ;
sh: Syntax error: `(' is not expected.
******************************************************************************************************
Thanks
Amar
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.