> ## Documentation Index
> Fetch the complete documentation index at: https://docs.levelblue.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Complete the GCP Sensor Setup

After you initialize a new USM Anywhere Sensor, you must configure it in the Setup Wizard. As you configure the sensor, you can enable USM Anywhere to perform specific actions through scheduled jobs, such as running an asset discovery scan or collecting <Tooltip tip="Information collected and displayed that describes a single system or user level activity that took place.">security events</Tooltip> from a predefined cloud storage location.

## About Accessing the Setup Wizard

The Setup Wizard is accessible under the following circumstances:

* After you first log in to the USM Anywhere web user interface (UI) and see the Welcome to USM Anywhere page, click **Get Started** to launch the Setup Wizard.
* If you have already registered one USM Anywhere Sensor but did not complete the setup before logging out, the USM Anywhere Sensor Configuration page launches automatically at your next login to remind you to finalize configuration of the sensor. From that page, you click **Configure** to launch the Setup Wizard and complete the sensor configuration.
* If you registered an additional USM Anywhere Sensor, but did not complete the setup, the Sensors page displays an error (<img src="https://mintcdn.com/levelblue-5324744e/T1hrc0hK0aza_DCc/images/central-any-app/buttons/icon-error.svg?fit=max&auto=format&n=T1hrc0hK0aza_DCc&q=85&s=f0f3bf45c2df834004d2d645cd37a3fd" style={{ height: "1em", verticalAlign: "middle", display: "inline-block", margin: "0 0.25em" }} width="20" height="20" data-path="images/central-any-app/buttons/icon-error.svg" />) in the Configured column. See [Sensors Page Overview](../../user-guide/sensor-management/sensors-navigation) for more information.

  Go to **Data Sources > Sensors**, and then click the sensor name to complete the sensor configuration. See [USM Anywhere Sensor Management](../../user-guide/sensor-management/sensor-management) for more information.

## Configuring the Sensor in the Setup Wizard

The first time you log in from the Welcome to USM Anywhere web page, the Setup Wizard prompts you to complete the configuration of the first deployed sensor. Thereafter, you can use the Sensors page to configure an additional sensor or to change the configuration options for a deployed sensor. See [Sensors Page Overview](../../user-guide/sensor-management/sensors-navigation) for more information.

<Frame>
  <img src="https://mintlify.s3.us-west-1.amazonaws.com/levelblue-5324744e/images/usm-anywhere/deployment-guide/gcp/0%20gcp%20configure%20sensors%20navigation_220x400.webp" />
</Frame>

The Google Cloud Platform Configuration page provides information about the asset discovery that occurs upon the initial deployment of the USM Anywhere Sensor, summarizing the number of instances, instance types, and regions in your environment.

<Frame>
  <img src="https://mintlify.s3.us-west-1.amazonaws.com/levelblue-5324744e/images/usm-anywhere/deployment-guide/gcp/1%20gcp%20configuration%20-%20trimmed.webp" />
</Frame>

Click **Next** to proceed with the Setup Wizard and complete additional configuration on each page.

<AccordionGroup>
  <Accordion title="GCP Log Collection">
    USM Anywhere automatically discovers a number of out-of-box logs as long as you have enabled them within your GCP subscription. See [GCP Log Discovery and Collection](gcp-log-collection) in USM Anywhere for more information about these logs and how they function within the GCP environment.

    **To enable the out-of-box log collection jobs**

    1. Locate the job you want to enable and click <img src="https://mintcdn.com/levelblue-5324744e/jTImDFBjBH7kNNGB/images/central-any-app/buttons/toggle-off-new.svg?fit=max&auto=format&n=jTImDFBjBH7kNNGB&q=85&s=dc4c4a7dccb948a148d89dba0d819ee6" style={{ height: "1em", verticalAlign: "middle", display: "inline-block", margin: "0 0.25em" }} width="32" height="16" data-path="images/central-any-app/buttons/toggle-off-new.svg" />.

       This turns the icon green (<img src="https://mintcdn.com/levelblue-5324744e/jTImDFBjBH7kNNGB/images/central-any-app/buttons/toggle-on-new.svg?fit=max&auto=format&n=jTImDFBjBH7kNNGB&q=85&s=d1abedd503a1aba0e86f7c6ccf352228" style={{ height: "1em", verticalAlign: "middle", display: "inline-block", margin: "0 0.25em" }} width="32" height="16" data-path="images/central-any-app/buttons/toggle-on-new.svg" />).

           <Frame>
             <img src="https://mintlify.s3.us-west-1.amazonaws.com/levelblue-5324744e/images/usm-anywhere/deployment-guide/gcp/2%20log%20collection%20trimmed.webp" />
           </Frame>

    2. Click **Next**.
  </Accordion>

  <Accordion title="GCP Log Subscriptions">
    USM Anywhere uses subscriptions to collect log data from your environment and produce the corresponding events and alarms. See [GCP Log Discovery and Collection](gcp-log-collection) in USM Anywhere for more information about enabling these subscriptions and how they function within the GCP environment.

    **To enable the out-of-box log subscriptions**

    1. Locate the job you want to enable and click **enable**.

       This displays the text as **disable**.

           <Frame>
             <img src="https://mintlify.s3.us-west-1.amazonaws.com/levelblue-5324744e/images/usm-anywhere/deployment-guide/gcp/3%20log%20subscriptions%20trimmed%20blurred_350x223.webp" />
           </Frame>

    If you don't yet have any subscriptions in your GCP environment, this table will be empty at this step. The steps in [GCP Log Discovery and Collection in USM Anywhere](gcp-log-collection) will create the subscriptions your sensor needs for Google Cloud Pub/Sub.

    <Note>
      **Note:** Unless you have previously configured your GCP environment for Cloud Pub/Sub integration (as described in [GCP Log Discovery and Collection in USM Anywhere](gcp-log-collection)), this step will discover any subscriptions that currently exist in your GCP environment. While you may have valid subscriptions already created in your environment for other services, you can only use a subscription created with the configuration described here for Cloud Pub/Sub.
    </Note>
  </Accordion>

  <Accordion title="Active Directory">
    The optional <Tooltip tip="Active Directory (AD) is a directory service that Microsoft developed for Windows domain networks.">Active Directory (AD)</Tooltip> setup page configures USM Anywhere to collect information from your AD account. To monitor Microsoft Windows systems effectively, USM Anywhere needs access to the AD server to collect inventory information.

    <Note>
      **Note:** This configuration is only for one AD server. If you want to scan different AD servers, you must create an AD scan job for each of them. See [Scheduling Active Directory Scans from the Job Scheduler Page](../data-source/asset-scan-active-directory) for more information.
    </Note>

    LevelBlue recommends that you create a dedicated AD account with membership in the Domain Admins group to be used by USM Anywhere to log in to the Windows systems. You also need to activate Microsoft Windows Remote Management (WinRM) in the domain controller and in all the hosts that you want to scan. You can do this by using a group policy for all the systems in your AD.

    <Warning>
      **Important:** Before this feature is fully functional, you must configure access to the USM Anywhere Sensor on the AD server. See [Granting Access to Active Directory for USM Anywhere](../setup/granting-access-to-ad-from-usma) for more information.
    </Warning>

    **To complete the AD access configuration**

    1. Provide the AD credentials for USM Anywhere:

       * **Active Directory IP Address**: Enter the IP address for the AD server.
       * **Username**: Enter your username as admin of the account.
       * **Password**: Enter your admin's password.
       * **Domain**: Enter the domain for the AD instance.

           <Frame>
             <img src="https://mintcdn.com/levelblue-5324744e/AfONLtCE7tRfJ2MJ/images/usm-anywhere/deployment-guide/shared-procedures/activedirectory.webp?fit=max&auto=format&n=AfONLtCE7tRfJ2MJ&q=85&s=a8fff68ed5847147545f3d8c9d11ea07" width="1612" height="1305" data-path="images/usm-anywhere/deployment-guide/shared-procedures/activedirectory.webp" />
           </Frame>

    2. Click **Scan Active Directory**.

       After a successful launch of the scan, a confirmation dialog box opens.

           <Frame>
             <img src="https://mintcdn.com/levelblue-5324744e/qGB1vLsu4TWqy-rq/images/usm-anywhere/deployment-guide/shared-procedures/scansuccessfullylaunched.webp?fit=max&auto=format&n=qGB1vLsu4TWqy-rq&q=85&s=56db98ec3a31a2c45efefe2c2e6dc903" width="400" height="224" data-path="images/usm-anywhere/deployment-guide/shared-procedures/scansuccessfullylaunched.webp" />
           </Frame>

    3. Click **Accept**.

       The scan continues in the background.

       Upon completion, another dialog box opens and provides information about the number of assets USM Anywhere discovered. It also prompts you to decide if you want to scan for hosts and services running in your environment.

           <Frame>
             <img src="https://mintcdn.com/levelblue-5324744e/adIUcnBkryqG7nEE/images/usm-anywhere/deployment-guide/azure/scan-prompt-azure.webp?fit=max&auto=format&n=adIUcnBkryqG7nEE&q=85&s=147c2024d05c01ef2bfd140bbcb47b35" width="625" height="223" data-path="images/usm-anywhere/deployment-guide/azure/scan-prompt-azure.webp" />
           </Frame>

    4. (Optional.) If you want to scan for other hosts and services, click **OK**.

    5. Click **Next** after the scan ends.
  </Accordion>

  <Accordion title="Log Management">
    On the Log Management page are syslog port numbers. (These ports are the same for all USM Anywhere Sensors.)

    USM Anywhere collects third-party device, system, and application data through <Tooltip tip="An industry standard message logging system that is used on many devices and platforms.">syslog</Tooltip> over UDP on port 514 and over TCP on ports 601 or 602 by default. It collects <Tooltip tip="Transport layer security. Successor to Secure Sockets Layer (SSL) protocol. Provides security for communication over the Internet between client and server applications.">Transport Layer Security (TLS)-encrypted</Tooltip> data through TCP on ports 6514 or 6515 by default. These ports support the RFC 3164 and RFC 5424 formats. To configure any third-party devices to send data to USM Anywhere, you must provide the IP address and the port number of your USM Anywhere Sensor.

    <Frame>
      <img src="https://mintcdn.com/levelblue-5324744e/qGB1vLsu4TWqy-rq/images/usm-anywhere/deployment-guide/shared-procedures/logmanagement_350x224.webp?fit=max&auto=format&n=qGB1vLsu4TWqy-rq&q=85&s=5bf17db1b6d258f9a877880240609e78" width="350" height="224" data-path="images/usm-anywhere/deployment-guide/shared-procedures/logmanagement_350x224.webp" />
    </Frame>

    **To enable log collection and configure your log management**

    1. Make sure that you have granted the necessary permissions for your OS to allow USM Anywhere to access its logs. You can also integrate a wide variety of data sources to send log data over syslog to the USM Anywhere Sensor.

       To learn how to configure your operating systems and supported third-party devices to forward syslog log data, see the following related topics:

       * [The Syslog Server Sensor App](../data-source/app-sensor-syslog): Log collection (UDP, TCP, and TLS-encrypted TCP) from rsyslog
       * [Collecting Linux System Logs](../setup/collecting-logs-linux): Log collection from a Linux system
       * [Collecting Windows System Logs](../setup/collecting-logs-windows): Log collection from a Windows system
       * Go to the specific BlueApp in USM Anywhere for instructions about syslog forwarding

           <Note>
             **Note:** Because the log scan can take some time, you might not see all of the automatically discovered log sources immediately after deploying the first USM Anywhere Sensor.
           </Note>

    2. When you have finished the log collection setup and integrated any needed plugins, verify that the data transfer is occurring.

    3. Click **Next** when this step is complete.
  </Accordion>

  <Accordion title="OTX">
    LevelBlue Labs™ Open Threat Exchange® (OTX™) is an open information-sharing and analysis network providing users with the ability to collaborate, research, and receive alerts on emerging threats and indicators of compromise (IoCs) such as IP addresses, file hashes, and domains.

    You must have an OTX account to receive alerts based on threats identified in OTX. This account is separate from your USM Anywhere account. Go to [The World’s First Truly Open Threat Intelligence Community](https://otx.alienvault.com/) to create an OTX account.

    <Frame>
      <img src="https://mintcdn.com/levelblue-5324744e/qGB1vLsu4TWqy-rq/images/usm-anywhere/deployment-guide/shared-procedures/openthreatexchange_350x315.webp?fit=max&auto=format&n=qGB1vLsu4TWqy-rq&q=85&s=273907b2c669c9389ad7c419ecc4739d" width="350" height="315" data-path="images/usm-anywhere/deployment-guide/shared-procedures/openthreatexchange_350x315.webp" />
    </Frame>

    <Note>
      **Note:** If you do not already have an OTX account, click the **Sign up** link. This opens another browser tab or window that displays the OTX signup page. After you confirm your email address, you can log in to OTX and retrieve the unique API key for your account.

      See [Open Threat Exchange® and USM Anywhere](../../user-guide/otx/open-threat-exchange) for more information about OTX integration in USM Anywhere.
    </Note>

    **To enable USM Anywhere to evaluate event data against the latest OTX intelligence**

    1. Log in to OTX and open the API page ([https://otx.alienvault.com/api](https://otx.alienvault.com/api)).

    2. In the DirectConnect API Usage pane, click the <img src="https://mintcdn.com/levelblue-5324744e/3onSl9Btf_NxCVCb/images/usm-anywhere/icons-buttons/copy-otx_20x20.png?fit=max&auto=format&n=3onSl9Btf_NxCVCb&q=85&s=16525ca698fea280d5361fc74d481b00" style={{ height: "1em", verticalAlign: "middle", display: "inline-block", margin: "0 0.25em" }} width="20" height="20" data-path="images/usm-anywhere/icons-buttons/copy-otx_20x20.png" /> icon to copy your unique OTX connection key.

           <Frame>
             <img src="https://mintcdn.com/levelblue-5324744e/qGB1vLsu4TWqy-rq/images/usm-anywhere/deployment-guide/shared-procedures/otxapikey.webp?fit=max&auto=format&n=qGB1vLsu4TWqy-rq&q=85&s=3a87c9c3e5277720279aabd922f11769" width="930" height="854" data-path="images/usm-anywhere/deployment-guide/shared-procedures/otxapikey.webp" />
           </Frame>

    3. Return to the Open Threat Exchange (OTX) page of the USM Anywhere Sensor Setup Wizard and paste the value in the OTX Key text box.

           <Frame>
             <img src="https://mintcdn.com/levelblue-5324744e/qGB1vLsu4TWqy-rq/images/usm-anywhere/deployment-guide/shared-procedures/otxcopiedcode.webp?fit=max&auto=format&n=qGB1vLsu4TWqy-rq&q=85&s=3e0cffde2e42c3e1b00c0c256ff2dfe9" width="1585" height="1412" data-path="images/usm-anywhere/deployment-guide/shared-procedures/otxcopiedcode.webp" />
           </Frame>

    4. Click **Validate OTX Subscription Key**.

       With a successful validation of the key, the status at the top of the page changes to "Valid OTX key".

    5. Click **Next** when this task is complete.
  </Accordion>

  <Accordion title="Setup Complete">
    The Congratulations page summarizes the status of your configuration.

    <Frame>
      <img src="https://mintlify.s3.us-west-1.amazonaws.com/levelblue-5324744e/images/usm-anywhere/deployment-guide/gcp/7%20congratulations%20trimmed_350x383.webp" />
    </Frame>

    Click **Start Using USM Anywhere**, which takes you to the Overview dashboard.
  </Accordion>
</AccordionGroup>

Now is a great time to run a vulnerability scan. See [Vulnerability Assessment](../../user-guide/vulnerability-assessment/vulnerability-assessment) for detailed information about running a vulnerability scan.
