Skip to content

Latest commit

 

History

History
53 lines (37 loc) · 1.98 KB

README.md

File metadata and controls

53 lines (37 loc) · 1.98 KB

BitdefenderGravityZonePushConfiguration

Version 1.2.0

BitdefenderGravityZonePushConfiguration is a set of tools that allow you to correctly configure the Bitdefender GravityZone Cloud PUSH API

Getting started

Before you can successfully configure your API, you must generate an APIKEY in your Bitdefender control account. For it:

  • Login to https://cloud.gravityzone.bitdefender.com/
  • Click on your username in the top right corner of the console and choose MY ACCOUNT
  • Select the APIs you want to use, in this case it will be just Event Push Service API
  • Click on save, an ApiKey will be generated for the selected API

This tool uses some configurations that you must define before starting, for this you must create an .env file in the root of this project, and define the following environment variables:

  • BDGZ_API_KEY= "APIKEY obtained in the previous process"
  • BDGZ_ACCESS_URL= "You can find this url in the My Account/Control Center API/Access URL tab of your account, and add /v1.0/jsonrpc/push to it, in most cases it is https://cloud.gravityzone.bitdefender .com/api/v1.0/jsonrpc/push"
  • BDGZ_URL= "url of the server or log collector that will receive the Bitdefender logs, example: https://example.com:8000"

Requirements

go 1.19 github.com/joho/godotenv

Deploy

First you must build your executable, for this:

go build

Then, to send your configuration to Bitdefender's Push API, you must run your executable passing it the sentConfig parameter.

.\bdgzpush_conf.exe sentConfig

If you want to check your Bitdefender Push API configuration, you should run its executable passing it the getConfig parameter.

.\bdgzpush_conf.exe getConfig

Running tests

Then, to send a test log to Bitdefender's Push API, you must run its executable passing it the logTest parameter.

.\bdgzpush_conf.exe logTest

At this time, the test logs should be arriving at your server or log collector

Licence

This project is under MIT license