SlideShare a Scribd company logo
1 of 14
Download to read offline
By Joseph Amrith Raj 
WebSphere Application Server v8 Primer 
Chapter 
7
High Performance Extensible Logging 2 
Joseph’s WebSphere Library 
JOSEPH’S WEBSPHERE LIBRARY 
WebSphere Application Server v8 Primer, part-7: High Performance Extensible Logging [HPEL] 
 WebSphere Library 
http://twitter.com/WebSphere_Lib 
http://facebook.com/webspherelibrary
High Performance Extensible Logging 3 
Joseph’s WebSphere Library 
Table of Contents 
1. What is HPEL ? ..............................................................................................................................4 
2. Managing HPEL ..............................................................................................................................5 
2A. HPEL Log Configuration .............................................................................................................6 
2B. HPEL Trace Configuration ..........................................................................................................7 
2C. HPEL Text log configuration ......................................................................................................8 
3 .Verifying and viewing HPEL ............................................................................................................9 
4 .Log viewer command-line tool ...................................................................................................... 11 
4A .Some examples of using logviewer command ......................................................................... 11 
Use of tail with logviewer ......................................................................................................... 11 
Exporting only SysOut events to a readable log ......................................................................... 12 
Exporting a log file between some dates ................................................................................... 12 
About Author ................................................................................................................................... 13 
Connect With US .............................................................................................................................. 14
High Performance Extensible Logging 4 
Joseph’s WebSphere Library 
1. What is HPEL ? 
HPEL – High Performance Extensible Logging, a new log and trace technology in WebSphere Application server v8. It improves the performance of the log and trace as well as access to the data. HPEL provides a convenient mechanism for storing and accessing log, trace, System.err, and System.out information produced by the application server or your applications. 
The information [logging/trace] from the HPEL is stored in binary format not the regular text format. You can use the tools like logviewer to convert these logs to the readable text format. 
HPEL provides different repositories for storing log and trace information. 
A log data repository to store the log records from System.out, system.err,java.util.logging. Trace data repository to store trace records. A text log file, for convenience of reading the log without using the log viewer. You can disable the text log, if you are concerned about the performance. 
Some important notes about HPEL 
 Every server process has its own set of repositories for logs, trace and text file. Hence there is not sync activity between processes. 
 The data written to these repositories is not formatted for reading. In general, formatting data requires some processing. So by not doing it, you are improving performance 
 By default, log and trace data is stored in an 8KB buffer before being written to disk. If the buffer is filled within 10 seconds, the buffer is written to disk. If the buffer is not filled within that time it is automatically written to disk to ensure that the logs have the most current information.
High Performance Extensible Logging 5 
Joseph’s WebSphere Library 
2. Managing HPEL 
By default, HEPL is not enabled. To switch to this new logging system, navigate to Troubleshooting logs and trace  server and click on “Switch to HPEL mode” 
After you switch to HPEL mode… 
As you can see in the above screenshot, you can configure HPEL logging, HPEL trace and HPEL text log.
High Performance Extensible Logging 6 
Joseph’s WebSphere Library 
2A. HPEL Log Configuration 
 Directory path: directory where the logs will be stored/ repositories are placed 
 Enable Log record buffering: logs are first written to 8KB buffer before being written to the disk. 
 Start new log file daily at: log rotation policy 
 Log Record purging policies 
o Begin cleanup of oldest records 
 When log size approaches max size - automatic log file cleanup to begin when the total size of the log repository approaches the configured maximum size 
 When oldest log reaches age limit - automatic log file cleanup to begin when log content is the age limit specified 
 When either age or size restriction is met - automatic log file cleanup to begin when either of the previous conditions is met 
 Log record age limit: the lifespan, in hours, that log records can remain in the log repository before the log records can be automatically deleted by the server 
 Max log size: maximum total size, in megabytes, that the server allows the log repository to reach 
 Out of space action 
 Stop Server - server stops when the server is unable to write to the log repository 
 Purge old logs - server continues to run, and that the oldest log records are immediately removed when the server is unable to write to the log repository 
 Stop logging - server continues to run, but that the server cannot continue to write to the log when the server is unable to write to the log repository
High Performance Extensible Logging 7 
Joseph’s WebSphere Library 
2B. HPEL Trace Configuration 
You can either write the trace data to a directory or to memory buffer. When using write to directory option, the configuration options are same as those of HPEL log configuration, as explained above. 
In the runtime tab of the Trace configuration, you find a Dump button when select trace to a memory buffer option which writes the contents of the trace memory buffer to the trace directory. 
Save runtime changes to configuration as well check box, when enabled.. Specifies that changes are made to both the dynamic state of the running server, and the server configuration, which takes effect on the next restart.
High Performance Extensible Logging 8 
Joseph’s WebSphere Library 
2C. HPEL Text log configuration 
Apart from the configuration options explained in the HPEL log configuration section, you have 2 additional options here. 
 Text output format: 
o Basic to specify a shorter, one-line-per-record format. 
o Advanced to specify a longer format using full logger name and more details about each record. 
 Include Trace records: Specifies whether trace records are included in the text log file, as well as log records. 
After all the configurations are done.. Save the changes and restart server.
High Performance Extensible Logging 9 
Joseph’s WebSphere Library 
3 .Verifying and viewing HPEL 
I’ve marked 3 sections in the above screenshot to observe after HPEL is enabled and in action. 
1. Go to the directory where the log records are being written and check the new HPEL log directory structure. 
2. In the administration console, click on the view HPEL logs and traces. Here you can select what content you would like to see: SystemOut, SystemErr and log&trace. Also you can retrieve the log data related to a particular time period. You can also export the log in binary format and
High Performance Extensible Logging 10 
Joseph’s WebSphere Library 
basic/advanced text log format. Also 
3. If you want to switch back to the regular logging method.. you can click on “change log and trace mode” option and then select switch back to Basic mode.
High Performance Extensible Logging 11 
Joseph’s WebSphere Library 
4 .Log viewer command-line tool 
You can use the LogViewer command to query the contents of the High Performance Extensible Logging (HPEL) log and trace repositories 
Logviewer command has many optional parameters like RepositoryDir, format, outlog, start date, stopdate etc.. [You can find the complete list of options on infocenter here] 
You can also use the logviewer to view new log and trace repository entries as the server writes content to them. 
4A .Some examples of using logviewer command 
Use of tail with logviewer 
Note: when you run logviewer from the bin directory of the profile.. you don’t need to mention the repository directory. Otherwise, you need to mention the optional parameter ‘repositoryDir’ on all logviewer commands.
High Performance Extensible Logging 12 
Joseph’s WebSphere Library 
Exporting only SysOut events to a readable log 
Exporting a log file between some dates
High Performance Extensible Logging 13 
Joseph’s WebSphere Library 
About Author 
Joseph Amrith Raj is a technical consultant for multiple WebSphere products. He worked on various product consulting and support teams including WebSphere Application Server, WebSphere MQ, WebSphere Message Broker, Enterprise Service Bus and WebSphere Process Server. He has 7 years of experience in administration, troubleshooting, consulting and he has significant experience in architecture, strategy and leadership positions. He is IBM certified for WAS, WMQ, WPS , SOA and Cloud Computing.
High Performance Extensible Logging 14 
Joseph’s WebSphere Library 
Connect With US 
 Get notified on upcoming tutorials 
 Subscribe, to get this WebSphere blog posts directly to your inbox : here 
 Tell us your feedback and what you want 
 Please leave your comments in the comments section below the post 
 Send us suggestions for future topics and improvements about the content at webspherelibrary@live.com 
 Be Connected! 
 Connect with us on Facebook 
 Connect with us on Twitter 
 More about us : profile

More Related Content

What's hot

Apache Manager Table of Contents
Apache Manager Table of ContentsApache Manager Table of Contents
Apache Manager Table of Contents
webhostingguy
 
Configuring the Apache Web Server
Configuring the Apache Web ServerConfiguring the Apache Web Server
Configuring the Apache Web Server
webhostingguy
 
APACHE
APACHEAPACHE
APACHE
ARJUN
 
Utosc2007_Apache_Configuration.ppt
Utosc2007_Apache_Configuration.pptUtosc2007_Apache_Configuration.ppt
Utosc2007_Apache_Configuration.ppt
webhostingguy
 
Apache Web server Complete Guide
Apache Web server Complete GuideApache Web server Complete Guide
Apache Web server Complete Guide
webhostingguy
 
APACHE WEB SERVER FOR LINUX
APACHE WEB SERVER FOR LINUXAPACHE WEB SERVER FOR LINUX
APACHE WEB SERVER FOR LINUX
webhostingguy
 
Apache Web Server Architecture Chaitanya Kulkarni
Apache Web Server Architecture Chaitanya KulkarniApache Web Server Architecture Chaitanya Kulkarni
Apache Web Server Architecture Chaitanya Kulkarni
webhostingguy
 

What's hot (19)

Apache Manager Table of Contents
Apache Manager Table of ContentsApache Manager Table of Contents
Apache Manager Table of Contents
 
Installing and configuring apache
Installing and configuring apacheInstalling and configuring apache
Installing and configuring apache
 
Installing oracle timesten database On Linux
Installing oracle timesten database On Linux Installing oracle timesten database On Linux
Installing oracle timesten database On Linux
 
Python on exadata
Python on exadataPython on exadata
Python on exadata
 
Configuring the Apache Web Server
Configuring the Apache Web ServerConfiguring the Apache Web Server
Configuring the Apache Web Server
 
APACHE
APACHEAPACHE
APACHE
 
Utosc2007_Apache_Configuration.ppt
Utosc2007_Apache_Configuration.pptUtosc2007_Apache_Configuration.ppt
Utosc2007_Apache_Configuration.ppt
 
Apache web server tutorial for linux
Apache web server tutorial for linuxApache web server tutorial for linux
Apache web server tutorial for linux
 
Weblogic performance tuning2
Weblogic performance tuning2Weblogic performance tuning2
Weblogic performance tuning2
 
Team lab install_en
Team lab install_enTeam lab install_en
Team lab install_en
 
Refresh development from productions
Refresh development from productionsRefresh development from productions
Refresh development from productions
 
Apache Web server Complete Guide
Apache Web server Complete GuideApache Web server Complete Guide
Apache Web server Complete Guide
 
Spring 2007 SharePoint Connections Oleson Advanced Administration and Plannin...
Spring 2007 SharePoint Connections Oleson Advanced Administration and Plannin...Spring 2007 SharePoint Connections Oleson Advanced Administration and Plannin...
Spring 2007 SharePoint Connections Oleson Advanced Administration and Plannin...
 
Weblogic performance tuning1
Weblogic performance tuning1Weblogic performance tuning1
Weblogic performance tuning1
 
Ebs clone r12.2.4
Ebs clone r12.2.4Ebs clone r12.2.4
Ebs clone r12.2.4
 
Apache web server
Apache web serverApache web server
Apache web server
 
Guide to alfresco monitoring
Guide to alfresco monitoringGuide to alfresco monitoring
Guide to alfresco monitoring
 
APACHE WEB SERVER FOR LINUX
APACHE WEB SERVER FOR LINUXAPACHE WEB SERVER FOR LINUX
APACHE WEB SERVER FOR LINUX
 
Apache Web Server Architecture Chaitanya Kulkarni
Apache Web Server Architecture Chaitanya KulkarniApache Web Server Architecture Chaitanya Kulkarni
Apache Web Server Architecture Chaitanya Kulkarni
 

Similar to WebSphere : High Performance Extensible Logging

Help! my sql server log file is too big!!! tech republic
Help! my sql server log file is too big!!!   tech republicHelp! my sql server log file is too big!!!   tech republic
Help! my sql server log file is too big!!! tech republic
Kaing Menglieng
 
Mastering informatica log files
Mastering informatica log filesMastering informatica log files
Mastering informatica log files
Amit Sharma
 
Oracle 11g data warehouse introdution
Oracle 11g data warehouse introdutionOracle 11g data warehouse introdution
Oracle 11g data warehouse introdution
Aditya Trivedi
 
Oracle business intelligence enterprise edition 11g
Oracle business intelligence enterprise edition 11gOracle business intelligence enterprise edition 11g
Oracle business intelligence enterprise edition 11g
uzzal basak
 
10 Cache Implementation
10  Cache Implementation10  Cache Implementation
10 Cache Implementation
Ranjan Kumar
 
Essbase log files
Essbase log filesEssbase log files
Essbase log files
Amit Sharma
 
Less14 Br Concepts
Less14 Br ConceptsLess14 Br Concepts
Less14 Br Concepts
vivaankumar
 

Similar to WebSphere : High Performance Extensible Logging (20)

Help! my sql server log file is too big!!! tech republic
Help! my sql server log file is too big!!!   tech republicHelp! my sql server log file is too big!!!   tech republic
Help! my sql server log file is too big!!! tech republic
 
Discover a lightning fast way to debug in Salesforce with RFLIB - Summer 20
Discover a lightning fast way to debug in Salesforce with RFLIB - Summer 20Discover a lightning fast way to debug in Salesforce with RFLIB - Summer 20
Discover a lightning fast way to debug in Salesforce with RFLIB - Summer 20
 
Building the Perfect SharePoint 2010 Farm
Building the Perfect SharePoint 2010 FarmBuilding the Perfect SharePoint 2010 Farm
Building the Perfect SharePoint 2010 Farm
 
8 i recovery_manager
8 i recovery_manager8 i recovery_manager
8 i recovery_manager
 
Quickr
QuickrQuickr
Quickr
 
Redo log improvements MYSQL 8.0
Redo log improvements MYSQL 8.0Redo log improvements MYSQL 8.0
Redo log improvements MYSQL 8.0
 
App D
App DApp D
App D
 
AtoZ about TYPO3 v8 CMS
AtoZ about TYPO3 v8 CMSAtoZ about TYPO3 v8 CMS
AtoZ about TYPO3 v8 CMS
 
Logback
LogbackLogback
Logback
 
Mastering informatica log files
Mastering informatica log filesMastering informatica log files
Mastering informatica log files
 
Oracle11g notes
Oracle11g notesOracle11g notes
Oracle11g notes
 
Oracle 11g data warehouse introdution
Oracle 11g data warehouse introdutionOracle 11g data warehouse introdution
Oracle 11g data warehouse introdution
 
Logging best practice in mule using logger component
Logging best practice in mule using logger componentLogging best practice in mule using logger component
Logging best practice in mule using logger component
 
Oracle business intelligence enterprise edition 11g
Oracle business intelligence enterprise edition 11gOracle business intelligence enterprise edition 11g
Oracle business intelligence enterprise edition 11g
 
11i Logs
11i Logs11i Logs
11i Logs
 
Oracle Database Backup
Oracle Database BackupOracle Database Backup
Oracle Database Backup
 
10 Cache Implementation
10  Cache Implementation10  Cache Implementation
10 Cache Implementation
 
Essbase log files
Essbase log filesEssbase log files
Essbase log files
 
D02 Evolution of the HADR tool
D02 Evolution of the HADR toolD02 Evolution of the HADR tool
D02 Evolution of the HADR tool
 
Less14 Br Concepts
Less14 Br ConceptsLess14 Br Concepts
Less14 Br Concepts
 

Recently uploaded

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Recently uploaded (20)

"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 

WebSphere : High Performance Extensible Logging

  • 1. By Joseph Amrith Raj WebSphere Application Server v8 Primer Chapter 7
  • 2. High Performance Extensible Logging 2 Joseph’s WebSphere Library JOSEPH’S WEBSPHERE LIBRARY WebSphere Application Server v8 Primer, part-7: High Performance Extensible Logging [HPEL]  WebSphere Library http://twitter.com/WebSphere_Lib http://facebook.com/webspherelibrary
  • 3. High Performance Extensible Logging 3 Joseph’s WebSphere Library Table of Contents 1. What is HPEL ? ..............................................................................................................................4 2. Managing HPEL ..............................................................................................................................5 2A. HPEL Log Configuration .............................................................................................................6 2B. HPEL Trace Configuration ..........................................................................................................7 2C. HPEL Text log configuration ......................................................................................................8 3 .Verifying and viewing HPEL ............................................................................................................9 4 .Log viewer command-line tool ...................................................................................................... 11 4A .Some examples of using logviewer command ......................................................................... 11 Use of tail with logviewer ......................................................................................................... 11 Exporting only SysOut events to a readable log ......................................................................... 12 Exporting a log file between some dates ................................................................................... 12 About Author ................................................................................................................................... 13 Connect With US .............................................................................................................................. 14
  • 4. High Performance Extensible Logging 4 Joseph’s WebSphere Library 1. What is HPEL ? HPEL – High Performance Extensible Logging, a new log and trace technology in WebSphere Application server v8. It improves the performance of the log and trace as well as access to the data. HPEL provides a convenient mechanism for storing and accessing log, trace, System.err, and System.out information produced by the application server or your applications. The information [logging/trace] from the HPEL is stored in binary format not the regular text format. You can use the tools like logviewer to convert these logs to the readable text format. HPEL provides different repositories for storing log and trace information. A log data repository to store the log records from System.out, system.err,java.util.logging. Trace data repository to store trace records. A text log file, for convenience of reading the log without using the log viewer. You can disable the text log, if you are concerned about the performance. Some important notes about HPEL  Every server process has its own set of repositories for logs, trace and text file. Hence there is not sync activity between processes.  The data written to these repositories is not formatted for reading. In general, formatting data requires some processing. So by not doing it, you are improving performance  By default, log and trace data is stored in an 8KB buffer before being written to disk. If the buffer is filled within 10 seconds, the buffer is written to disk. If the buffer is not filled within that time it is automatically written to disk to ensure that the logs have the most current information.
  • 5. High Performance Extensible Logging 5 Joseph’s WebSphere Library 2. Managing HPEL By default, HEPL is not enabled. To switch to this new logging system, navigate to Troubleshooting logs and trace  server and click on “Switch to HPEL mode” After you switch to HPEL mode… As you can see in the above screenshot, you can configure HPEL logging, HPEL trace and HPEL text log.
  • 6. High Performance Extensible Logging 6 Joseph’s WebSphere Library 2A. HPEL Log Configuration  Directory path: directory where the logs will be stored/ repositories are placed  Enable Log record buffering: logs are first written to 8KB buffer before being written to the disk.  Start new log file daily at: log rotation policy  Log Record purging policies o Begin cleanup of oldest records  When log size approaches max size - automatic log file cleanup to begin when the total size of the log repository approaches the configured maximum size  When oldest log reaches age limit - automatic log file cleanup to begin when log content is the age limit specified  When either age or size restriction is met - automatic log file cleanup to begin when either of the previous conditions is met  Log record age limit: the lifespan, in hours, that log records can remain in the log repository before the log records can be automatically deleted by the server  Max log size: maximum total size, in megabytes, that the server allows the log repository to reach  Out of space action  Stop Server - server stops when the server is unable to write to the log repository  Purge old logs - server continues to run, and that the oldest log records are immediately removed when the server is unable to write to the log repository  Stop logging - server continues to run, but that the server cannot continue to write to the log when the server is unable to write to the log repository
  • 7. High Performance Extensible Logging 7 Joseph’s WebSphere Library 2B. HPEL Trace Configuration You can either write the trace data to a directory or to memory buffer. When using write to directory option, the configuration options are same as those of HPEL log configuration, as explained above. In the runtime tab of the Trace configuration, you find a Dump button when select trace to a memory buffer option which writes the contents of the trace memory buffer to the trace directory. Save runtime changes to configuration as well check box, when enabled.. Specifies that changes are made to both the dynamic state of the running server, and the server configuration, which takes effect on the next restart.
  • 8. High Performance Extensible Logging 8 Joseph’s WebSphere Library 2C. HPEL Text log configuration Apart from the configuration options explained in the HPEL log configuration section, you have 2 additional options here.  Text output format: o Basic to specify a shorter, one-line-per-record format. o Advanced to specify a longer format using full logger name and more details about each record.  Include Trace records: Specifies whether trace records are included in the text log file, as well as log records. After all the configurations are done.. Save the changes and restart server.
  • 9. High Performance Extensible Logging 9 Joseph’s WebSphere Library 3 .Verifying and viewing HPEL I’ve marked 3 sections in the above screenshot to observe after HPEL is enabled and in action. 1. Go to the directory where the log records are being written and check the new HPEL log directory structure. 2. In the administration console, click on the view HPEL logs and traces. Here you can select what content you would like to see: SystemOut, SystemErr and log&trace. Also you can retrieve the log data related to a particular time period. You can also export the log in binary format and
  • 10. High Performance Extensible Logging 10 Joseph’s WebSphere Library basic/advanced text log format. Also 3. If you want to switch back to the regular logging method.. you can click on “change log and trace mode” option and then select switch back to Basic mode.
  • 11. High Performance Extensible Logging 11 Joseph’s WebSphere Library 4 .Log viewer command-line tool You can use the LogViewer command to query the contents of the High Performance Extensible Logging (HPEL) log and trace repositories Logviewer command has many optional parameters like RepositoryDir, format, outlog, start date, stopdate etc.. [You can find the complete list of options on infocenter here] You can also use the logviewer to view new log and trace repository entries as the server writes content to them. 4A .Some examples of using logviewer command Use of tail with logviewer Note: when you run logviewer from the bin directory of the profile.. you don’t need to mention the repository directory. Otherwise, you need to mention the optional parameter ‘repositoryDir’ on all logviewer commands.
  • 12. High Performance Extensible Logging 12 Joseph’s WebSphere Library Exporting only SysOut events to a readable log Exporting a log file between some dates
  • 13. High Performance Extensible Logging 13 Joseph’s WebSphere Library About Author Joseph Amrith Raj is a technical consultant for multiple WebSphere products. He worked on various product consulting and support teams including WebSphere Application Server, WebSphere MQ, WebSphere Message Broker, Enterprise Service Bus and WebSphere Process Server. He has 7 years of experience in administration, troubleshooting, consulting and he has significant experience in architecture, strategy and leadership positions. He is IBM certified for WAS, WMQ, WPS , SOA and Cloud Computing.
  • 14. High Performance Extensible Logging 14 Joseph’s WebSphere Library Connect With US  Get notified on upcoming tutorials  Subscribe, to get this WebSphere blog posts directly to your inbox : here  Tell us your feedback and what you want  Please leave your comments in the comments section below the post  Send us suggestions for future topics and improvements about the content at webspherelibrary@live.com  Be Connected!  Connect with us on Facebook  Connect with us on Twitter  More about us : profile