Skip to main content
Skip table of contents

Initialize the PubSub Beat

Prerequisites

  • The Open Collector is installed. If you have not already installed it, follow the instructions in the Open Collector Installation and User Guide, and then return to this topic.
  • To collect log from any GCP service, the services must be enabled on the GCP portal, and you should have one topic and subscription.
  • The following port is open:

    Direction

    Port

    Protocol

    Source

    Outbound443HTTPSpubsubbeat

Initialize the Beat

  1. To confirm the Open Collector is running, run the following command:

    CODE
    ./lrctl status

    You should see the open_collector and metrics as shown in the following graphic:

    If the Open Collector is not running correctly, see Troubleshoot the Open Collector in the Open Collector Installation and User Guide.
  2.  In the Open Collector, run the following command:

    CODE
    ./lrctl pubsubbeat start
  3. Enter the following details:

    The contents of this user credential file are saved in encrypted format.

    1. The Project ID of your project from GCP:
    2. The Topic name from GCP. Enter only the portion that appears after topics\. For example, if your GCP console listed the Topic name as projects/datacollector-0000/topics/sample-topic, you would enter sample-topic.
    3. The Subscription name from GCP. Enter only the portion that appears after subscriptions\. For example, if your GCP console listed the Subscription name as projects/datacollector-0000/topics/sample-subscription, you would enter sample-subscription.
  4. The configuration saves and the service starts successfully.

  5. To check the status of the service, run the following command:

    CODE
    ./lrctl pubsubbeat status

Default Config Values for Pub Sub Beat:

S. No.

Field Name

Default Value

1.projectUser Provided
2.HeartbeatInterval5m0s 
3.HeartbeatDisabledfalse
4.CredentialsFileUser Provided

5.

TopicUser Provided
6.Subscription.nameUser Provided
7.json.enabledtrue
8.json.add_error_keytrue
9.subscription.Createtrue


JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.