Contact Free trial Login

Anypoint Monitoring Log Points

The Anypoint Monitoring log points feature enables you to interactively extract data from running managed APIs. You can specify properties (for example, the host and method in the request header) in your managed API for which to generate logs without having to write code or redeploy your application. This helps you troubleshoot without having to restart the application.

For example, you can specify a cookie header in an API to see if an injection attack is in progress. The log data for the specified cookie header is automatically displayed in real time on the Logs page.

Prerequisites

To use this feature, you must have the following:

  • A Titanium subscription to Anypoint Monitoring and Mule 3.8.5 or later

  • The API Manager > Manage Policies permission

Supported APIs

Log points is supported on the following types of APIs:

  • Basic endpoint APIs (CloudHub and hybrid)

    • CloudHub

    • Hybrid

  • Endpoint with Proxy APIs

    • CloudHub proxy

    • Hybrid proxy

All basic endpoint APIs are displayed in the selectors regardless of whether or not the registered API has a supported Mule runtime engine version. If a log point is saved for a basic endpoint API with an unsupported version, the application policy fails.

Supported Mule Runtime Engine Versions

  • Mule 3 versions 3.8.5 and later

  • Mule 4 versions 4.1.1 and later

Enable API Log Points

  1. Sign into Anypoint Platform and navigate to Anypoint Monitoring.

  2. In the menu on the left, click Log Points.

  3. Select the following, then click Select:

    • Environment - The environment the API is running in.

    • Resource name - The name of the API.

    • Version/Instance - The version and instance of the API.

      log points select api
  4. Select the Request points to log and monitor.
    You can monitor the following request header log points:

    • User Agent

    • Path

    • Host

    • Method

    • Remote Access

    • Accept

    • Accept Encoding

    • Accept Language

    • Cookie

    • Referrer
      You can click the blue box to the left of Header, to select all log points.
      Select Body to monitor the Request Body.

      enable log points select points
  5. Select the Response points to log and monitor.
    You can monitor the following request header log points:

    • Status Code

    • Connection

    • Date

    • Set-Cookie

    • Pragma

      You can click the blue box to the left of Header to select all log points. Select Body to monitor the Response Body.

  6. Click Save & Apply.
    A message that your configuration has been applied appears at the top of the page with a View API Logs link.

  7. Click the View API Logs link to view the logs for the selected log point.
    The logs may take a moment to appear.

    view api logs link
    When you are finished monitoring API log points, you should disable the log point monitoring, as it can impact your application’s performance.

We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used and to tailor advertising. You can read more and make your cookie choices here. By continuing to use this site you are giving us your consent to do this.