Skip to main content

Overview

This integration uses a topic, subscription, and log sink to capture Google Cloud CDN logs and forward them to the Profound Agent Analytics platform.

Prerequisites

  • A GCP account with Google Cloud CDN enabled
  • Access and edit permissions to the GCP project
  • API endpoint details for the Profound Agent Analytics platform

Configuration

GCP setup
1

Step 1

Sign in to the GCP Console and navigate to Topics. To find it, search for ‘topics’ in the search bar.
2

Step 2

Create a new topic by clicking the Create Topic button near the top.Create a topicGive your topic a name and click Create.
3

Step 3

Navigate to the Subscriptions tab on the left sidebar. Click the Create Subscription button near the top.Create subscription
  1. Give your subscription a name.
  2. Select the topic you created in step 2.
  3. Use delivery type Push
    • Enter https://artemis.api.tryprofound.com/v1/logs/gcp_log_sink as the endpoint
    • Enable authentication
    • Paste the service account this subscription will use into the Service account field
    • Leave Audience blank
    • Enable payload unwrapping
4

Step 4

Add retention policy configurations at your discretion.Retention policy
5

Step 5

Click the Add a Transform button. Enter profound_agent_analytics_reduce as the function name.Paste the following code into the function body:
This function drops extraneous fields before sending logs to Profound. This reduces log export volume, improves performance, and enhances data security.
Transform functionClick Validate to ensure the function is valid.
6

Step 6

Add additional configurations at your discretion.Additional configurationsClick Create to create the subscription.
7

Step 7

Navigate to the Log Router tab by searching ‘log router’ in the search bar. Click the Create sink button near the top.Give your sink a name and optional description.
8

Step 8

In the Sink destination section, select Cloud Pub/Sub topic as the sink service. In the sink destination field, select the topic you created in step 2.Sink service
9

Step 9

Add the following filters to your sink in the Choose logs to include in sink section.
Replace the placeholders with your load balancer and URL map names. This is only an example.
Sink filtersFinally, click Create sink at the bottom.
If you have multiple load balancers and URL maps, modify the filters to include multiple resources:
10

Step 10

If you’re registering multiple GCP domains with Profound, create a separate service account for each domain. Profound uses the account to decode the JWT token and confirm the source domain.
Navigate back to Profound. On the Agent Analytics Setup page, paste the same service account email you used in step 3 into the GCP Service Account field. Click Save after pasting the email.Service accountWhen Profound receives data, click Complete setup.
Google Cloud CDN now sends real-time logs to Profound. Data typically appears in your dashboard within a few minutes.

Troubleshooting

  • Ensure you have shared the same service account email with Profound that you used to create the subscription.
  • Check the Logs tab in Profound to verify that Profound is receiving the logs.
  • Verify the service account has the necessary permissions to access the topic as pub/sub.
  • Verify the topic is created and active.
  • Verify the subscription is created and active.

Additional resources