All Products
Search
Document Center

ApsaraMQ for Kafka:Query client IP addresses

Last Updated:Nov 14, 2024

You can use the client IP address query feature provided by ApsaraMQ for Kafka to query the IP addresses of the clients that send and receive messages. This helps you troubleshoot issues and track consumption.

Usage notes

  • The IP information is obtained from the sampled logs generated for the requests that the client sends to the broker by calling the API operations of ApsaraMQ for Kafka.

  • Statistics refers to the number of connections on different ports of an IP address during a specific period of time.

  • If the broker is not of the latest minor version, the sampled logs may not be accurate. This may cause inaccurate IP information. Therefore, we recommend that you update your broker to the latest version at the earliest opportunity. For more information, see Minor version updates.

Procedure

  1. Log on to the ApsaraMQ for Kafka console. In the Resource Distribution section of the Overview page, select the region where the ApsaraMQ for Kafka instance that you want to manage resides.

  2. In the left-side navigation pane, click Instances.

  3. On the Instances page, click the name of the instance that you want to manage.

  4. In the left-side navigation pane, click Client IP Address Query. Click the By Instance, By Topic, or By Group tab based on your business requirements. imageThe following figure shows a sample query result.

    image