Using Message Monitoring and Logging

Objective

After completing this lesson, you will be able to use message monitoring and logging

Using Message Monitoring and Logging

In this lesson, the following topics are discussed:

  • Types of Monitoring.
  • Build-In Monitor for Message Monitoring.
  • System Log Files.
  • SAP Cloud Integration API for Message Processing Logs.
  • External Logging.

Types of Monitoring

In addition to the standard built-in monitor, various tools can be used with Cloud Integration Monitoring. It offers different categories including message monitoring, content management, and alert management. In this discussion, we focus on message monitoring using the built-in monitor for messages and the SAP Cloud Integration API for Message Processing Logs API.

There is a helpful overview section that highlights the strengths of each tool.

  • SAP Cloud ALM
  • SAP Solution Manager
  • SAP Focused Run SAP Analytics Cloud
  • SAP Application Interface Framework
  • Cloud Integration OData APIs

Build-In Monitor for Message Monitoring

The lesson applies to the PI_Integration_Developer Role collection, while the exercises use the PI_Administrator Role Collection, which my lead to differences in the presentation. Upon logging in through the monitor menu, you are presented with the following desktop, where any view can be individually configured by clicking on the plus sign.

Screenshot of the Message Monitoring desktop. Information on the views is provided in the following text.

No. 1: Monitor Message Processing, No. 2: Manage Integration Content, No. 3: Manage Security - Admin Place, No. 4: Manage Stores, No. 5: Access Log.

Here, we are only interested in the jump to message monitoring (No. 1) and the Access Log (No. 5). All other areas concern mainly *integration admins*.

Monitor Message Processing Area

The overview displays all processed messages in all deployed integration flows and can be filtered. It also allows direct access to the processed message.

The Message at the Status Column Can Have Different Values

  • Completed
  • Processing
  • Retry
  • Escalated
  • Failed
  • Canceled
  • Discarded
  • Abandoned

Sample with Message Status Completed

  1. Open Monitor ArtifactsOverviewManage Integration Content: Screenshot of the completed message status.

    No. 1: the filter bar, No. 2: a message with status complete.

  2. Choose the message with status complete:Screenshot of the successful message.

    On the right side of the windows, there is another section that provides a wealth of information about message processing. When the log level is set to info, this section serves as the primary monitor.

    However, if the log level is set to trace, you can access the debugging mode of the process flow, which we have already encountered in the exercise.

    Screenshot of the run steps in the integration flow model.

Jump in Directly from Your Integration Flow

A more concise version could be: "You can navigate from the integration flow to the monitor artifacts section using the link Navigate to Manage Integration Content, which opens the monitor in a new tab for easier navigation." This is used in the exercises, and provides access to all information about the processing through various tabs.

Choose Navigate to Manage Integration Content.

This approach is used in the exercises of this training. All information about the processing can be accessed via the different tabs.

System Log Files

The Access Logs section in the Build-In Monitor provides direct access to the System Log files via the System Log Files tile. These files include the HTTP's access and trace, and are retained for 30 days.

Choose the System Log Files tile.

After having opened the tile, you have access to the system logs.

Screenshot of the system logs overview.

SAP Cloud Integration API for Message Processing Logs

The Monitor itself is based on a cloud integration API. To investigate it, navigate to: api.sap.com and search for the SAP Cloud Integration API. Find the APIs here: API.SAP.com.

Choose SAP Cloud Integration > Message Processing Logs.

Open the tile Message Processing LogsAPI Reference. Now, we can examine the API with the Swagger UI.

Choose Message Processing Logs > API Reference.

Try out GET /MessageProcessingLogs.

Screenshot of /MessageProcessingLogs. Information is provided in the next paragraph.

At (No. 1), you find the metadata of this message. At (No. 2), the navigation is on the left to examine specific information.

Configure the API Access

If a user is assigned the PI_Administrator or PI_Integration_Developer Role Collection, they can directly access the API using their credentials.

The URL Scheme is:
https://{{host}}/api/v1/
Sample for the Resource LogFiles

Call the following URL with your own subdomain and region: https://..hana.ondemand.com:443/api/v1/LogFiles

External Logging

To be independent of the size of the SAP Cloud Integration database, and manage a large number of log files, customers can use the external logging feature to send message processing logs to an external system. This section provides instructions on how to enable this feature on your tenant.

Resources

Read more:

Types of Monitoring
Read the whole story: Monitoring tools for Cloud Integration Capability of SAP Integration Suite | SAP Blogs
Build-In Monitor for Message Monitoring
Here is an overview about the sections on monitor start page: Monitoring
Message Status
Find a complete overview and description at: Message Status
External Logging
External Logging

Summary

SAP provides various products to support message monitoring such as SAP Cloud ALM, SAP Solution Manager, SAP Focused Run, SAP Analytics Cloud and more. In addition, SAP Cloud Integration provides its own graphical monitor, which provides a comprehensive view of message processing. The monitor enables users to read system log files and is built on an API, which can be directly called. This API enables users to create their own customized monitor.

Create a Timer Event in Place of the Message Start Event

Business Scenario

You have implemented the initial integration process and now you want to start developing the actual integration process. To do this, you will learn the most important basic functions, such as saving and deploying your developments, and examining them in monitoring.

Task Flow

In this exercise, you will perform the following tasks:

  1. Log on to the Integration Flow DelayedDelivery_Process.
  2. Explore the design view.
  3. Replace the message start event by a timer event.
  4. Version and deploy the integration flow.
  5. Use the monitor to check out the result.

Prerequisites

  • You have a working Integration Suite.
  • You are able to log to the design view of Cloud Integration.
  • You have successfully finished the step Create an Integration Package and Integration Flow.

Outcome of this exercise

A functional integration flow with a timer-based start event.

What do you learn within this exercise?

The objective is to comprehend the concept of events and create/configure a timer event. Also, the user can deploy the integration flow and monitor it.

Task 1: Log on to the Integration Flow DelayedDelivery_Process

Steps

  1. Log on to the integration flow DelayedDelivery_Process via the SAP Integration Suite.

    1. Navigate within the Integration Suite Welcome page to DesignIntegrations and APIsDelayedDelivery_Package_CLD900_Date_NumberArtifactsDelayedDelivery_Process_Number.

      Choose Edit in the iFlow editor.
    2. Choose the Edit button on the top right. The palette with the Integration Flow Components is now active.

      Screenshot of the iFlow editor menu.

Task 2: Explore the Design View

Steps

  1. Explore the palette with Integration Flow Components.

    1. Choose the context sensitive help button on the bottom right. For each iFlow component, you can access the corresponding help directly via this help button.

      Choose the Help button.
    2. All integration flow components are displayed here:

      Screenshot of SAP Help Portal under Configure Integration Flow Components guidance.
    3. Choose the Participant button. Here, you can configure Sender and Receiver aliases.

      Choose Participant > Receiver.You can choose theSender or Receiver Artifact from the Help icon as previously mentioned.
    4. Open the context-sensitive help, navigate to Assign Sender and Receiver Components, and read the description.

      Screenshot of SAP Help Portal showing Assign Sender and Receiver Components guidance.
    5. Choose the Process button.

      Choose Process > Exception Subprocess.
    6. Open the context-sensitive help menu on the left side, navigate to Define Process Shapes, and read the description.

      Screenshot of SAP Help Portal showing Define Integration Processes guidance.
    7. Continue in the same way with the other pallet elements:

      • Event
      • Connectors
      • Mapping
      • Message Transformers
      • Call
      • Message Routing
      • Security Elements
      • Persistence
      • Message Validators
  2. Explore the navigation bar on the top.

    1. Choose the Edit button.

      Screenshot of the iFlow editor settings: Edit, Configure, Deploy, and Delete.Before you can work on the integration flow again, you must set the integration flow into the edit mode.
    2. Explore the navigation bar on the top.

      Screenshot of the iFlow editor settings: Save, Save as version, Deploy, Cancel, and Delete.
    3. Choose the Save button. You get a notification. The navigation bar does not change.

      Choose Save.
    4. Choose the Save as version button.

      A pop-up to enter values for a new version displays.

    5. A new version is always necessary if you have a working integration flow that you may want to jump back to.

      Choose Save as version.
    6. The navigation bar changes. Save and Save as version button are substituted with the Edit button. A new button, Configure displays.

    7. The Deploy button, we use in the next part of the exercise.

    8. The Cancel button and the Delete button are self-explanatory.

      Screenshot of the iFlow editor's optional settings: Deploy, Cancel, and Delete.
  3. Explore the navigation elements on the right side. These elements help you to fit your work within the screen.

    1. Choose the center of the No. 1. The integration flow is centered.

      The graphic shows No. 1 and No.2 in the navigation menu.
    2. Choose the + and - symbols of the No. 2 to zoom your integration flow.

  4. Explore the navigation bar on the bottom. This element helps you to work efficiently and with high performance.

    1. Double-click on the white area, somewhere outside the integration flow.

      Double-click on the white area.
    2. The configuration bar displays at the lower part of the screen. It is helpful for configuring the integration flow components, but takes up a lot of space on the screen.

    3. If you do not choose any special components, the configuration of the entire integration flow is called.

      Screenshot of the Integration Flow settings.
    4. To hide the configuration bar, choose the minus icon on the right-side of the configuration bar.

    5. Also, try the Maximize button.

      Screenshot of how to work into the iFlow editor.
    6. Also, try the Show Overview button.

      Choose the Expand icon in the iFlow settings.

Task 3: Replace the Message Start Event by a Timer Event

Steps

  1. Replace the message start event by a timer event.

    1. Ensure that the process is in editing mode.

    2. Choose the Event button and scroll down and find the Timer entry.

      Choose Event > Timer to add flow steps into the iFlow editor.
    3. To add a timer event to your integration flow, choose the Timer symbol and navigate along the blue line that connects the Start and End event in the swim lane of your integration flow. Once the blue line becomes thicker, position the timer symbol on the line, and select it using the mouse. Or you can use the navigation menu by clicking on the blue line, then choosing Add Flow Step and searching for the flow step you want to use.

      Screenshot of the interactive context menu. Information is provided in the following text.
    4. The integration flow component can be seen to be placed exactly at this point by the input arrow pointing to the currently placed integration flow component.

    5. To hide the context menu, choose the white area within the swim lane.

      Screenshot of the iFlow editor overview.
    6. Choose the Start event to display the context menu.

      Choose the trash can to delete an event.
    7. Choose the trash can to remove the Start event.

      Screenshot of the iFlow editor overview.
    8. Double-click on the Start Timer 1 symbol to display the configuration bar as previously described.

    9. Choose the Scheduler tab. Accept the settings.

      Choose Scheduler to set timer event settings.

Task 4: Version and Deploy the Integration Flow

Steps

  1. Version your work.

    1. Before deploying, we always create a new version to ensure that we can revert to the previous version if any issues occur.

    2. Choose the Save as version button on top, and enter a comment, for example, Add and configure a timer.

      Choose Save.
    3. The top navigation bar changed, as previously described. The version number is set automatically.

      Choose Deploy.
  2. Deploy your integration flow for the first time.

    1. Choose the Deploy button. You will get a demand. Confirm this by choosing the Yes button.

      To set your confirmation, choose Yes.
    2. You will get a second notification. Confirm it by choosing the OK button.

      Screenshot of the successful deployment message.
    3. Your integration flow is compiled and packed as a *jar file. This *jar file is called from the java SDK.

Task 5: Use the Monitor to Check Out the Result

Steps

  1. Jump to the monitor from your integration flow – the easy way.

    1. Access the configuration bar of the Integration Flow as previously described. Choose the Deployment Status tab.

      Choose Deployment Status > Navigate to Mange Integration Content.

      Note

      The menu options display when you click in the white canvas space as previously mentioned.

    2. After deploying your integration flow, you will receive an active link Navigate to Manage Integration Content that you can use to access the monitor.

    3. Choose the Navigate to Manage Integration Content link and a new tab opens in your browser, displaying the Overview page within the Manage Integration Content section of the monitor area.

    4. A new tab will always open when you choose this link.

      Screenshot of successful integration flow, its status and link for monitoring.
    5. You will find your integration flow, its status, and a link for monitoring your integration flow.

    6. Choose the active Monitor Message Processing link. You are switched to a new page OverviewMonitor Message Processing.

      Choose Completed.
    7. Choose the most recent message with a Completed status to navigate further into the process.

      Go back to the Artifact editor.
    8. The details about the process displayed on the right are limited because the debug level is set to info.

    9. There is a second introduction to monitoring.

    10. Jump back to your integration flow by choosing Navigate to Artifact Editor.

  2. Access the monitor from the left-side navigation bar - a more complex method.

    1. On the left side, choose MonitorIntegrations and APIs.

      Choose Monitor > Integrations and APIs.
    2. The Overview page opens.

      Screenshot of the Manage Integration Content.
    3. Choose the Manage Integration Content tile. Now, the OverviewManage Integration Content page opens. It can also be accessed directly from the integration flow, as previously described.

      Screenshot of the successful message.
    4. Let's try deploying and monitoring using the described procedure several times, as it is a common practice going forward.

    5. The key distinction between the two methods of accessing the monitor is that, in the first case, the monitor opens in a separate browser window, making it easy to switch back and forth between the integration flow and monitor.

Log in to track your progress & complete quizzes