Data Manager

User Manual

This documentation does not apply to the most recent version of Data Manager. For documentation on the most recent version, go to the latest release.

GCP prerequisites for Data Manager

A GCP admin completes prerequisites ahead of time so that a Splunk Admin can use Data Manager for onboarding. Alternatively, a GCP admin can complete the entire process. Data Manager contains optional steps to guide you through this choice.

Common Information Model prerequisites

Data Manager supports Common Information Model (CIM) normalization for Google Cloud platform inputs when the Splunk Add-on for Google Cloud Platform is installed on the part of your Splunk Cloud deployment that performs the parsing or search-time functionality for your data. This add-on must be installed, but does not need to be configured.

Download version 4.1.0 or later of the Splunk Add-on for Google Cloud Platform from Splunkbase.

For more information, see the Splunk Add-on for Google Cloud Platform documentation manual.

For information on the CIM, see the Overview of the Splunk Common Information Model topic in the Common Information Model Add-on manual.

Permissions prerequisites

GCP permissions are required in order to set up the prerequisites needed to onboard GCP logs. If you or your GCP administrator encounter any permission issues, verify that the GCP user has the associated permissions to perform the corresponding actions on GCP.

  1. Navigate to console.cloud.google.com, and log into the Google account where you want to configure your GCP service accounts, and set up your GCP credentials.
  2. Create a role, if you have not already done so and enable the following permissions that the service account needs to run the Terraform template:
    dataflow.jobs.cancel
    dataflow.jobs.create
    dataflow.jobs.get
    iam.roles.get
    iam.roles.create
    iam.roles.list
    iam.roles.undelete
    iam.roles.update
    iam.roles.delete
    iam.serviceAccounts.actAs
    logging.logEntries.create
    logging.sinks.create
    logging.sinks.delete
    logging.sinks.get
    pubsub.subscriptions.consume
    pubsub.subscriptions.create
    pubsub.subscriptions.delete
    pubsub.subscriptions.get
    pubsub.subscriptions.update
    pubsub.topics.attachSubscription
    pubsub.topics.create
    pubsub.topics.delete
    pubsub.topics.get
    pubsub.topics.getIamPolicy
    pubsub.topics.setIamPolicy
    resourcemanager.projects.get
    resourcemanager.projects.getIamPolicy
    resourcemanager.projects.setIamPolicy
    storage.buckets.create
    storage.buckets.delete
    storage.buckets.get
    storage.objects.create
    storage.objects.delete
    storage.objects.get
    storage.objects.list
    
  3. Grant your service account access to the projects where you want to collect data.
  4. (Optional) Grant users access to your service account.
  5. Create a service account for Terraform provisioning.
    Ask your GCP admin to create a service account for Data Manager to use to query the status of your deployment. No IAM role needs to be attached to this service account at this point.
    When you run the terraform template after the input is created, an IAM role for each project with the correct permission set will be attached to this service account.
  6. Grant your service account access to the projects where you want to collect data.
  7. (Optional) Grant users access to your service account.
  8. Enable APIs in your Google Cloud project.
    Ask your GCP admin to enable the following services/API for the GCP project that will be used to send your data to Splunk Cloud:
    • Cloud Pub/Sub API
    • Compute Engine API
    • DataFlow API
    • IAM API
  9. Create a Google Cloud Storage (GCS) bucket where the terraform state will be stored.
    Note: If you have already created a bucket that you can use for Terraform state management, you can skip this step.


Roles prerequisites

The following are default GCP roles with above permissions, ensure at least one of the following is bound to the service account or user trying to enable GCP service APIs:

Roles

  • Service Config Editor
  • Editor
  • Owner
  • Storage Admin


GCP data source prerequisites

Some GCP data sources only need to be selected during onboarding, but others need to be configured ahead of time.

Configure Data Access Logs

If you select Data Access Logs as a data source, see https://cloud.google.com/logging/docs/audit/configure-data-access on Google Cloud.

Configure Access Transparency Logs

If you select Access Transparency Logs as a data source, see https://cloud.google.com/cloud-provider-access-management/access-transparency/docs/enable on Google Cloud.

Onboarding best practices

When creating a data input for the folders or organization in your GCP deployment, verify that a child folder or project in the same deployment has not yet already been configured in this input or any other input. This can result in data duplication.

Stages of onboarding

Data Manager walks you through various stages of onboarding your GCP accounts.

The onboarding steps are described in detail within Data Manager. The details are not duplicated here.

Onboard a GCP account

Onboarding a GCP account consists of the following stages:

  1. Configure the GCP prerequisites in the data account.
  2. Configure the data account, regions, and data sources.
  3. Create a data ingestion Terraform stack.

This image shows an example of a GCP account onboarding flow.

Last modified on 15 December, 2023
Configure custom tags in Data Manager   Onboard GCP in Data Manager

This documentation applies to the following versions of Data Manager: 1.8.3


Was this topic useful?







You must be logged into splunk.com in order to post comments. Log in now.

Please try to keep this discussion focused on the content covered in this documentation topic. If you have a more general question about Splunk functionality or are experiencing a difficulty with Splunk, consider posting a question to Splunkbase Answers.

0 out of 1000 Characters