---
title: "Set up your relay"
canonical: "https://docs.devo.com/space/latest/96469732/Set%20up%20your%20relay"
format: markdown
---
> Macro (toc)

## Overview

After [installing Devo Relay](https://devodocs.atlassian.net/wiki/spaces/latest/pages/96469068) on your machine, you must set up your relay and then activate it in your Devo domain. There are 2 different setup processes you can follow:

- [Interactive relay setup](#intsetup) - The Devo Relay CLI offers an interactive process that guides you through the required configuration of your new relay.
- [Non-interactive relay setup](#nonintsetup) - Alternatively, you can define a `.properties` file including the required relay settings and use it to set it up.

## Before you begin

You should have the API Key and API Secret for your Devo domain handy when you start this process. To copy the API Key and API Secret, log in to your domain using the Devo web application, then go to the **Access keys** tab in **Administration → Credentials**. Learn more about this in [Security credentials](https://devodocs.atlassian.net/wiki/spaces/latest/pages/94763701).

When using ELB, you also need to have the type and endpoint for a successful configuration. Learn more about ELB in [Event Load Balancers](https://devodocs.atlassian.net/wiki/spaces/latest/pages/94653692). If you are not sure about how to determine this, contact the [Devo support team](mailto:support@devo.com).

> ⚠️ **Wrong ELB**
> ⚠️ 
> ⚠️ Pay special attention to this part of the configuration because using the wrong ELB might result in data loss.

> Macro (anchor)

  

## Interactive relay setup

Follow these steps to set up a new relay through the interactive process of the Devo Relay CLI:

> Macro (rw-ui-steps-macro)
> 
> > Macro (rw-step)
> 
> First, access the Devo Relay CLI using the required command according to your OS:
> 
> | **Ubuntu / Red Hat / CentOS** | ```
> devo-ng-relay-cli
> ```<br>> ℹ️ Type *devo* and press the [TAB ↹] key and the command will be automatically completed. |
> | --- | --- |
> | **docker-compose** | ```
> sudo docker-compose run devo-ng-relay-cli
> ``` |
> 
> > Macro (rw-step)
> 
> Then, enter `setup` to start the relay setup process.
> 
> > Macro (rw-step)
> 
> The configuration process will start, which takes you through the steps required to set up a secure connection with the Devo cloud for your region.
> 
> |  |
> | --- |
> | First, select the cloud region your Devo domain resides in by typing the required value shown between brackets.<br>If you enter `Manual` to configure a private cloud location, additional steps request the following information before proceeding:<br>- The Devo ELB endpoint corresponding to your region (for example, *collector-us.devo.io* if you're in the USA)
> - The Devo ELB port to be used (*443 *or your dedicated one)
> - The Relay API URL corresponding to your region (for example, *https://api-us.devo.com/maduro* if you're in the USA)
> - The Devo Query API URL corresponding to your region (for example, *https://apiv2-us.devo.com/search* if you're in the USA)<br>> ℹ️ Check the required ELB endpoint and URLs according to your platform deployment in the requirements table of the [Planning Devo Relay deployment](https://devodocs.atlassian.net/wiki/spaces/latest/pages/96469035) article.<br>![image-20240418-082044.png](media://ccc802e0-e906-467f-854b-bbafeb38216e) |
> | If you select one of the available clouds, you'll be asked if you're using a dedicated ELB or not. Type `Y` if you're using a dedicated ELB (in this case, you'll need to enter the ELB endpoint and port), or `n` if you're not.<br>If you are not sure about this choice, contact the [Devo support team](mailto:support@devo.com).<br>![image-20240418-082401.png](media://5845d383-e148-4a1f-9549-7a849453f959) |
> | Next, enter a name for the new relay. Note that this is not the hostname; it's the relay name that will appear in the Devo web application in **Administration → Ingestion → Relays.**<br>The relay name can contain a maximum of 100 characters and must not contain periods. You can use underscores and hyphens but other special characters are not allowed.<br>![image-20240418-082714.png](media://a8c9224f-19f7-46a3-9f25-768a7b473825) |
> | Now enter the API Key and API Secret for the Devo domain to which you will be forwarding events.<br>Go to **Administration → Credentials** in the Devo web application to copy the API Key and API Secret.<br>![image-20240418-083204.png](media://70457eab-5fcb-4022-bb50-58f1379b1ffa) |
> | You'll be asked if the relay will use an HTTP proxy server.<br>If it will, type `Y`. You'll be prompted to indicate the following values if required:<br>- The HTTP proxy address.
> - The HTTP proxy port.
> - You'll be asked if your proxy is authenticated. Type `Y` or `n` as required. In case it is authenticated, you'll need to enter the HTTP proxy username and password.<br>If you're not using a proxy server, type `n`<br>![image-20240418-085449.png](media://de7f29bf-0b05-4f62-abad-9b65e1a2eece) |
> | Finally, a summary of the details of your new relay will be shown.<br>Type `Y` if the configuration is correct in order to end the setup process. If you type `n`, you'll be taken to the first step of the process.<br>> ⚠️ If a relay with the same name already exists in the same domain, you'll be asked if you want to override it. The process will be canceled if you decide not to override it.<br>![image-20240418-090411.png](media://2a991f16-ad66-4ee9-8c4a-6c36af42ada6) |
> 
> > Macro (rw-step)
> 
> Now you must activate the relay in the Devo app. Go to **Administration → Ingestion → Relays**, find your relay on the list and click the Activate option in the ellipsis menu at the right side of the table.
> 
> > ℹ️ Note that from Relay version 2.15.0, it is not necessary activate the relay from Devo app. This action is automatically performed after setup.
> 
> ![image](media://4b5b5842-3fde-41d0-9353-9ca6ec714ac5)

After activating the relay, it will stay in *Applying config* status for some time. The relay should turn to *Active *status in a few seconds. Learn more about the Devo Relay status workflow [here](https://devodocs.atlassian.net/wiki/spaces/latest/pages/96469965).

> ℹ️ **Check the status of your relay**
> ℹ️ 
> ℹ️ You can check your relay status anytime by using the `status` command on the CLI. Learn more about working on the CLI [in this article](https://devodocs.atlassian.net/wiki/spaces/latest/pages/96469683).

> Macro (anchor)

  

## Non-interactive relay setup

Instead of following the steps described above, you can define a file that includes all the required settings of your relay and use it to create it in the required domain. To do it:

> Macro (rw-ui-steps-macro)
> 
> > Macro (rw-step)
> 
> First, define the properties of your new relay in a file. Click below to download a template where you can directly fill the required relay values, copy it and save it as a `.properties` file. [Check the process defined above](#) if you have any doubts about any specific setting. Note that there are some mandatory values in the settings that you must fill out.
> 
> > Macro (rw-step)
> 
> Start the relay setup process by executing one of the following commands (where `<relayConfig.properties>` is the name of the file including the relay settings):
> 
> ```
> devo-ng-relay-cli --autosetup <relayConfig.properties>
> ```
> 
> or
> 
> ```
> devo-ng-relay-cli -a <relayConfig.properties>
> ```
> 
> > Macro (rw-step)
> 
> If everything is properly set in your file, you'll receive a confirmation message. Now you must activate the relay in the Devo app. Go to **Administration → Ingestion → Relays**, find your relay on the list and click the **Activate **option in the ellipsis menu on the right side of the table.

## Reconfigure your relay

You can always edit the settings of an already existing relay following these instructions:

### Interactive setup

To reconfigure an existing relay through the Devo Relay CLI interactive process, repeat [the setup process described above](#intsetup) and enter the name of the relay you want to modify. At the end of the process, you'll be asked if you want to override the current relay with the new settings. Enter `Y` to do it.

![image-20240418-090808.png](media://e69ec111-9d3f-4dcf-bf7a-bfcdb6379953)

If everything goes OK, you'll receive a confirmation message. Now you must activate the relay in the Devo app. Go to **Administration → Ingestion → Relays**, find your relay on the list and click the **Activate **option in the ellipsis menu on the right side of the table.

### Non-interactive setup

You can use a configuration file as described above to modify the settings of an already existing relay. To do it, enter the name of the relay you want to modify and the new settings, and save the file. Then, run one of the following commands in your machine (where `<relayConfig.properties>` is the name of the file including the relay settings):

```
devo-ng-relay-cli --force -autosetup <relayConfig.properties>
```

or

```
devo-ng-relay-cli --f -autosetup <relayConfig.properties>
```

If everything is properly set in your file, you'll receive a confirmation message. Now you must activate the reconfigured relay in the Devo app. Go to **Administration → Ingestion → Relays**, find your relay on the list and click the **Activate **option in the ellipsis menu on the right side of the table.