Screwy Timestamp in log? why?
I'm seeing this in my logs. The time at the start of the line indicating when the event was written to the log seems correct. But the Timestamp later in the log entry seems way off. some appear to go backwards. Is that right?
Thanks,
Andrew
Z:\logs> tail -n 59999 Administrator.192.168.10.197.coherence_server_3.log|grep -v updated|grep Timestamp|grep amd4
2010-05-26 07:16:34.899/555764.342 Oracle Coherence GE 3.5.3/465 <D6> (thread=PacketPublisher, member=2): Member(Id=15, Timestamp=2010-05-26 05:26:31.996, Address=192.168.10.197:8093, MachineId=38410, Location=machine:amd4,process:1432,member:Administrator, Role=CoupGsecGsecCoup) has failed to respond to 17 packets; declaring this member as paused.
2010-05-26 07:16:40.287/555769.730 Oracle Coherence GE 3.5.3/465 <Warning> (thread=PacketPublisher, member=2): Experienced a 5388 ms communication delay (probable remote GC) with Member(Id=15, Timestamp=2010-05-26 05:26:31.996, Address=192.168.10.197:8093, MachineId=38410, Location=machine:amd4,process:1432,member:Administrator, Role=CoupGsecGsecCoup); 43 packets rescheduled, PauseRate=8.0E-4, Threshold=1878
2010-05-26 07:36:05.745/556935.188 Oracle Coherence GE 3.5.3/465 <D6> (thread=PacketPublisher, member=2): Member(Id=19, Timestamp=2010-05-26 05:55:58.874, Address=192.168.10.197:8096, MachineId=38410, Location=machine:amd4,process:5592,member:Administrator, Role=StatsStatsLoader2) has failed to respond to 17 packets; declaring this member as paused.
2010-05-26 07:36:05.811/556935.254 Oracle Coherence GE 3.5.3/465 <D6> (thread=PacketPublisher, member=2): Experienced a 66 ms communication delay (probable remote GC) with Member(Id=19, Timestamp=2010-05-26 05:55:58.874, Address=192.168.10.197:8096, MachineId=38410, Location=machine:amd4,process:5592,member:Administrator, Role=StatsStatsLoader2); 26 packets rescheduled, PauseRate=0.0, Threshold=1976
2010-05-26 08:35:49.011/560518.454 Oracle Coherence GE 3.5.3/465 <D6> (thread=PacketPublisher, member=2): Member(Id=14, Timestamp=2010-05-26 05:15:49.787, Address=192.168.10.197:8092, MachineId=38410, Location=machine:amd4,process:6372,member:Administrator, Role=djclientRestarter) has failed to respond to 17 packets; declaring this member as paused.
2010-05-26 08:35:51.020/560520.463 Oracle Coherence GE 3.5.3/465 <Warning> (thread=PacketPublisher, member=2): Experienced a 2008 ms communication delay (probable remote GC) with Member(Id=14, Timestamp=2010-05-26 05:15:49.787, Address=192.168.10.197:8092, MachineId=38410, Location=machine:amd4,process:6372,member:Administrator, Role=djclientRestarter); 35 packets rescheduled, PauseRate=1.0E-4, Threshold=1976
2010-05-26 08:48:10.068/561259.511 Oracle Coherence GE 3.5.3/465 <D6> (thread=PacketPublisher, member=2): Member(Id=18, Timestamp=2010-05-26 05:55:57.006, Address=192.168.10.197:8094, MachineId=38410, Location=machine:amd4,process:6012,member:Administrator, Role=Execution_viewer) has failed to respond to 17 packets; declaring this member as paused.
2010-05-26 08:48:10.091/561259.534 Oracle Coherence GE 3.5.3/465 <D6> (thread=PacketPublisher, member=2): Experienced a 23 ms communication delay (probable remote GC) with Member(Id=18, Timestamp=2010-05-26 05:55:57.006, Address=192.168.10.197:8094, MachineId=38410, Location=machine:amd4,process:6012,member:Administrator, Role=Execution_viewer); 20 packets rescheduled, PauseRate=0.0, Threshold=1785
2010-05-26 08:48:16.293/561265.736 Oracle Coherence GE 3.5.3/465 <D6> (thread=PacketPublisher, member=2): Member(Id=15, Timestamp=2010-05-26 05:26:31.996, Address=192.168.10.197:8093, MachineId=38410, Location=machine:amd4,process:1432,member:Administrator, Role=CoupGsecGsecCoup) has failed to respond to 17 packets; declaring this member as paused.
2010-05-26 08:48:19.493/561268.936 Oracle Coherence GE 3.5.3/465 <Warning> (thread=PacketPublisher, member=2): Experienced a 3199 ms communication delay (probable remote GC) with Member(Id=15, Timestamp=2010-05-26 05:26:31.996, Address=192.168.10.197:8093, MachineId=38410, Location=machine:amd4,process:1432,member:Administrator, Role=CoupGsecGsecCoup); 32 packets rescheduled, PauseRate=7.0E-4, Threshold=752
2010-05-26 08:50:47.110/561416.553 Oracle Coherence GE 3.5.3/465 <D6> (thread=PacketPublisher, member=2): Member(Id=15, Timestamp=2010-05-26 05:26:31.996, Address=192.168.10.197:8093, MachineId=38410, Location=machine:amd4,process:1432,member:Administrator, Role=CoupGsecGsecCoup) has failed to respond to 17 packets; declaring this member as paused.
2010-05-26 08:50:50.347/561419.790 Oracle Coherence GE 3.5.3/465 <Warning> (thread=PacketPublisher, member=2): Experienced a 3237 ms communication delay (probable remote GC) with Member(Id=15, Timestamp=2010-05-26 05:26:31.996, Address=192.168.10.197:8093, MachineId=38410, Location=machine:amd4,process:1432,member:Administrator, Role=CoupGsecGsecCoup); 33 packets rescheduled, PauseRate=9.0E-4, Threshold=715
2010-05-26 08:58:52.171/561901.614 Oracle Coherence GE 3.5.3/465 <D6> (thread=PacketPublisher, member=2): Member(Id=19, Timestamp=2010-05-26 05:55:58.874, Address=192.168.10.197:8096, MachineId=38410, Location=machine:amd4,process:5592,member:Administrator, Role=StatsStatsLoader2) has failed to respond to 17 packets; declaring this member as paused.
2010-05-26 08:58:52.804/561902.247 Oracle Coherence GE 3.5.3/465 <D5> (thread=PacketPublisher, member=2): Experienced a 633 ms communication delay (probable remote GC) with Member(Id=19, Timestamp=2010-05-26 05:55:58.874, Address=192.168.10.197:8096, MachineId=38410, Location=machine:amd4,process:5592,member:Administrator, Role=StatsStatsLoader2); 27 packets rescheduled, PauseRate=0.0, Threshold=1785
2010-05-26 09:00:20.301/561989.744 Oracle Coherence GE 3.5.3/465 <D6> (thread=PacketPublisher, member=2): Member(Id=4, Timestamp=2010-05-26 02:33:34.67, Address=192.168.10.197:8091, MachineId=38410, Location=machine:amd4,process:3492,member:Administrator, Role=djclientStartMe) has failed to respond to 17 packets; declaring this member as paused.
2010-05-26 09:00:43.729/562013.172 Oracle Coherence GE 3.5.3/465 <D5> (thread=Cluster, member=2): Member(Id=4, Timestamp=2010-05-26 09:00:43.729, Address=192.168.10.197:8091, MachineId=38410, Location=machine:amd4,process:3492,member:Administrator, Role=djclientStartMe) left Cluster with senior member 1
2010-05-26 09:01:14.262/562043.705 Oracle Coherence GE 3.5.3/465 <D5> (thread=Cluster, member=2): Member(Id=51, Timestamp=2010-05-26 09:01:14.072, Address=192.168.10.197:8091, MachineId=38410, Location=machine:amd4,process:4608,member:Administrator, Role=djclientStartMe) joined Cluster with senior member 1
2010-05-26 09:06:04.690/562334.133 Oracle Coherence GE 3.5.3/465 <D6> (thread=PacketPublisher, member=2): Member(Id=19, Timestamp=2010-05-26 05:55:58.874, Address=192.168.10.197:8096, MachineId=38410, Location=machine:amd4,process:5592,member:Administrator, Role=StatsStatsLoader2) has failed to respond to 17 packets; declaring this member as paused.
2010-05-26 09:06:05.169/562334.612 Oracle Coherence GE 3.5.3/465 <D5> (thread=PacketPublisher, member=2): Experienced a 479 ms communication delay (probable remote GC) with Member(Id=19, Timestamp=2010-05-26 05:55:58.874, Address=192.168.10.197:8096, MachineId=38410, Location=machine:amd4,process:5592,member:Administrator, Role=StatsStatsLoader2); 26 packets rescheduled, PauseRate=1.0E-4, Threshold=1696
2010-05-26 09:07:36.812/562426.255 Oracle Coherence GE 3.5.3/465 <D6> (thread=PacketPublisher, member=2): Member(Id=3, Timestamp=2010-05-19 20:53:54.216, Address=192.168.10.197:8090, MachineId=38410, Location=machine:amd4,process:4344,member:Administrator, Role=CoherenceServer) has failed to respond to 17 packets; declaring this member as paused.
2010-05-26 09:07:37.592/562427.035 Oracle Coherence GE 3.5.3/465 <D5> (thread=PacketPublisher, member=2): Experienced a 780 ms communication delay (probable remote GC) with Member(Id=3, Timestamp=2010-05-19 20:53:54.216, Address=192.168.10.197:8090, MachineId=38410, Location=machine:amd4,process:4344,member:Administrator, Role=CoherenceServer); 62 packets rescheduled, PauseRate=0.0, Threshold=1020
2010-05-26 09:17:40.342/563029.785 Oracle Coherence GE 3.5.3/465 <D5> (thread=Cluster, member=2): MemberLeft notification for Member 52 received from Member(Id=15, Timestamp=2010-05-26 05:26:31.996, Address=192.168.10.197:8093, MachineId=38410, Location=machine:amd4,process:1432,member:Administrator, Role=CoupGsecGsecCoup)
2010-05-26 09:24:06.795/563416.238 Oracle Coherence GE 3.5.3/465 <D6> (thread=PacketPublisher, member=2): Member(Id=1, Timestamp=2010-05-19 20:53:49.341, Address=192.168.10.197:8088, MachineId=38410, Location=machine:amd4,process:6148,member:Administrator, Role=CoherenceServer) has failed to respond to 17 packets; declaring this member as paused.
2010-05-26 09:24:07.167/563416.610 Oracle Coherence GE 3.5.3/465 <D5> (thread=PacketPublisher, member=2): Experienced a 371 ms communication delay (probable remote GC) with Member(Id=1, Timestamp=2010-05-19 20:53:49.341, Address=192.168.10.197:8088, MachineId=38410, Location=machine:amd4,process:6148,member:Administrator, Role=CoherenceServer); 31 packets rescheduled, PauseRate=0.0, Threshold=832
2010-05-26 09:25:13.307/563482.750 Oracle Coherence GE 3.5.3/465 <D6> (thread=PacketPublisher, member=2): Member(Id=19, Timestamp=2010-05-26 05:55:58.874, Address=192.168.10.197:8096, MachineId=38410, Location=machine:amd4,process:5592,member:Administrator, Role=StatsStatsLoader2) has failed to respond to 17 packets; declaring this member as paused.
2010-05-26 09:25:13.359/563482.802 Oracle Coherence GE 3.5.3/465 <D6> (thread=PacketPublisher, member=2): Experienced a 52 ms communication delay (probable remote GC) with Member(Id=19, Timestamp=2010-05-26 05:55:58.874, Address=192.168.10.197:8096, MachineId=38410, Location=machine:amd4,process:5592,member:Administrator, Role=StatsStatsLoader2); 72 packets rescheduled, PauseRate=0.0, Threshold=1696
2010-05-26 09:26:15.360/563544.803 Oracle Coherence GE 3.5.3/465 <D6> (thread=PacketPublisher, member=2): Member(Id=19, Timestamp=2010-05-26 05:55:58.874, Address=192.168.10.197:8096, MachineId=38410, Location=machine:amd4,process:5592,member:Administrator, Role=StatsStatsLoader2) has failed to respond to 17 packets; declaring this member as paused.
2010-05-26 09:26:28.256/563557.699 Oracle Coherence GE 3.5.3/465 <Warning> (thread=PacketPublisher, member=2): Experienced a 12896 ms communication delay (probable remote GC) with Member(Id=19, Timestamp=2010-05-26 05:55:58.874, Address=192.168.10.197:8096, MachineId=38410, Location=machine:amd4,process:5592,member:Administrator, Role=StatsStatsLoader2); 116 packets rescheduled, PauseRate=0.0011, Threshold=1612
Hello,
The information is correct. I think the problem is that the name Timestamp is a little misleading. It is the time that that member joined the cluster so it will stay the same for the life of that member.
-Dave
Similar Messages
-
Tool for timestamp in logs and traces
Hi,
Last year I saw an utility for converting timestamps in logs and traces into human readable format.
It was a resident program in the tray bar, with a green icon with letter "H" in it, activated by Ctrl+F9.
Does anyone have a link to download this tool?
10x in advanceMeanwhile, I found a better sollution, in WebAS itself.
It's called lv.bat (for Win, otherwise lv.sh), and it stays in \usr\sap\...\j2ee\admin\logviewer-standalone\
It has two great options:
>lv.bat sourceFile -o outputFile
converts milliseconds into human readable format and stores it into output file
>lv.bat sourceFile -t
similar to tail -f command in linux, or tomcat console
I did some associations in winddows context menu, so now I can read or watch log files with one single click.
really great utility! -
How do I read or change TimeStamp in log files?
We have deployed BIPublisher 10.1.3.4 EAR into OC4J container. I am seeing the following timestamp in BI log files..
[010909_032352774][][STATEMENT] [org.quartz.jobStore.isClustered]=[false]
[010909_032352774][][STATEMENT] [org.quartz.jobStore.misfireThreshold]=[60000]
[010909_032352774][][STATEMENT] [org.quartz.threadPool.threadCount]=[10]
[010909_032352774][][STATEMENT] [org.quartz.jobStore.driverDelegateClass]=[org.quartz.impl.jdbcjobstore.oracle.OracleDelegate]
[010909_032352774][][STATEMENT] [org.quartz.dataSource.myDS.driver]=[oracle.jdbc.OracleDriver]
[010909_032352774][][STATEMENT] [org.quartz.jobStore.dataSource]=[myDS]
I can understand the first part 010909 as the date but I don't know how to read 032352774 value. Nothing is specified in the documentation. I am seeing this timestamp in the log file under OPMN Logs folder. I am not sure why Debug info goes here instead of application.log file.
Your help is greatly appreciated..
Thanks!
SriniThe timestamp more than likely comes from a Java class using a form of UTC timestamp format. Sometimes the UTC format, at the end SSS part is based on StDZ, or portion of a second and the timezone desigator. The timezone/timestamp format is embedded where BIP gets initialized. It is possible to de-code EAR/WAR/JAR files and find the date format method, but then you are altering source code and that has support implications. In the big scheme of things, no big deal.
-
DSC 8.6.1 wrong timestamps for logged data with Intel dual core
Problem Description :
Our LV/DCS 8.6.1 application uses shared variables to log data to Citadel. It is running on many similar computers at many companies just fine, but on one particular Intel Dual Core computer, the data in the Citadel db has strange shifting timestamps. Changing bios to startup using single cpu fixes the problem. Could possibly set only certain NI process(es) to single-cpu instead (but which?). The old DSCEngine.exe in LV/DSC 7 had to be run single-cpu... hadn't these kind of issues been fixed by LV 8.6.1 yet?? What about LV 2009, anybody know?? Or is it a problem in the OS or hardware, below the NI line??
This seems similar to an old issue with time synch server problems for AMD processors (Knowledge Base Document ID 4BFBEIQA):
http://digital.ni.com/public.nsf/allkb/1EFFBED34FFE66C2862573D30073C329
Computer info:
- Dell desktop
- Win XP Pro sp3
- 2 G RAM
- 1.58 GHz Core 2 Duo
- LV/DSC 8.6.1 (Pro dev)
- DAQmx, standard instrument control device drivers, serial i/o
(Nothing else installed; OS and LV/DSC were re-installed to try to fix the problem, no luck)
Details:
A test logged data at 1 Hz, with these results: for 10-30 seconds or so, the timestamps were correct. Then, the timestamps were compressed/shifted, with multiple points each second. At perfectly regular 1-minute intervals, the timestamps would be correct again. This pattern repeats, and when the data is graphed, it looks like regular 1-sec interval points, then more dense points, then no points until the next minute (not ON the minute, e.g.12:35:00, but after a minute, e.g.12:35:24, 12:36:24, 12:37:24...). Occasionally (but rarely), restarting the PC would produce accurate timestamps for several minutes running, but then the pattern would reappear in the middle of logging, no changes made.
Test info:
- shared variable configured with logging enabled
- data changing by much more than the deadband
- new value written by Datasocket Write at a steady 1 Hz
- historic data retrieved by Read Traces
- Distributed System Manager shows correct and changing values continuously as they are writtenMeg K. B. ,
It sounds like you are experiencing Time Stamp Counter (TSC) Drift as mentioned in the KB's for the AMD Multi-Core processors. However, according to this wikipedia article on TSC's, the Intel Core 2 Duo's "time-stamp counter increments at a constant rate.......Constant TSC behavior ensures that the duration of each clock tick is
uniform and supports the use of the TSC as a wall clock timer even if
the processor core changes frequency." This seems to suggest that it would be not be the case that you are seeing the issue mentioned in the KBs.
Can you provide the exact modle of the Core 2 Duo processor that you are using?
Ben Sisney
FlexRIO V&V Engineer
National Instruments -
How to append timestamp to log file in SQL*Plus ?
Version: 11.2.0.3
Platform : RHEL 5.8 (But I am looking for platform independant solution)
I want to append the timestamp to spooled log file name in SQL*Plus.
The spooled log filename should look like
WMS_APP_23-March-2013.logI tried the following 3 methods found in the google. But none of them worked !
I tried this
col sysdt noprint new_value sysdt_var
SELECT TO_CHAR(SYSDATE, 'yyyymmdd_hh24miss') sysdt FROM DUAL;
spool run_filename_&sysdt_var.Logas suggested in
http://power2build.wordpress.com/2011/03/11/sqlplus-spool-name-with-embedded-timestamp/
and this
spool filename with timestamp
col sysdt noprint new_value sysdt
SELECT TO_CHAR(SYSDATE, 'yyyymmdd_hh24miss') sysdt FROM DUAL;
spool run_filename_&sysdt..Logas suggested in
http://powerbuildev.wordpress.com/2011/03/11/sqlplus-spool-name-with-embedded-timestamp/
and this
column tm new_value file_time noprint
select to_char(sysdate, 'YYYYMMDD') tm from dual ;
prompt &file_time
spool logfile_id&file_time..logas suggested in
Creating a spool file with date/time appended to file name
None of the above worked in RHEL or MS DOS. Any workaround ?I have tested your suggestions. But I still couldn't append the date to the logfile in RHEL or MS DOS SQL*Plus
Here are the attempts I've made. I am posting how the logfile looked like after every test.
#Attempt1 with two dots (&sysdate..log )
set echo on
set feedback on
set define off
set pages 999
column dcol new_value SYSDATE noprint
select to_char(sysdate,'YYYYMMDD') dcol from dual;
spool testlog.&sysdate..log
select 'hello' from dual;
spool off;Log File Name -- > testlog.&sysdate..log
#Attempt2 with single dot (&sysdate.log)
set echo on
set feedback on
set define off
set pages 999
column dcol new_value SYSDATE noprint
select to_char(sysdate,'YYYYMMDD') dcol from dual;
spool testlog.&sysdate.log
select 'hello' from dual;
spool off;Log File Name ---> testlog.&sysdate.log
#Attempt3. Replacing first dot with Hyphen (testlog- ) to check if the first dot was causing the issue
set echo on
set feedback on
set define off
set pages 999
column dcol new_value SYSDATE noprint
select to_char(sysdate,'YYYYMMDD') dcol from dual;
spool testlog-&sysdate.log
select 'hello' from dual;
spool off;Log Filename: testlog-&sysdate.log
#Attempt4: replacing SYSDATE with SDATE
set echo on
set feedback on
set define off
set pages 999
column dcol new_value SDATE noprint
select to_char(sysdate,'YYYYMMDD') dcol from dual;
spool testlog1.&SDATE..log
select 'hello' from dual;
spool off;Log File Name -- > testlog1.&SDATE..log -
Regarding Log4.xml to add timestamp in log file
Dear Sir,
Could you guide me how to append the timestamp got appeared in log file which has been generated from Log4j.xml?? This is my Log4j.xml.
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"> <!-- Order of child elements is appender*, logger*, root?. --> <!-- Appenders control how logging is output. --> <appender name="CM" class="org.apache.log4j.FileAppender"> <param name="File" value="Master.log"/> <param name="Threshold" value="DEBUG"/> <param name="Append" value="true"/> <param name="MaxFileSize" value="1MB"/> <param name="MaxBackupIndex" value="1"/> <layout class="org.apache.log4j.PatternLayout"> <!-- {fully-qualified-class-name}:{method-name}:{line-number} - {message}{newline} --> <param name="ConversionPattern" value="%C:%M:%L - %m%n"/> </layout> </appender> <appender name="stdout" class="org.apache.log4j.ConsoleAppender"> <param name="Threshold" value="INFO"/> <layout class="org.apache.log4j.PatternLayout"> <param name="ConversionPattern" value="%C:%M:%L - %m%n"/> </layout> </appender> <!-- Logger hierarchy example: root - com - com.ociweb - com.ociweb.demo - com.ociweb.demo.LogJDemo --> <!-- Setting additivity to false prevents ancestor categories for being used in addition to this one. --> <logger name="com.tf" additivity="true"> <priority value="DEBUG"/> <appender-ref ref="CM"/> </logger> <!-- Levels from lowest to highest are trace, debug, info, warn, error, fatal & off. --> <!-- The root category is used for all loggers unless a more specific logger matches. --> <root> <appender-ref ref="stdout"/> </root> </log4j:configuration> It would be great, if you could give the solution for this. There is no probs in getting timestamp from the folowing properties file Log4j.properties: # # Configure the logger to output info level messages into a rolling log file. # log4j.rootLogger=DEBUG, R log4j.appender.R=org.apache.log4j.DailyRollingFileAppender log4j.appender.R.DatePattern='.'yyyy-MM-dd # # Edit the next line to point to your logs directory. # The last part of the name is the log file name. # log4j.appender.R.File=c:/temp/log/${log.file} log4j.appender.R.layout=org.apache.log4j.PatternLayout # # Print the date in ISO 8601 format # log4j.appender.R.layout.ConversionPattern=%d %-5p %c %L - %m%n but i need it from Log4j.xml
thanks in advance maniDear Sir,
Could you guide me how to append the timestamp got appeared in log file which has been generated from Log4j.xml?? This is my Log4j.xml.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration
xmlns:log4j="http://jakarta.apache.org/log4j/">
<!-- Order of child elements is appender*, logger*, root?. -->
<!-- Appenders control how logging is output. -->
<appender name="CM" class="org.apache.log4j.FileAppender">
<param name="File" value="customer_master.log"/>
<param name="Threshold" value="DEBUG"/>
<param name="Append" value="true"/>
<param name="MaxFileSize" value="1MB"/>
<param name="MaxBackupIndex" value="1"/>
<layout class="org.apache.log4j.PatternLayout">
<!-- {fully-qualified-class-name}:{method-name}:{line-number}
- {message}{newline} -->
<param name="ConversionPattern" value="%C:%M:%L - %m%n"/>
</layout>
</appender>
<appender name="stdout" class="org.apache.log4j.ConsoleAppender">
<param name="Threshold" value="INFO"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%C:%M:%L - %m%n"/>
</layout>
</appender>
<!-- Logger hierarchy example:
root - com - com.ociweb - com.ociweb.demo - com.ociweb.demo.LogJDemo
-->
<!-- Setting additivity to false prevents ancestor categories
for being used in addition to this one. -->
<logger name="com.tf" additivity="true">
<priority value="DEBUG"/>
<appender-ref ref="CM"/>
</logger>
<!-- Levels from lowest to highest are
trace, debug, info, warn, error, fatal & off. -->
<!-- The root category is used for all loggers
unless a more specific logger matches. -->
<root>
<appender-ref ref="stdout"/>
</root>
</log4j:configuration>It would be great, if you could give the solution for this. There is no probs in getting timestamp from the folowing properties file Log4j.properties:
# Configure the logger to output info level messages into a rolling log file.
log4j.rootLogger=DEBUG, R
log4j.appender.R=org.apache.log4j.DailyRollingFileAppender
log4j.appender.R.DatePattern='.'yyyy-MM-dd
# Edit the next line to point to your logs directory.
# The last part of the name is the log file name.
log4j.appender.R.File=c:/temp/log/${log.file}
log4j.appender.R.layout=org.apache.log4j.PatternLayout
# Print the date in ISO 8601 format
log4j.appender.R.layout.ConversionPattern=%d %-5p %c %L - %m%nthanks in advance -
Hello,
I would like to add timestamp to sql output file but can't seem to find the solution on the web.
Tried to use "set echo on", "set serveroutput on", "set time on" but it does not add timestamp to actual output
as below example shows.
set echo on
set serveroutput on
set time on
set linesize 150
spool dba_ts.log
select tablespace_name, status, contents, logging
from dba_tablespaces
order by tablespace_name;
spool off
========
13:13:00 SQL>
13:13:00 SQL> select tablespace_name, status, contents, logging
13:13:00 2 from dba_tablespaces
13:13:00 3 order by tablespace_name;
TABLESPACE_NAME STATUS CONTENTS LOGGING
AKD ONLINE PERMANENT LOGGING
AKX ONLINE PERMANENT LOGGING
APD ONLINE PERMANENT LOGGING
I would like to see something similar to below where date/time is stamped to each line generated in log file.
06-28-2009 02:07:32 - AKD ONLINE PERMANENT LOGGING
06-28-2009 02:07:32 - AKX ONLINE PERMANENT LOGGING
06-28-2009 02:07:32 - APD ONLINE PERMANENT LOGGING
Thank you in advance.Hi,
Welcome to the forum!
The function SYSDATE will return the current date and time.
Use TO_CHAR to format it the way you want, for example:
SELECT TO_CHAR (SYSDATE, 'MM-DD-YYYY HH24:MI:SS') AS dt_tm
...The value returned by SYSDATE will not change within a query, even if the query takes several seconds or minutes to run.
SET TIME ON(as you already have) will print the time (in HH24:MI:SS format) before each prompt. -
Avoid RAID-5 on Redo Logs- WHY?
Hello all,
I read that, one should avoid using RAID Level 5 on Redo Log Files. Can anyone help me make understand this concept?
Why it is recommended so?
Also, it will be a great help if you can provide me articles explaining the various levels of RAID and their effect/significance on database.
Thanks in advance.
HimanshuIn general, RAID usually impacts write operations more than read operation.
This is specially true where parity need to be calculated (RAID 3, RAID 5, etc).
Online or archived redo log files can be put on RAID 1 devices.
You should not use RAID 5. 'TEMP' tablespace data files should also go on
RAID1 instead of RAID5 as well. The reason for this is that streamed
write performance of distributed parity (RAID5) isn't as good as that of
simple mirroring (RAID1).
Jaffar -
Can anyone tell from this log why my mac keeps crashing and forcing a restart?
Can anyone tell fromm the log below why my iMac keeps randomly crashing and forcing a restart? It is happening way too often now and it's driving me crazy!
Only just a few days ago I wiped my drive clean and installed a fresh OS copy of mountain lion, I then though it may be a Ram issue but a thorough test said everything was ok and I had a memory monitor window open last time it crashed which showed that barely any of the memory was in use!?
Really need some help here guys!
Thanks in advance!
Sat Mar 16 23:28:12 2013
panic(cpu 1 caller 0xffffff801e6b7bd5): Kernel trap at 0xffffff7f9fc0c643, type 6=invalid opcode, registers:
CR0: 0x000000008001003b, CR2: 0x000000010b90a01c, CR3: 0x0000000021411000, CR4: 0x0000000000000660
RAX: 0x0000000000000000, RBX: 0xffffff81068d3ef0, RCX: 0x0000000000000000, RDX: 0x0000000000000000
RSP: 0xffffff81068d3ed0, RBP: 0xffffff81068d3f20, RSI: 0x000000000505a5a5, RDI: 0x0000000000000000
R8: 0xffffff803128dc90, R9: 0x0000000000000000, R10: 0x00000000ffffffff, R11: 0xffffff801ec7de88
R12: 0x0000000000000008, R13: 0xffffff8031c2b000, R14: 0xffffff8032ff7400, R15: 0xffffff8031357c00
RFL: 0x0000000000010246, RIP: 0xffffff7f9fc0c643, CS: 0x0000000000000008, SS: 0x0000000000000010
Fault CR2: 0x000000010b90a01c, Error code: 0x0000000000000000, Fault CPU: 0x1
Backtrace (CPU 1), Frame : Return Address
0xffffff81068d3b70 : 0xffffff801e61d626
0xffffff81068d3be0 : 0xffffff801e6b7bd5
0xffffff81068d3db0 : 0xffffff801e6ce4ed
0xffffff81068d3dd0 : 0xffffff7f9fc0c643
0xffffff81068d3f20 : 0xffffff801ea49e4a
0xffffff81068d3f60 : 0xffffff801e63dcde
0xffffff81068d3fb0 : 0xffffff801e6b26b7
Kernel Extensions in backtrace:
com.apple.driver.AirPort.Brcm4331(602.15.22)[5BDCA43F-AD42-3F05-BCCF-BC364D17E1 5F]@0xffffff7f9fb92000->0xffffff7f9fd83fff
dependency: com.apple.iokit.IOPCIFamily(2.7.2)[B1B77B26-7984-302F-BA8E-544DD3D75E73]@0xffff ff7f9ecda000
dependency: com.apple.iokit.IO80211Family(500.15)[4282DF5A-86B9-3213-B9B1-675FAD842A94]@0xf fffff7f9fb26000
dependency: com.apple.iokit.IONetworkingFamily(3.0)[28575328-A798-34B3-BD84-D708138EBD17]@0 xffffff7f9f534000
BSD process name corresponding to current thread: kernel_task
Mac OS version:
12C60
Kernel version:
Darwin Kernel Version 12.2.0: Sat Aug 25 00:48:52 PDT 2012; root:xnu-2050.18.24~1/RELEASE_X86_64
Kernel UUID: 69A5853F-375A-3EF4-9247-478FD0247333
Kernel slide: 0x000000001e400000
Kernel text base: 0xffffff801e600000
System model name: iMac9,1 (Mac-F2218FA9)
System uptime in nanoseconds: 1004867458646
last loaded kext at 27493449253: com.apple.driver.AppleHWSensor 1.9.5d0 (addr 0xffffff7fa067d000, size 36864)
last unloaded kext at 115937665473: com.apple.driver.AppleFileSystemDriver 3.0.1 (addr 0xffffff7fa08c0000, size 8192)
loaded kexts:
com.paceap.kext.pacesupport.snowleopard 5.9
com.Cycling74.driver.Soundflower 1.6.6
com.digidesign.iokit.DigiDal 10.3.4f181
at.obdev.nke.LittleSnitch 3876
com.apple.driver.AppleHWSensor 1.9.5d0
com.apple.driver.AppleBluetoothMultitouch 75.15
com.apple.iokit.IOBluetoothSerialManager 4.0.9f33
com.apple.driver.AGPM 100.12.69
com.apple.filesystems.autofs 3.0
com.apple.driver.AudioAUUC 1.60
com.apple.iokit.IOUserEthernet 1.0.0d1
com.apple.Dont_Steal_Mac_OS_X 7.0.0
com.apple.driver.AppleHDA 2.3.1f2
com.apple.driver.AppleMikeyHIDDriver 122
com.apple.iokit.BroadcomBluetoothHCIControllerUSBTransport 4.0.9f33
com.apple.driver.AppleMikeyDriver 2.3.1f2
com.apple.driver.ApplePolicyControl 3.2.11
com.apple.driver.ACPI_SMC_PlatformPlugin 1.0.0
com.apple.driver.AppleLPC 1.6.0
com.apple.driver.AppleUpstreamUserClient 3.5.10
com.apple.driver.AppleBacklight 170.2.3
com.apple.driver.AppleMCCSControl 1.0.33
com.apple.GeForce 8.0.0
com.apple.driver.AppleIRController 320.15
com.apple.AppleFSCompression.AppleFSCompressionTypeDataless 1.0.0d1
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0d1
com.apple.BootCache 34
com.apple.iokit.SCSITaskUserClient 3.5.1
com.apple.driver.XsanFilter 404
com.apple.iokit.IOAHCIBlockStorage 2.2.2
com.apple.driver.AppleUSBHub 5.2.5
com.apple.driver.AppleFWOHCI 4.9.6
com.apple.driver.AirPort.Brcm4331 602.15.22
com.apple.driver.AppleAHCIPort 2.4.1
com.apple.nvenet 2.0.19
com.apple.driver.AppleUSBEHCI 5.4.0
com.apple.driver.AppleUSBOHCI 5.2.5
com.apple.driver.AppleEFINVRAM 1.6.1
com.apple.driver.AppleRTC 1.5
com.apple.driver.AppleHPET 1.7
com.apple.driver.AppleACPIButtons 1.6
com.apple.driver.AppleSMBIOS 1.9
com.apple.driver.AppleACPIEC 1.6
com.apple.driver.AppleAPIC 1.6
com.apple.driver.AppleIntelCPUPowerManagementClient 196.0.0
com.apple.nke.applicationfirewall 4.0.39
com.apple.security.quarantine 2
com.apple.driver.AppleIntelCPUPowerManagement 196.0.0
com.apple.driver.IOBluetoothHIDDriver 4.0.9f33
com.apple.driver.AppleMultitouchDriver 235.28
com.apple.iokit.IOSerialFamily 10.0.6
com.apple.kext.triggers 1.0
com.apple.iokit.IOSurface 86.0.3
com.apple.iokit.IOBluetoothFamily 4.0.9f33
com.apple.driver.DspFuncLib 2.3.1f2
com.apple.iokit.IOAudioFamily 1.8.9fc10
com.apple.kext.OSvKernDSPLib 1.6
com.apple.iokit.IOFireWireIP 2.2.5
com.apple.iokit.AppleBluetoothHCIControllerUSBTransport 4.0.9f33
com.apple.driver.AppleHDAController 2.3.1f2
com.apple.iokit.IOHDAFamily 2.3.1f2
com.apple.driver.AppleGraphicsControl 3.2.11
com.apple.driver.AppleSMC 3.1.4d2
com.apple.driver.IOPlatformPluginLegacy 1.0.0
com.apple.driver.AppleSMBusPCI 1.0.10d0
com.apple.driver.IOPlatformPluginFamily 5.2.0d16
com.apple.driver.AppleBacklightExpert 1.0.4
com.apple.driver.AppleSMBusController 1.0.10d0
com.apple.nvidia.nv50hal 8.0.0
com.apple.NVDAResman 8.0.0
com.apple.iokit.IONDRVSupport 2.3.5
com.apple.iokit.IOGraphicsFamily 2.3.5
com.apple.driver.AppleUSBHIDKeyboard 165.5
com.apple.driver.AppleHIDKeyboard 165.5
com.apple.iokit.IOUSBHIDDriver 5.2.5
com.apple.driver.AppleUSBMergeNub 5.2.5
com.apple.driver.AppleUSBComposite 5.2.5
com.apple.iokit.IOSCSIMultimediaCommandsDevice 3.5.1
com.apple.iokit.IOBDStorageFamily 1.7
com.apple.iokit.IODVDStorageFamily 1.7.1
com.apple.iokit.IOCDStorageFamily 1.7.1
com.apple.iokit.IOAHCISerialATAPI 2.5.0
com.apple.iokit.IOSCSIArchitectureModelFamily 3.5.1
com.apple.iokit.IOUSBUserClient 5.2.5
com.apple.iokit.IOFireWireFamily 4.5.5
com.apple.iokit.IO80211Family 500.15
com.apple.iokit.IOAHCIFamily 2.2.1
com.apple.iokit.IONetworkingFamily 3.0
com.apple.iokit.IOUSBFamily 5.4.0
com.apple.driver.NVSMU 2.2.9
com.apple.driver.AppleEFIRuntime 1.6.1
com.apple.iokit.IOHIDFamily 1.8.0
com.apple.iokit.IOSMBusFamily 1.1
com.apple.security.sandbox 220
com.apple.kext.AppleMatch 1.0.0d1
com.apple.security.TMSafetyNet 7
com.apple.driver.DiskImages 344
com.apple.iokit.IOStorageFamily 1.8
com.apple.driver.AppleKeyStore 28.21
com.apple.driver.AppleACPIPlatform 1.6
com.apple.iokit.IOPCIFamily 2.7.2
com.apple.iokit.IOACPIFamily 1.4
com.apple.kec.corecrypto 1.0Right so I decided to erase my harddrive completely using disk utility, then went on to install a fresh version of mountain lion (both by holding down cmd-r when booting up)
With a fresh system I tried what had previously casued a kernel crash, which wa copying a video to my downloads folder, selecting it and then hitting spacebar to preview it, the video plays fine for about a minute then it jolts, freezes and then retarts with a white screen saying I need to restart.
Below is the report, im so confused!
Sun Mar 17 18:57:28 2013
panic(cpu 0 caller 0xffffff80106b7e95): Kernel trap at 0xffffff80106ed48c, type 14=page fault, registers:
CR0: 0x000000008001003b, CR2: 0xffffef8033827c10, CR3: 0x0000000010d61000, CR4: 0x0000000000000660
RAX: 0xffffef8033827bd8, RBX: 0xffffff803382bf00, RCX: 0x0000000000000001, RDX: 0xffffff803382bf00
RSP: 0xffffff80eb473d40, RBP: 0xffffff80eb473d50, RSI: 0x0000000000000002, RDI: 0xffffff803382bf00
R8: 0x0000000000000001, R9: 0x0000000000000000, R10: 0xffffff802e9386de, R11: 0x000000000000005e
R12: 0x000000001206ffb6, R13: 0xffffff8021d35b70, R14: 0xffffff80eb473e38, R15: 0xffffff803382bf00
RFL: 0x0000000000010202, RIP: 0xffffff80106ed48c, CS: 0x0000000000000008, SS: 0x0000000000000010
Fault CR2: 0xffffef8033827c10, Error code: 0x0000000000000000, Fault CPU: 0x0
Backtrace (CPU 0), Frame : Return Address
0xffffff80eb4739e0 : 0xffffff801061d626
0xffffff80eb473a50 : 0xffffff80106b7e95
0xffffff80eb473c20 : 0xffffff80106cd4dd
0xffffff80eb473c40 : 0xffffff80106ed48c
0xffffff80eb473d50 : 0xffffff8010905256
0xffffff80eb473d80 : 0xffffff80106ed787
0xffffff80eb473df0 : 0xffffff801090502b
0xffffff80eb473ea0 : 0xffffff80106f93bf
0xffffff80eb473ed0 : 0xffffff80106f2af7
0xffffff80eb473f30 : 0xffffff80106f9339
0xffffff80eb473f50 : 0xffffff80109e063a
0xffffff80eb473fb0 : 0xffffff80106cdd23
BSD process name corresponding to current thread: launchd
Mac OS version:
12D78
Kernel version:
Darwin Kernel Version 12.3.0: Sun Jan 6 22:37:10 PST 2013; root:xnu-2050.22.13~1/RELEASE_X86_64
Kernel UUID: 3EB7D8A7-C2D3-32EC-80F4-AB37D61492C6
Kernel slide: 0x0000000010400000
Kernel text base: 0xffffff8010600000
System model name: iMac9,1 (Mac-F2218FA9)
System uptime in nanoseconds: 882306338748
last loaded kext at 401615756667: com.apple.iokit.IOSCSIBlockCommandsDevice 3.5.5 (addr 0xffffff7f926f4000, size 86016)
last unloaded kext at 723627002193: com.apple.iokit.IOUSBMassStorageClass 3.5.1 (addr 0xffffff7f926e3000, size 69632)
loaded kexts:
com.apple.driver.AppleBluetoothMultitouch 75.19
com.apple.iokit.IOBluetoothSerialManager 4.1.3f3
com.apple.driver.AppleHWSensor 1.9.5d0
com.apple.driver.AudioAUUC 1.60
com.apple.filesystems.autofs 3.0
com.apple.iokit.IOUserEthernet 1.0.0d1
com.apple.driver.AppleUpstreamUserClient 3.5.10
com.apple.driver.AGPM 100.12.87
com.apple.driver.AppleMikeyHIDDriver 122
com.apple.GeForce 8.1.0
com.apple.driver.AppleHDA 2.3.7fc4
com.apple.Dont_Steal_Mac_OS_X 7.0.0
com.apple.driver.AppleMikeyDriver 2.3.7fc4
com.apple.driver.AppleBacklight 170.2.5
com.apple.nvenet 2.0.19
com.apple.iokit.BroadcomBluetoothHCIControllerUSBTransport 4.1.3f3
com.apple.driver.ApplePolicyControl 3.3.0
com.apple.driver.AirPort.Brcm4331 614.20.16
com.apple.driver.ACPI_SMC_PlatformPlugin 1.0.0
com.apple.driver.AppleLPC 1.6.0
com.apple.driver.AppleMCCSControl 1.1.11
com.apple.driver.AppleIRController 320.15
com.apple.AppleFSCompression.AppleFSCompressionTypeDataless 1.0.0d1
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0d1
com.apple.BootCache 34
com.apple.iokit.SCSITaskUserClient 3.5.5
com.apple.driver.XsanFilter 404
com.apple.iokit.IOAHCIBlockStorage 2.3.1
com.apple.driver.AppleFWOHCI 4.9.6
com.apple.driver.AppleUSBHub 5.5.5
com.apple.driver.AppleEFINVRAM 1.7
com.apple.driver.AppleAHCIPort 2.5.1
com.apple.driver.AppleUSBEHCI 5.5.0
com.apple.driver.AppleUSBOHCI 5.2.5
com.apple.driver.AppleHPET 1.8
com.apple.driver.AppleRTC 1.5
com.apple.driver.AppleACPIButtons 1.7
com.apple.driver.AppleSMBIOS 1.9
com.apple.driver.AppleACPIEC 1.7
com.apple.driver.AppleAPIC 1.6
com.apple.driver.AppleIntelCPUPowerManagementClient 196.0.0
com.apple.nke.applicationfirewall 4.0.39
com.apple.security.quarantine 2
com.apple.driver.AppleIntelCPUPowerManagement 196.0.0
com.apple.driver.AppleMultitouchDriver 235.29
com.apple.driver.IOBluetoothHIDDriver 4.1.3f3
com.apple.iokit.IOSerialFamily 10.0.6
com.apple.kext.triggers 1.0
com.apple.iokit.IOSurface 86.0.4
com.apple.nvidia.nv50hal 8.1.0
com.apple.NVDAResman 8.1.0
com.apple.driver.DspFuncLib 2.3.7fc4
com.apple.iokit.IOAudioFamily 1.8.9fc11
com.apple.kext.OSvKernDSPLib 1.6
com.apple.iokit.IOBluetoothFamily 4.1.3f3
com.apple.driver.AppleBacklightExpert 1.0.4
com.apple.iokit.IOFireWireIP 2.2.5
com.apple.iokit.AppleBluetoothHCIControllerUSBTransport 4.1.3f3
com.apple.driver.AppleHDAController 2.3.7fc4
com.apple.iokit.IOHDAFamily 2.3.7fc4
com.apple.driver.AppleGraphicsControl 3.3.0
com.apple.iokit.IONDRVSupport 2.3.7
com.apple.iokit.IO80211Family 522.4
com.apple.iokit.IONetworkingFamily 3.0
com.apple.driver.NVSMU 2.2.9
com.apple.driver.AppleSMC 3.1.4d2
com.apple.driver.IOPlatformPluginLegacy 1.0.0
com.apple.driver.AppleSMBusPCI 1.0.11d0
com.apple.driver.IOPlatformPluginFamily 5.3.0d51
com.apple.driver.AppleSMBusController 1.0.11d0
com.apple.iokit.IOGraphicsFamily 2.3.7
com.apple.driver.AppleUSBHIDKeyboard 170.2
com.apple.driver.AppleHIDKeyboard 170.2
com.apple.iokit.IOUSBHIDDriver 5.2.5
com.apple.driver.AppleUSBMergeNub 5.5.5
com.apple.driver.AppleUSBComposite 5.2.5
com.apple.iokit.IOSCSIMultimediaCommandsDevice 3.5.5
com.apple.iokit.IOBDStorageFamily 1.7
com.apple.iokit.IODVDStorageFamily 1.7.1
com.apple.iokit.IOCDStorageFamily 1.7.1
com.apple.iokit.IOAHCISerialATAPI 2.5.1
com.apple.iokit.IOSCSIArchitectureModelFamily 3.5.5
com.apple.iokit.IOFireWireFamily 4.5.5
com.apple.iokit.IOUSBUserClient 5.5.5
com.apple.iokit.IOAHCIFamily 2.3.1
com.apple.iokit.IOUSBFamily 5.5.5
com.apple.driver.AppleEFIRuntime 1.7
com.apple.iokit.IOHIDFamily 1.8.1
com.apple.iokit.IOSMBusFamily 1.1
com.apple.security.sandbox 220.2
com.apple.kext.AppleMatch 1.0.0d1
com.apple.security.TMSafetyNet 7
com.apple.driver.DiskImages 345
com.apple.iokit.IOStorageFamily 1.8
com.apple.driver.AppleKeyStore 28.21
com.apple.driver.AppleACPIPlatform 1.7
com.apple.iokit.IOPCIFamily 2.7.3
com.apple.iokit.IOACPIFamily 1.4
com.apple.kec.corecrypto 1.0 -
Hi
I've found this in server logs:
005-02-21 11:22:16 CET HPServer
Warning Log Management
The date field is probably invalid on
D:\BEA\XX\XXServer\XXServer.log00238 line 518.
Message ignored during search
while:
BEA-170014
Warning: The date field is probably invalid on fname line lineNum. The message was ignored during the search.
Description
The date and time information in the log entry field is not correctly formatted.
Cause
A timestamp might not be formatted for the locale setting on the machine.
Action
Correct the locale setting for the server machine.
let's see XXServer.log00238:
there are 2 different kind of timestamps ->
####<2005-02-17 07:52:53 CET>
and
####<Feb 17, 2005 8:04:20 AM CET>
what can cause this ? where can i change type of timestamp ?
thanks a lotMeanwhile, I found a better sollution, in WebAS itself.
It's called lv.bat (for Win, otherwise lv.sh), and it stays in \usr\sap\...\j2ee\admin\logviewer-standalone\
It has two great options:
>lv.bat sourceFile -o outputFile
converts milliseconds into human readable format and stores it into output file
>lv.bat sourceFile -t
similar to tail -f command in linux, or tomcat console
I did some associations in winddows context menu, so now I can read or watch log files with one single click.
really great utility! -
Incorrect timestamp on logs exported to Excel
Exporting logged data to Excel loses the original timestamp. The time in the Excel file is the system time at which the Excel file was created. The entry in the spreadsheet for time X0 is just 0. The original log file (within SignalExpress) has the correct starting time for the data but that time doesn't seem to get passed to Excel. I have the timestam option set to 'Absolute'
Thanks,
Dave DettyHi Dave,
I've been able to track down the issue, and I filed a bug report to have it fixed.
It also looks like the date and time should be that of the timestamp of the first signal, and the X0 is designed to be the offset of each signal in the file from the Date and Time; which is really only useful when there are multiple signals in 1 file.
I wasn't able to find a workaround for this. I'm very sorry...
Phil -
As I opened the places.sqlite with an sqlite-editor I found out that firefox saves the last_visit_date via a timestamp which is 16 digits long. I realized that the first 10 digits are similar to the corresponding unix-timestamp but not equal. So.. how can i convert the firefox-timestamp into a normal date? Or into the corresponding unix-timestamp?
Write a bash script or 'C' program to change the date format and then use the sql update function to receive the stdio output 'where date_field='embeded date value'.
-
I need your help to correct the following issue:
-timestamp in logs is one hour ahead than the server time.
I am using jboss-4.0.3SP1 and jdk1.5.0_10
In order to solve this problem I have tried almost everything that I could find about this on internet:
1) I have used the tzdupdate()
tzupdater version 1.3.40-b01
JRE time zone data version: tzdata2011h
Embedded time zone data version: tzdata2011h
2) copied the log4j.properties to WEB-INF/classes
/opt/jboss-4.0.3SP1/server/mcdp-std/deploy/axis2.war/WEB-INF/classes/log4j.properties
3) also I've checked to have the same log4j.jar
The log4j.xml looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<!-- ================================================== -->
<!-- -->
<!-- Log4j Configuration -->
<!-- -->
<!-- ================================================== -->
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">
<!-- Default server.log file containing the error messages for all clients -->
<appender name="SERVER_LOG" class="org.jboss.logging.appender.RollingFileAppen der">
<errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler "/>
<!-- Change this value before load test -->
<param name="Threshold" value="DEBUG"/>
<param name="File" value="${jboss.server.home.dir}/log/server.log"/>
<param name="Append" value="true"/>
<param name="MaxFileSize" value="10MB"/>
<param name="maxBackupIndex" value="5"/>
<param name="bufferedIO" value="false"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{MM/dd HH:mm:ss,SSS} %-5p [%c] %t: %m%n"/>
</layout>
<!-- Exclude partition crap logged in cluster.log -->
<filter class="org.apache.log4j.varia.StringMatchFilter">
<param name="StringToMatch" value="org.jboss.ha"/>
<param name="AcceptOnMatch" value="false"/>
</filter>
<filter class="org.apache.log4j.varia.StringMatchFilter">
<param name="StringToMatch" value="org.jgroups"/>
<param name="AcceptOnMatch" value="false"/>
</filter>
</appender>
<!-- Clustering logging -->
<appender name="CLUSTER" class="org.jboss.logging.appender.RollingFileAppen der">
<errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler "/>
<!-- Change this value before load test -->
<param name="Threshold" value="INFO"/>
<param name="File" value="${jboss.server.home.dir}/log/cluster.log"/>
<param name="Append" value="true"/>
<param name="MaxFileSize" value="500KB"/>
<param name="MaxBackupIndex" value="1"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{MM/dd HH:mm:ss,SSS} (%t) %-5p [%c] %m%n"/>
</layout>
</appender>
and log4.properties is like this:
# Set root category priority to INFO and its only appender to CONSOLE.
log4j.rootCategory=INFO, CONSOLE
#log4j.rootCategory=INFO, CONSOLE, LOGFILE
# Set the enterprise logger priority to FATAL
log4j.logger.org.apache.axis2.enterprise=FATAL
log4j.logger.de.hunsicker.jalopy.io=FATAL
log4j.logger.httpclient.wire.header=FATAL
log4j.logger.org.apache.commons.httpclient=FATAL
# CONSOLE is set to be a ConsoleAppender using a PatternLayout.
log4j.appender.CONSOLE=org.apache.log4j.ConsoleApp ender
log4j.appender.CONSOLE.layout=org.apache.log4j.Pat ternLayout
log4j.appender.CONSOLE.layout.ConversionPattern=%p [%d{ISO8601}] %c{2} %x - %m%n
# LOGFILE is set to be a File appender using a PatternLayout.
log4j.appender.LOGFILE=org.apache.log4j.FileAppend er
log4j.appender.LOGFILE.File=axis2.log
log4j.appender.LOGFILE.Append=true
log4j.appender.LOGFILE.layout=org.apache.log4j.Pat ternLayout
log4j.appender.LOGFILE.layout.ConversionPattern=%p [%d{ISO8601}] %c{2} %x - %m%nDid you check http://www.oracle.com/technetwork/java/javase/dst-faq-138158.html in particular 27 about Cached instances of timezone data? I suggest to post this issue in the Application Server forum Oracle Application Server - General
-
Enabling timestamps in stderr.log in WAS
Hi! I am using Websphere Application Server 4.0 for deplopying my web application.
I find that logs are created for output and error in stdout.log and stderr.log.
However, while stdout.log has timestamps, stderror.log does not have time stamps.
How do I enable time stamps for stderr.log ?Hi! I am using Websphere Application Server 4.0 for
deplopying my web application.
I find that logs are created for output and error in
stdout.log and stderr.log.
However, while stdout.log has timestamps, stderror.log
does not have time stamps.
How do I enable time stamps for stderr.log ?First, post such messages in correct forums.. TheN I suggest you not to use SOPs in you class.. Rather you can use the Log4j which is the best I feel for logging messages.. You can get a free download from apache.. You can control the way messages are logged by simply changing a XML file!!
Cheers
-P -
How to log successful logins to a syslog server in NX-OS
Does anyone know how to do this in NX-OS? I do it in IOS with the following commands:
login on-failure log
login on-success log
logging x.x.x.x
With that I get a syslog message that I can then log to a file to track who has logged into which device and when. But I can't find the syntax to do the same thing in the Nexus switches that we have. Does anyone know what the equivalent commands are?
Thanks,
BenHi Ben,
By default, failed logins are logged.
You can checked the log using:
show logging logfile | last 15
and for every logging failed (by default) you will get something like this:
2012 Dec 18 14:51:08 Nexus5010-B %AUTHPRIV-3-SYSTEM_MSG: pam_aaa:Authentication
failed for user en from 2.2.2.1 - login
To get the success-login to show up in the logs we need to increase the level of the authpriv to 5 (it is 3 by default), and doing this will add a new log for failed or succesful connections.
Use the following command:
Nexus5010-A(config)# logging level authpriv 5
You can check loggin levels by using:
#show logging level
After you do this with the logging level you will see in the log something like this when a succesful login takes place:
2005 Jan 6 03:29:48 Nexus5010-A %AUTHPRIV-5-SYSTEM_MSG: admin :TTY=unknown
; PWD=/var/sysmgr/vsh ; USER=root ; COMMAND=/usr/bin/strings/proc/18340/environ
- sudo
Now for a failed login and after increasing the authpriv level you will see the following logs:
2005 Jan 6 03:31:36 Nexus5010-A %AUTHPRIV-4-SYSTEM_MSG: pam_unix(aaa:auth):check pass; user unknown - aaad
2005 Jan 6 03:31:36 Nexus5010-A %AUTHPRIV-5-SYSTEM_MSG: pam_unix(aaa:auth):
aut
hentication failure; logname= uid=0 euid=0 tty= ruser= rhost= - aaad
For logging *****
Nexus7018(config)# logging ?
console Set console logging
event Interface events
ip IP configuration
level Facility parameter for syslog messages
logfile Set File logging
message Interface events
module Set module(linecard) logging
monitor Set terminal line(monitor) logging level
origin-id Enable origin information for Remote Syslog Server
server Enable forwarding to Remote Syslog Server
source-interface Enable Source-Interface for Remote Syslog Server
timestamp Set logging timestamp granularity
You can use logging source-interface ....
Thanks-
Afroz
***Ratings Encourages Contributors ****
Maybe you are looking for
-
How to integrate Single Sign-On and JSF?
Hi all, We are going to develop a web application using Oracle technologies, including ADF and JSF. But we´ll need to secure our website using Oracle Identity Manager (Single Sign-On). I am having difficulties to find any resource explaining how to d
-
Error while opening the B2C Web Shop
Hi All, Our Basis team has installed the JAVA Stack for CRM 7.0 EHP1. We can successfully open the XCM page for the web shop using the following URL: http://host:port/b2c/admin/xcm/init.do. We get a SAP E-Commerce Error page when we try to launch the
-
Too late to register Acrobat 7 Professional
I am too late to register Adobe Acrobat 7. Now application is not responding. How to fix this?
-
Pdf file not loading to website
I created a newsletter in pages, saved it as a pdf and emailed it to our web person. They have a pc with microsoft windows. They can open the document & read it just fine, but can't get it to upload to the website. Has anyone else come across this pr
-
Any ideas how I can insert a pdf into word, using the insert object option. However the pdf i want to insert has text and lines annotated, but once inserted the comments don't appear???? any help would be greatly appreciated.