Log Analysis Tool for SAP NetWeaver AS Java



Similar documents
SAP Master Data Governance- Hiding fields in the change request User Interface

Business One in Action - How can we post bank fees and charges while posting Incoming or Outgoing Payment transactions?

Integrating Easy Document Management System in SAP DMS

Maintaining Different Addresses and Ids for a Business Partner via CRM Web UI

TM111. ERP Integration for Order Management (Shipper Specific) COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

Alert Notification in SAP Supply Network Collaboration. SNC Extension Guide

Data Archiving in CRM: a Brief Overview

Process Archiving using NetWeaver Business Process Management

HR400 SAP ERP HCM Payroll Configuration

Enterprise Software - Applications, Technologies and Programming

SAPFIN. Overview of SAP ERP Financials COURSE OUTLINE. Course Version: 15 Course Duration: 2 Day(s)

NetWeaver Business Client (NWBC) for Incentives and Commissions Management (ICM)

Understanding HR Schema and PCR with an Example

Table of Contents. How to Find Database Index usage per ABAP Report and Creating an Index

Third Party Digital Asset Management Integration

Sending Additional Files from SAP Netweaver PI to third Party System

How to Add an Attribute to a Case, Record and a Document in NW Folder Management (ex-records Management)

R/3 and J2EE Setup for Digital Signature on Form 16 in HR Systems

AC200. Basics of Customizing for Financial Accounting: General Ledger, Accounts Receivable, Accounts Payable COURSE OUTLINE

Business Requirements... 3 Analytics... 3 Typical Use Cases... 8 Related Content... 9 Copyright... 10

Budget Control by Cost Center

SAP NetWeaver BRM 7.3

Data Source Enhancement Using User Exit

How to Create a Support Message in SAP Service Marketplace

Portfolio and Project Management 5.0: Excel Integration for Financial and Capacity Planning

UI Framework Logo exchange without skin copy. SAP Enhancement Package 1 for SAP CRM 7.0

Sample Universe on Microsoft OLAP Cube

UI Framework Task Based User Interface. SAP Enhancement Package 1 for SAP CRM 7.0

Variable Exit in Sap BI How to Start

Consume an External Web Service in a Nutshell with good old ABAP

UI Framework Simple Search in CRM WebClient based on NetWeaver Enterprise Search (ABAP) SAP Enhancement Package 1 for SAP CRM 7.0

How to Schedule Report Execution and Mailing

Integration of SAP Netweaver User Management with LDAP

Single Sign-On between SAP Portal and SuccessFactors

Integration of Universal Worklist into Microsoft Office SharePoint

User Experience in Custom Apps

USDL XG WP3 SAP use case. Kay Kadner

K in Identify the differences between the universe design tool and the information design tool

ERP Quotation and Sales Order in CRM WebClient UI Detailed View. SAP Enhancement Package 1 for SAP CRM 7.0 CRM Sales - SFA

How-to-Guide: Middleware Settings for Download of IPC Configuration (KB) Data from R/3 to CRM System

Mass Maintenance of Procurement Data in SAP

Application Lifecycle Management

Secure MobiLink Synchronization using Microsoft IIS and the MobiLink Redirector

How To Use the BPC Mass User Management Tool in BPC 10.0 NW

SAP Sustainability Solutions: Achieving Customer Strategies

SAP Central Process Scheduling (CPS) 8.0 by Redwood

BW Workspaces Use Cases

How To Use the ESR Eclipse Tool with the Enterprise Service Repository

Compliant, Business-Driven Identity Management using. SAP NetWeaver Identity Management and SBOP Access Control. February 2010

Using User Exit for Variables in BEx Reporting

Download and Install Crystal Reports for Eclipse via the Eclipse Software Update Manager

How to Configure Access Control for Exchange using PowerShell Cmdlets A Step-by-Step guide

Xcelsius Dashboards on SAP NetWaver BW Implementation Best Practices

LO Extraction Part 1: SD Application Short Overview

Supporting SAP POS Best Practices Setting Log File Sizes and Retention

Project Governance The Role Of The Business Process Owner

Duet Enterprise Add SAP ERP Reports and SAP BI Queries/Workbooks to Duet Enterprise Configuration

Accounts Receivable. SAP Best Practices

SAP Cloud Strategy - Timeless Software. Frank Stienhans on behalf of Kaj van de Loo SAP

Intelligent Business Operations Chapter 1: Overview & Strategy

Installation Guide Customized Installation of SQL Server 2008 for an SAP System with SQL4SAP.VBS

Sales Planning Detailed View. SAP Enhancement Package 1 for SAP CRM 7.0 CRM Sales - SFA

Configuring Single Sign-on for SAP HANA

SAP Business ByDesign Reference Systems. Scenario Outline. SAP ERP Integration Scenarios

Business Process Change Analyzer in SAP Solution Manager 7.1

SAP DSM/BRFPlus System Architecture Considerations

SAP Portfolio and Project Management

Learning Series: SAP NetWeaver Process Orchestration, secure connectivity add-on 1c SFTP Adapter

SAP Service Tools for Performance Analysis

AP Integration with BRFplus VERSION V APRIL SAP AG

SAP NetWeaver BPM Tutorial for Beginners: My Name and Age BPM Tutorial

Query, Read, Create and Update CLOUD FOR CUSTOMER ODATA SERVICE QUERY, READ, CREATE AND UPDATE

Quick Guide EDI/IDoc Interfacing to SAP ECC from External System

Configuring Distribution List in Compliant User Provisioning

OData in a Nutshell. August 2011 INTERNAL

SOP through Long Term Planning Transfer to LIS/PIS/Capacity. SAP Best Practices

Thread Dump Viewer for SAP NetWeaver AS Java

SAP HANA Cloud Integration Document Version: Template Guide for SAP Sales and Operations Planning

How To Configure MDM to Work with Oracle ASM-Based Products

Production Subcontracting (External Processing) SAP Best Practices

RUN BETTER Become a Best-Run Business with Remote Support Platform for SAP Business One

Unified Service Description Language Enabling the Internet of Services

Fixed Asset in SAP Business One 9.0

SAP How-To Guide: Develop a Custom Master Data Object in SAP MDG (Master Data Governance)

BW362. SAP BW powered by SAP HANA COURSE OUTLINE. Course Version: 10 Course Duration: 5 Day(s)

Learning Series: SAP NetWeaver Process Orchestration, business to business add-on EDI Separator Adapter

Finding the Leak Access Logging for Sensitive Data. SAP Product Management Security

Run SAP like a Factory

Ariba Network Integration to SAP ECC

BICS Connectivity for Web Intelligence in SAP BI 4.0. John Mrozek / AGS December 01, 2011

How to Set Up an Authorization for a Business Partner in Customer Relationship Management (CRM) Internet Sales: Sample Case

Next Generation Digital Banking with SAP

How To Improve Your Business Process With Sap

LO Extraction Part 2 Database Update Logic

BUSINESS STRUCTURE: FUNCTIONS AND PROCESSES

Supplier Master Data Governance

Implementing SSO between the Enterprise Portal and the EPM Add-In

Matthias Steiner SAP. SAP HANA Cloud Platform A guided tour

Transcription:

Log Analysis Tool for SAP NetWeaver AS Java Applies to: SAP NetWeaver 6.40, 7.0x, 7.1x, 7.20 and higher Summary Log Analysis is an SAP tool for analyzing list formatted logs and traces in Application Server Java (AS Java). Initially, it was developed for the Logging Cleanup process but it can also be used for analyzing system logs from different scenarios. You can analyze several groups of logs (from several periods of the server operation) at the same time. The tool is applicable for all SAP NetWeaver versions (from 6.40 to 7.20 and higher). Download and test the tool Go to the wiki for more information about Log Analysis Author(s): Nikola Marchev Company: SAP Created on: 16 April 2010 Author Bio Nikola Marchev has been at SAP for 10 years. His career developed from a junior developer through a senior developer to a team lead. He is currently the SCRUM master of the Supportability and Diagnostics team. Nikola is working in the Lifecycle Management (LM) area focusing on logging, configuration and administration of the AS Java. 2010 SAP AG 1

Table of Contents Concept and Usage... 3 Prerequisites... 3 Before rushing to use it, bear in mind that... 3 Scenarios... 3 Analyzing All Logs... 3 Using Old logs... 3 Analyzing Chain Scenarios... 4 Reports....4 Changing Reports Selected by Default... 4 Standard Reports... 4 Special Reports... 5 Example... 5 Copyright... 6 2010 SAP AG 2

Concept and Usage Log Analysis is an SAP tool for analyzing AS Java logs and traces. Initially, it was developed for the Logging Cleanup process but it can also be used for analyzing system logs from different scenarios. You can analyze several groups of logs (from several periods of the server operation) at the same time. Prerequisites You need Java 1.5 version and OS with GUI. The tool is tested only on Windows, but is expected to work also on Unix/Linux systems. Before rushing to use it, bear in mind that: The tool does not have its own logging so you may observe traces and exceptions in the console even when the tool is working properly. The logs are completely filled (20 files for Default Trace or 5 files for the log file sets), so it is possible that some statistics are wrong. This should not be a problem, as all logs are deleted in the begging of logging cleanup scenarios. And if they are filled at the end, this is mostly due to a wrong log configuration (which must be fixed before staring logging cleanup scenarios). In case bugs appear, you can contact nikola.marchev@sap.com, but the request will be treated with low priority. Source code is attached in src.zip, so you can do any changes you need. New requirements will be hardly accepted. Scenarios Analyzing All Logs As the logs cannot be deleted runtime, follow the steps to analyze the logs from the last startup: 1. Open the tool using the la.bat file. In case you do not use Windows, you can check the content of la.bat and create your own sh script file, or do whatever is comfortable for you. 2. Deselect the Chain scenario analysis checkbox. (It is selected by default on start.) 3. Select the current logs folder, keep Old logs empty and select the Output folder. Recommendation: We recommend that you leave it empty or choose a new folder as there will be more that one result files. We also recommend that the output folder is outside the logs folder. 4. Check the reports table and deselect the report you do not need. When a report is selected, you can see its description under the table. 5. Choose the Analyze button and wait until the progress bar reach 100%. Using Old logs Mostly, you are interested in the logs from a particular scenario and you do not want the logs from the startup or previous scenarios to interfere your analysis. In this case, you have to make a copy of the logs before starting your scenario, and one more copy afterwards. For example: stop delete all logs start again get the primary logs deploy a new application get the secondary logs. Then, you can analyze the logs only from the new application deploy. Procedure: 1. Open Log Analysis Tool. 2. Deselect the Chain scenario analysis checkbox. (It is selected by default on start.) 3. In the current logs, select the folder containing the secondary copy of logs, and in Old logs, select the primary copy. 2010 SAP AG 3

4. Select the Output folder. Recommendation: We recommend that you leave it empty or choose a new folder as there will be more that one result files. We also recommend that the output folder is outside the logs folder. 5. Check the reports table and deselect the report you do not need. When a report is selected, you can see its description under the table. 6. Choose the Analyze button and wait until the progress bar reach 100%. Analyzing Chain Scenarios Typical and simple chain scenario is: 1. Stop AS Java (the application server). 2. Delete all logs. 3. Start again AS Java. 4. Get the first copy of logs. 5. Wait an hour. 6. Get the second copy of logs. 7. Stop AS Java. 8. Get the third copy of logs. To make analysis of all 3 copies, you can first analyze the primary logs alone, then - the secondary copy via "Old logs" and finally - the tertiary copy again via "Old logs". In case there are 5 or more scenarios, the process takes more time, so it should be automated. Here is how you can do it: 1. Open Log Analysis Tool. 2. Select the Chain scenario analysis checkbox. Additional progress bar appears. 3. In Current logs, you can select more than one folder - enter the folder names separated by ";" or use the browse ("...") button. Be careful to add scenarios in the correct order; otherwise you will have wrong reports! 4. Select the Output folder. Recommendation: We recommend that you leave it empty or choose a new folder as there will be more that one result files. We also recommend that the output folder is outside the logs folder. 5. Check the reports table and deselect the report you do not need. When a report is selected, you can see its description under the table. 6. Choose the Analyze button and wait until both progress bars reach 100%. Reports Changing Reports Selected by Default A file named "DefaultReports.txt" is available. It contains all names of reports ending with "=ON" or "=OFF". "ON" is case sensitive and means the report will be selected by default. Any other value means the report will not be selected by default. Standard Reports The typical report is a table of type "Severities per CSN component" or "Severities per location" and is stored in files named after the report and with extension.xls. These are not real XLS files, but tab-separated tables that can be opened with MS Excel. Warning: 2010 SAP AG 4

For versions 7.0x, the CSN component is not part of the log and is got from the PackageToCsn.txt mapping file. The mappings are not 100% correct, so in case of errors you can edit the mapping file. Special Reports Excerpts by CSN component and file - this report creates its own folder and stores all logs and traces. A file contains the logs or traces written in one of the original files from the code in responsibility of only one CSN component. If you write a CSN for too many logs, attaching the correct excerpts is a quite helpful hint so that the developer often does not need any additional logs to resolve the problem (CSN). Agreed exceptions - this report gives a number of agreed exceptions of the main KPIs that are described in the AgreedExceptions.txt file. Note that this is a separate report and defining some logs as agreed exception will not exclude them from the other reports. The format of the file is: each line is one exception definition with 3 fields separated by " ", i.e. <Location> <Text> <CSN component>. The text is part of the log message and will be searched by the "contains" filter, so that any log containing the <text> will be treated as an agreed exception from that type. Therefore, we recommend that you write longer texts. Example The log which has to be excluded is the INFO log for staring application, resulted from the deploy. So, the agreed exception definition will looks like com.sap.engine.services.deploy Operation startapp over application BC-JAS-DPL. 2010 SAP AG 5

Copyright Copyright 2010 SAP AG. All rights reserved. No part of this publication may be reproduced or transmitted in any form or for any purpose without the express permission of SAP AG. The information contained herein may be changed without prior notice. Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors. Microsoft, Windows, Excel, Outlook, and PowerPoint are registered trademarks of Microsoft Corporation. IBM, DB2, DB2 Universal Database, System i, System i5, System p, System p5, System x, System z, System z10, System z9, z10, z9, iseries, pseries, xseries, zseries, eserver, z/vm, z/os, i5/os, S/390, OS/390, OS/400, AS/400, S/390 Parallel Enterprise Server, PowerVM, Power Architecture, POWER6+, POWER6, POWER5+, POWER5, POWER, OpenPower, PowerPC, BatchPipes, BladeCenter, System Storage, GPFS, HACMP, RETAIN, DB2 Connect, RACF, Redbooks, OS/2, Parallel Sysplex, MVS/ESA, AIX, Intelligent Miner, WebSphere, Netfinity, Tivoli and Informix are trademarks or registered trademarks of IBM Corporation. Linux is the registered trademark of Linus Torvalds in the U.S. and other countries. Adobe, the Adobe logo, Acrobat, PostScript, and Reader are either trademarks or registered trademarks of Adobe Systems Incorporated in the United States and/or other countries. Oracle is a registered trademark of Oracle Corporation. UNIX, X/Open, OSF/1, and Motif are registered trademarks of the Open Group. Citrix, ICA, Program Neighborhood, MetaFrame, WinFrame, VideoFrame, and MultiWin are trademarks or registered trademarks of Citrix Systems, Inc. HTML, XML, XHTML and W3C are trademarks or registered trademarks of W3C, World Wide Web Consortium, Massachusetts Institute of Technology. Java is a registered trademark of Sun Microsystems, Inc. JavaScript is a registered trademark of Sun Microsystems, Inc., used under license for technology invented and implemented by Netscape. SAP, R/3, SAP NetWeaver, Duet, PartnerEdge, ByDesign, SAP Business ByDesign, and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and other countries. Business Objects and the Business Objects logo, BusinessObjects, Crystal Reports, Crystal Decisions, Web Intelligence, Xcelsius, and other Business Objects products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of Business Objects S.A. in the United States and in other countries. Business Objects is an SAP company. All other product and service names mentioned are the trademarks of their respective companies. Data contained in this document serves informational purposes only. National product specifications may vary. These materials are subject to change without notice. These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as constituting an additional warranty. 2010 SAP AG 6