Home

Log files - MyCo WCS v7

 

+

Search Tips   |   Advanced Search


  1. WCS v7 log policies
  2. grep for strings in log files
  3. Verify timestamps for appservers
  4. Clear appserver logs
  5. Clear webserver logs
  6. Gather log files


WCS v7 log policies

Log Location MyCo policy
Loading utilities WC_INSTALL/logs/messages.txt
WC_INSTALL/logs/trace.txt
Rotate by size: 1024 MB
DBClean WC_INSTALL/instances/instance/logs/DBClean/DBClean.yyyy.mm.dd.hh.mm.ss.zzz.log Automatically rotated with a timestamp added to the file name for each execution
Stage server WC_INSTALL/logs/stagingcopy_yyyy.mm.dd_hh.mm.ss.zzz.log
WC_INSTALL/logs/stagingprop_yyyy.mm.dd_hh.mm.ss.zzz.log
WC_INSTALL/logs/stagingprop_yyyy.mm.dd_hh.mm.ss.zzz.log
Automatically rotated with a timestamp added to the file name for each execution
MigrateEncryptedInfo WC_INSTALL/logs/CCInfoMigration.log
WC_INSTALL/logs/MKChangeUserAndCCInfoMigration.log
WC_INSTALL/logs/MigrateEncryptedInfoError.log
Upon each execution, the log file will be re-created.
JVM logs WAS_INSTALL/profiles/profile/logs/server/SystemOut.log
WAS_INSTALL/profiles/profile/logs/server/SystemErr.log
Rotate by time: 24 hrs
Rotate by size: 20 MB
Max historical: 30
Start time: 1
Repeat time: 24
Trace logs WAS_INSTALL/profiles/profile/logs/server/trace.log Rotate by size: 20 MB
Max historical: 3
Native and garbage collection logs WAS_INSTALL/profiles/profile/logs/server/native_stderr.log
WAS_INSTALL/profiles/profile/logs/server/native_stdout.log
-Xverbosegclog[:,,])
Javacore and heapdumps WAS_INSTALL/profiles/profile/IBM_HEAPDUMPDIR/heapdump.yyyymmdd.hhmmss.pid.txt
WAS_INSTALL/profiles/profile/IBM_HEAPDUMPDIR/javacore.yyyymmdd.hhmmss.pid.txt
Currently no limit. To limit number, set JAVA_DUMP_OPTS
FFDC WAS_INSTALL/profiles/profile/logs/ffdc/*.log
WAS_INSTALL/profiles/profile/logs/ffdc/*.txt
Automatically rotated
Service log WAS_INSTALL/profiles/profile/logs/activity.log Max file size: 2 MB
HTTP error and NCSA access logging WAS_INSTALL/profiles/profile/logs/server/http_access.log
WAS_INSTALL/profiles/profile/logs/server/http_error.log
Not enabled
WebSphere Application Server plug-in WAS_INSTALL/Plugins/logs/webserver/ http_plugin.log Minimal data if LogLevel set to Error. Otherwise, needs to be monitored.
IBM HTTP Server IHS_HOME/logs/access_log
IHS_HOME/logs/error_log
Rotate by size: 50 MB
Historical archive logs need to be manually removed.
nmon data /opt/logs/vmstatlogs No cleanup policy in place
Dynatrace $WC_PROFILE/logs/dynatrace/ No cleanup policy in place
loglevel=warning
logstdout=none
WebSphere MQ /var/mqm/qmgrs/qmname/errors/AMQERR0[1-3].LOG
/var/mqm/errors/AMQERR0[1-3].LOG
/var/mqm/trace/amqpid.id.trc
If AMQERR01 grows beyond 256 KB, it is copied to AMQERR02. If AMQERR02 exists, AMQERR02 copies to AMQERR03 and data in AMQERR03 is overwritten.


grep for strings in log files

To grep for strings existing in appserver SystemOut.log files for all hosts defined in sapp.out, log on to s1np1a as user wasadmin and run...

cd /opt/install/IHS70/htdocs/logs
./greplogs.sh string to search for

For example...

cd /opt/install/IHS70/htdocs/logs
./greplogs.sh SSL HANDSHAKE FAILURE > greplogs.txt

To grep for strings existing in IHS access_log files for all hosts defined in sweb.out, log on to s1np1a as user wasadmin and run...

cd /opt/install/IHS70/htdocs/logs
./grepweb.sh string to search for


Verify log timestamps for appservers

To verify last activity in production appserver logs, log on to s1sa2a as user wasadmin and run...

cd logs
timestamp.sh

Here is output from 10/18/2001

s1sa7b [10/17/11 17:24:16:046 EDT] 00000010 SystemOut O at com.ibm.ws.dcs.vri.common.JobsProcessorThread.run(JobsProcessorThread.java:281)
s1sa7c [10/18/11 11:41:04:888 EDT] 00000005 ServerCollabo A WSVR0024I: Server WC_MyCo stopped
s1sa7d [10/18/11 11:41:05:264 EDT] 00000006 ServerCollabo A WSVR0024I: Server WC_MyCo stopped
s1sa7e [10/18/11 11:41:07:303 EDT] 00000005 ServerCollabo A WSVR0024I: Server WC_MyCo stopped
s1sa7f [10/18/11 11:41:08:930 EDT] 00000005 ServerCollabo A WSVR0024I: Server WC_MyCo stopped
s1sa7g [10/18/11 11:41:10:809 EDT] 00000007 ServerCollabo A WSVR0024I: Server WC_MyCo stopped
s1sa7h [10/18/11 11:41:05:495 EDT] 00000005 ServerCollabo A WSVR0024I: Server WC_MyCo stopped
s1sa7i [10/18/11 11:41:13:025 EDT] 00000006 ServerCollabo A WSVR0024I: Server WC_MyCo stopped
s1sa7j [10/18/11 11:41:15:322 EDT] 00000005 ServerCollabo A WSVR0024I: Server WC_MyCo stopped
s1sa7k [10/18/11 11:41:17:159 EDT] 00000007 ServerCollabo A WSVR0024I: Server WC_MyCo stopped
s1sa7l [10/18/11 11:41:18:975 EDT] 00000005 ServerCollabo A WSVR0024I: Server WC_MyCo stopped
s1sa7m [10/18/11 11:41:17:284 EDT] 00000006 ServerCollabo A WSVR0024I: Server WC_MyCo stopped
s1sa7n [10/18/11 11:41:17:418 EDT] 00000004 ServerCollabo A WSVR0024I: Server WC_MyCo stopped
s1sa7o [10/18/11 11:41:36:634 EDT] 00000007 ServerCollabo A WSVR0024I: Server WC_MyCo stopped
s1sa7p [10/18/11 11:41:21:105 EDT] 00000004 ServerCollabo A WSVR0024I: Server WC_MyCo stopped
s1sa7q [10/18/11 11:41:20:684 EDT] 00000007 ServerCollabo A WSVR0024I: Server WC_MyCo stopped
s1sa8b [10/18/11 11:41:11:868 EDT] 00000007 ServerCollabo A WSVR0024I: Server WC_MyCo stopped
s1sa8c [10/18/11 12:23:58:952 EDT] 000000fd srt W com.ibm.ws.webcontainer.srt.SRTServletResponse addCookie WARNING: Cannot
s1sa8d [10/18/11 11:41:10:065 EDT] 00000007 ServerCollabo A WSVR0024I: Server WC_MyCo stopped
s1sa8e [10/18/11 11:41:14:346 EDT] 00000005 ServerCollabo A WSVR0024I: Server WC_MyCo stopped
s1sa8f [10/18/11 11:41:13:109 EDT] 00000007 ServerCollabo A WSVR0024I: Server WC_MyCo stopped
s1sa8g [10/18/11 11:41:15:863 EDT] 00000004 ServerCollabo A WSVR0024I: Server WC_MyCo stopped
s1sa8h [10/18/11 11:41:13:094 EDT] 00000005 ServerCollabo A WSVR0024I: Server WC_MyCo stopped
s1sa8i [10/18/11 11:41:13:277 EDT] 00000005 ServerCollabo A WSVR0024I: Server WC_MyCo stopped
s1sa8j [10/18/11 11:41:17:667 EDT] 00000004 ServerCollabo A WSVR0024I: Server WC_MyCo stopped
s1sa8k [10/18/11 11:41:18:128 EDT] 00000007 ServerCollabo A WSVR0024I: Server WC_MyCo stopped
s1sa8l [10/18/11 11:41:17:597 EDT] 00000004 ServerCollabo A WSVR0024I: Server WC_MyCo stopped
s1sa8m [10/18/11 11:41:21:433 EDT] 00000004 ServerCollabo A WSVR0024I: Server WC_MyCo stopped
s1sa8n [10/18/11 11:41:23:780 EDT] 00000006 ServerCollabo A WSVR0024I: Server WC_MyCo stopped
s1sa8p [10/18/11 11:41:51:187 EDT] 00000007 ServerCollabo A WSVR0024I: Server WC_MyCo stopped
s1sa8q [10/18/11 11:41:21:804 EDT] 00000004 ServerCollabo A WSVR0024I: Server WC_MyCo stopped


Clear appserver log files

To clear QT Delivery appserver logs, log on to s1np1a as user wasadmin and run...

cd $DOC_ROOT/logs
for i in `cat sqp.out`
do
    echo $i
    ssh -f $i /home/wasadmin/vreports/bin/clearlogs.sh
    ssh -f $i ls -l /opt/WAS70/AppServer/profiles/MyCo/logs/WC_MyCo/SystemOut.log
    ssh -f $i ls -l /opt/WAS70/AppServer/profiles/MyCo/logs/WC_MyCo/SystemErr.log
    ssh -f $i ls -l /opt/WAS70/AppServer/profiles/MyCo/logs/WC_MyCo/native_stderr.log
done


Clear webserver log files

To clear QT Delivery webserver logs, log on to each web server as user wasadmin and run...

sudo /opt/IHS70/bin/cleanIHSlogs.sh


Gather appserver log files

To gather logs from a browser, we execute envlogs.cgi...

  1. AD Deliv
  2. AD Stage
  3. AT Live
  4. AT Stage
  5. QA Live Cell1
  6. QA Live Cell2
  7. QA Stage
  8. QT Delivery
        qp7b qp7c qp7d qp7e
        qp7f qp7g qp7h qp7i
        qp8b qp8c qp8d qp8e
        qp8f qp8g qp8h qp8i
  9. ST Delivery
  10. ST Stage
  11. QT Stage
  12. ST Delivery
  13. ST Stage

To gather non-production log files from the commandline, log on to s1np1a as user wasadmin, cd $DOC_ROOT/logs, and run...

cd $DOC_ROOT/logs
./getapplogs.sh hostname
./getndmlogs.sh hostname
./getwxslogs.sh hostname
./access_log_get.sh hostname

For example...

cd /opt/install/IHS70/htdocs/logs
getapplogs.sh s1qp1a; getndmlogs.sh s1qp1d; access_log_get.sh s1qp1c

To gather production log files from the commandline, log on to s1sa2a as user wasadmin, cd $HOME/logs, and run the above scripts.


AD Stage

  1. s1ad6a_SystemOut.log
  2. s1ad6a_SystemErr.log
  3. s1ad6a_node_SystemOut.log
  4. s1ad6a_node_SystemErr.log
  5. s1ad6d_SystemOut.log
  6. s1ad6d_SystemErr.log


PR Live s1sa7x

  1. s1sa7n_SystemErr.log
  2. s1sa7n_SystemOut.log
  3. s1sa7n_node_SystemErr.log
  4. s1sa7n_node_SystemOut.log
  5. s1sa7n_syncNode.log
  6. s1sa7r_SystemErr.log
  7. s1sa7r_SystemOut.log


s1sa8[a-j]

  1. s1sa8b_SystemOut.log
  2. s1sa8b_SystemErr.log
  3. s1sa8b_node_SystemOut.log
  4. s1sa8b_node_SystemErr.log


PR Live

  1. s1sa8b_SystemOut.log
  2. s1sa8b_syncNode.log
  3. s1sa8b_startServer.log
  4. s1sa8b_serverStatus.log
  5. s1sa8b_node_SystemOut.log
  6. s1sa8b_node_SystemErr.log
  7. s1sa8b_native_stdout.log
  8. s1sa8b_SystemErr.log
  9. error_log.1318898569
  10. access_log.1318898569


ST Stage

  1. s1st6a_SystemOut.log
  2. s1st6a_SystemErr.log
  3. s1st6a_startServer.log
  4. s1st6a_syncNode.log
  5. s1st6a_node_SystemOut.log
  6. s1st6a_node_SystemErr.log
  7. s1st6d_SystemOut.log
  8. s1st6d_SystemErr.log


QA Stage

  1. s1qa4a_SystemOut.log
  2. s1qa4a_SystemErr.log
  3. s1qa4a_node_SystemOut.log
  4. s1qa4a_node_SystemErr.log
  5. s1qa4d_SystemOut.log
  6. s1qa4d_SystemErr.log


QA Live Cell1

  1. s1qa8a_SystemOut.log
  2. s1qa8a_SystemErr.log
  3. s1qa8a_syncNode.log
  4. s1qa8a_node_SystemOut.log
  5. s1qa8a_node_SystemErr.log
  6. s1qa8d_SystemOut.log
  7. s1qa8d_SystemErr.log
  8. s1qa8e_container1.log
  9. s1qa8e_container2.log
  10. s1qa8e_container3.log


QT Stage

  1. s1qp1c_access_log
  2. s1qp1a_SystemOut.log
  3. s1qp1a_SystemErr.log
  4. s1qp1a_syncNode.log
  5. s1qp1a_node_SystemOut.log
  6. s1qp1a_node_SystemErr.log
  7. s1qp1d_SystemOut.log
  8. s1qp1d_SystemErr.log


QA Live Cell2

  1. s1qa9a_SystemOut.log
  2. s1qa9a_SystemErr.log
  3. s1qa9a_node_SystemOut.log
  4. s1qa9a_node_SystemErr.log
  5. s1qa9a_syncNode.log
  6. s1st9d_SystemOut.log
  7. s1st9d_SystemErr.log


ST Delivery

  1. s1st5a_SystemOut.log
  2. s1st5a_SystemErr.log
  3. s1st5a_node_SystemOut.log
  4. s1st5a_node_SystemErr.log
  5. s1st5a_startServer.log
  6. s1st5a_syncNode.log
  7. s1st5d_SystemOut.log
  8. s1st5d_SystemErr.log


Author

Michael Pareene
Ascendant Technology
612.220.8725