IBM Cloud Docs
Using virtual private endpoints for VPC to privately connect to IBM Cloud Logs Routing

Using virtual private endpoints for VPC to privately connect to IBM Cloud Logs Routing

IBM Cloud® Virtual Private Endpoints (VPE) for VPC enables you to connect to IBM Cloud Logs Routing from your VPC network by using the IP addresses of your choosing, allocated from a subnet within your VPC.

VPEs are virtual IP interfaces that are bound to an endpoint gateway created on a per service, or service instance, basis (depending on the service operation model). The endpoint gateway is a virtualized function that scales horizontally, is redundant and highly available, and spans all availability zones of your VPC. Endpoint gateways enable communications from virtual server instances within your VPC and IBM Cloud® services on the private backbone. VPE for VPC gives you the experience of controlling all the private addressing within your cloud. For more information, see About virtual private endpoint gateways.

VPE for VPC provides private connectivity to IBM services such as IBM Cloud Logs Routing, but within the VPC network of your choosing.

IBM® Cloud Logs Routing provides API endpoints for both management functions, such as creating (onboarding) as a tenant, and ingestion of logs. These API endpoints are separate endpoints that are accessed by using specific URLs in each supported region. You can find the endpoints for each supported region here.

To connect to IBM Cloud Logs Routing in a region through private endpoints, you must define a VPE for managing the service and a different VPE for ingesting logs into the service so that you can connect to IBM Cloud Logs Routing within the VPC network of your choosing.

Before you begin

Before you target a virtual private endpoint for IBM Cloud Logs Routing, you must complete the following tasks:

Setting up a VPE for VPC

To configure a virtual private endpoint in a region to enable connectivity to the IBM Cloud Logs Routing service, follow these steps:

  1. Select the Menu icon Menu icon, and click Infrastructure > VPC Layout > Network > Virtual private endpoint gateways. Then, click Create.

    The New virtual private endpoint gateway for VPC page is displayed.

  2. Enter the details of the gateway.

    • Enter a name.

    • Choose a resource group. By default, default is selected.

    • Add any tags and access management tags.

    • Select the Virtual Private Cloud that the gateway is attached to.

  3. In the Security groups section, select at least one and at most five security groups to control traffic at the networking level.

  4. In the request connection to a service, complete the following steps:

    • Select the Cloud service offering IBM Cloud Logs Routing.

    • Select a region. The VPE gateway region and the Cloud service region must be the same. For more information, see Locations.

    • Select an endpoint. You can configure a management and an ingestion VPE for IBM Cloud Logs Routing per region.

      For example, you can select ingester.private.us-east.logs-router.cloud.ibm.com to allow routing of logs within this region by using this VPE endpoint.

      When you create a VPE gateway by using the CLI or API, you must specify a Cloud Resource Name (CRN) for IBM Cloud Logs Routing. Review the following tables for the available CRNs by region. You can configure a management and an ingestion VPE for IBM Cloud Logs Routing per region. For more information on CRN values, see Cloud Resource Name (CRN) for IBM Cloud Logs Routing.

  5. Bind a reserved IP address to the endpoint gateway.

  6. View the created VPE gateway that is associated with the IBM Cloud Logs Routing. For more information, see Viewing details of an endpoint gateway.

Now from your VPC, you can access IBM Cloud Logs Routing privately through the gateway.

For more information, see Create an endpoint gateway.

Using your VPE for IBM Cloud Logs Routing

After you create an endpoint gateway for IBM Cloud Logs Routing, follow these steps to connect to IBM Cloud Logs Routing:

Using the VPE with the IBM Cloud Logs Routing API

After creating an endpoint gateway for the IBM Cloud Logs Routing service, use the service endpoints FQDN private.us-east.logs-router.cloud.ibm.com in the URL to access the service.

For example:

curl -X GET -H "Authorization: Bearer ${IAM_TOKEN}" https://management.private.us-east.logs-router.cloud.ibm.com:443/v1/tenants

More resources